1 2014-12-19 Alan Lawrence <alan.lawrence@arm.com>
3 * config/aarch64/aarch64.c (<LOGICAL:optab>_one_cmpl<mode>3):
5 (<NLOGICAL:optab>_one_cmpl<mode>3): with extra SIMD-register variant.
6 (xor_one_cmpl<mode>3): New define_insn_and_split.
8 * config/aarch64/iterators.md (NLOGICAL): New define_code_iterator.
10 2014-12-19 Alan Lawrence <alan.lawrence@arm.com>
12 * config/aarch64/aarch64.md (<optab><mode>3, one_cmpl<mode>2):
13 Add SIMD-register variant.
14 * config/aarch64/iterators.md (Vbtype): Add value for SI.
16 2014-12-19 Alan Lawrence <alan.lawrence@arm.com>
18 * config/aarch64/aarch64.md (subdi3, adddi3_aarch64): Don't penalize
21 2014-12-19 Martin Liska <mliska@suse.cz>
24 * ipa-icf-gimple.c (func_checker::compare_operand): Add missing
25 comparison for volatile flag.
27 2014-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29 * doc/invoke.texi (ARM options): Remove mention of Advanced RISC
32 2014-12-19 Xingxing Pan <xxingpan@marvell.com>
34 * config/arm/cortex-a9-neon.md (cortex_a9_neon_vmov): Change
35 reservation to cortex_a9_neon_dp.
37 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
39 * config/sh/sh.c (prepare_move_operands): Split HI/QImode load/store
40 to two move insns via r0.
42 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
44 * config/sh/predicates.md (arith_or_int_operand): New predicate.
45 * config/sh/sh.md (addsi3): Use arith_or_int_operand for operand 2.
46 Return fail if operands[0] and operands[1] are overlap when
47 operands[2] is integer constant.
48 (*addsi3_compact): Make it define_insn_and_split which splits
49 reg0 := reg1 + constant to reg0 = constant and reg0 := reg0 + reg1.
51 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
53 * config/sh/sh-protos.h (sh_movsf_ie_ra_split_p): Declare.
54 * config/sh/sh.c (sh_movsf_ie_ra_split_p): New function.
55 * config/sh/sh.md (movsi_ie): Use "mr" constraint for the 8-th
56 altarnative of operand 0.
57 (movesf_ie): Use "X" constraint instead of "Bsc".
58 (movsf_ie_ra): New insn_and_split.
59 (movsf): Use movsfie_ra when lra_in_progress is true.
61 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
63 * config/sh/predicates.md (general_movsrc_operand): Allow only
64 valid plus address expressions.
65 (general_movdst_operand): Likewise.
66 (t_reg_operand): Allow (zero_extend (reg t)).
67 * config/sh/sh-protos.h (sh_hard_regno_caller_save_mode): Declare.
68 * config/sh/sh.c (sh_hard_regno_caller_save_mode): New function.
69 (sh_secondary_reload): Return NO_REGS instead of FPUL_REGS in one
71 * config/sh/sh.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
72 * config/sh/sh.md (untyped_call): Clobber function value
73 registers before call.
75 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
77 * config/sh/sh.c (sh_lra_p): New function.
78 (TARGET_LRA_P): Define.
79 (sh_legitimize_reload_address): Return false if sh_lra_p is true.
80 * config/sh/sh.opt (mlra): New option.
82 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
84 * lra-constraints.c (process_address_1): Try if target can split
85 displacement with targetm.legitimize_address_displacement.
86 * target.def (legitimize_address_displacement): New hook.
87 * targhooks.c (default_legitimize_address_displacement): New function.
88 * targhooks.h (default_legitimize_address_displacement): Declare.
89 * config/sh/sh.c (sh_legitimize_address_displacement): New function.
90 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
91 * doc/tm.texi.in (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): New hook.
92 * doc/tm.texi: Regenerate.
94 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
96 * lra-constraints.c (get_equiv): Don't return memory equivalence
97 when targetm.cannot_substitute_mem_equiv_p is true.
98 * target.def (cannot_substitute_mem_equiv_p): New hook.
99 * config/sh/sh.c (sh_cannot_substitute_mem_equiv_p): New function.
100 (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
101 * doc/tm.texi.in (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): New hook.
102 * doc/tm.texi: Regenerate.
104 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
106 * lra-constraints.c (process_address_1): Swap base_term and
107 index_term if INDEX_REG_CLASS is assigned to base_term already
108 when INDEX_REG_CLASS is a single register class.
110 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
112 * lra-constraints.c (lra-constraints.c): Exchange places of sclass
115 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
117 PR rtl-optimization/64291
118 * lra-remat.c (bad_for_rematerialization_p): Add UNPSEC_VLOATILE.
119 (create_cands): Process only output reload insn with potential
122 2014-12-18 H.J. Lu <hongjiu.lu@intel.com>
124 * config/i386/i386.c (ix86_expand_call): Skip setting up RAX
125 register for -mskip-rax-setup when there are no parameters
126 passed in vector registers.
127 * config/i386/i386.opt (mskip-rax-setup): New option.
128 * doc/invoke.texi: Document -mskip-rax-setup.
130 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
132 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): Handle shift
133 by 64 by moving const0_rtx.
134 (aarch64_ushr_simddi): Delete.
136 * config/aarch64/aarch64.md (enum unspec): Delete UNSPEC_USHR64.
138 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
140 * config/aarch64/aarch64.md (enum "unspec"): Remove UNSPEC_SSHR64.
142 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): Change shift
143 amount to 63 if was 64.
144 (aarch64_sshr_simddi): Remove.
146 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
148 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
150 (aarch64_min_divisions_for_recip_mul): New function.
152 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
154 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
156 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
158 (cortexa53_tunings): Likewise.
159 (cortexa57_tunings): Likewise.
160 (thunderx_tunings): Likewise.
161 (aarch64_override_options): Use new alignment tunings.
163 2014-12-18 Martin Liska <mliska@suse.cz>
165 PR tree-optimization/64330
166 * ipa-icf.c (sem_variable::parse): Add checking
167 for externally visible symbols and do not introduce
168 an alias for an external declaration.
170 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
173 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
176 2014-12-18 Martin Liska <mliska@suse.cz>
179 * ipa-icf.c (sem_function::merge): Check for
180 decl_binds_to_current_def_p is newly added to merge operation.
182 2014-12-18 Bin Cheng <bin.cheng@arm.com>
184 PR tree-optimization/62178
185 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
186 (iv_ca_replace): New function.
187 (try_improve_iv_set): New parameter try_replace_p.
188 Break local optimal fixed-point by calling iv_ca_replace.
189 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
191 2014-12-17 Dehao Chen <dehao@google.com>
193 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
195 (auto_profile): Recompute inline summary after processing cgraph node.
197 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
200 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
201 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
202 accordingly in constructor.
203 (cbranch_trace::branch_condition_rtx_ref): New function.
204 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
205 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
206 in insn using reversed_comparison_code and validate_change instead of
208 (sh_treg_combine::execute): Look for conditional insns in basic blocks
209 in addition to conditional branches.
210 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
212 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
215 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
216 Combine ccreg inversion and cbranch into inverted cbranch.
218 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
220 * lra-constraints.c (process_alt_operands): Remove non
221 allocatable hard regs when considering
222 ira_prohibited_class_mode_regs.
224 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
226 * sreal.h (sreal::normalize): Implement inline.
227 (sreal::normalize_up): New function.
228 (sreal::normalize_down): New function.
229 * sreal.c (sreal::normalize): Remove.
231 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
233 * config/aarch64/aarch64.md (generic_sched): Delete it.
235 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
237 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
238 unused argument warning.
240 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
242 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
243 * dwarf2out.c (enum dw_scalar_form): New.
244 (struct loc_descr_context): New.
245 (add_scalar_info): New.
246 (add_bound_info): Add a context parameter. Use add_scalar_info.
247 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
248 nodes for type-related expressions. Likewise for base declarations.
249 (loc_descriptor_from_tree): Add a context parameter.
250 (subrange_type_die): Update calls to add_bound_info.
251 (tls_mem_loc_descriptor): Likewise.
252 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
253 parameter. Update calls to loc_list_from_tree.
254 (add_subscript_info): Update calls to add_bound_info.
255 (gen_array_type_die): Update calls to loc_list_from_tree and to
257 (descr_info_loc): Remove.
258 (add_descr_info_field): Remove.
259 (gen_descr_array_type_die): Switch add_descr_info_field calls into
260 add_scalar_info/add_bound_info ones.
261 (gen_subprogram_die): Update calls to loc_list_from_tree.
262 (gen_variable_die): Likewise.
264 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
266 * dwarf2out.c (print_loc_descr): New.
268 (print_attribute): New.
269 (print_loc_descr): New.
270 (print_die): Use print_dw_val.
271 (debug_dwarf_loc_descr): New.
272 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
274 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
276 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
277 even when (dwarf_version < 3 && dwarf_strict).
278 (gen_descr_array_die): Do not output DW_AT_data_locationn,
279 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
280 attributes when (dwarf_version < 3 && dwarf_strict).
282 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
284 * dwarf2out.h (enum array_descr_ordering): New.
285 (array_descr_dimen): Add a bounds_type structure field.
286 (struct array_descr_info): Add a field to hold index type information
287 and another one to hold ordering information.
288 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
289 invoking the array descriptor language hook. Initialize the
290 array_descr_info structure before calling the lang-hook.
291 (gen_descr_array_type_die): Use gen_type_die if not processing the main
292 type variant. Replace Fortran-specific code with generic one using
293 this new field. Add a GNAT descriptive type, if any. Output type
294 information for the array bound subrange, if any.
296 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
297 Jakub Jelinek <jakub@redhat.com>
298 Uros Bizjak <ubizjak@gmail.com>
301 * config/i386/i386-opts.h (ix86_align_data): New enum.
302 * config/i386/i386.c (ix86_data_alignment): Return the ABI
303 alignment value for -malign-data=abi, the cachine line size
304 for -malign-data=cacheline and the older GCC compatible
305 alignment value for for -malign-data=compat.
306 * config/i386/i386.opt (malign-data=): New.
307 * doc/invoke.texi: Document -malign-data=.
309 2014-12-17 Marek Polacek <polacek@redhat.com>
312 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
314 2014-12-17 Jakub Jelinek <jakub@redhat.com>
316 PR tree-optimization/64322
317 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
318 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
320 2014-12-17 Tobias Burnus <burnus@net-b.de>
323 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
324 gfc_convert): New enums; moved from fortran/.
326 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
328 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
330 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
332 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
333 return values of const calls as constants.
334 (estimate_function_body_sizes): Expect calls to have false predicates.
336 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
338 * hwint.c (abs_hwi, absu_hwi): Move to ...
339 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
341 2014-12-16 Marek Polacek <polacek@redhat.com>
344 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
345 ((1 << A) & 1) == 0 -> A != 0.
347 2014-12-16 Richard Biener <rguenther@suse.de>
349 * genmatch.c (parser::parser): Initialize capture_ids.
350 (parser::parse_pattern): Properly allocate capture_ids before
351 using them. Set capture_ids to zero when its lifetime is
353 (parser::parse_simplify): Allocate capture_ids only if
356 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
358 * sreal.c: Include math.h later.
360 2014-12-16 Felix Yang <felix.yang@huawei.com>
362 PR rtl-optimization/64240
363 * ddg.c (mark_mem_use): Check *iter instead of *x.
365 2014-12-16 Martin Liska <mliska@suse.cz>
368 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
370 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
372 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
373 to RTL level for the check for PIC register.
375 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
377 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
378 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
379 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
381 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
384 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
387 2014-12-15 DJ Delorie <dj@redhat.com>
389 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
391 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
394 * tree-streamer.c (preload_common_nodes): Skip preloading
395 of main_identifier_node, pid_type and optimization/option nodes.
397 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
399 PR rtl-optimization/63397
400 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
402 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
403 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
404 (ira_reg_cost, ira_mem_cost): Ditto.
405 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
406 (calculate_allocation_cost, do_reload): Use the right
407 format for int64_t values.
409 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
411 * sreal.h (to_double): New method.
412 (shift): Do not ICE on 0.
413 * sreal.c: Include math.h
414 (sreal::to_double): New.
416 2014-12-15 Jakub Jelinek <jakub@redhat.com>
418 PR rtl-optimization/64316
419 * simplify-rtx.c (simplify_relational_operation_1): For
420 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
421 CONST0_RTX instead of const0_rtx.
423 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
426 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
428 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
430 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
431 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
433 * ira.h (struct target_ira): ... here.
434 (ira_prohibited_class_mode_regs): Define.
435 * lra-constraints.c (process_alt_operands): Add one more condition
436 to refuse alternative when reload pseudo of given class can not
437 hold value of given mode.
439 2014-12-15 Richard Biener <rguenther@suse.de>
441 PR tree-optimization/64312
442 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
443 vuse_ssa_val as callback to walk_non_aliased_vuses.
444 (vn_reference_lookup): Likewise.
446 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
448 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
449 *add<mode>3_imm_dot2): Change the constraint for the second
450 alternative for operand 1 from "r" to "b".
452 2014-12-15 Richard Biener <rguenther@suse.de>
454 * vec.h (vec::safe_grow): Guard against a grow to zero size.
456 2014-12-15 Richard Biener <rguenther@suse.de>
459 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
460 fold_binary to compute the constant to multiply with.
462 2014-12-15 Richard Biener <rguenther@suse.de>
465 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
466 invocations on the same loop.
468 2014-12-15 Marek Polacek <polacek@redhat.com>
471 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
473 2014-12-15 Renlin Li <renlin.li@arm.com>
475 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
476 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
478 2014-12-15 Jakub Jelinek <jakub@redhat.com>
481 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
482 call on edge from entry block to single succ instead
483 of after labels of single succ of entry block.
485 2014-12-15 Richard Biener <rguenther@suse.de>
487 PR tree-optimization/64284
488 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
489 the loop for removal if we copied the loop header.
491 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
494 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
495 * ipa.c (set_writeonly_bit): Track if reference was removed.
496 (ipa_discover_readonly_nonaddressable_vars): Return true if any
497 references was removed.
498 * ipa-reference.c (propagate): Return TODO_remove_functions if
499 reference was removed.
501 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
503 * ipa.c (process_references): Fix conditoinal on flag_optimize
505 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
508 * symtab.c (symbol_table::insert_to_assembler_name_hash
509 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
510 DECL_ASSEMBLER_NAME is NULL.
512 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
514 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
516 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
519 * tree.c (virtual_method_call_p): Return false when OTR type has
522 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
524 * cgraphunit.c (analyze_functions): Do not analyze extern inline
525 funtions when not optimizing; skip comdat locals.
527 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
529 PR rtl-optimization/64037
530 * combine.c (setup_incoming_promotions): Pass the argument
531 before any promotions happen to promote_function_mode.
533 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
535 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
537 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
540 * lra-constraints.c (process_alt_operands): Refuse alternative
541 when reload pseudo of given class can not hold value of given
544 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
546 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
547 intermediate walk_tree results for for_incr.
548 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
549 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
551 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
554 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
556 * double-int.c (div_and_round_double): Fix handling of unsigned
557 cases. Use same rounding approach as wide-int.h.
559 2014-12-12 Marek Polacek <polacek@redhat.com>
562 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
564 2014-12-12 Jakub Jelinek <jakub@redhat.com>
566 PR tree-optimization/64269
567 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
568 len2 or diff are too large.
570 2014-12-12 Richard Biener <rguenther@suse.de>
573 * tree-cfg.c (replace_uses_by): Guard assert properly.
575 2014-12-12 Anthony Green <green@moxielogic.com>
577 * config/moxie/moxie.md: Add use of zex instruction.
579 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
581 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
582 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
584 * real.c (HONOR_NANS): Fix indentation.
585 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
586 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
587 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
588 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
590 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
592 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
593 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
594 * omp-low.c (omp_reduction_init): Likewise.
595 * rtlanal.c (may_trap_p_1): Likewise.
596 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
597 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
598 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
599 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
600 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
602 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
604 * ipa-inline.c (ipa_inline): Fix condition on when
605 TODO_remove_unreachable_functions is needed.
607 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
609 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
610 if otr_type has no BINFO.
612 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
614 PR rtl-optimization/63917
615 * ifcvt.c (cc_in_cond): New function.
616 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
617 (noce_process_if_block, check_cond_move_block): Check CC references.
619 2014-12-11 Andrew Pinski <apinski@cavium.com>
621 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
622 * config/aarch64/aarch64.c (generic_tunings): Specify align.
623 (cortexa53_tunings): Likewise.
624 (cortexa57_tunings): Likewise.
625 (thunderx_tunings): Likewise.
626 (aarch64_override_options): Set align_loops, align_jumps,
627 align_functions based on what the tuning struct.
629 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
631 * doc/md.texi (Insn Lengths): Fix description of (pc).
633 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
636 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
637 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
638 * cgraphunit.c (symbol_table::process_new_functions): Add
639 IPA_SSA_AFTER_INLINING.
640 (ipa_passes): Update call of remove_unreachable_nodes.
641 (symbol_table::compile): Remove call of remove_unreachable_nodes.
642 * ipa-inline.c (inline_small_functions): Do not ICE with
644 (ipa_inline): Update symtab->state; fix formatting
645 update call of remove_unreachable_nodes.
646 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
647 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
648 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
649 (remove_unreachable_nodes): Update.
650 * ipa.c (process_references): Keep external references only
652 (walk_polymorphic_call_targets): Keep possible polymorphic call
653 target only when devirtualizing.
654 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
656 (ipa_single_use): Update comment.
657 * ipa-pure-const.c (cdtor_p): New function.
658 (propagate_pure_const): Track if some cdtor was turned pure/const.
659 (execute): Return TODO_remove_functions if needed.
660 * ipa-comdats.c (ipa_comdats): Update comment.
662 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
664 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
666 (gen_inlined_subroutine_die): Same.
667 (gen_block_die): Same.
668 (decls_for_scope): Same.
670 2014-12-11 Renlin Li <renlin.li@arm.com>
672 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
673 AARCH64_FL_FOR_ARCH8.
674 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
675 aarch64-cores.def file only.
677 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
680 * diagnostic.c (diagnostic_action_after_output): Make it extern.
681 Take diagnostic_t argument instead of diagnostic_info. Count also
682 DK_WERROR towards max_errors.
683 (diagnostic_report_diagnostic): Update call according to the above.
684 (error_recursion): Likewise.
685 * diagnostic.h (diagnostic_action_after_output): Declare.
686 * pretty-print.c (pp_formatted_text_data): Delete.
687 (pp_append_r): Call output_buffer_append_r.
688 (pp_formatted_text): Call output_buffer_formatted_text.
689 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
690 * pretty-print.h (output_buffer_formatted_text): New.
691 (output_buffer_append_r): New.
692 (output_buffer_last_position_in_text): New.
694 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
696 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
697 message to say +no only when removing extension.
699 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
701 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
702 for generator file. Add comment indicating it is a generated file.
703 * config/tilepro/mul-tables.c: Update generated file.
704 * config/tilegx/mul-tables.c: Likewise.
706 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
708 * combine.c (try_combine): Do not allow combining a PARALLEL I2
709 with a register move I3 if that I2 is an asm.
711 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
713 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
714 (vrndnq_f32): ... this.
715 (vrndqa_f32): Rename to...
716 (vrndaq_f32): ... this.
717 (vrndqp_f32): Rename to...
718 (vrndpq_f32): ... this.
719 (vrndqm_f32): Rename to...
720 (vrndmq_f32): ... this.
721 (vrndx_f32): New intrinsic.
722 (vrndxq_f32): Likewise.
724 2014-12-11 Marek Polacek <polacek@redhat.com>
726 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
727 (extract_muldiv_1): Likewise.
728 (maybe_canonicalize_comparison_1): Likewise.
729 (fold_comparison): Likewise.
730 (tree_binary_nonnegative_warnv_p): Likewise.
731 (tree_binary_nonzero_warnv_p): Likewise.
732 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
733 * tree-scalar-evolution.c (simple_iv): Likewise.
734 (scev_const_prop): Likewise.
735 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
736 * tree-vect-generic.c (expand_vector_operation): Likewise.
737 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
738 (ANY_INTEGRAL_TYPE_P): Define.
739 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
740 Add ANY_INTEGRAL_TYPE_CHECK.
741 (any_integral_type_check): New function.
743 2014-12-11 Tobias Burnus <burnus@net-b.de>
744 Manuel López-Ibáñez <manu@gcc.gnu.org>
746 * error.c (gfc_get_terminal_width): Renamed from
747 get_terminal_width and use same-named common function.
748 (gfc_error_init_1): Update call.
750 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
752 * gdbhooks.py (class DWDieRefPrinter): New class.
753 (build_pretty_printer): Register dw_die_ref's.
755 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
757 * config.gcc: Support "knl".
758 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
759 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
761 * config/i386/i386.c (m_KNL): Define.
762 (processor_target_table): Add "knl".
764 (ix86_issue_rate): Add PROCESSOR_KNL.
765 (ix86_adjust_cost): Ditto.
766 (ia32_multipass_dfa_lookahead): Ditto.
767 (get_builtin_code_for_version): Handle "knl".
768 (fold_builtin_cpu): Ditto.
769 * config/i386/i386.h (TARGET_KNL): Define.
770 (processor_type): Add PROCESSOR_KNL.
771 * config/i386/i386.md (attr "cpu"): Add knl.
772 * config/i386/x86-tune.def: Add m_KNL.
774 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
776 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
777 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
778 when it is not streamed to the given ltrans.
779 (compute_ltrans_boundary): Make code adding all polymorphic
780 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
781 * common.opt (fdevirtualize-at-ltrans): New flag.
783 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
785 * varpool.c (varpool_node::get_create): Force output of vars with
786 "omp declare target" attribute.
788 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
790 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
791 * real.c: Include rtl.h and options.h.
792 (HONOR_NANS): Define three overloads.
793 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
794 Simplify argument of HONOR_NANS.
795 * fold-const.c (combine_comparisons, fold_truth_not_expr,
796 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
797 fold_comparison, fold_binary_loc): Likewise.
798 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
799 * ipa-inline-analysis.c (add_clause,
800 set_cond_stmt_execution_predicate): Likewise.
801 * match.pd: Likewise.
802 * rtlanal.c (may_trap_p_1): Likewise.
803 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
804 * tree-if-conv.c (parse_predicate): Likewise.
805 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
806 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
807 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
808 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
809 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
811 2014-12-10 Jakub Jelinek <jakub@redhat.com>
813 PR tree-optimization/62021
814 * omp-low.c (simd_clone_adjust_return_type): Use
815 vector of pointer_sized_int_node types instead vector of pointer
817 (simd_clone_adjust_argument_types): Likewise.
819 2014-12-10 Jakub Jelinek <jakub@redhat.com>
820 Evgeny Stupachenko <evstupac@gmail.com>
823 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
824 set dcopy.target to a new pseudo.
826 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
828 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
830 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
832 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
833 config/rs6000/440.md (ppc440-compare): Remove "compare".
834 config/rs6000/476.md (ppc476-compare): Remove "compare".
835 config/rs6000/601.md (ppc601-compare): Remove "compare".
836 config/rs6000/603.md (ppc603-compare): Remove "compare".
837 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
838 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
839 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
840 config/rs6000/8540.md (ppc8540_su): Remove "compare".
841 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
843 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
844 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
845 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
846 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
847 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
848 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
849 config/rs6000/power4.md (power4-compare): Remove "compare".
850 config/rs6000/power5.md (power5-compare): Remove "compare".
851 config/rs6000/power6.md (power6-compare): Remove "compare".
852 config/rs6000/power7.md (power7-compare): Remove "compare".
853 config/rs6000/power8.md (power8-compare): Remove "compare". Update
855 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
857 (is_cracked_insn): Remove TYPE_COMPARE case.
858 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
859 config/rs6000/rs6000.md (type): Remove "compare".
860 (cell_micro): Remove "compare".
861 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
863 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
865 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
866 Change type from "compare" to "two".
868 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
871 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
872 (signed_comparison_operator): New.
873 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
874 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
875 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
876 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
877 add to addc,adde directly, if !TARGET_POWERPC64.
878 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
879 if !TARGET_POWERPC64.
880 (neg<mode>2): Delete expander.
881 (*neg<mode>2): Rename to "neg<mode>2".
882 (addti3, subti3): Delete.
883 (addti3, subti3): New expanders.
884 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
885 (cstore<mode>4_unsigned): New expander.
886 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
887 (cstore<mode>4 for FP): Remove superfluous quotes.
888 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
889 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
890 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
891 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
892 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
893 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
894 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
895 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
896 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
897 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
898 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
899 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
901 (eq<mode>3, ne<mode>3): New.
902 (*neg_eq_<mode>, *neg_ne_<mode>): New.
903 (*plus_eq_<mode>, *plus_ne_<mode>): New.
904 (*minus_eq_<mode>, *minus_ne_<mode>): New.
906 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
909 * config/rs6000/predicates.md (adde_operand): New.
910 * config/rs6000/rs6000.md (add<mode>3_carry): New.
911 (*add<mode>3_imm_carry_pos): New.
912 (*add<mode>3_imm_carry_0): New.
913 (*add<mode>3_imm_carry_m1): New.
914 (*add<mode>3_imm_carry_neg): New.
915 (add<mode>3_carry_in): New.
916 (*add<mode>3_carry_in_internal): New.
917 (add<mode>3_carry_in_0): New.
918 (add<mode>3_carry_in_m1): New.
919 (subf<mode>3_carry): New.
920 (*subf<mode>3_imm_carry_0): New.
921 (*subf<mode>3_imm_carry_m1): New.
922 (subf<mode>3_carry_in): New.
923 (*subf<mode>3_carry_in_internal): New.
924 (subf<mode>3_carry_in_0): New.
925 (subf<mode>3_carry_in_m1): New.
926 (subf<mode>3_carry_in_xx): New.
928 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
931 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
933 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
935 (*add<mode>3_dot, *add<mode>3_dot2): New.
936 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
938 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
941 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
944 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
947 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
948 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
949 to "b". Increase length.
950 (splitters for these): Split to cmp+addi instead of addic.
952 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
955 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
956 (macho_low_di): Ditto.
957 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
958 (tocref<mode>): Ditto.
960 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
961 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
962 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
963 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
965 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
968 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
969 (rs6000_md_asm_clobbers): New function.
971 2014-12-10 Felix Yang <felix.yang@huawei.com>
973 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
974 declaration of removed function.
976 2014-12-10 Richard Biener <rguenther@suse.de>
979 (move_computations_dom_walker::before_dom_children): Clear
980 SSA_NAME_RANGE_INFO on moved stmts.
982 2014-12-10 Martin Liska <mliska@suse.cz>
984 * sreal.c (sreal::shift_right): New implementation
985 for int64_t as m_sig.
986 (sreal::normalize): Likewise.
987 (sreal::to_int): Likewise.
988 (sreal::operator+): Likewise.
989 (sreal::operator-): Likewise.
990 (sreal::operator*): Likewise.
991 (sreal::operator/): Likewise.
992 (sreal::signedless_minus): Removed.
993 (sreal::signedless_plus): Removed.
994 (sreal::debug): const keyword is added.
995 * sreal.h (sreal::operator<): New implementation
996 for int64_t as m_sig.
997 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
1000 2014-12-10 Martin Liska <mliska@suse.cz>
1002 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
1003 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
1004 replaces loop based on precomputed number of non-debug statements.
1006 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
1008 * config/linux.c (linux_has_ifunc_p): Remove.
1009 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
1011 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
1013 * contrib/check_GNU_style.sh (col): Got rid of cut operation
1014 from the pipe chain and instead added cut inside awk command.
1016 2014-12-10 Richard Biener <rguenther@suse.de>
1018 PR tree-optimization/64191
1019 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
1020 mark clobbers as necessary.
1021 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
1023 2014-12-10 Jakub Jelinek <jakub@redhat.com>
1026 * config/i386/sse.md (vec_dupv4sf): Move after
1027 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
1028 (*vec_dupv4si, *vec_dupv2di): Likewise.
1029 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
1030 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
1032 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
1033 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
1035 * config/i386/i386.c (enum ix86_builtins): Remove
1036 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
1037 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
1038 IX86_BUILTIN_PBROADCASTQ512_MEM.
1039 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
1040 __builtin_ia32_pbroadcastq256_gpr_mask and
1041 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
1042 regardless of OPTION_MASK_ISA_64BIT.
1043 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
1044 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
1045 builtins regardless of whether TARGET_64BIT is defined or not.
1046 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
1047 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
1050 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
1051 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
1053 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1056 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
1058 2014-12-10 Marek Polacek <polacek@redhat.com>
1060 PR tree-optimization/61686
1061 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
1064 2014-12-10 Kito Cheng <kito@0xlab.org>
1066 * doc/libgcc.texi: Update text to match implementation in
1069 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
1071 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
1072 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
1073 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
1076 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1079 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
1082 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1085 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
1086 for BUILT_IN_POW when flag_errno_math is present.
1088 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
1090 * lto-wrapper.c (compile_offload_image): Start processing in_argv
1091 from 0 instead of 1.
1092 (run_gcc): Put offload objects into offload_argv, put LTO objects and
1093 possible preceding arguments into lto_argv.
1094 Pass offload_argv to compile_images_for_offload_targets instead of argv.
1095 Use lto_argv for LTO recompilation instead of argv.
1097 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1099 * doc/install.texi: Describe --with-aix-soname option.
1101 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1103 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
1105 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1108 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
1110 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
1112 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
1113 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
1114 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
1115 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
1116 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
1117 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
1118 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
1119 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
1120 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
1121 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
1122 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
1123 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
1124 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
1125 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
1126 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
1128 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
1129 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
1130 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
1131 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
1132 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
1133 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
1134 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
1135 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
1136 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
1137 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
1138 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
1139 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
1140 to __aarch64_vdup_lane_any.
1141 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
1142 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
1143 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
1144 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1145 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1146 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1147 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1148 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1149 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1150 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1151 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1152 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1153 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1154 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1155 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1156 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1157 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1158 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1159 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1160 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1161 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1162 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1163 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1164 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1165 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1166 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1167 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1168 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1169 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1170 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1171 __aarch64_vget_lane_any.
1173 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1176 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1177 message for SIMD_ARG_CONSTANT.
1179 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1182 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1183 TYPES_BINOPV): Delete.
1184 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1185 AARCH64_SIMD_PATTERN_START.
1186 (aarch64_init_simd_builtins): Register
1187 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1188 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1189 AARCH64_SIMD_PATTERN_START.
1191 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1192 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1194 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1195 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1196 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1197 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1198 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1199 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1200 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1201 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1203 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1206 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1208 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1209 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1210 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1211 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1213 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1214 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1215 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1216 __aarch64_vset_lane_any rather than vset_lane_xxx.
1218 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1220 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1221 earlyclobbering result operand.
1223 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1224 Remove final qualifier_internal.
1225 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1227 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1229 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1231 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1233 (aarch64_reassociation_width): New function.
1234 (generic_tunings): Add reassociation tuning parameters.
1235 (cortexa53_tunings): Likewise.
1236 (cortexa57_tunings): Likewise.
1237 (thunderx_tunings): Likewise.
1239 2014-12-09 Andrew Pinski <apinski@cavium.com>
1240 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1242 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1243 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1244 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1246 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1249 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1251 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1252 implementation into a new overloaded variant taking a
1254 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1256 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1257 this function, taking a dump_file_info *.
1259 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1263 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1265 PR rtl-optimization/64037
1266 * combine.c (setup_incoming_promotions): Pass the argument
1267 before any promotions happen to promote_function_mode.
1269 2014-12-09 Richard Biener <rguenther@suse.de>
1271 PR tree-optimization/64193
1272 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1273 and valueize the VUSE before looking up the def stmt.
1274 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1275 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1276 to walk_non_aliased_vuses.
1277 (vn_reference_lookup): Likewise.
1278 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1279 callback to walk_non_aliased_vuses.
1281 2014-12-09 Richard Biener <rguenther@suse.de>
1284 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1286 2014-12-09 Richard Biener <rguenther@suse.de>
1288 PR tree-optimization/64191
1289 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1290 not relevant (nor are their uses).
1292 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1294 * lto/lto-partition.c (privatize_symbol_name): Correctly
1295 privatize instrumentation clones.
1297 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1299 * lto-cgraph.c (input_cgraph_1): Don't break existing
1300 instrumentation clone references.
1301 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1302 instrumented_version references appropriately.
1304 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1307 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1308 between nodes sharing assembler name.
1310 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1313 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1314 constant moves if -mupper-regs-df.
1316 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1318 (movtd_64bit_nodm): Likewise.
1319 (mov<mode>_32bit, FMOVE128 case): Likewise.
1321 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1323 * simplify-rtx.c (simplify_relational_operation_1): Handle
1324 simplification identities for BICS patterns.
1326 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1328 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1330 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1333 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1334 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1335 TARGET_TOC. Always use rs6000_emit_move.
1337 2014-12-08 Mark Wielaard <mjw@redhat.com>
1340 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1342 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1345 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1347 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1350 * cgraph.h (xstrdup_for_dump): New function.
1351 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1352 within fprintf with xstrdup_for_dump.
1353 (cgraph_edge::make_speculative): Likewise.
1354 (cgraph_edge::resolve_speculation): Likewise.
1355 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1356 (cgraph_node::dump): Likewise.
1357 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1358 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1359 * ipa-inline.c (report_inline_failed_reason): Likewise.
1360 (want_early_inline_function_p): Likewise.
1361 (edge_badness): Likewise.
1362 (update_edge_key): Likewise.
1363 (flatten_function): Likewise.
1364 (inline_always_inline_functions): Likewise.
1365 * ipa-profile.c (ipa_profile): Likewise.
1366 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1367 (ipa_make_edge_direct_to_target): Likewise.
1368 (remove_described_reference): Likewise.
1369 (propagate_controlled_uses): Likewise.
1370 * ipa-utils.c (ipa_merge_profiles): Likewise.
1372 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1375 * ipa-polymorphic-call.c
1376 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1378 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1380 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1382 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1385 2014-12-08 Felix Yang <felix.yang@huawei.com>
1386 Haijian Zhang <z.zhanghaijian@huawei.com>
1387 Jiji Jiang <jiangjiji@huawei.com>
1388 Pengfei Sui <suipengfei@huawei.com>
1390 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1392 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1393 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1394 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1395 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1396 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1397 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1398 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1399 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1400 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1401 vrsubhn_high_u64): Likewise.
1402 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1403 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1404 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1405 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1406 subhn2, rsubhn2, urecpe): New builtins.
1408 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1410 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1411 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1413 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1415 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1416 (expand_vec_perm_vpermi2_vpshub2): New.
1417 (ix86_expand_vec_perm_const_1): Use it.
1418 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1419 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1421 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1423 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1424 return bounds for strchr calls.
1426 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1428 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1429 (chkp_build_returned_bound): Use zero bounds as
1430 returned by calls not returning bounds.
1432 2014-12-08 Richard Biener <rguenther@suse.de>
1434 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1435 (fold_builtin_1): Likewise.
1436 (fold_builtin_3): Likewise.
1437 (fold_builtin_varargs): Likewise.
1438 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1439 (fold_builtin_n): Adjust.
1440 (fold_builtin_stpcpy): Move to gimple-fold.c.
1441 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1442 (gimple_fold_builtin): Fold stpcpy here.
1444 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1446 * symtab.c (symtab_node::verify): Check for section attribute before
1447 asserting something isn't in a section and a comdat group.
1449 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1452 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1454 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1456 * compare-elim.c: Fix head comment.
1457 (conforming_compare): Remove redundant test.
1458 (can_eliminate_compare): New function extracted from...
1459 (before_dom_children): ...here. Use it, replace direct uses of
1460 flag_non_call_exceptions and tidy up.
1461 (maybe_select_cc_mode): Tidy up.
1463 2014-12-07 Felix Yang <felix.yang@huawei.com>
1464 Shanyao Chen <chenshanyao@huawei.com>
1466 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1468 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1470 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1471 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1472 vcntq_u8): Rewrite using builtin functions.
1474 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1476 * symtab.c (symtab_node::equal_address_to): New function.
1477 * cgraph.h (symtab_node::equal_address_to): Declare.
1478 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1479 * c-family/c-common.c: Refuse weaks for symbols that can not change
1482 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1484 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1486 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1487 Sebastian Pop <s.pop@samsung.com>
1488 Brian Rzycki <b.rzycki@samsung.com>
1490 PR tree-optimization/54742
1491 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1492 max-fsm-thread-paths): New.
1494 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1495 max-fsm-thread-paths): Documented.
1497 * tree-cfg.c (split_edge_bb_loc): Export.
1498 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1500 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1501 original value of cond when simplification fails.
1502 (fsm_find_thread_path): New.
1503 (fsm_find_control_statement_thread_paths): New.
1504 (thread_through_normal_block): Call find_control_statement_thread_paths.
1506 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1509 (duplicate_seme_region): New.
1510 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1511 calling duplicate_seme_region.
1513 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1515 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1518 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1519 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1521 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1524 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1525 non-NULL, call maybe_get_dominating_check on it even if g is
1528 2014-12-05 Jeff Law <law@redhat.com>
1530 * doc/md.texi: Note problems using function calls to determine
1531 insn lengths and point readers to a potential workaround.
1533 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1535 * combine.c (is_parallel_of_n_reg_sets)
1536 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1538 2014-12-05 Andrew Pinski <apinski@cavium.com>
1540 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1541 than CF10 so 2 is appended on the code.
1542 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1543 (bswap<mode>2): This so it matches for the optabs.
1545 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1547 * regrename.c (find_best_rename_reg): Rename to ...
1548 (find_rename_reg): This. Also add a parameter to skip tick check.
1549 * regrename.h: Likewise.
1550 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1552 2014-12-05 Martin Jambor <mjambor@suse.cz>
1555 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1556 from bits to bytes after checking they are byte-aligned.
1558 2014-12-05 Renlin Li <renlin.li@arm.com>
1560 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1561 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1562 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1565 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1567 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1568 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1569 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1570 from load_pair<mode>. New alternative to support int/fp
1571 registers in fp/int mode patterns.
1572 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1573 store_pairsf and store_pairdi.
1574 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1575 from store_pair<mode>. New alternative to support int/fp
1576 registers in fp/int mode patterns.
1577 (*load_pair_extendsidi2_aarch64): New pattern.
1578 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1579 (aarch64-ldpstp.md): Include.
1580 * config/aarch64/aarch64-ldpstp.md: New file.
1581 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1583 (extract_base_offset_in_addr): New.
1584 (aarch64_operands_ok_for_ldpstp): New.
1585 (aarch64_operands_adjust_ok_for_ldpstp): New.
1586 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1587 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1588 (fusion_load_store): New functon.
1589 (extract_base_offset_in_addr): New function.
1590 (aarch64_gen_adjusted_ldpstp): New function.
1591 (aarch64_sched_fusion_priority): New function.
1592 (aarch64_operands_ok_for_ldpstp): New function.
1593 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1595 2014-12-05 Olivier Hainque <hainque@adacore.com>
1597 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1598 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1599 DWARF_REG_TO_UNWIND_COLUMN.
1601 2014-12-05 Olivier Hainque <hainque@adacore.com>
1603 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1604 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1605 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1606 account for dwarf register spans.
1608 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1611 * config/i386/i386.md (*jcc_1_bnd): New.
1614 (*jcc_1): Remove bnd prefix.
1618 2014-12-05 Renlin Li <renlin.li@arm.com>
1620 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1622 (aarch64_override_options): Use selected_cpu's tuning.
1624 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1626 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1627 alignment to section name. Increase default alignment to word.
1629 2014-12-05 Martin Jambor <mjambor@suse.cz>
1631 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1632 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1633 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1635 (redirect_edge_duplicating_thunks): Turned into edge method
1636 redirect_callee_duplicating_thunks.
1637 (cgraph_node::expand_all_artificial_thunks): New method.
1638 (create_clone): Call expand_all_artificial_thunks.
1639 * ipa-cp.c (perhaps_add_new_callers): Call
1640 redirect_callee_duplicating_thunks instead of redirect_callee.
1641 Also call expand_all_artificial_thunks.
1643 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1646 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1649 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1651 * diagnostic.h (diagnostic_expand_location): New inline function.
1652 * diagnostic.c (diagnostic_build_prefix): Use it.
1653 (diagnostic_show_locus): Likewise.
1655 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1658 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1659 * configure: Regenerated.
1661 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1663 * diagnostic.c (diagnostic_color_init): New.
1664 * diagnostic.h: Declare.
1665 * gcc.c (driver::global_initializations): Use it.
1666 (driver_handle_option): Handle -fdiagnostics-color_.
1667 * toplev.c: Do not include diagnostic-color.h.
1668 (process_options): Do not initialize color diagnostics here.
1669 * common.opt (fdiagnostics-color=): Add Driver.
1670 * opts-global.c (init_options_once): Initialize color here.
1671 * opts.c (common_handle_option): Use diagnostics_color_init.
1672 * diagnostic-color.h: Fix comment.
1674 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1676 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1678 (buffer): Rename this variable to...
1681 (do_niy): Rename param from "buffer" to "pp".
1682 (dump_decl_name): Likewise.
1683 (dump_function_name): Likewise.
1684 (dump_function_declaration): Likewise.
1685 (dump_array_domain): Likewise.
1686 (dump_omp_clause): Likewise.
1687 (dump_omp_clauses): Likewise.
1688 (dump_location): Likewise.
1689 (dump_block_node): Likewise.
1690 (dump_generic_node): Likewise.
1691 (print_declaration): Likewise.
1692 (print_struct_decl): Likewise.
1693 (print_call_name): Likewise.
1694 (pretty_print_string): Likewise.
1695 (newline_and_indent): Likewise.
1697 (print_generic_decl): Update for renaming of "buffer" to
1699 (print_generic_stmt): Likewise.
1700 (print_generic_stmt_indented): Likewise.
1701 (print_generic_expr): Likewise.
1702 (maybe_init_pretty_print): Likewise.
1704 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1707 * tree-pretty-print.c: Eliminate include of <new>.
1708 (buffer): Convert this variable from a pretty_printer to a
1710 (initialized): Eliminate this variable in favor of the NULL-ness
1712 (print_generic_decl): Update for "buffer" becoming a pointer.
1713 (print_generic_stmt): Likewise.
1714 (print_generic_stmt_indented): Likewise.
1715 (print_generic_expr): Likewise.
1716 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1717 heap and using its non-NULL-ness to ensure idempotency.
1719 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1722 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1723 ipa_add_new_function on function_insertion_hook_holder being
1725 * ipa-reference.c (ipa_reference_c_finalize): Remove
1726 node_removal_hook_holder and node_duplication_hook_holder if
1727 they've been added to symtab.
1728 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1729 before cgraph_c_finalize so that the former can access "symtab".
1731 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1733 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1734 gphi_iterator, and use one in the example.
1735 * doc/gimple.texi (Tuple specific accessors): Add missing
1736 GIMPLE_GOTO section and menu item.
1737 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1738 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1739 description of removed functions.
1740 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1741 gimple_build_call_from_tree, gimple_build_call_vec,
1742 gimple_build_catch, gimple_build_cond,
1743 gimple_build_cond_from_tree, gimple_build_debug_bind,
1744 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1745 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1746 gimple_build_omp_continue, gimple_build_omp_critical,
1747 gimple_build_omp_for, gimple_build_omp_parallel,
1748 gimple_build_omp_sections, gimple_build_omp_single,
1749 gimple_build_return, gimple_build_resx, gimple_build_switch,
1750 gimple_build_try): Update return type within description to
1751 reflect changes in gimple.h to using gimple subclasses.
1752 (gimple_build_asm_vec): Update return type, params and
1754 (gimple_asm_ninputs): Update param.
1755 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1756 gimple_asm_set_input_op, gimple_asm_output_op
1757 gimple_asm_set_output_op, gimple_asm_clobber_op,
1758 gimple_asm_set_clobber_op, gimple_asm_string,
1759 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1760 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1761 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1762 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1763 gimple_call_return_type, gimple_call_set_chain,
1764 gimple_call_set_tail, gimple_call_tail_p,
1765 gimple_call_copy_skip_args, gimple_catch_types,
1766 gimple_catch_types_ptr, gimple_catch_handler,
1767 gimple_catch_set_types, gimple_catch_set_handler,
1768 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1769 gimple_cond_true_label, gimple_cond_set_true_label,
1770 gimple_cond_set_false_label, gimple_cond_false_label,
1771 gimple_cond_make_false, gimple_cond_make_true,
1772 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1773 gimple_eh_must_not_throw_fndecl,
1774 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1775 gimple_label_set_label, gimple_goto_set_dest,
1776 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1777 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1778 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1779 gimple_omp_continue_control_def,
1780 gimple_omp_continue_control_def_ptr,
1781 gimple_omp_continue_set_control_def,
1782 gimple_omp_continue_control_use,
1783 gimple_omp_continue_control_use_ptr,
1784 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1785 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1786 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1787 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1788 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1789 gimple_omp_parallel_data_arg_ptr,
1790 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1791 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1792 gimple_resx_set_region, gimple_return_retval,
1793 gimple_return_set_retval, gimple_switch_num_labels,
1794 gimple_switch_set_num_labels, gimple_switch_index,
1795 gimple_switch_set_index, gimple_switch_label,
1796 gimple_switch_set_label, gimple_switch_default_label,
1797 gimple_switch_set_default_label, gimple_try_set_eval,
1798 gimple_try_set_cleanup): Update initial param within description
1799 to reflect changes in gimple.h to using gimple subclasses.
1800 (Adding a new GIMPLE statement code): Update to reflect gimple
1801 statement subclassing.
1803 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1804 H.J. Lu <hongjiu.lu@intel.com>
1806 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1807 Linux/x86-64 linker supports PIE with copy reloc.
1808 * config.in: Regenerated.
1809 * configure: Likewise.
1811 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1812 pc-relative address for undefined, non-weak, non-function
1813 symbol reference in 64-bit PIE if linker supports PIE with
1816 * doc/sourcebuild.texi: Document pie_copyreloc target.
1818 2014-12-04 Marek Polacek <polacek@redhat.com>
1821 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1822 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1824 2014-12-04 Tobias Burnus <burnus@net-b.de>
1826 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1828 2014-12-04 Richard Biener <rguenther@suse.de>
1830 * doc/match-and-simplify.texi: Update for recent changes.
1832 2014-12-04 Martin Jambor <mjambor@suse.cz>
1834 * ipa-prop.h (ipa_alignment): New type.
1835 (ipa_jump_func): New field alignment.
1836 (ipcp_transformation_summary) New type.
1837 (ipcp_grow_transformations_if_necessary): Declare.
1838 (ipa_node_agg_replacements): Removed.
1839 (ipcp_transformations): Declare.
1840 (ipcp_get_transformation_summary): New function.
1841 (ipa_get_agg_replacements_for_node): Use it.
1842 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1843 (print_all_lattices): Also print alignment.
1844 (alignment_bottom_p): New function.
1845 (set_alignment_to_bottom): Likewise.
1846 (set_all_contains_variable): Also set alignment to bottom.
1847 (initialize_node_lattices): Likewise.
1848 (propagate_alignment_accross_jump_function): New function.
1849 (propagate_constants_accross_call): Call it.
1850 (ipcp_store_alignment_results): New function.
1851 (ipcp_driver): Call it.
1852 * ipa-prop.c (ipa_node_agg_replacements): Removed.
1853 (ipcp_transformations): New.
1854 (ipa_print_node_jump_functions_for_edge): Also print alignment.
1855 (ipa_set_jf_unknown): New function.
1856 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
1857 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
1858 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
1859 (ipcp_grow_transformations_if_necessary): New function.
1860 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
1861 (ipa_node_removal_hook): Likewise.
1862 (ipa_node_duplication_hook): Also duplicate alignment results.
1863 (ipa_write_jump_function): Also stream alignments.
1864 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
1866 (write_agg_replacement_chain): Renamed to
1867 write_ipcp_transformation_info, also stream alignments.
1868 (read_agg_replacement_chain): Renamed to
1869 read_ipcp_transformation_info, also stream alignments.
1870 (ipa_prop_write_all_agg_replacement): Renamed to
1871 ipcp_write_transformation_summaries. Stream always.
1872 (ipa_prop_read_all_agg_replacement): Renamed to
1873 ipcp_read_transformation_summaries.
1874 (ipcp_update_alignments): New function.
1875 (ipcp_transform_function): Call it, free also alignments.
1877 2014-12-04 Richard Biener <rguenther@suse.de>
1879 * gimple-fold.c (replace_stmt_with_simplification): Properly
1880 fail when maybe_push_res_to_seq fails.
1882 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1884 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
1886 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1888 * doc/install.texi: Remove mentions of cloog and ppl.
1889 * doc/invoke.texi: Likewise
1891 2014-12-04 Jakub Jelinek <jakub@redhat.com>
1894 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
1895 Handle COMPOUND_EXPR.
1897 2014-12-04 Richard Biener <rguenther@suse.de>
1899 * builtins.c (target_newline): Export.
1900 (target_percent_s_newline): Likewise.
1901 (fold_builtin_1): Do not fold printf functions here.
1902 (fold_builtin_2): Likewise.
1903 (fold_builtin_3): Likewise, do not fold strncat.
1904 (fold_builtin_strncat): Move to gimple-fold.c.
1905 (fold_builtin_printf): Likewise.
1906 * builtins.h (target_newline): Declare.
1907 (target_percent_s_newline): Likewise.
1908 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
1909 builtins.c and gimplify.
1910 (gimple_fold_builtin_printf): Likewise.
1911 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
1912 vprintf, printf_chk and vprintf_chk here.
1914 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
1916 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
1917 (floatunssidf2_internal): Same.
1918 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
1919 (rs6000_emit_int_cmove): Same.
1920 (rs6000_sched_reorder): Same.
1921 (altivec_expand_vec_perm_const): Same.
1922 (rs6000_expand_vec_perm_const_1): Same.
1924 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1926 PR rtl-optimization/64010
1927 * reload.c (push_reload): Before reusing a register contained
1928 in an operand as input reload register, ensure that it is not
1929 used in CALL_INSN_FUNCTION_USAGE.
1931 2014-12-03 Ulrich Drepper <drepper@gmail.com>
1933 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
1936 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1938 * expmed.c (expand_mult): Use std::swap.
1941 * expmed.c (expand_widening_mult): Return const0_rtx if
1944 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
1945 (gimple_build_assign): Document the new overloads.
1947 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1950 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1951 not create LO_SUM address for constant addresses if the type can
1952 go in Altivec registers.
1954 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1957 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
1958 (pp_flush): Flush only if flush_p.
1959 (pp_really_flush): New.
1960 * pretty-print.h (struct output_buffer): Add flush_p.
1961 (pp_really_flush): Declare.
1963 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1965 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
1966 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
1967 (GENGTYPE_OBJS): New.
1968 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
1969 Remove explicit dependencies.
1970 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
1971 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
1972 instead of -DGENERATOR_FILE.
1973 (CFLAGS-errors.o): New.
1974 * gengtype.c: Instead of testing GENERATOR_FILE define, test
1975 HOST_GENERATOR_FILE. If defined, include config.h and define
1976 GENERATOR_FILE afterwards, otherwise include bconfig.h.
1977 * gengtype-parse.c: Likewise.
1978 * gengtype-state.c: Likewise.
1979 * gengtype-lex.l: Likewise.
1980 * errors.c: Likewise.
1982 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
1984 * config/epiphany/epiphany.c (epiphany_override_options):
1985 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
1986 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
1987 reverse_condition_maybe_unordered if flag_finite_math_only is set.
1989 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
1993 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1994 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1995 when architecture is older than ARMv7.
1997 2014-12-03 Richard Biener <rguenther@suse.de>
1999 * builtins.c (target_percent_c): Export.
2000 (fold_builtin_fprintf): Move to gimple-fold.c.
2001 (fold_builtin_2): Do not fold fprintf functions.
2002 (fold_builtin_3): Likewise.
2003 (fold_builtin_4): Remove.
2004 (fold_builtin_n): Do not call fold_builtin_4.
2005 * builtins.h (target_percent_c): Declare.
2006 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
2007 builtins.c and gimplify.
2008 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
2009 fprintf_chk and vfprintf_chk here.
2011 2014-12-03 Martin Jambor <mjambor@suse.cz>
2014 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
2015 type sizes before view_converting.
2017 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
2019 PR rtl-optimization/64151
2020 PR rtl-optimization/64156
2021 * ira-costs.c (scan_one_insn): Revert r218266.
2023 2014-12-03 Richard Biener <rguenther@suse.de>
2025 * builtins.c (fold_builtin_fpclassify): Change to take
2026 array of arguments instead of CALL_EXPR tree.
2027 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
2028 (fold_builtin_n): Dispatch to fold_builtin_varargs.
2029 (fold_call_expr): Always use fold_builtin_n.
2030 (fold_builtin_call_array): Change to not build the unfolded call,
2031 always use fold_builtin_n.
2032 (fold_builtin_varargs): Change to take array of arguments instead
2034 (fold_call_stmt): Always use fold_builtin_n.
2035 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
2036 * fold-const.c (fold_build_call_array_loc): Build the call
2037 if fold_builtin_call_array returned NULL_TREE.
2038 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
2039 a CALL_EXPR and use fold_builtin_call_array instead of
2042 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
2044 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
2045 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
2046 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
2047 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
2048 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
2049 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
2050 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
2051 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
2052 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
2053 Change VDQ to VDQ_I.
2055 (mul<mode>3): Change VDQM to VDQ_BHSI.
2056 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
2057 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
2058 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
2060 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
2061 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
2062 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
2063 Change VDW to VD_BHSI.
2064 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
2065 Change VDIC to VD_BHSI.
2067 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
2068 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
2069 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
2071 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
2072 VDIC, VDQQHS): Remove.
2073 (Vwtype): Update comment (changing VDW to VD_BHSI).
2075 2014-12-03 Richard Biener <rguenther@suse.de>
2078 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
2079 * match.pd: ... here as patterns.
2081 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
2083 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
2084 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
2085 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
2088 2014-12-03 Tom de Vries <tom@codesourcery.com>
2090 PR rtl-optimization/63957
2091 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
2092 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
2094 (get_call_reg_set_usage): Same.
2095 * lra-assigns.c (lra_assign): Same.
2096 * lra-constraints.c (need_for_call_save_p): Same.
2097 * lra-lives.c (process_bb_lives): Same.
2098 * lra.c (lra): Same.
2099 * calls.c (expand_call): Same.
2100 (emit_library_call_value_1): Same.
2101 * config/arm/arm.c (arm_option_override): Same.
2102 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
2104 * target.def (call_fusage_contains_non_callee_clobbers): Replace
2105 fuse-caller-save with fipa-ra.
2106 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
2109 2014-12-03 Yury Gribov <y.gribov@samsung.com>
2111 * sanopt.c (maybe_get_single_definition): New function.
2112 (maybe_get_dominating_check): Ditto.
2113 (can_remove_asan_check): Ditto.
2114 (struct tree_map_traits): New struct.
2115 (struct sanopt_ctx): Use custom traits for asan_check_map.
2116 (maybe_optimize_ubsan_null_ifn): Move code to
2117 maybe_get_dominating_check.
2118 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
2119 into account when optimizing.
2120 (sanopt_optimize_walker): Optimize ASan checks even when
2123 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
2125 * config/i386/constraints.md (Yr): New.
2126 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
2127 (REG_CLASS_NAMES): Likewise.
2128 (REG_CLASS_CONTENTS): Likewise.
2129 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
2130 which use only NO_REX_SSE_REGS.
2131 (vec_set<mode>_0): Likewise.
2132 (*vec_setv4sf_sse4_1): Likewise.
2133 (sse4_1_insertps): Likewise.
2134 (*sse4_1_extractps): Likewise.
2135 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
2136 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
2137 (*sse4_1_<code><mode>3<mask_name>): Likewise.
2138 (*sse4_1_<code><mode>3): Likewise.
2139 (*sse4_1_eqv2di3): Likewise.
2140 (sse4_2_gtv2di3): Likewise.
2141 (*vec_extractv4si): Likewise.
2142 (*vec_concatv2si_sse4_1): Likewise.
2143 (vec_concatv2di): Likewise.
2144 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2145 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2146 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2147 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2148 (<sse4_1_avx2>_mpsadbw): Likewise.
2149 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2150 (<sse4_1_avx2>_pblendvb): Likewise.
2151 (sse4_1_pblendw): Likewise.
2152 (sse4_1_phminposuw): Likewise.
2153 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2154 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2155 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2156 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2157 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2158 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2159 (sse4_1_ptest): Likewise.
2160 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2161 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2162 * config/i386/subst.md (mask_prefix4): New.
2163 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2165 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2167 PR rtl-optimization/52714
2168 * combine.c (try_combine): Allow combining two insns into two
2169 new insns if at least one of those is a noop.
2171 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2173 * target.def (fusion_priority): Wrap code with @smallexample.
2174 * doc/tm.texi: Regenerated.
2176 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2178 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2181 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2183 * asan.c: (asan_finish_file): Use default priority for constructors
2186 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2189 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2190 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2192 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2195 * config/i386/i386.c (decide_alg): Stop only if there aren't
2196 any usable algorithms.
2198 2014-12-02 Tom de Vries <tom@codesourcery.com>
2200 PR rtl-optimization/63718
2201 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2204 2014-12-02 Richard Biener <rguenther@suse.de>
2206 * match.pd: When combining divisions exclude the degenerate
2207 case involving INT_MIN from overflow handling.
2209 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2211 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2213 2014-12-02 Martin Jambor <mjambor@suse.cz>
2216 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2217 (cgraph_edge_brings_value_p): New parameter dest, use
2218 same_node_or_its_all_contexts_clone_p and check availability.
2219 (cgraph_edge_brings_value_p): Likewise.
2220 (get_info_about_necessary_edges): New parameter dest, pass it to
2221 cgraph_edge_brings_value_p. Update caller.
2222 (gather_edges_for_value): Likewise.
2223 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2224 both the destination and availability.
2226 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2229 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2230 using post-reload splitter. Use peephole2 pass instead.
2231 (call_value_osf_tlsldm): Ditto.
2232 (TLS_CALL): New int iterator.
2233 (tls): New int attribute.
2234 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2235 and call_value_tlsldm using TLS_CALL int iterator.
2237 2014-12-02 Richard Biener <rguenther@suse.de>
2238 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2240 * genmatch.c: Include hash-set.h.
2241 (fatal_at): Add source_location overload.
2242 (parser::record_operlist): New method.
2243 (parser::push_simplify): Likewise.
2244 (parser::oper_lists_set): New member.
2245 (parser::oper_lists): Likewise.
2246 (parser::parse_operation): Record seen operator list references.
2247 (parser::parse_c_expr): Likewise.
2248 (parser::parse_simplify): Init oper_lists_set and oper_lists
2249 and use push_simplify.
2250 (parser::parser): Init oper_lists_set and oper_lists.
2252 2014-12-02 Richard Biener <rguenther@suse.de>
2254 * match.pd: Restrict division combining to trunc_div and
2257 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2259 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2260 Remove NULL last argument from create_tmp_var calls.
2261 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2262 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2263 * config/i386/i386.c (add_condition_to_bb,
2264 ix86_atomic_assign_expand_fenv): Likewise.
2265 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2266 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2267 * config/aarch64/aarch64-builtins.c
2268 (aarch64_atomic_assign_expand_fenv): Likewise.
2269 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2271 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2272 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2273 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2275 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2276 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2277 the order of first two arguments.
2278 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2279 Likewise. Remove last NULL_TREE argument.
2281 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2283 PR rtl-optimization/59278
2284 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2286 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2288 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2290 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2292 * combine.c (is_parallel_of_n_reg_sets): New function.
2293 (can_split_parallel_of_n_reg_sets): New function.
2294 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2295 two insns if possible.
2297 2014-12-01 Tobias Burnus <burnus@net-b.de>
2298 Jack Howarth <howarth@bromo.med.uc.edu>
2301 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2303 * doc/install.texi (ISL): Permit ISL 0.14.
2304 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2305 Conditionally use ISL 0.13+ functions.
2306 * graphite-interchange.c: Make 'extern "C"' conditional.
2307 * graphite-isl-ast-to-gimple.c: Ditto.
2308 * graphite-poly.c: Ditto.
2309 * graphite-sese-to-poly.c: Ditto.
2310 * config.in: Regenerate.
2311 * gcc/configure: Regenerate.
2313 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2315 * combine.c (distribute_links): Handle multiple SETs.
2317 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2319 * combine.c (struct insn_link): New field `regno'.
2320 (alloc_insn_link): New parameter `regno'. Use it.
2321 (find_single_use): Check the new field.
2322 (can_combine_def_p, can_combine_use_p): New functions. Split
2324 (create_log_links): ... here. Correct data type of `regno'.
2325 Adjust call to alloc_insn_link.
2326 (adjust_for_new_dest): Find regno, use it in call to
2328 (try_combine): Check reg_used_between_p when combining a PARALLEL
2329 as earlier insn. Adjust call to alloc_insn_link.
2330 (distribute_links): Check the new field.
2332 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2335 * real.c (real_from_string): Add missing mpfr_clear.
2337 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2340 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2341 release of stmts by converting it to an auto_vec.
2343 2014-12-01 Richard Biener <rguenther@suse.de>
2345 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2346 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2347 bootstrap with old GCC.
2348 (generic-match.o-warn): Likewise.
2350 2014-12-01 Richard Biener <rguenther@suse.de>
2352 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2353 Properly handle FIXED_CST shifts by INTEGER_CST.
2354 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2355 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2356 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2357 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2358 (fold_binary_loc): ... here. Call const_binop overload
2361 2014-12-01 Marek Polacek <polacek@redhat.com>
2362 Jakub Jelinek <jakub@redhat.com>
2365 * ubsan.c (instrument_object_size): Stop searching if the base
2366 occurs in abnormal phi.
2368 2014-12-01 Marek Polacek <polacek@redhat.com>
2371 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2373 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2375 * gimple.h (gimple_build_assign_stat): Remove prototype.
2376 (gimple_build_assign): Remove define. Add overload prototypes
2377 with tree lhs and either a tree rhs, or enum tree_code and
2378 1, 2 or 3 tree operands.
2379 * gimple.c (gimple_build_assign_stat): Renamed to...
2380 (gimple_build_assign): ... this. Add overloads with
2381 enum tree_code and 1, 2 or 3 tree operands.
2382 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2383 Rename the 3 operand overload to ...
2384 (gimple_build_assign_1): ... this. Make it static inline.
2385 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2386 instead of gimple_build_assign_with_ops, swap the order of first
2387 two arguments and adjust formatting where necessary.
2388 * tree-vect-slp.c (vect_get_constant_vectors,
2389 vect_create_mask_and_perm): Likewise.
2390 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2391 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2392 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2393 * tsan.c (instrument_builtin_call): Likewise.
2394 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2395 chkp_generate_extern_var_bounds): Likewise.
2396 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2397 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2398 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2399 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2400 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2401 gimple_mod_subtract): Likewise.
2402 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2403 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2404 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2405 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2406 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2407 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2408 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2409 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2410 adjust_bool_pattern_cast, adjust_bool_pattern,
2411 vect_recog_bool_pattern): Likewise.
2412 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2413 insert_initializers, introduce_cast_before_cand,
2414 replace_one_candidate): Likewise.
2415 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2416 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2417 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2419 * tree-tailcall.c (adjust_return_value_with_ops,
2420 update_accumulator_with_ops): Likewise.
2421 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2422 * tree-ssa-reassoc.c (build_and_add_sum,
2423 optimize_range_tests_to_bit_test, update_ops,
2424 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2425 negate_value, repropagate_negates, attempt_builtin_powi,
2426 reassociate_bb): Likewise.
2427 * tree-vect-loop.c (vect_is_simple_reduction_1,
2428 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2430 * ipa-split.c (split_function): Likewise.
2431 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2432 abs_replacement, neg_replacement): Likewise.
2433 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2434 * tree-vrp.c (simplify_truth_ops_using_ranges,
2435 simplify_float_conversion_using_ranges,
2436 simplify_internal_call_using_ranges): Likewise.
2437 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2438 * tree-vect-generic.c (expand_vector_divmod,
2439 optimize_vector_constructor): Likewise.
2440 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2441 instrument_bool_enum_load): Likewise.
2442 * tree-ssa-loop-manip.c (create_iv): Likewise.
2443 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2444 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2445 expand_cilk_for, simd_clone_adjust): Likewise.
2446 * trans-mem.c (expand_transaction): Likewise.
2447 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2448 vect_setup_realignment, vect_permute_load_chain,
2449 vect_shift_permute_load_chain): Likewise.
2450 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2451 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2452 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2453 vectorizable_shift, vectorizable_operation, vectorizable_store,
2454 permute_vec_elements, vectorizable_load): Likewise.
2456 2014-12-01 Richard Biener <rguenther@suse.de>
2459 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2460 htab_hash_pointer to not break PCH.
2462 2014-12-01 Richard Biener <rguenther@suse.de>
2464 PR tree-optimization/15346
2465 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2466 add -Wno-unused-but-set-variable.
2467 * match.pd: Combine two successive divisions.
2469 2014-12-01 Richard Biener <rguenther@suse.de>
2472 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2474 * fold-const.c (fold_binary_loc): Remove transforms here.
2476 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2478 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2479 the return address in $18 ahead of passing arguments to FPRs.
2481 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2484 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2485 values in array domain.
2487 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2489 PR tree-optimization/63941
2490 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2491 DOM_BB has non-true predicate, conditionally set non-true predicate
2494 2014-12-01 Martin Jambor <mjambor@suse.cz>
2497 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2498 value of the argument to the type of the value in the condition.
2500 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2504 * config/sh/sh.c (sh_unspec_insn_p,
2505 sh_insn_operands_modified_between_p): New functions.
2506 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2507 are modified or if it has side effects, may trap or is volatile.
2509 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2511 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2512 create_tmp_reg): Add default NULL value to last argument.
2513 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2514 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2515 last argument from create_tmp_var_raw, create_tmp_var,
2516 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2517 * tree-ssa-strlen.c (get_string_length): Likewise.
2518 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2519 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2520 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2521 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2522 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2523 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2524 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2525 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2526 * tsan.c (instrument_expr, instrument_builtin_call,
2527 instrument_func_entry): Likewise.
2528 * varpool.c (add_new_static_var): Likewise.
2529 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2530 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2531 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2532 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2533 gimplify_omp_atomic, gimplify_expr): Likewise.
2534 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2535 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2536 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2537 vect_loop_versioning): Likewise.
2538 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2539 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2540 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2541 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2542 vect_recog_over_widening_pattern): Likewise.
2543 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2545 * tree-cfg.c (make_blocks): Likewise.
2546 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2548 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2549 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2551 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2552 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2553 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2554 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2555 * tree-ssa-reassoc.c (build_and_add_sum,
2556 optimize_range_tests_to_bit_test, update_ops,
2557 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2558 negate_value, repropagate_negates): Likewise.
2559 * tree-vect-loop.c (vect_is_simple_reduction_1,
2560 vect_create_epilog_for_reduction): Likewise.
2561 * ipa-split.c (split_function): Likewise.
2562 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2563 declare_return_variable, tree_function_versioning): Likewise.
2564 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2565 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2567 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2568 neg_replacement): Likewise.
2569 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2571 * tree-vrp.c (simplify_truth_ops_using_ranges,
2572 simplify_float_conversion_using_ranges,
2573 simplify_internal_call_using_ranges): Likewise.
2574 * tree-switch-conversion.c (emit_case_bit_tests,
2575 build_one_array, build_arrays, gen_def_assigns): Likewise.
2576 * gimple-fold.c (gimple_fold_builtin_memory_op,
2577 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2578 * tree-vect-generic.c (expand_vector_divmod,
2579 optimize_vector_constructor): Likewise.
2580 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2581 ubsan_expand_objsize_ifn, instrument_si_overflow,
2582 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2583 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2584 * tree-ssa-loop-manip.c (create_iv,
2585 tree_transform_and_unroll_loop): Likewise.
2586 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2587 lower_rec_input_clauses, lower_lastprivate_clauses,
2588 expand_parallel_call, expand_omp_for_static_chunk,
2589 expand_omp_atomic_pipeline, expand_omp_target,
2590 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2591 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2592 lower_depend_clauses, lower_omp_target, lower_omp_1,
2593 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2594 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2595 create_call_for_reduction_1, separate_decls_in_region,
2596 create_parallel_loop): Likewise.
2597 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2598 handle_scalar_deps_crossing_scop_limits): Likewise.
2599 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2600 expand_assign_tm, expand_call_tm, expand_transaction,
2601 ipa_tm_insert_gettmclone_call): Likewise.
2602 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2604 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2605 vectorizable_call, vectorizable_simd_clone_call,
2606 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2607 vectorizable_load): Likewise.
2609 2014-11-29 Tobias Burnus <burnus@net-b.de>
2610 Manuel López-Ibáñez <manu@gcc.gnu.org>
2612 * opt-functions.awk (lang_enabled_by): Support || for
2614 * optc-gen.awk: Ditto.
2615 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2618 2014-11-28 Mike Stump <mikestump@comcast.net>
2620 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2621 (bitmap_ior_and_compl): Likewise.
2623 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2626 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2629 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2632 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2633 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2635 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2637 PR rtl-optimization/64087
2638 * lra-lives.c (process_bb_lives): Add debug output.
2639 (lra_create_live_ranges): Don't remove dead insn on the second
2640 call of lra_create_live_ranges_1.
2642 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2644 PR rtl-optimization/64037
2645 * combine.c (setup_incoming_promotions): Pass the argument
2646 before any promotions happen to promote_function_mode.
2648 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2650 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2651 permutations to loads group of size 3.
2653 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2655 * config/arm/arm.md (copysignsf3): New pattern.
2656 (copysigndf3): Likewise.
2658 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2659 Ilya Verbin <ilya.verbin@intel.com>
2661 * omp-low.c (lower_omp_critical): Mark critical sections
2662 inside target functions as offloadable.
2664 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2666 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2667 file contains sections with LTO and offload IR, respectively.
2669 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2671 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2672 (symbol_table::compile): Set flag_generate_offload if there is something
2674 * common.opt (flag_generate_offload): New Variable declaration.
2675 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2676 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2677 flag_generate_offload is set.
2678 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2679 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2681 * toplev.c (compile_file): Emit LTO marker if offload info has been
2682 previously emitted. Do not emit lto_slim marker if
2683 flag_generate_offload is without flag_generate_lto.
2684 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2686 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2688 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2689 * config/arm/arm-tables.opt: Regenerate.
2690 * config/arm/arm-tune.md: Regenerate.
2691 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2692 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2695 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2697 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2698 Include cortex-a17.md.
2699 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2700 * config/arm/arm-cores.def (cortex-a17): New entry.
2701 * config/arm/arm-tables.opt: Regenerate.
2702 * config/arm/arm-tune.md: Regenerate.
2703 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2704 * config/arm/cortex-a17.md: New file.
2705 * config/arm/cortex-a17-neon.md: New file.
2706 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2707 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2709 2014-11-28 Richard Biener <rguenther@suse.de>
2712 * genmatch.c (dt_node::gen_kids_1): New function, split out
2713 from dt_node::gen_kids.
2714 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2715 (decision_tree::find_node): Treat DT_TRUE as barrier for
2716 node CSE on the same level.
2717 (dt_node::append_node): Do not keep DT_TRUE last.
2718 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2720 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2722 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2725 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2727 * config/i386/i386.md (preferred_for_size): New attribute
2728 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2729 attribute to conditionally disable alternative 1.
2730 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2731 and prefered_for_speed attributes to conditionally disable
2733 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2734 preferred_for_size attribute to conditionally disable
2735 alternatives 3 and 4.
2736 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2737 preferred_for_size and prefered_for_speed attributes to conditionally
2738 disable alternatives 3 and 4.
2739 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2741 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2743 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2745 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2748 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2750 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2752 2014-11-27 Martin Liska <mliska@suse.cz>
2753 David Malcolm <dmalcolm@redhat.com>
2755 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2757 (sem_function::bb_dict_test): Likewise.
2758 * ipa-icf.h: Likewise.
2760 2014-11-27 Richard Biener <rguenther@suse.de>
2763 * fold-const.c (const_unop): Re-instantiate missing condition
2764 before calling fold_abs_const.
2766 PR tree-optimization/64088
2767 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2768 the stmt break from the loop over use operands.
2770 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2772 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2774 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2775 (fold_builtin_cpu): Ditto.
2776 * doc/extend.texi: Documment it.
2778 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2781 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2782 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2783 not only if modifier is EXPAND_INITIALIZER, but whenever
2784 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2786 PR tree-optimization/64024
2787 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2788 field. Add simd_clone_info field.
2789 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2790 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2791 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2792 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2793 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2794 base and linear_step from analysis phase and use it during transform
2795 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2796 multiplied by linear_step.
2797 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2800 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2801 if it is CONSTANT_P other than CONST_INT.
2803 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2806 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2808 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2809 make it TARGET_EITHER.
2810 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2811 and move HFmode handling from consttable_4 to it.
2812 (consttable_4): Move HFmode handling to consttable_2 pattern.
2813 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2814 (consttable_2): Ditto.
2816 2014-11-27 Richard Biener <rguenther@suse.de>
2818 * tree-ssa-sccvn.c (try_to_simplify): Allow
2819 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2821 2014-11-27 Richard Biener <rguenther@suse.de>
2823 PR tree-optimization/64083
2824 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2825 forcibly mark loop for removal the wrong way.
2827 2014-11-27 Richard Biener <rguenther@suse.de>
2830 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2831 and instead return false when !fstrict-aliasing.
2833 2014-11-27 Richard Biener <rguenther@suse.de>
2835 PR tree-optimization/61634
2836 * tree-vect-slp.c: Include gimple-walk.h.
2837 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2838 down the SLP tree for one scalar statement.
2839 (vect_detect_hybrid_slp_1): New walker function.
2840 (vect_detect_hybrid_slp_2): Likewise.
2841 (vect_detect_hybrid_slp): Properly handle pattern statements
2842 in a pre-scan over all loop stmts.
2844 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2847 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2848 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2849 aarch64_convert_mode, aarch64_gen_ccmp_first,
2850 aarch64_gen_ccmp_next): New functions.
2851 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
2853 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2855 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
2856 without -pie or -shared, error on -fsanitize=thread -static instead.
2858 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
2861 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
2862 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2863 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
2864 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
2865 Add new optional parameter exclude_virtual_thunks.
2866 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
2867 optional parameter exclude_virtual_thunks.
2868 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
2869 (cgraph_node::set_pure_flag): Likewise.
2870 (cgraph_node::function_symbol): Simplified.
2871 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2872 * ipa-pure-const.c (analyze_function): For virtual thunks set
2873 pure_const_state to IPA_NEITHER.
2874 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
2876 2014-11-26 Richard Biener <rguenther@suse.de>
2879 * tree-data-ref.c (split_constant_offset_1): Do not follow
2880 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2882 2014-11-26 Richard Biener <rguenther@suse.de>
2884 * fold-const.h (const_unop): Declare.
2885 (const_binop): Likewise.
2886 * fold-const.c (const_binop): Export overload that expects
2887 a type parameter and dispatches to fold_relational_const as well.
2888 Check both operand kinds for guarding the transforms.
2889 (const_unop): New function, with constant folding from fold_unary_loc.
2890 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
2891 Remove constant folding done there from the simplifications.
2892 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
2893 (fold_negate_expr): Remove dead code from the REAL_CST case.
2894 Avoid building garbage in the COMPLEX_CST case.
2895 * gimple-match-head.c (gimple_resimplify1): Dispatch to
2897 (gimple_resimplify2): Dispatch to const_binop.
2898 (gimple_simplify): Likewise.
2900 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2903 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
2904 debug statement when searching for a new position for
2905 bounds load/creation statement.
2907 2014-11-26 Marek Polacek <polacek@redhat.com>
2910 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
2911 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
2912 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
2914 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2917 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
2918 proper size for function_code bitfield.
2919 (pack_ts_function_decl_value_fields): Likewise.
2921 2014-11-21 Mark Wielaard <mjw@redhat.com>
2923 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
2924 * opts.c (common_handle_option): Accept -gdwarf-5.
2925 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
2926 DW_LANG_C_plus_plus_14.
2927 (lower_bound_default): Likewise. Plus DW_LANG_C11.
2928 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
2929 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
2930 (output_compilation_unit_header): Output at most a DWARFv4 header.
2931 (output_skeleton_debug_sections): Likewise.
2932 (output_line_info): Likewise.
2933 (output_aranges): Document header version number.
2935 2014-11-26 Richard Biener <rguenther@suse.de>
2937 * gimple-fold.c (get_symbol_constant_value): Allow all
2938 GIMPLE register type zero-constants.
2940 2014-11-26 Mark Wielaard <mjw@redhat.com>
2942 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
2943 function decl has TREE_THIS_VOLATILE.
2945 2014-11-26 Richard Biener <rguenther@suse.de>
2947 PR tree-optimization/62238
2948 * tree-predcom.c (ref_at_iteration): Unshare the expression
2949 before gimplifying it.
2950 (prepare_initializers_chain): Discard unused seq.
2952 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
2954 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
2957 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2959 * ira-lives.c (process_bb_node_lives): Make code with conditional
2960 REAL_PIC_OFFSET_TABLE_REGNUM.
2962 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2965 * ira-lives.c (process_bb_node_lives): Check and remove conflict
2966 of pic pseudo with pic hard reg.
2968 2014-11-25 Rohit <rohitarulraj@freescale.com>
2971 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
2972 added GCC hard register numbers for SPE high registers.
2974 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2976 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
2977 before removing it, not after.
2979 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2981 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
2984 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2986 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
2989 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2991 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
2992 (rest of file): Replace those with code resp. CODE.
2994 2014-11-25 Tom de Vries <tom@codesourcery.com>
2996 * tree-cfg.c (verify_sese): New function.
2997 (move_sese_region_to_fn): Call verify_sese.
2998 * tree-cfg.h (verify_sese): Declare.
3000 2014-11-25 Richard Biener <rguenther@suse.de>
3003 * lto-streamer-out.c (output_struct_function_base): Stream
3005 * lto-streamer-in.c (input_struct_function_base): Likewise.
3007 2014-11-25 Martin Liska <mliska@suse.cz>
3011 * sreal.c (sreal::operator+): Addition fixed.
3012 (sreal::signedless_plus): Negative numbers are
3014 (sreal::operator-): Subtraction is fixed.
3015 (sreal::signedless_minus): Negative numbers are
3017 * sreal.h (sreal::operator<): Equal negative numbers
3018 are compared correctly.
3019 (sreal::shift): New checking asserts are introduced.
3022 2014-11-25 Richard Biener <rguenther@suse.de>
3024 PR tree-optimization/61927
3025 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
3026 of group and pattern analysis to the one in GCC 4.8.
3028 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
3029 Jakub Jelinek <jakub@redhat.com>
3031 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
3033 * lto-wrapper.c (append_offload_options): Likewise.
3035 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
3037 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
3038 load the static chain if the call was originally direct.
3040 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
3043 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
3044 devirtualization is disabled.
3046 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3049 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3050 Altivec & -16 mask if the type is not valid for Altivec registers.
3051 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3052 reg) that occurs during push_reload processing.
3054 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3055 alternative for moving constant vectors which are easy altivec
3056 constants to GPRs. Set the length attribute each of the
3059 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
3060 work in progress patch was committed instead of the fixes for
3062 * config/rs6000/rs6000.c: Likewise.
3064 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3067 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
3068 and -fno-devirtualize more carefully.
3069 (can_remove_node_now_p): Update.
3071 2014-11-24 Andrew Pinski <apinski@cavium.com>
3074 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
3076 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3078 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
3080 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3082 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
3083 Refactor by combining switch statements and make arrays into scalars.
3085 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
3088 * dbxout.c: Include stringpool.h
3089 (dbxout_type) [default]: Ignore auto type.
3091 2014-11-24 Richard Biener <rguenther@suse.de>
3093 PR tree-optimization/63679
3094 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
3095 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
3096 to properly leave off at -1.
3097 (fully_constant_vn_reference_p): Generalize folding from
3098 constant initializers.
3099 (vn_reference_lookup_3): When looking through aggregate copies
3100 handle offsetted reads and try simplifying the result to
3102 * gimple-fold.h (fold_ctor_reference): Export.
3103 * gimple-fold.c (fold_ctor_reference): Likewise.
3105 2014-11-24 Petr Murzin <petr.murzin@intel.com>
3107 * simplify-rtx.c (simplify_ternary_operation): Simplify
3108 vec_merge (vec_duplicate (vec_select)).
3110 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3112 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
3113 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
3114 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
3116 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3118 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
3119 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
3120 (cortexa57_tunings): Likewise.
3121 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
3123 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3125 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
3126 in the not conditional jump case.
3127 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3128 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3130 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3132 * config/aarch64/aarch64.c: Include tm-constrs.h
3133 (AARCH64_FUSE_ADRP_ADD): Define.
3134 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
3135 (cortexa53_tunings): Likewise.
3136 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
3138 2014-11-24 Martin Liska <mliska@suse.cz>
3140 * ipa-inline.c (edge_badness): long is replaced by sreal
3141 as fibonacci_heap template type.
3142 (update_edge_key): Likewise.
3143 (inline_small_functions): Likewise.
3145 2014-11-24 Martin Liska <mliska@suse.cz>
3147 * predict.c (propagate_freq): More elegant sreal API is used.
3148 (estimate_bb_frequencies): Precomputed constants replaced by integer
3150 * sreal.c (sreal::normalize): New function.
3151 (sreal::to_int): Likewise.
3152 (sreal::operator+): Likewise.
3153 (sreal::operator-): Likewise.
3154 (sreal::signedless_plus): Likewise.
3155 (sreal::signedless_minus): Likewise.
3156 (sreal::operator/): Negative number support is added.
3157 * sreal.h: Definition of new functions added.
3158 (inline sreal operator<<): New function.
3159 (inline sreal operator>>): Likewise.
3161 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3163 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3165 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3166 (cortexa53_tunings): Likewise.
3167 (cortexa57_tunings): Likewise.
3168 (thunderx_tunings): Likewise.
3169 (aarch64_macro_fusion_p): New function.
3170 (aarch_macro_fusion_pair_p): Likewise.
3171 (TARGET_SCHED_MACRO_FUSION_P): Define.
3172 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3173 (AARCH64_FUSE_MOV_MOVK): Likewise.
3174 (AARCH64_FUSE_NOTHING): Likewise.
3176 2014-11-24 Martin Liska <mliska@suse.cz>
3179 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3180 with replace_key method.
3181 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3182 (fibonacci_heap::replace_key_data): Likewise.
3183 (fibonacci_heap::replace_key): New method that can even increment key,
3184 this operation costs O(log N).
3185 (fibonacci_heap::extract_min): New argument.
3186 (fibonacci_heap::delete_node): Likewise.
3188 2014-11-24 Richard Biener <rguenther@suse.de>
3190 PR tree-optimization/55334
3191 * function.h (struct function): Add last_clique member.
3192 * tree-inline.c (remap_dependence_clique): New function.
3193 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3194 (copy_tree_body_r): Likewise.
3195 (copy_cfg_body): Free dependence map.
3196 (copy_gimple_seq_and_replace_locals): Likewise.
3197 * tree-pretty-print.c (dump_generic_node): Dump
3199 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3200 to answer alias query.
3201 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3202 tree-pretty-print.h and gimple-walk.h.
3203 (struct variable_info): Add is_restrict_var flag and ruid
3205 (new_var_info): Initialize is_restrict_var.
3206 (make_constraint_from_restrict): Likewise.
3207 (create_variable_info_for): Exclude restricts from global vars
3209 (intra_create_variable_infos): But not those from parameters.
3210 (visit_loadstore): New function.
3211 (maybe_set_dependence_info): Likewise.
3212 (compute_dependence_clique): Likewise.
3213 (compute_may_aliases): Call compute_dependence_clique.
3214 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3216 (dr_may_alias_p): Use recorded dependence info to answer
3218 * tree-core.h (struct tree_base): Add clique, base struct in
3220 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3221 (MR_DEPENDENCE_BASE): Likewise.
3222 * tree-inline.h (dependence_hasher): New hash-map kind.
3223 (struct copy_body_data): Add dependence_map pointer.
3224 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3225 throwing away dependence info.
3226 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3227 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3229 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3232 * config/sh/sh_optimize_sett_clrt.cc
3233 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3234 of void. Abort at complex edges.
3235 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3238 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3241 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3243 * configure: Regenerated.
3244 * config.in: Regenerated.
3246 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3248 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3249 clones as having abstract origin used.
3250 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3252 (clone_inlined_nodes): Copy abstract originflag.
3253 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3254 abstract origin node.
3256 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3258 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3259 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3260 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3262 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3266 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3267 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3268 Adjust related comments throughout the file.
3270 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3274 * config/sh/sh.c (sh_is_logical_t_store_expr,
3275 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3276 (sh_split_movrt_negc_to_movt_xor): New function.
3277 (sh_find_set_of_reg): Move to ...
3278 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3279 to template function.
3280 (set_of_reg): Use rtx_insn* for insn member.
3281 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3282 rtx_insn* for insn argument.
3283 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3284 sequence using new sh_split_movrt_negc_to_movt_xor function.
3285 (movrt_xor): Allow also for SH2A.
3286 (*movt_movrt): Delete insns and splits.
3288 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3290 PR tree-optimization/60770
3291 * tree-sra.c (clobber_subtree): New function.
3292 (sra_modify_constructor_assign): Call it.
3294 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3297 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3299 (process_bb_lives): Rename dead_insn_p on remove_p
3300 and global_live_info_p on dead_insn_p. Calculate local live info
3301 unconditionally. Remove last argument in calls mark_regno_live and
3302 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3303 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3304 Return bool. Rename global_live_info_p on dead_insn_p. Return
3305 flag of live info change.
3306 (lra_create_live_ranges): New.
3308 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3312 * internal-fn.c (expand_arith_overflow_result_store,
3313 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3314 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3315 adjust arguments to those functions. Use unsignedp = true for
3316 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3318 PR tree-optimization/64006
3319 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3320 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3321 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3322 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3323 immediate uses would change their value ranges and return
3324 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3325 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3326 interesting for vrp.
3328 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3331 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3332 Altivec & -16 mask if the type is not valid for Altivec registers.
3333 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3334 reg) that occurs during push_reload processing.
3336 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3337 alternative for moving constant vectors which are easy altivec
3338 constants to GPRs. Set the length attribute each of the
3341 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3343 * configure.ac: When checking for MIPS .module support ensure that
3344 o32 FPXX is supported to avoid a second configure check.
3345 * configure: Regenerate.
3347 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3349 * config/aarch64/iterators.md (VS): New mode iterator.
3350 (vsi2qi): New mode attribute.
3352 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3353 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3354 * config/aarch64/aarch64-builtins.c
3355 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3357 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3360 * configure: Regenerated.
3362 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3364 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3366 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3368 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3369 OPTION_MASK_ISA_PCOMMIT_SET): New.
3370 (ix86_handle_option): Handle OPT_mpcommit.
3371 * config.gcc: Add pcommitintrin.h
3372 * config/i386/pcommitintrin.h: New file.
3373 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3374 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3375 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3377 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3378 (PTA_PCOMMIT): Define.
3379 (ix86_option_override_internal): Handle new option.
3380 (ix86_valid_target_attribute_inner_p): Add pcommit.
3381 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3382 (bdesc_special_args): Add __builtin_ia32_pcommit.
3383 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3384 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3385 (pcommit): New instruction.
3386 * config/i386/i386.opt: Add mpcommit.
3387 * config/i386/x86intrin.h: Include pcommitintrin.h.
3389 2014-11-20 Mark Wielaard <mjw@redhat.com>
3392 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3393 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3394 (darwin_override_options): Likewise.
3395 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3397 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3399 * dbxout.c (get_lang_number): Likewise.
3400 (dbxout_type): Likewise.
3401 (dbxout_symbol_location): Likewise.
3402 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3403 also for DW_LANG_{C,C99,ObjC}.
3404 (highest_c_language): New function.
3405 (gen_compile_unit_die): Call highest_c_language to merge LTO
3406 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3407 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3408 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3409 * langhooks.h (struct lang_hooks): Add version comment to name.
3410 (lang_GNU_C): New function declaration.
3411 (lang_GNU_CXX): Likewise.
3412 * langhooks.c (lang_GNU_C): New function.
3413 (lang_GNU_CXX): Likewise.
3414 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3416 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3418 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3419 OPTION_MASK_ISA_CLWB_SET): New.
3420 (ix86_handle_option): Handle OPT_mclwb.
3421 * config.gcc: Add clwbintrin.h.
3422 * config/i386/clwbintrin.h: New file.
3423 * config/i386/cpuid.h (bit_CLWB): Define.
3424 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3425 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3427 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3429 (ix86_option_override_internal): Handle new option.
3430 (ix86_valid_target_attribute_inner_p): Add clwb.
3431 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3432 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3433 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3434 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3435 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3436 (clwb): New instruction.
3437 * config/i386/i386.opt: Add mclwb.
3438 * config/i386/x86intrin.h: Include clwbintrin.h.
3440 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3442 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3443 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3444 (ix86_handle_option): Handle OPT_mavx512vbmi.
3445 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3446 * config/i386/avx512vbmiintrin.h: New file.
3447 * config/i386/avx512vbmivlintrin.h: Ditto.
3448 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3449 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3450 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3452 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3453 (PTA_AVX512VBMI): Define.
3454 (ix86_option_override_internal): Handle new options.
3455 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3456 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3457 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3458 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3459 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3460 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3461 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3462 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3463 IX86_BUILTIN_VPERMI2VARQI128.
3464 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3465 __builtin_ia32_vpmultishiftqb256_mask,
3466 __builtin_ia32_vpmultishiftqb128_mask,
3467 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3468 __builtin_ia32_vpermt2varqi512_maskz,
3469 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3470 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3471 __builtin_ia32_vpermt2varqi256_maskz,
3472 __builtin_ia32_vpermt2varqi128_mask,
3473 __builtin_ia32_vpermt2varqi128_maskz,
3474 __builtin_ia32_vpermi2varqi256_mask,
3475 __builtin_ia32_vpermi2varqi128_mask.
3476 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3477 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3478 * config/i386/i386.opt: Add mavx512vbmi.
3479 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3480 avx512vbmivlintrin.h.
3481 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3482 (VI1_AVX512VL): New iterator.
3483 (<avx512>_permvar<mode><mask_name>): Use it.
3484 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3485 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3486 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3487 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3488 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3489 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3490 (vpmultishiftqb<mode><mask_name>): Ditto.
3492 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3494 PR rtl-optimization/63952
3495 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3496 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3497 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3499 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3501 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3502 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3503 (ix86_handle_option): Handle OPT_mavx512ifma.
3504 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3505 * config/i386/avx512ifmaintrin.h: New file.
3506 * config/i386/avx512ifmaivlntrin.h: Ditto.
3507 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3508 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3510 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3512 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3513 (PTA_AVX512IFMA): Define.
3514 (ix86_option_override_internal): Handle new options.
3515 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3516 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3517 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3518 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3519 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3520 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3521 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3522 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3523 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3524 __builtin_ia32_vpmadd52luq512_maskz,
3525 __builtin_ia32_vpmadd52huq512_mask,
3526 __builtin_ia32_vpmadd52huq512_maskx,
3527 __builtin_ia32_vpmadd52luq256_mask,
3528 __builtin_ia32_vpmadd52luq256_maskz,
3529 __builtin_ia32_vpmadd52huq256_mask,
3530 __builtin_ia32_vpmadd52huq256_maskz,
3531 __builtin_ia32_vpmadd52luq128_mask,
3532 __builtin_ia32_vpmadd52luq128_maskz,
3533 __builtin_ia32_vpmadd52huq128_mask,
3534 __builtin_ia32_vpmadd52huq128_maskz,
3535 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3536 * config/i386/i386.opt: Add mavx512ifma.
3537 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3538 avx512ifmavlintrin.h.
3539 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3541 (VPMADD52): New iterator.
3542 (vpmadd52type): New attribute.
3543 (vpamdd52huq<mode>_maskz): New.
3544 (vpamdd52luq<mode>_maskz): Ditto.
3545 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3546 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3548 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3551 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3552 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3554 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3556 * config/mips/mips.c (mips_process_sync_loop): Place a
3557 nop in the delay slot of the branch likely instruction.
3558 (mips_output_sync_loop): Ensure mips_branch_likely is
3559 set before calling mips_output_sync_loop.
3560 (mips_sync_loop_insns): Likewise.
3562 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3565 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3566 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3569 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3571 Forward-port from 2014-10-30 4_9-branch r216934
3574 * config/avr/avr-protos.h (regmask): New inline function.
3575 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3576 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3577 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3578 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3579 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3580 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3581 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3582 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3583 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3584 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3585 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3586 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3587 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3590 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3593 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3594 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3596 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3598 * config/aarch64/aarch64-simd.md
3599 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3600 output mnemonic and operands.
3601 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3602 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3604 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3606 * config/i386/i386.c (ix86_option_override_internal): Increase
3607 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3609 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3612 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3613 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3614 replace for V16QI, V16HI and V32QI modes.
3615 (ix86_expand_vec_perm_const_1): Add new expand.
3617 2014-11-21 Nick Clifton <nickc@redhat.com>
3619 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3620 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3621 (rl78_expand_prologue): Save the ES register in interrupt handlers
3623 (rl78_expand_epilogue): Restore the ES register if necessary.
3624 (rl78_start_function): Mention if the function uses the ES
3626 (rl78_lo16): Record the use of the ES register.
3627 (transcode_memory_rtx): Likewise.
3629 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3631 PR tree-optimization/61773
3632 * tree-ssa-strlen.c (get_string_length): Don't assert
3633 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3636 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3637 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3638 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3640 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3642 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3643 HOST_WIDE_INT_M1U instead of ~0.
3644 (includes_rldicr_lshift_p): Likewise.
3646 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3648 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3649 we need to look into its operand to determine if it is a valid
3652 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3654 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3655 vaarg_p argument and create correct CFI info.
3656 (nds32_expand_prologue): Pass true or false to
3657 nds32_emit_stack_push_multiple function.
3659 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3661 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3662 as RTX_FRAME_RELATED_P rtx.
3664 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3666 * config/nds32/nds32.opt (march): Add help message.
3668 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3670 * tree-vrp.c (test_for_singularity): New parameter
3671 strict_overflow_p. Set *strict_overflow_p to true if signed
3672 overflow must be undefined for the return value to satisfy the
3674 (simplify_cond_using_ranges): Don't perform the simplification
3675 if it violates overflow rules.
3677 2014-11-20 Marek Polacek <polacek@redhat.com>
3679 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3681 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3683 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3684 condition would be removed due to undefined behaviour.
3686 2014-11-20 Andrew Pinski <apinski@cavium.com>
3690 * ipa-polymorphic-call.c (possible_placement_new):
3691 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3692 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3693 (extr_type_from_vtbl_ptr_store): Likewise.
3695 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3697 * config/rs6000/constraints.md: Avoid signed integer overflows.
3698 * config/rs6000/predicates.md: Likewise.
3699 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3700 (includes_rldic_lshift_p): Likewise.
3701 (includes_rldicr_lshift_p): Likewise.
3702 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3703 * loop-iv.c (determine_max_iter): Likewise.
3704 (iv_number_of_iterations): Likewise.
3705 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3706 * varasm.c (get_section_anchor): Likewise.
3708 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3711 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3712 expression to aarch64_simd_lane_bounds.
3713 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3715 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3716 call to aarch64_simd_lane_bounds.
3717 (aarch64_get_lanedi): Likewise.
3718 (aarch64_ld2_lane<mode>): Likewise.
3719 (aarch64_ld3_lane<mode>): Likewise.
3720 (aarch64_ld4_lane<mode>): Likewise.
3721 (aarch64_im_lane_boundsi): Likewise.
3722 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3723 parameter. Report calling function in error message if exp is non-NULL.
3725 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3728 * config/sh/sh.c: Use signed char for signed field.
3730 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3732 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3735 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3737 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3738 tree-scalar-evolution.c: Replace htab with hash_table.
3740 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3742 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3743 (lto_free_function_in_decl_state): Likewise.
3744 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3745 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3746 (lto_file_decl_data_num_ ## name ## s): Likewise.
3747 (struct lto_tree_ref_table): Remove.
3748 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3750 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3752 * hash-map.h (hash_map::iterator): New class.
3753 (hash_map::begin): New method.
3754 (hash_map::end): Likewise.
3755 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3756 replace splay_tree with hash_map.
3758 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3760 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3761 (hash_table::alloc_entries): new method.
3762 (hash_table::expand): Call alloc_entries.
3763 (hash_table::empty): Likewise.
3765 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3767 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3768 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3770 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3772 * doc/gty.texi: Document the new cache gty attribute.
3773 * gengtype.c (finish_cache_funcs): New function.
3774 (write_roots): Call gt_clear_cache on global variables with the cache
3776 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3777 * ggc.h (gt_clear_caches): New declaration.
3778 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3780 (gt_cleare_cache): New function.
3781 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3783 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3785 * combine.c (try_combine): Prefer to delete dead SETs inside
3786 a PARALLEL over keeping them.
3788 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3790 * combine.c (combine_validate_cost): Always print the insn costs
3793 2014-11-20 Richard Henderson <rth@redhat.com>
3796 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3797 for DECL_STATIC_CHAIN.
3799 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3801 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3803 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3804 aarch64_cannot_force_const_mem, aarch64_classify_address,
3805 aarch64_classify_symbolic_expression): Fixup call to
3806 aarch64_classify_symbol.
3807 (aarch64_classify_symbol): Add range-checking for
3808 symbol + offset addressing for tiny and small models.
3810 2014-11-20 Richard Biener <rguenther@suse.de>
3813 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3814 Guard with single-use operand 0.
3816 2014-11-20 Richard Biener <rguenther@suse.de>
3818 PR tree-optimization/63677
3819 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3820 (avail_exprs_stack): Make a vector of pairs.
3821 (struct hash_expr_elt): Replace stmt member with vop member.
3822 (expr_elt_hasher::equal): Simplify.
3823 (initialize_hash_element): Adjust.
3824 (initialize_hash_element_from_expr): Likewise.
3825 (dom_opt_dom_walker::thread_across_edge): Likewise.
3826 (record_cond): Likewise.
3827 (dom_opt_dom_walker::before_dom_children): Likewise.
3828 (print_expr_hash_elt): Likewise.
3829 (remove_local_expressions_from_table): Restore previous state
3831 (record_equivalences_from_stmt): Record &x + CST as constant
3832 &MEM[&x, CST] for further propagation.
3833 (vuse_eq): New function.
3834 (lookup_avail_expr): For loads use the alias oracle to see
3835 whether a candidate from the expr hash is usable.
3836 (avail_expr_hash): Do not hash VUSEs.
3838 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3841 * config/arm/arm.md (*movhi_insn): Use right formatting
3844 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
3847 * function.c (assign_parms): Move init of pic_offset_table_rtx
3849 * cfgexpand.c (expand_used_vars): ...here.
3851 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3853 * tree.c (free_lang_data_in_type): If BINFO has no important
3854 information in it, set it to NULL.
3855 (get_binfo_at_offset): Do not walk fields, only bases.
3856 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
3858 * ipa-polymorphic-call.c (record_known_type): Likewise.
3860 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3863 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
3864 congruence_class_group *.
3866 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3869 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
3870 Output "b" and "nb" suffix for FP mode.
3872 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3875 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
3876 out DECL_FUNCTION_SPECIFIC_TARGET
3877 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
3878 in DECL_FUNCTION_SPECIFIC_TARGET.
3880 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3883 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
3885 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3888 * lra.c (lra): After creating live ranges in preparation for call
3889 to lra_inheritance, set live_p to true.
3891 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3894 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
3896 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
3898 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3901 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
3902 vec<> to auto_vec<> to fix a leak.
3904 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3907 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
3909 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3912 * ira-costs.c (ira_costs_c_finalize): New function.
3913 * ira.h (ira_costs_c_finalize): New prototype.
3914 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
3916 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3919 * ipa-reference.c (ipa_reference_c_finalize): Release
3920 optimization_summary_obstack.
3922 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3925 * toplev.c (toplev::finalize): Free opts_obstack.
3927 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3930 * toplev.c (toplev::finalize): Clean up save_decoded_options.
3932 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3936 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
3937 local bbs_in_hot_partition from vec<> to auto_vec<>.
3939 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3942 * config/alpha/alpha.c (alpha_option_override): Remove static from
3943 "handle_trap_shadows_info" and "align_insns_info".
3944 * config/i386/i386.c (ix86_option_override): Likewise for
3945 "insert_vzeroupper_info".
3946 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
3947 "rl78_devirt_info" and "rl78_move_elim_info".
3948 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
3949 "analyze_swaps_info".
3950 * context.c (gcc::context::~context): New.
3951 * context.h (gcc::context::~context): New.
3952 * dumpfile.c (dump_files): Add "false" initializers for new field
3954 (gcc::dump_manager::~dump_manager): New.
3955 (gcc::dump_manager::dump_register): Add param "take_ownership".
3956 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
3957 (gcc::dump_manager::~dump_manager): New.
3958 (gcc::dump_manager::dump_register): Add param "take_ownership".
3959 * pass_manager.h (gcc::pass_manager::operator delete): New.
3960 (gcc::pass_manager::~pass_manager): New.
3961 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
3962 new "owns_strings" argument to dump_register.
3963 (pass_manager::operator delete): New.
3964 (delete_pass_tree): New function.
3965 (pass_manager::~pass_manager): New.
3966 * statistics.c (statistics_early_init): Pass "false" to
3967 new "owns_strings" argument to dump_register.
3968 * toplev.c (toplev::finalize): Clean up the context and thus the
3971 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3974 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
3975 obstack_free when cleaning up valid_mode_changes_obstack.
3977 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3980 * opts.c (finalize_options_struct): New.
3981 * opts.h (finalize_options_struct): New.
3982 * toplev.c (toplev::finalize): Call finalize_options_struct
3983 on global_options and global_options_set.
3985 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3986 Jakub Jelinek <jakub@redhat.com>
3990 * gcc.c (process_command): Don't check for input/output
3991 filename equality if output is HOST_BIT_BUCKET.
3992 * toplev.c (init_asm_output): Likewise.
3994 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3996 Merger of git branch "gimple-classes-v2-option-3".
3998 * ChangeLog.gimple-classes: New.
4000 * coretypes.h (struct gcond): Add forward decl.
4001 (struct gdebug): Likewise.
4002 (struct ggoto): Likewise.
4003 (struct glabel): Likewise.
4004 (struct gswitch): Likewise.
4005 (struct gassign): Likewise.
4006 (struct gasm): Likewise.
4007 (struct gcall): Likewise.
4008 (struct gtransaction): Likewise.
4009 (struct greturn): Likewise.
4010 (struct gbind): Likewise.
4011 (struct gcatch): Likewise.
4012 (struct geh_filter): Likewise.
4013 (struct geh_mnt): Likewise.
4014 (struct geh_else): Likewise.
4015 (struct gresx): Likewise.
4016 (struct geh_dispatch): Likewise.
4017 (struct gphi): Likewise.
4018 (struct gtry): Likewise.
4019 (struct gomp_atomic_load): Likewise.
4020 (struct gomp_atomic_store): Likewise.
4021 (struct gomp_continue): Likewise.
4022 (struct gomp_critical): Likewise.
4023 (struct gomp_for): Likewise.
4024 (struct gomp_parallel): Likewise.
4025 (struct gomp_task): Likewise.
4026 (struct gomp_sections): Likewise.
4027 (struct gomp_single): Likewise.
4028 (struct gomp_target): Likewise.
4029 (struct gomp_teams): Likewise.
4031 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
4032 for renaming of gimple subclasses.
4034 * gdbhooks.py: Update.
4036 * gimple-iterator.c (gsi_for_phi): New.
4037 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4039 * gimple-iterator.h (struct gphi_iterator): New subclass of
4040 gimple_stmt_iterator.
4041 (gsi_for_phi): New prototype.
4042 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4044 (gsi_next_nonvirtual_phi): Strengthen param from
4045 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
4048 * gsstruct.def: Update for renamings of classes.
4050 * gimple.c (gimple_build_return): Strengthen return type from
4051 gimple to greturn *.
4052 (gimple_call_reset_alias_info): Strengthen param to gcall *.
4053 (gimple_build_call_1): Strengthen return type from gimple to
4055 (gimple_build_call_vec): Likewise.
4056 (gimple_build_call): Likewise.
4057 (gimple_build_call_valist): Likewise.
4058 (gimple_build_call_internal_1): Likewise.
4059 (gimple_build_call_internal): Likewise.
4060 (gimple_build_call_internal_vec): Likewise.
4061 (gimple_build_call_from_tree): Likewise.
4062 (gimple_build_assign_stat): Strengthen return type from gimple to
4064 (gimple_build_assign_with_ops): Likewise.
4065 (gimple_build_assign_with_ops): Likewise.
4066 (gimple_build_cond): Strengthen return type from gimple to
4068 (gimple_build_cond_from_tree): Likewise.
4069 (gimple_cond_set_condition_from_tree): Require a gcond *.
4070 (gimple_build_label): Strengthen return type from gimple to
4072 (gimple_build_goto): Strengthen return type from gimple to
4074 (gimple_build_bind): Strengthen return type from gimple to
4076 (gimple_build_asm_1): Strengthen return type from gimple to
4078 (gimple_build_asm_vec): Likewise.
4079 (gimple_build_catch): Strengthen return type from gimple to
4081 (gimple_build_eh_filter): Strengthen return type from gimple to
4083 (gimple_build_eh_must_not_throw): Strengthen return type from
4084 gimple to geh_mnt *.
4085 (gimple_build_eh_else): Strengthen return type from gimple to
4087 (gimple_build_try): Update for renaming of gimple_statement_try to
4089 (gimple_build_resx): Strengthen return type from gimple to
4091 (gimple_build_switch_nlabels): Strengthen return type from gimple
4093 (gimple_build_switch): Likewise.
4094 (gimple_build_eh_dispatch): Strengthen return type from gimple to
4096 (gimple_build_debug_bind_stat): Strengthen return type from gimple
4098 (gimple_build_debug_source_bind_stat): Strengthen return type from
4100 (gimple_build_omp_critical): Strengthen return type from gimple to
4102 (gimple_build_omp_for): Strengthen return type from gimple to
4104 (gimple_build_omp_parallel): Strengthen return type from gimple to
4106 (gimple_build_omp_task): Strengthen return type from gimple to
4108 (gimple_build_omp_continue): Strengthen return type from gimple to
4110 (gimple_build_omp_sections): Strengthen return type from gimple to
4112 (gimple_build_omp_single): Strengthen return type from gimple to
4114 (gimple_build_omp_target): Strengthen return type from gimple to
4116 (gimple_build_omp_teams): Strengthen return type from gimple to
4118 (gimple_build_omp_atomic_load): Strengthen return type from gimple
4119 to gomp_atomic_load *.
4120 (gimple_build_omp_atomic_store): Strengthen return type from gimple
4121 to gomp_atomic_store *.
4122 (gimple_build_transaction): Strengthen return type from gimple
4124 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
4125 (gimple_call_fnspec): Require a const gcall *.
4126 (gimple_call_arg_flags): Likewise.
4127 (gimple_call_return_flags): Likewise.
4128 (gimple_set_bb): Add a checked cast.
4129 (gimple_copy): Within the cases, add locals of the appropriate
4130 subclass and use in place of "stmt" and "copy" for typesafety.
4131 (gimple_has_side_effects): Add a checked cast.
4132 (gimple_could_trap_p_1): Likewise.
4133 (gimple_call_copy_skip_args): Require a gcall *, and return one.
4134 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4135 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
4136 dyn_cast, introducing local "return_stmt" and using ti in place
4139 * gimple.h (gimple_vec): Eliminate this typedef.
4140 (struct gimple_statement_call): Rename to...
4141 (struct gcall): ...this.
4142 (struct gimple_statement_bind): Rename to...
4143 (struct gbind): ...this.
4144 (struct gimple_statement_catch): Rename to...
4145 (struct gcatch): ...this.
4146 (struct gimple_statement_eh_filter): Rename to...
4147 (struct geh_filter): ...this.
4148 (struct gimple_statement_eh_else): Rename to...
4149 (struct geh_else): ...this.
4150 (struct gimple_statement_eh_mnt): Rename to...
4151 (struct geh_mnt): ...this.
4152 (struct gimple_statement_phi): Rename to...
4153 (struct gphi): ...this.
4154 (struct gimple_statement_resx): Rename to...
4155 (struct gresx): ...this.
4156 (struct gimple_statement_eh_dispatch): Rename to...
4157 (struct geh_dispatch): ...this.
4158 (struct gimple_statement_try): Rename to...
4159 (struct gtry): ...this.
4160 (struct gimple_statement_asm): Rename to...
4161 (struct gasm): ...this.
4162 (struct gimple_statement_omp_critical): Rename to...
4163 (struct gomp_critical): ...this.
4164 (struct gimple_statement_omp_for): Rename to...
4165 (struct gomp_for): ...this.
4166 (struct gimple_statement_omp_parallel): Rename to...
4167 (struct gomp_parallel): ...this.
4168 (struct gimple_statement_omp_target): Rename to...
4169 (struct gomp_target): ...this.
4170 (struct gimple_statement_omp_task): Rename to...
4171 (struct gomp_task): ...this.
4172 (struct gimple_statement_omp_sections): Rename to...
4173 (struct gomp_sections): ...this.
4174 (struct gimple_statement_omp_continue): Rename to...
4175 (struct gomp_continue): ...this.
4176 (struct gimple_statement_omp_single): Rename to...
4177 (struct gomp_single): ...this.
4178 (struct gimple_statement_omp_teams): Rename to...
4179 (struct gomp_teams): ...this.
4180 (struct gimple_statement_omp_atomic_load): Rename to...
4181 (struct gomp_atomic_load): ...this.
4182 (struct gimple_statement_omp_atomic_store :): Rename to...
4183 (struct gomp_atomic_store :): ...this.
4184 (struct gimple_statement_transaction): Rename to...
4185 (struct gtransaction): ...this.
4186 (struct gcond): New subclass.
4187 (struct gdebug): New subclass.
4188 (struct ggoto): New subclass.
4189 (struct glabel): New subclass.
4190 (struct gswitch): New subclass.
4191 (struct gassign): New subclass.
4192 (struct greturn): New subclass.
4193 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4194 (is_a_helper <gasm *>::test): ...this.
4195 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4196 (is_a_helper <gbind *>::test): ...this.
4197 (is_a_helper <gassign *>::test): New.
4198 (is_a_helper <gimple_statement_call *>::test): Rename to...
4199 (is_a_helper <gcall *>::test): ...this.
4200 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4201 (is_a_helper <gcatch *>::test): ...this.
4202 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4203 (is_a_helper <gresx *>::test): ...this.
4204 (is_a_helper <gcond *>::test): New.
4205 (is_a_helper <gdebug *>::test): New.
4206 (is_a_helper <ggoto *>::test): New.
4207 (is_a_helper <glabel *>::test): New.
4208 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4209 (is_a_helper <geh_dispatch *>::test): ...this.
4210 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4211 (is_a_helper <geh_else *>::test): ...this.
4212 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4213 (is_a_helper <geh_filter *>::test): ...this.
4214 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4215 (is_a_helper <geh_mnt *>::test): ...this.
4216 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4217 (is_a_helper <gomp_atomic_load *>::test): ...this.
4218 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4219 (is_a_helper <gomp_atomic_store *>::test): ...this.
4220 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4221 (is_a_helper <gomp_continue *>::test): ...this.
4222 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4223 (is_a_helper <gomp_critical *>::test): ...this.
4224 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4225 (is_a_helper <gomp_for *>::test): ...this.
4226 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4227 (is_a_helper <gomp_parallel *>::test): ...this.
4228 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4229 (is_a_helper <gomp_target *>::test): ...this.
4230 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4231 (is_a_helper <gomp_sections *>::test): ...this.
4232 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4233 (is_a_helper <gomp_single *>::test): ...this.
4234 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4235 (is_a_helper <gomp_teams *>::test): ...this.
4236 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4237 (is_a_helper <gomp_task *>::test): ...this.
4238 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4239 (is_a_helper <gphi *>::test): ...this.
4240 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4241 (is_a_helper <gtransaction *>::test): ...this.
4242 (is_a_helper <greturn *>::test): New.
4243 (is_a_helper <gswitch *>::test): New.
4244 (is_a_helper <gimple_statement_try *>::test): Rename to...
4245 (is_a_helper <gtry *>::test): ...this.
4246 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4247 (is_a_helper <const gasm *>::test): ...this.
4248 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4249 (is_a_helper <const gbind *>::test): ...this.
4250 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4251 (is_a_helper <const gcall *>::test): ...this.
4252 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4253 (is_a_helper <const gcatch *>::test): ...this.
4254 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4255 (is_a_helper <const gresx *>::test): ...this.
4256 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4257 (is_a_helper <const geh_dispatch *>::test): ...this.
4258 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4259 (is_a_helper <const geh_filter *>::test): ...this.
4260 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4262 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4263 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4265 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4266 (is_a_helper <const gimple_statement_omp_continue *>::test):
4268 (is_a_helper <const gomp_continue *>::test): ...this.
4269 (is_a_helper <const gimple_statement_omp_critical *>::test):
4271 (is_a_helper <const gomp_critical *>::test): ...this.
4272 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4273 (is_a_helper <const gomp_for *>::test): ...this.
4274 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4276 (is_a_helper <const gomp_parallel *>::test): ...this.
4277 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4278 (is_a_helper <const gomp_target *>::test): ...this.
4279 (is_a_helper <const gimple_statement_omp_sections *>::test):
4281 (is_a_helper <const gomp_sections *>::test): ...this.
4282 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4283 (is_a_helper <const gomp_single *>::test): ...this.
4284 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4285 (is_a_helper <const gomp_teams *>::test): ...this.
4286 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4287 (is_a_helper <const gomp_task *>::test): ...this.
4288 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4289 (is_a_helper <const gphi *>::test): ...this.
4290 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4291 (is_a_helper <const gtransaction *>::test): ...this.
4292 (gimple_build_return): Strengthen return type to greturn *.
4293 (gimple_call_reset_alias_info): Require a gcall *.
4294 (gimple_build_call_vec): Return a gcall *.
4295 (gimple_build_call): Likewise.
4296 (gimple_build_call_valist): Likewise.
4297 (gimple_build_call_internal): Likewise.
4298 (gimple_build_call_internal_vec): Likewise.
4299 (gimple_build_call_from_tree): Likewise.
4300 (gimple_build_assign_stat): Return a gassign *.
4301 (gimple_build_assign_with_ops): Likewise.
4302 (gimple_build_cond): Return a gcond *.
4303 (gimple_build_cond_from_tree): Likewise.
4304 (gimple_cond_set_condition_from_tree): Require a gcond *.
4305 (gimple_build_label): Return a glabel *.
4306 (gimple_build_goto): Return a ggoto *.
4307 (gimple_build_bind): Return a gbind *.
4308 (gimple_build_asm_vec): Return a gasm *.
4309 (gimple_build_catch): Return a gcatch *.
4310 (gimple_build_eh_filter): Return a geh_filter *.
4311 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4312 (gimple_build_eh_else): Return a geh_else *.
4313 (gimple_build_try): Return a gtry *.
4314 (gimple_build_resx): Return a gresx *.
4315 (gimple_build_switch_nlabels): Return a gswitch *.
4316 (gimple_build_switch): Return a gswitch *.
4317 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4318 (gimple_build_debug_bind_stat): Return a gdebug *.
4319 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4320 (gimple_build_omp_critical): Return a gomp_critical *.
4321 (gimple_build_omp_for): Return a gomp_for *.
4322 (gimple_build_omp_parallel): Return a gomp_parallel *.
4323 (gimple_build_omp_task): Return a gomp_task *.
4324 (gimple_build_omp_continue): Return a gomp_continue *.
4325 (gimple_build_omp_sections): Return a gomp_sections *.
4326 (gimple_build_omp_single): Return a gomp_single *.
4327 (gimple_build_omp_target): Return a gomp_target *.
4328 (gimple_build_omp_teams): Return a gomp_teams *.
4329 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4330 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4331 (gimple_build_transaction): Return a gtransaction *.
4332 (gimple_call_arg_flags): Require a const gcall *.
4333 (gimple_call_return_flags): Likewise.
4334 (gimple_call_copy_skip_args): Require and return a gcall *.
4335 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4336 (gimple_seq_first_stmt_as_a_bind): New.
4337 (gimple_assign_nontemporal_move_p): Require a const gassign *
4338 rather than a const_gimple.
4339 (gimple_call_internal_fn): Update for renaming to gcall.
4340 (gimple_call_fntype): Likewise.
4341 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4342 (gimple_call_set_fn): Likewise.
4343 (gimple_call_set_internal_fn): Likewise.
4344 (gimple_call_set_chain): Likewise.
4345 (gimple_call_set_tail): Likewise.
4346 (gimple_call_tail_p): Likewise.
4347 (gimple_call_set_return_slot_opt): Likewise.
4348 (gimple_call_return_slot_opt_p): Likewise.
4349 (gimple_call_set_from_thunk): Likewise.
4350 (gimple_call_from_thunk_p): Likewise.
4351 (gimple_call_set_va_arg_pack): Likewise.
4352 (gimple_call_va_arg_pack_p): Likewise.
4353 (gimple_call_set_nothrow): Likewise.
4354 (gimple_call_nothrow_p): Likewise.
4355 (gimple_call_set_alloca_for_var): Likewise.
4356 (gimple_call_alloca_for_var_p): Likewise.
4357 (gimple_call_use_set): Likewise.
4358 (gimple_call_clobber_set): Likewise.
4359 (gimple_call_return_type): Require a const gcall * rather than a
4361 (gimple_call_chain_ptr): Likewise.
4362 (gimple_call_copy_flags): Require a pair of gcall *.
4363 (gimple_cond_set_code): Require a gcond * rather than a gimple
4364 (gimple_cond_set_lhs): Likewise.
4365 (gimple_cond_set_rhs): Likewise.
4366 (gimple_cond_set_true_label): Likewise.
4367 (gimple_cond_set_false_label): Likewise.
4368 (gimple_cond_make_false): Likewise.
4369 (gimple_cond_make_true): Likewise.
4370 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4372 (gimple_cond_rhs_ptr): Likewise.
4373 (gimple_cond_true_label): Likewise.
4374 (gimple_cond_false_label): Likewise.
4375 (gimple_cond_true_p): Likewise.
4376 (gimple_cond_false_p): Likewise.
4377 (gimple_cond_set_condition): Likewise.
4378 (gimple_label_label): Require a const glabel *.
4379 (gimple_label_set_label): Require a glabel *.
4380 (gimple_goto_set_dest): Require a ggoto *.
4381 (gimple_bind_vars): Require a const gbind *.
4382 (gimple_bind_block): Likewise.
4383 (gimple_bind_set_vars): Require a gbind *.
4384 (gimple_bind_append_vars): Likewise.
4385 (gimple_bind_body_ptr): Likewise.
4386 (gimple_bind_body): Likewise.
4387 (gimple_bind_set_body): Likewise.
4388 (gimple_bind_add_stmt): Likewise.
4389 (gimple_bind_add_seq): Likewise.
4390 (gimple_bind_set_block): Likewise.
4391 (gimple_asm_ninputs): Require a const gasm *.
4392 (gimple_asm_noutputs): Likewise.
4393 (gimple_asm_nclobbers): Likewise.
4394 (gimple_asm_nlabels): Likewise.
4395 (gimple_asm_input_op): Likewise.
4396 (gimple_asm_input_op_ptr): Likewise.
4397 (gimple_asm_output_op): Likewise.
4398 (gimple_asm_output_op_ptr): Likewise.
4399 (gimple_asm_clobber_op): Likewise.
4400 (gimple_asm_label_op): Likewise.
4401 (gimple_asm_string): Likewise.
4402 (gimple_asm_volatile_p): Likewise.
4403 (gimple_asm_input_p): Likewise.
4404 (gimple_asm_set_input_op): Require a gasm *.
4405 (gimple_asm_set_output_op): Likewise.
4406 (gimple_asm_set_clobber_op): Likewise.
4407 (gimple_asm_set_label_op): Likewise.
4408 (gimple_asm_set_volatile): Likewise.
4409 (gimple_asm_set_input): Likewise.
4410 (gimple_catch_types): Require a const gcatch *.
4411 (gimple_catch_types_ptr): Require a gcatch *.
4412 (gimple_catch_handler_ptr): Likewise.
4413 (gimple_catch_handler): Likewise.
4414 (gimple_catch_set_types): Likewise.
4415 (gimple_catch_set_handler): Likewise.
4416 (gimple_eh_filter_types): Update for renaming of subclass to
4418 (gimple_eh_filter_types_ptr): Likewise.
4419 (gimple_eh_filter_failure_ptr): Likewise.
4420 (gimple_eh_filter_set_types): Require a geh_filter *.
4421 (gimple_eh_filter_set_failure): Likewise.
4422 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4423 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4424 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4425 (gimple_eh_else_n_body): Likewise.
4426 (gimple_eh_else_e_body_ptr): Likewise.
4427 (gimple_eh_else_e_body): Likewise.
4428 (gimple_eh_else_set_n_body): Likewise.
4429 (gimple_eh_else_set_e_body): Likewise.
4430 (gimple_try_set_kind): Require a gtry *.
4431 (gimple_try_set_catch_is_cleanup): Likewise.
4432 (gimple_try_set_eval): Likewise.
4433 (gimple_try_set_cleanup): Likewise.
4434 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4435 (gimple_try_cleanup_ptr): Likewise.
4436 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4437 (gimple_phi_num_args): Likewise.
4438 (gimple_phi_result): Likewise.
4439 (gimple_phi_result_ptr): Likewise.
4440 (gimple_phi_arg): Likewise.
4441 (gimple_phi_set_result): Require a gphi *.
4442 (gimple_phi_set_arg): Likewise.
4443 (gimple_phi_arg_def_ptr): Likewise.
4444 (gimple_phi_arg_edge): Likewise.
4445 (gimple_phi_arg_location): Likewise.
4446 (gimple_phi_arg_location_from_edge): Likewise.
4447 (gimple_phi_arg_set_location): Likewise.
4448 (gimple_phi_arg_has_location): Likewise.
4449 (gimple_resx_region): Require a const gresx *.
4450 (gimple_resx_set_region): Require a gresx *.
4451 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4452 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4453 (gimple_switch_num_labels): Require a const gswitch *.
4454 (gimple_switch_set_num_labels): Likewise.
4455 (gimple_switch_index): Likewise.
4456 (gimple_switch_index_ptr): Likewise.
4457 (gimple_switch_label): Likewise.
4458 (gimple_switch_default_label): Likewise.
4459 (gimple_switch_set_index): Require a gswitch *.
4460 (gimple_switch_set_label): Likewise.
4461 (gimple_switch_set_default_label): Likewise.
4462 (gimple_omp_critical_name): Require a const gomp_critical *.
4463 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4464 (gimple_omp_critical_set_name): Likewise.
4465 (gimple_omp_for_set_kind): Require a gomp_for *.
4466 (gimple_omp_for_set_combined_p): Likewise.
4467 (gimple_omp_for_set_combined_into_p): Likewise.
4468 (gimple_omp_for_clauses): Update for renaming of subclass to
4470 (gimple_omp_for_clauses_ptr): Likewise.
4471 (gimple_omp_for_set_clauses): Likewise.
4472 (gimple_omp_for_collapse): Likewise.
4473 (gimple_omp_for_index): Likewise.
4474 (gimple_omp_for_index_ptr): Likewise.
4475 (gimple_omp_for_set_index): Likewise.
4476 (gimple_omp_for_initial): Likewise.
4477 (gimple_omp_for_initial_ptr): Likewise.
4478 (gimple_omp_for_set_initial): Likewise.
4479 (gimple_omp_for_final): Likewise.
4480 (gimple_omp_for_final_ptr): Likewise.
4481 (gimple_omp_for_set_final): Likewise.
4482 (gimple_omp_for_incr): Likewise.
4483 (gimple_omp_for_incr_ptr): Likewise.
4484 (gimple_omp_for_set_incr): Likewise.
4485 (gimple_omp_for_pre_body): Likewise.
4486 (gimple_omp_for_set_pre_body): Likewise.
4487 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4489 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4490 (gimple_omp_parallel_set_clauses): Likewise.
4491 (gimple_omp_parallel_child_fn_ptr): Likewise.
4492 (gimple_omp_parallel_set_child_fn): Likewise.
4493 (gimple_omp_parallel_data_arg_ptr): Likewise.
4494 (gimple_omp_parallel_set_data_arg): Likewise.
4495 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4496 (gimple_omp_parallel_data_arg): Likewise.
4497 (gimple_omp_task_clauses): Update for renaming of subclass to
4499 (gimple_omp_task_clauses_ptr): Likewise.
4500 (gimple_omp_task_set_clauses): Likewise.
4501 (gimple_omp_task_child_fn): Likewise.
4502 (gimple_omp_task_child_fn_ptr): Likewise.
4503 (gimple_omp_task_set_child_fn): Likewise.
4504 (gimple_omp_task_data_arg): Likewise.
4505 (gimple_omp_task_data_arg_ptr): Likewise.
4506 (gimple_omp_task_set_data_arg): Likewise.
4507 (gimple_omp_taskreg_clauses): Whitespace fixes.
4508 (gimple_omp_taskreg_clauses_ptr): Likewise.
4509 (gimple_omp_taskreg_set_clauses): Likewise.
4510 (gimple_omp_taskreg_child_fn): Likewise.
4511 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4512 (gimple_omp_taskreg_set_child_fn): Likewise.
4513 (gimple_omp_taskreg_data_arg): Likewise.
4514 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4515 (gimple_omp_taskreg_set_data_arg): Likewise.
4516 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4518 (gimple_omp_task_copy_fn_ptr): Likewise.
4519 (gimple_omp_task_set_copy_fn): Likewise.
4520 (gimple_omp_task_arg_size): Likewise.
4521 (gimple_omp_task_arg_size_ptr): Likewise.
4522 (gimple_omp_task_set_arg_size): Likewise.
4523 (gimple_omp_task_arg_align): Likewise.
4524 (gimple_omp_task_arg_align_ptr): Likewise.
4525 (gimple_omp_task_set_arg_align): Likewise.
4526 (gimple_omp_single_clauses): Update for renaming of subclass to
4528 (gimple_omp_single_clauses_ptr): Likewise.
4529 (gimple_omp_single_set_clauses): Likewise.
4530 (gimple_omp_target_clauses): Update for renaming of subclass to
4532 (gimple_omp_target_clauses_ptr): Likewise.
4533 (gimple_omp_target_set_clauses): Require a gomp_target *.
4534 (gimple_omp_target_set_kind): Likewise.
4535 (gimple_omp_target_child_fn_ptr): Likewise.
4536 (gimple_omp_target_set_child_fn): Likewise.
4537 (gimple_omp_target_data_arg_ptr): Likewise.
4538 (gimple_omp_target_set_data_arg): Likewise.
4539 (gimple_omp_target_child_fn): Require a const gomp_target *.
4540 (gimple_omp_target_data_arg): Likewise.
4541 (gimple_omp_teams_clauses): Update for renaming of subclass to
4543 (gimple_omp_teams_clauses_ptr): Likewise.
4544 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4545 (gimple_omp_sections_clauses): Update for renaming of subclass to
4547 (gimple_omp_sections_clauses_ptr): Likewise.
4548 (gimple_omp_sections_set_clauses): Likewise.
4549 (gimple_omp_sections_control): Likewise.
4550 (gimple_omp_sections_control_ptr): Likewise.
4551 (gimple_omp_sections_set_control): Likewise.
4552 (gimple_omp_for_set_cond): Likewise.
4553 (gimple_omp_for_cond): Likewise.
4554 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4555 (gimple_omp_atomic_store_val_ptr): Likewise.
4556 (gimple_omp_atomic_load_set_lhs): Likewise.
4557 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4558 (gimple_omp_atomic_load_lhs): Likewise.
4559 (gimple_omp_atomic_load_rhs): Likewise.
4560 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4561 (gimple_omp_atomic_load_set_rhs): Likewise.
4562 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4563 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4564 (gimple_omp_continue_control_use): Likewise.
4565 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4566 (gimple_omp_continue_set_control_def): Likewise.
4567 (gimple_omp_continue_control_use_ptr): Likewise.
4568 (gimple_omp_continue_set_control_use): Likewise.
4569 (gimple_transaction_body_ptr): Require a gtransaction *.
4570 (gimple_transaction_body): Likewise.
4571 (gimple_transaction_label_ptr): Likewise.
4572 (gimple_transaction_label): Require a const gtransaction *.
4573 (gimple_transaction_subcode): Likewise.
4574 (gimple_transaction_set_body): Require a gtransaction *.
4575 (gimple_transaction_set_label): Likewise.
4576 (gimple_transaction_set_subcode): Likewise.
4577 (gimple_return_retval_ptr): Require a const greturn *.
4578 (gimple_return_retval): Likewise.
4579 (gimple_return_set_retval): Require a greturn *.
4580 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4581 "stmt" for typesafety.
4583 * asan.c: Use gimple subclasses.
4584 * auto-profile.c: Likewise.
4585 * builtins.c: Likewise.
4586 * builtins.h: Likewise.
4587 * cfgexpand.c: Likewise.
4588 * cfgloop.c: Likewise.
4589 * cfgloopmanip.c: Likewise.
4590 * cgraph.c: Likewise.
4591 * cgraph.h: Likewise.
4592 * cgraphbuild.c: Likewise.
4593 * cgraphclones.c: Likewise.
4594 * cgraphunit.c: Likewise.
4596 * gimple-builder.c: Likewise.
4597 * gimple-builder.h: Likewise.
4598 * gimple-fold.c: Likewise.
4599 * gimple-low.c: Likewise.
4600 * gimple-pretty-print.c: Likewise.
4601 * gimple-ssa-isolate-paths.c: Likewise.
4602 * gimple-ssa-strength-reduction.c: Likewise.
4603 * gimple-streamer-in.c: Likewise.
4604 * gimple-streamer-out.c: Likewise.
4605 * gimple-walk.c: Likewise.
4606 * gimplify-me.c: Likewise.
4607 * gimplify.c: Likewise.
4608 * gimplify.h: Likewise.
4609 * graphite-scop-detection.c: Likewise.
4610 * graphite-sese-to-poly.c: Likewise.
4611 * internal-fn.c: Likewise.
4612 * internal-fn.def:: Likewise.
4613 * internal-fn.h: Likewise.
4614 * ipa-icf-gimple.c: Likewise.
4615 * ipa-icf-gimple.h: Likewise.
4616 * ipa-icf.c: Likewise.
4617 * ipa-inline-analysis.c: Likewise.
4618 * ipa-prop.c: Likewise.
4619 * ipa-prop.h: Likewise.
4620 * ipa-pure-const.c: Likewise.
4621 * ipa-split.c: Likewise.
4622 * lto-streamer-in.c: Likewise.
4623 * lto-streamer-out.c: Likewise.
4624 * omp-low.c: Likewise.
4625 * predict.c: Likewise.
4626 * sanopt.c: Likewise.
4628 * ssa-iterators.h: Likewise.
4630 * trans-mem.c: Likewise.
4631 * tree-call-cdce.c: Likewise.
4632 * tree-cfg.c: Likewise.
4633 * tree-cfg.h: Likewise.
4634 * tree-cfgcleanup.c: Likewise.
4635 * tree-chkp.c: Likewise.
4636 * tree-chkp.h: Likewise.
4637 * tree-complex.c: Likewise.
4638 * tree-data-ref.c: Likewise.
4639 * tree-dfa.c: Likewise.
4640 * tree-eh.c: Likewise.
4641 * tree-eh.h: Likewise.
4642 * tree-emutls.c: Likewise.
4643 * tree-if-conv.c: Likewise.
4644 * tree-inline.c: Likewise.
4645 * tree-inline.h: Likewise.
4646 * tree-into-ssa.c: Likewise.
4647 * tree-into-ssa.h: Likewise.
4648 * tree-loop-distribution.c: Likewise.
4649 * tree-nrv.c: Likewise.
4650 * tree-object-size.c: Likewise.
4651 * tree-outof-ssa.c: Likewise.
4652 * tree-parloops.c: Likewise.
4653 * tree-phinodes.c: Likewise.
4654 * tree-phinodes.h: Likewise.
4655 * tree-predcom.c: Likewise.
4656 * tree-profile.c: Likewise.
4657 * tree-scalar-evolution.c: Likewise.
4658 * tree-scalar-evolution.h
4659 * tree-sra.cn_function):
4660 * tree-ssa-alias.c: Likewise.
4661 * tree-ssa-alias.h: Likewise.
4662 * tree-ssa-ccp.c: Likewise.
4663 * tree-ssa-coalesce.c: Likewise.
4664 * tree-ssa-copy.c: Likewise.
4665 * tree-ssa-copyrename.c: Likewise.
4666 * tree-ssa-dce.c: Likewise.
4667 * tree-ssa-dom.c: Likewise.
4668 * tree-ssa-forwprop.c: Likewise.
4669 * tree-ssa-ifcombine.c: Likewise.
4670 * tree-ssa-live.c: Likewise.
4671 * tree-ssa-loop-im.c: Likewise.
4672 * tree-ssa-loop-ivcanon.c: Likewise.
4673 * tree-ssa-loop-ivopts.c: Likewise.
4674 * tree-ssa-loop-manip.c: Likewise.
4675 * tree-ssa-loop-niter.c: Likewise.
4676 * tree-ssa-loop-prefetch.c: Likewise.
4677 * tree-ssa-loop-unswitch.c: Likewise.
4678 * tree-ssa-math-opts.c: Likewise.
4679 * tree-ssa-operands.c: Likewise.
4680 * tree-ssa-phiopt.c: Likewise.
4681 * tree-ssa-phiprop.c: Likewise.
4682 * tree-ssa-pre.c: Likewise.
4683 * tree-ssa-propagate.c: Likewise.
4684 * tree-ssa-propagate.h: Likewise.
4685 * tree-ssa-reassoc.c: Likewise.
4686 * tree-ssa-sccvn.c: Likewise.
4687 * tree-ssa-sccvn.h: Likewise.
4688 * tree-ssa-sink.c: Likewise.
4690 * tree-ssa-structalias.c
4691 * tree-ssa-tail-merge.c: Likewise.
4692 * tree-ssa-ter.c: Likewise.
4693 * tree-ssa-threadedge.c: Likewise.
4694 * tree-ssa-threadedge.h: Likewise.
4695 * tree-ssa-threadupdate.c: Likewise.
4696 * tree-ssa-uncprop.c: Likewise.
4697 * tree-ssa-uninit.c: Likewise.
4698 * tree-ssa.c: Likewise.
4699 * tree-stdarg.c: Likewise.
4700 * tree-switch-conversion.c: Likewise.
4701 * tree-tailcall.c: Likewise.
4702 * tree-vect-data-refs.c: Likewise.
4703 * tree-vect-generic.c: Likewise.
4704 * tree-vect-loop-manip.c: Likewise.
4705 * tree-vect-loop.c: Likewise.
4706 * tree-vect-patterns.c: Likewise.
4707 * tree-vect-slp.c: Likewise.
4708 * tree-vect-stmts.c: Likewise.
4709 * tree-vectorizer.h: Likewise.
4710 * tree-vrp.c: Likewise.
4712 * ubsan.c: Likewise.
4713 * value-prof.c: Likewise.
4714 * value-prof.h: Likewise.
4715 * vtable-verify.c: Likewise.
4717 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4719 * config/rs6000/constraints.md: Avoid signed integer overflows.
4720 * config/rs6000/predicates.md: Likewise.
4722 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4725 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4727 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4730 * ira.c (ira): Update preferred class.
4732 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4734 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4735 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4736 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4737 inline overload to use it. Add unary arg overload.
4738 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4739 (gimple_assign_set_rhs_from_tree): Use
4740 gimple_assign_set_rhs_with_ops instead of
4741 gimple_assign_set_rhs_with_ops_1.
4742 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4743 (gimple_assign_set_rhs_with_ops): ... this.
4744 * ipa-split.c (split_function): Remove last NULL argument
4745 from gimple_build_assign_with_ops call.
4746 * tree-ssa-loop-im.c
4747 (move_computations_dom_walker::before_dom_children): Likewise.
4748 * tsan.c (instrument_builtin_call): Likewise.
4749 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4750 vectorizable_conversion, vectorizable_load): Likewise.
4751 * tree-vect-loop.c (vect_is_simple_reduction_1,
4752 get_initial_def_for_induction): Likewise.
4753 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4754 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4755 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4756 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4757 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4758 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4759 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4760 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4761 neg_replacement): Likewise.
4762 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4763 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4764 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4765 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4766 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4767 simd_clone_adjust): Likewise.
4768 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4769 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4770 replace_one_candidate): Likewise.
4771 * gimple-builder.c (build_type_cast): Likewise.
4772 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4773 (forward_propagate_addr_expr_1): Remove last NULL argument
4774 from gimple_assign_set_rhs_with_ops call.
4775 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4776 instead of gimple_assign_set_rhs_with_ops_1.
4777 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4778 argument from gimple_build_assign_with_ops call.
4779 (repropagate_negates): Remove last NULL argument from
4780 gimple_assign_set_rhs_with_ops call.
4781 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4782 last NULL argument from gimple_build_assign_with_ops call.
4783 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4784 from gimple_assign_set_rhs_with_ops call.
4785 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4786 Remove last NULL argument from gimple_build_assign_with_ops call.
4787 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4788 of gimple_assign_set_rhs_with_ops_1.
4789 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4790 instead of gimple_assign_set_rhs_with_ops_1.
4791 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4792 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4793 from gimple_build_assign_with_ops call.
4794 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4795 from gimple_assign_set_rhs_with_ops call.
4796 * tree-vrp.c (simplify_truth_ops_using_ranges,
4797 simplify_bit_ops_using_ranges): Remove last NULL argument from
4798 gimple_assign_set_rhs_with_ops call.
4799 (simplify_float_conversion_using_ranges,
4800 simplify_internal_call_using_ranges): Remove last NULL argument from
4801 gimple_build_assign_with_ops call.
4803 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4806 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4809 2014-11-19 Marek Polacek <polacek@redhat.com>
4812 * ubsan.c (instrument_object_size): Check for MEM_REF.
4814 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4817 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4818 ifdef ENABLE_OFFLOADING.
4819 * omp-low.c (create_omp_child_function): Likewise.
4820 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4821 with ifdef ENABLE_OFFLOADING.
4822 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4823 offload_vars with ifdef ENABLE_OFFLOADING.
4825 2014-11-19 Felix Yang <felix.yang@huawei.com>
4826 Shanyao Chen <chenshanyao@huawei.com>
4829 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4830 (define_attr "arch_enabled"): Add test for the above.
4831 (*movhi_insn_arch4): Add new alternative.
4833 2014-11-19 Richard Henderson <rth@redhat.com>
4835 * c-family/c-common.c (c_common_reswords): Add
4836 __builtin_call_with_static_chain.
4837 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4838 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4839 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4841 * calls.c (prepare_call_address): Allow decl or type for first arg.
4842 (expand_call): Pass type to prepare_call_address if no decl.
4843 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
4844 the function doesn't use it; fold it otherwise.
4845 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
4846 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
4849 * targhooks.c (default_static_chain): Remove check for
4851 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4852 * config/i386/i386.c (ix86_static_chain): Allow decl or type
4853 as the first argument.
4854 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
4855 of the unused first parameter.
4856 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
4858 * target.def (static_chain): Likewise.
4860 2014-11-19 Renlin Li <renlin.li@arm.com>
4862 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4863 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
4864 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
4866 2014-11-19 Marek Polacek <polacek@redhat.com>
4869 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
4870 !TYPE_OVERFLOW_SANITIZED.
4871 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
4872 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
4875 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
4877 * collect2.c (main): Don't call fatal_error before
4878 diagnostic_initialize.
4879 * lto-wrapper.c (main): Likewise.
4881 2014-11-19 Tom de Vries <tom@codesourcery.com>
4883 PR tree-optimization/62167
4884 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
4886 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
4889 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4891 PR tree-optimization/63915
4892 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
4893 true instead of false as last argument to gsi_replace.
4896 * internal-fn.c (expand_ubsan_result_store): New function.
4897 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4898 Use it instead of just emit_move_insn.
4900 2014-11-19 Richard Biener <rguenther@suse.de>
4902 PR tree-optimization/63844
4903 * omp-low.c (fixup_child_record_type): Use a restrict qualified
4904 referece type for the receiver parameter.
4906 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4909 * ubsan.c: Include tree-eh.h.
4910 (instrument_bool_enum_load): Handle loads that can throw.
4912 PR rtl-optimization/63843
4913 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
4914 optimization of ashiftrt of subreg of lshiftrt, check that code
4917 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
4919 * attribs.c (decl_attributes): Remove always true condition,
4920 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
4922 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4925 * target.def (use_by_pieces_infrastructure_p): Take unsigned
4926 HOST_WIDE_INT as the size parameter.
4927 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
4928 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
4929 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
4930 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
4931 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
4932 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
4933 * config/aarch64/aarch64.c
4934 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
4935 * doc/tm.texi: Regenerate.
4937 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
4939 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
4940 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
4941 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
4942 (good_cloning_opportunity_p): Likewise.
4943 (ipa-cp gate): Enable ipa-cp with LTO.
4944 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
4945 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
4947 * ipa-inline-transform.c (inline_transform): Check if there are inlines
4948 to apply even at -O0.
4949 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
4950 (analyze_functions): Build type inheritance graph.
4951 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
4952 (want_early_inline_function_p, want_inline_small_function_p):
4954 (check_callers): Likewise.
4955 (edge_badness): Likewise.
4956 (inline_small_functions): Always be ready for indirect inlining
4958 (ipa_inline): Always use want_inline_function_to_all_callers_p.
4959 (early_inline_small_functions): Use opt_for_fn.
4960 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
4961 (estimate_function_body_sizes): Likewise.
4962 (compute_inline_parameters): Likewise.
4963 (estimate_edge_devirt_benefit): Likewise.
4964 (inline_analyze_function): Likewise.
4965 * ipa-devirt.c (ipa_devirt): Likewise.
4966 (gate): Use in_lto_p.
4967 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
4968 (try_make_edge_direct_virtual_call): Likewise.
4969 (update_indirect_edges_after_inlining): Likewise.
4970 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
4971 * common.opt (findirect-inlining): Turn into optimization.
4972 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
4973 (pure_const_generate_summary): Likewise.
4974 (gate_pure_const): Always enable with in_lto_p.
4976 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4978 * config/mips/mips.md (compression): Add `micromips32' setting.
4979 (enabled, length): Handle it.
4980 (shift_compression): Replace `micromips' with `micromips32' in
4981 the `compression' attribute.
4982 (*add<mode>3, sub<mode>3): Likewise.
4984 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4986 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
4987 range, a jump otherwise.
4989 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4991 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
4993 (cortex_a15_gp_to_vfp): ...This.
4994 (cortex_a15_fp_to_gp): ...And this.
4995 Define and comment bypass from vfp operations to fp->gp moves.
4997 2014-11-18 Martin Liska <mliska@suse.cz>
4999 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
5001 2014-11-18 Martin Liska <mliska@suse.cz>
5003 * bt-load.c (add_btr_def): New fibonacci_heap is used.
5004 (migrate_btr_defs): Likewise.
5006 2014-11-18 Martin Liska <mliska@suse.cz>
5008 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
5010 2014-11-18 Martin Liska <mliska@suse.cz>
5012 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
5013 (find_traces): Likewise.
5014 (find_traces_1_round): Likewise.
5016 2014-11-18 Martin Liska <mliska@suse.cz>
5018 * fibonacci_heap.h: New file.
5019 (fibonacci_heap::insert): Created from fibheap_insert.
5020 (fibonacci_heap::empty): Created from fibheap_empty.
5021 (fibonacci_heap::nodes): Created from fibheap_nodes.
5022 (fibonacci_heap::min_key): Created from fibheap_min_key.
5023 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
5024 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
5025 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
5026 (fibonacci_heap::min): Created from fibheap_min.
5027 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
5028 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
5029 (fibonacci_heap::union_with): Created from fibheap_union.
5030 * ipa-inline.c (update_edge_key): New heap API is used.
5031 (update_caller_keys): Likewise.
5032 (update_callee_keys): Likewise.
5033 (lookup_recursive_calls): Likewise.
5034 (recursive_inlining): Likewise.
5035 (add_new_edges_to_heap): Likewise.
5036 (heap_edge_removal_hook): Likewise.
5037 (inline_small_functions): Likewise.
5039 2014-11-18 Marek Polacek <polacek@redhat.com>
5042 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
5043 put it into TYPE_NAME and TYPE_STUB_DECL.
5044 * ubsan.c (ubsan_type_descriptor_type): New variable.
5045 Function renamed to ...
5046 (ubsan_get_type_descriptor_type): ... this. Cache
5047 return value in ubsan_type_descriptor_type variable.
5048 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
5049 TYPE_NAME and TYPE_STUB_DECL.
5050 (ubsan_get_source_location_type): Create a TYPE_DECL for
5051 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
5052 (ubsan_type_descriptor, ubsan_create_data): Call
5053 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
5054 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
5056 2014-11-18 Felix Yang <felix.yang@huawei.com>
5058 * config/aarch64/aarch64.c (doloop_end): New pattern.
5059 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
5061 2014-11-18 Jason Merrill <jason@redhat.com>
5063 * tree.c (warn_deprecated_use): Show declaration with inform.
5065 2014-11-18 Richard Biener <rguenther@suse.de>
5067 PR tree-optimization/63914
5068 * tree-ssa-ccp.c (canonicalize_value): Remove float value
5070 (valid_lattice_transition): Allow (partial) transition
5071 from NaN to non-NaN if !HONOR_NANS.
5072 (set_lattice_value): Check for valid lattice transitions
5073 only when checking is enabled.
5075 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
5077 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
5079 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
5081 * config/arm/neon-testgen.ml (emit_prologue): Handle new
5082 compile_test_optim argument.
5083 (emit_automatics): Rename to emit_variables. Support variable
5084 indentation of its output.
5085 (compile_test_optim): New function.
5086 (test_intrinsic): Call compile_test_optim.
5087 * config/arm/neon.ml (features): Add Compiler_optim.
5088 (ops): Add Compiler_optim feature to Vbic and Vorn.
5089 (type_in_crypto_only): Replace 'or' by '||'.
5090 (reinterp): Likewise.
5091 (reinterpq): Likewise.
5093 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
5095 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
5096 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
5097 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
5098 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
5099 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
5100 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
5101 pointer dereference.
5103 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
5105 * tree.c (element_mode, integer_truep): New functions.
5106 * tree.h (element_mode, integer_truep): Declare them.
5107 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
5108 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
5109 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
5110 fold_strip_sign_ops): Use element_mode.
5111 (fold_binary_loc): Use element_mode and element_precision.
5112 * match.pd: Use integer_truep, element_mode, element_precision,
5113 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
5114 vectors. Simplify A/-A.
5116 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5118 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
5119 manual swapping implementation.
5120 (movcond_addsi): Likewise.
5121 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
5122 (arm_select_dominance_cc_mode): Likewise.
5123 (arm_reload_out_hi): Likewise.
5124 (gen_operands_ldrd_strd): Likewise.
5125 (output_move_double): Likewise.
5126 (arm_print_operand_address): Likewise.
5127 (thumb_output_move_mem_multiple): Likewise.
5130 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5132 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
5133 (COPYSIGNF_QUALIFIERS): Likewise.
5134 (CREATE_QUALIFIERS): Likewise.
5135 (DUP_QUALIFIERS): Likewise.
5136 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5137 (FLOAT_NARROW_QUALIFIERS): Likewise.
5138 (REINTERP_QUALIFIERS): Likewise.
5139 (RINT_QUALIFIERS): Likewise.
5140 (SPLIT_QUALIFIERS): Likewise.
5141 (FIXCONV_QUALIFIERS): Likewise.
5142 (SCALARMUL_QUALIFIERS): Likewise.
5143 (SCALARMULL_QUALIFIERS): Likewise.
5144 (SCALARMULH_QUALIFIERS): Likewise.
5145 (SELECT_QUALIFIERS): Likewise.
5146 (VTBX_QUALIFIERS): Likewise.
5147 (SHIFTIMM_QUALIFIERS): Likewise.
5148 (SCALARMAC_QUALIFIERS): Likewise.
5149 (LANEMUL_QUALIFIERS): Likewise.
5150 (LANEMULH_QUALIFIERS): Likewise.
5151 (LANEMULL_QUALIFIERS): Likewise.
5152 (SHIFTACC_QUALIFIERS): Likewise.
5153 (SHIFTINSERT_QUALIFIERS): Likewise.
5154 (VTBL_QUALIFIERS): Likewise.
5155 (LOADSTRUCT_QUALIFIERS): Likewise.
5156 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5157 (STORESTRUCT_QUALIFIERS): Likewise.
5158 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5159 (neon_builtin_type_mode): Delete.
5160 (v8qi_UP): Map to V8QImode.
5161 (v8qi_UP): Map to V8QImode.
5162 (v4hi_UP): Map to V4HImode.
5163 (v4hf_UP): Map to V4HFmode.
5164 (v2si_UP): Map to V2SImode.
5165 (v2sf_UP): Map to V2SFmode.
5166 (di_UP): Map to DImode.
5167 (v16qi_UP): Map to V16QImode.
5168 (v8hi_UP): Map to V8HImode.
5169 (v4si_UP): Map to V4SImode.
5170 (v4sf_UP): Map to V4SFmode.
5171 (v2di_UP): Map to V2DImode.
5172 (ti_UP): Map to TImode.
5173 (ei_UP): Map to EImode.
5174 (oi_UP): Map to OImode.
5175 (neon_itype): Delete.
5176 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5177 (VAR1): Update accordingly.
5178 (arm_init_neon_builtins): Use machine_mode directly.
5179 (neon_dereference_pointer): Likewise.
5180 (arm_expand_neon_args): Use qualifiers to decide operand types.
5181 (arm_expand_neon_builtin): Likewise.
5182 * config/arm/arm_neon_builtins.def: Remap operation type for
5185 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5187 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5188 (enum arm_simd_type): Likewise.
5189 (struct arm_simd_type_info): Likewise
5190 (arm_mangle_builtin_scalar_type): Likewise.
5191 (arm_mangle_builtin_vector_type): Likewise.
5192 (arm_mangle_builtin_type): Likewise.
5193 (arm_simd_builtin_std_type): Likewise.
5194 (arm_lookup_simd_builtin_type): Likewise.
5195 (arm_simd_builtin_type): Likewise.
5196 (arm_init_simd_builtin_types): Likewise.
5197 (arm_init_simd_builtin_scalar_types): Likewise.
5198 (arm_init_neon_builtins): Rewrite using qualifiers.
5199 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5200 * config/arm/arm-simd-builtin-types.def: New file.
5201 * config/arm/t-arm (arm-builtins.o): Depend on it.
5202 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5203 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5204 (int16x4_t): Likewise.
5205 (int32x2_t): Likewise.
5206 (float16x4_t): Likewise.
5207 (float32x2_t): Likewise.
5208 (poly8x8_t): Likewise.
5209 (poly16x4_t): Likewise.
5210 (uint8x8_t): Likewise.
5211 (uint16x4_t): Likewise.
5212 (uint32x2_t): Likewise.
5213 (int8x16_t): Likewise.
5214 (int16x8_t): Likewise.
5215 (int32x4_t): Likewise.
5216 (int64x2_t): Likewise.
5217 (float32x4_t): Likewise.
5218 (poly8x16_t): Likewise.
5219 (poly16x8_t): Likewise.
5220 (uint8x16_t): Likewise.
5221 (uint16x8_t): Likewise.
5222 (uint32x4_t): Likewise.
5223 (uint64x2_t): Likewise.
5225 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5227 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5228 (neon_itype): Add new types corresponding to the types used in
5230 (arm_unop_qualifiers): New.
5231 (arm_bswap_qualifiers): Likewise.
5232 (arm_binop_qualifiers): Likewise.
5233 (arm_ternop_qualifiers): Likewise.
5234 (arm_getlane_qualifiers): Likewise.
5235 (arm_lanemac_qualifiers): Likewise.
5236 (arm_setlane_qualifiers): Likewise.
5237 (arm_combine_qualifiers): Likewise.
5238 (arm_load1_qualifiers): Likewise.
5239 (arm_load1_lane_qualifiers): Likewise.
5240 (arm_store1_qualifiers): Likewise.
5241 (arm_storestruct_lane_qualifiers): Likewise.
5242 (UNOP_QUALIFIERS): Likewise.
5243 (DUP_QUALIFIERS): Likewise.
5244 (SPLIT_QUALIFIERS): Likewise.
5245 (CONVERT_QUALIFIERS): Likewise.
5246 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5247 (FLOAT_NARROW_QUALIFIERS): Likewise.
5248 (RINT_QUALIFIERS): Likewise.
5249 (COPYSIGNF_QUALIFIERS): Likewise.
5250 (CREATE_QUALIFIERS): Likewise.
5251 (REINTERP_QUALIFIERS): Likewise.
5252 (BSWAP_QUALIFIERS): Likewise.
5253 (BINOP_QUALIFIERS): Likewise.
5254 (FIXCONV_QUALIFIERS): Likewise.
5255 (SCALARMUL_QUALIFIERS): Likewise.
5256 (SCALARMULL_QUALIFIERS): Likewise.
5257 (SCALARMULH_QUALIFIERS): Likewise.
5258 (TERNOP_QUALIFIERS): Likewise.
5259 (SELECT_QUALIFIERS): Likewise.
5260 (VTBX_QUALIFIERS): Likewise.
5261 (GETLANE_QUALIFIERS): Likewise.
5262 (SHIFTIMM_QUALIFIERS): Likewise.
5263 (LANEMAC_QUALIFIERS): Likewise.
5264 (SCALARMAC_QUALIFIERS): Likewise.
5265 (SETLANE_QUALIFIERS): Likewise.
5266 (SHIFTINSERT_QUALIFIERS): Likewise.
5267 (SHIFTACC_QUALIFIERS): Likewise.
5268 (LANEMUL_QUALIFIERS): Likewise.
5269 (LANEMULL_QUALIFIERS): Likewise.
5270 (LANEMULH_QUALIFIERS): Likewise.
5271 (COMBINE_QUALIFIERS): Likewise.
5272 (VTBL_QUALIFIERS): Likewise.
5273 (LOAD1_QUALIFIERS): Likewise.
5274 (LOADSTRUCT_QUALIFIERS): Likewise.
5275 (LOAD1LANE_QUALIFIERS): Likewise.
5276 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5277 (STORE1_QUALIFIERS): Likewise.
5278 (STORESTRUCT_QUALIFIERS): Likewise.
5279 (STORE1LANE_QUALIFIERS): Likewise.
5280 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5281 (neon_builtin_datum): Keep track of qualifiers.
5284 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5286 * config/arm/arm-builtins.c (VAR1): Add a comma.
5287 (VAR2): Rewrite in terms of VAR1.
5288 (VAR3-10): Likewise.
5289 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5290 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5292 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5294 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5295 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5296 * config/arm/arm-builtins.c: New.
5297 * config/arm/t-arm (arm_builtins.o): New.
5298 * config/arm/arm-protos.h (arm_expand_builtin): New.
5299 (arm_builtin_decl): Likewise.
5300 (arm_init_builtins): Likewise.
5301 (arm_atomic_assign_expand_fenv): Likewise.
5302 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5303 (arm_init_builtins): Likewise.
5304 (arm_init_iwmmxt_builtins): Likewise
5305 (safe_vector_operand): Likewise
5306 (arm_expand_binop_builtin): Likewise
5307 (arm_expand_unop_builtin): Likewise
5308 (arm_expand_builtin): Likewise
5309 (arm_builtin_decl): Likewise
5310 (insn_flags): Remove static.
5311 (tune_flags): Likewise.
5312 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5313 (arm_init_neon_builtins): Likewise.
5314 (struct builtin_description): Likewise.
5315 (arm_init_iwmmxt_builtins): Likewise.
5316 (arm_init_fp16_builtins): Likewise.
5317 (arm_init_crc32_builtins): Likewise.
5318 (arm_init_builtins): Likewise.
5319 (arm_builtin_decl): Likewise.
5320 (safe_vector_operand): Likewise.
5321 (arm_expand_ternop_builtin): Likewise.
5322 (arm_expand_binop_builtin): Likewise.
5323 (arm_expand_unop_builtin): Likewise.
5324 (neon_dereference_pointer): Likewise.
5325 (arm_expand_neon_args): Likewise.
5326 (arm_expand_neon_builtin): Likewise.
5327 (neon_split_vcombine): Likewise.
5328 (arm_expand_builtin): Likewise.
5329 (arm_builtin_vectorized_function): Likewise.
5330 (arm_atomic_assign_expand_fenv): Likewise.
5332 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5334 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5335 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5336 (FL_ARCH3M): Likewise.
5337 (FL_MODE26): Likewise.
5338 (FL_MODE32): Likewise.
5339 (FL_ARCH4): Likewise.
5340 (FL_ARCH5): Likewise.
5341 (FL_THUMB): Likewise.
5342 (FL_LDSCHED): Likewise.
5343 (FL_STRONG): Likewise.
5344 (FL_ARCH5E): Likewise.
5345 (FL_XSCALE): Likewise.
5346 (FL_ARCH6): Likewise.
5347 (FL_VFPV2): Likewise.
5348 (FL_WBUF): Likewise.
5349 (FL_ARCH6K): Likewise.
5350 (FL_THUMB2): Likewise.
5351 (FL_NOTM): Likewise.
5352 (FL_THUMB_DIV): Likewise.
5353 (FL_VFPV3): Likewise.
5354 (FL_NEON): Likewise.
5355 (FL_ARCH7EM): Likewise.
5356 (FL_ARCH7): Likewise.
5357 (FL_ARM_DIV): Likewise.
5358 (FL_ARCH8): Likewise.
5359 (FL_CRC32): Likewise.
5360 (FL_SMALLMUL): Likewise.
5361 (FL_IWMMXT): Likewise.
5362 (FL_IWMMXT2): Likewise.
5363 (FL_TUNE): Likewise.
5364 (FL_FOR_ARCH2): Likewise.
5365 (FL_FOR_ARCH3): Likewise.
5366 (FL_FOR_ARCH3M): Likewise.
5367 (FL_FOR_ARCH4): Likewise.
5368 (FL_FOR_ARCH4T): Likewise.
5369 (FL_FOR_ARCH5): Likewise.
5370 (FL_FOR_ARCH5T): Likewise.
5371 (FL_FOR_ARCH5E): Likewise.
5372 (FL_FOR_ARCH5TE): Likewise.
5373 (FL_FOR_ARCH5TEJ): Likewise.
5374 (FL_FOR_ARCH6): Likewise.
5375 (FL_FOR_ARCH6J): Likewise.
5376 (FL_FOR_ARCH6K): Likewise.
5377 (FL_FOR_ARCH6Z): Likewise.
5378 (FL_FOR_ARCH6ZK): Likewise.
5379 (FL_FOR_ARCH6T2): Likewise.
5380 (FL_FOR_ARCH6M): Likewise.
5381 (FL_FOR_ARCH7): Likewise.
5382 (FL_FOR_ARCH7A): Likewise.
5383 (FL_FOR_ARCH7VE): Likewise.
5384 (FL_FOR_ARCH7R): Likewise.
5385 (FL_FOR_ARCH7M): Likewise.
5386 (FL_FOR_ARCH7EM): Likewise.
5387 (FL_FOR_ARCH8A): Likewise.
5388 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5390 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5392 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5393 parameter, rearrange switch statement accordingly.
5394 (arm_evpc_neon_vrev): Remove "Magic Word".
5395 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5396 rounding, or signed/unsigned variants.
5397 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5398 (vcondu<mode><mode>): Likewise.
5399 (neon_vadd): Remove "Magic Word" operand.
5400 (neon_vaddl): Remove "Magic Word" operand, convert to use
5401 signed/unsigned iterator.
5402 (neon_vaddw): Likewise.
5403 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5404 (neon_vqadd): Remove "Magic Word" operand, convert to use
5405 signed/unsigned iterator.
5406 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5407 over "rounding" forms.
5408 (neon_vmul): Remove "Magic Word" operand, iterate over
5409 polynomial/float instruction forms.
5410 (neon_vmla): Remove "Magic Word" operand.
5411 (neon_vfma): Likewise.
5412 (neon_vfms): Likewise.
5413 (neon_vmls): Likewise.
5414 (neon_vmlal): Remove "Magic Word" operand, iterate over
5415 signed/unsigned forms.
5416 (neon_vmlsl): Likewise.
5417 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5419 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5420 signed/unsigned forms.
5421 (neon_vqdmlsl): Likewise.
5422 (neon_vmull): Likewise.
5423 (neon_vqdmull): Remove "Magic Word" operand.
5424 (neon_vsub): Remove "Magic Word" operand.
5425 (neon_vsubl): Remove "Magic Word" operand, convert to use
5426 signed/unsigned iterator.
5427 (neon_vsubw): Likewise.
5428 (neon_vhsub): Likewise.
5429 (neon_vqsub): Likewise.
5430 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5431 over "rounding" forms.
5432 (neon_vceq): Remove "Magic Word" operand.
5433 (neon_vcge): Likewise.
5434 (neon_vcgeu): Likewise.
5435 (neon_vcgt): Likewise.
5436 (neon_vcgtu): Likewise.
5437 (neon_vcle): Likewise.
5438 (neon_vclt): Likewise.
5439 (neon_vcage): Likewise.
5440 (neon_vcagt): Likewise.
5441 (neon_vabd): Remove "Magic Word" operand, iterate over
5442 signed/unsigned forms, and split out...
5443 (neon_vabdf): ...this as new.
5444 (neon_vabdl): Remove "Magic Word" operand, iterate over
5445 signed/unsigned forms.
5446 (neon_vaba): Likewise.
5447 (neon_vmax): Remove "Magic Word" operand, iterate over
5448 signed/unsigned and max/min forms, and split out...
5449 (neon_v<maxmin>f): ...this as new.
5450 (neon_vmin): Delete.
5451 (neon_vpadd): Remove "Magic Word" operand.
5452 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5453 signed/unsigned variants.
5454 (neon_vpadal): Likewise.
5455 (neon_vpmax): Remove "Magic Word" operand, iterate over
5456 signed/unsigned and max/min forms, and split out...
5457 (neon_vp<maxmin>f): ...this as new.
5458 (neon_vpmin): Delete.
5459 (neon_vrecps): Remove "Magic Word" operand.
5460 (neon_vrsqrts): Likewise.
5461 (neon_vabs): Likewise.
5462 (neon_vqabs): Likewise.
5463 (neon_vneg): Likewise.
5464 (neon_vqneg): Likewise.
5465 (neon_vcls): Likewise.
5466 (neon_vcnt): Likewise.
5467 (neon_vrecpe): Likewise.
5468 (neon_vrsqrte): Likewise.
5469 (neon_vmvn): Likewise.
5470 (neon_vget_lane): Likewise.
5471 (neon_vget_laneu): New.
5472 (neon_vget_lanedi): Remove "Magic Word" operand.
5473 (neon_vget_lanev2di): Likewise.
5474 (neon_vcvt): Remove "Magic Word" operand, iterate over
5475 signed/unsigned variants.
5476 (neon_vcvt_n): Likewise.
5477 (neon_vmovn): Remove "Magic Word" operand.
5478 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5479 signed/unsigned variants.
5480 (neon_vmovun): Remove "Magic Word" operand.
5481 (neon_vmovl): Remove "Magic Word" operand, iterate over
5482 signed/unsigned variants.
5483 (neon_vmul_lane): Remove "Magic Word" operand.
5484 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5485 signed/unsigned variants.
5486 (neon_vqdmull_lane): Remove "Magic Word" operand.
5487 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5489 (neon_vmla_lane): Remove "Magic Word" operand.
5490 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5491 signed/unsigned variants.
5492 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5493 (neon_vmls_lane): Likewise.
5494 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5495 signed/unsigned variants.
5496 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5497 (neon_vmul_n): Remove "Magic Word" operand.
5498 (neon_vmull_n): Rename to...
5499 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5500 (neon_vmullu_n): New.
5501 (neon_vqdmull_n): Remove "Magic Word" operand.
5502 (neon_vqdmulh_n): Likewise.
5503 (neon_vqrdmulh_n): New.
5504 (neon_vmla_n): Remove "Magic Word" operand.
5505 (neon_vmls_n): Likewise.
5506 (neon_vmlal_n): Rename to...
5507 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5508 (neon_vmlalu_n): New.
5509 (neon_vqdmlal_n): Remove "Magic Word" operand.
5510 (neon_vmlsl_n): Rename to...
5511 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5512 (neon_vmlslu_n): New.
5513 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5514 (neon_vrev64): Remove "Magic Word" operand.
5515 (neon_vrev32): Likewise.
5516 (neon_vrev16): Likewise.
5517 (neon_vshl): Remove "Magic Word" operand, iterate over
5518 signed/unsigned and "rounding" forms.
5519 (neon_vqshl): Likewise.
5520 (neon_vshr_n): Likewise.
5521 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5523 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5524 signed/unsigned and "rounding" forms.
5525 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5527 (neon_vshl_n): Remove "Magic Word" operand.
5528 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5529 signed/unsigned variants.
5530 (neon_vqshlu_n): Remove "Magic Word" operand.
5531 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5532 signed/unsigned variants.
5533 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5534 signed/unsigned and "rounding" forms.
5535 * config/arm/iterators.md (VPF): New.
5542 (VMLAL_LANE): Likewise.
5544 (VMLSL_LANE): Likewise.
5545 (VQDMULH): Likewise,
5546 (VQDMULH_LANE): Likewise.
5548 (VMULL_LANE): Likewise.
5556 (VMAXMIN): Likewise.
5557 (VMAXMINF): Likewise.
5560 (VPMAXMIN): Likewise.
5561 (VPMAXMINF): Likewise.
5562 (VCVT_US): Likewise.
5563 (VCVT_US_N): Likewise.
5569 (VSHRN_N): Likewise.
5570 (VQSHRN_N): Likewise.
5571 (VQSHRUN_N): Likewise.
5572 (VQSHL_N): Likewise.
5573 (VSHLL_N): Likewise.
5579 (shift_op): Likewise.
5580 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5581 (vaddls): ...this and...
5583 (vaddw): Split to...
5584 (vaddws): ...this and...
5586 (vhadd): Split to...
5587 (vhadds): ...this and...
5588 (vhaddu): ...this and...
5589 (vrhadds): ...this and...
5591 (vqadd): Split to...
5592 (vqadds): ...this and...
5594 (vaddhn): Split to itself and...
5597 (vmulf): ...this and...
5599 (vmlal): Split to...
5600 (vmlals): ...this and...
5602 (vmlsl): Split to...
5603 (vmlsls): ...this and...
5605 (vqdmulh): Split to itself and...
5606 (vqrdmulh): ...this.
5607 (vmull): Split to...
5608 (vmullp): ...this and...
5609 (vmulls): ...this and...
5611 (vmull_n): Split to...
5612 (vmulls_n): ...this and...
5613 (vmullu_n): ...this.
5614 (vmull_lane): Split to...
5615 (vmulls_lane): ...this and...
5616 (vmullu_lane): ...this.
5617 (vqdmulh_n): Split to itself and...
5618 (vqrdmulh_n): ...this.
5619 (vqdmulh_lane): Split to itself and...
5620 (vqrdmulh_lane): ...this.
5622 (vshls): ...this and...
5623 (vshlu): ...this and...
5624 (vrshls): ...this and...
5626 (vqshl): Split to...
5627 (vqshls): ...this and...
5628 (vqrshlu): ...this and...
5629 (vqrshls): ...this and...
5631 (vshr_n): Split to...
5632 (vshrs_n): ...this and...
5633 (vshru_n): ...this and...
5634 (vrshrs_n): ...this and...
5635 (vrshru_n): ...this.
5636 (vshrn_n): Split to itself and...
5637 (vrshrn_n): ...this.
5638 (vqshrn_n): Split to...
5639 (vqshrns_n): ...this and...
5640 (vqshrnu_n): ...this and...
5641 (vqrshrns_n): ...this and...
5642 (vqrshrnu_n): ...this.
5643 (vqshrun_n): Split to itself and...
5644 (vqrshrun_n): ...this.
5645 (vqshl_n): Split to...
5646 (vqshl_s_n): ...this and...
5647 (vqshl_u_n): ...this.
5648 (vshll_n): Split to...
5649 (vshlls_n): ...this and...
5650 (vshllu_n): ...this.
5651 (vsra_n): Split to...
5652 (vsras_n): ...this and...
5653 (vsrau_n): ...this and.
5654 (vrsras_n): ...this and...
5655 (vrsrau_n): ...this and.
5656 (vsubl): Split to...
5657 (vsubls): ...this and...
5659 (vsubw): Split to...
5660 (vsubws): ...this and...
5662 (vqsub): Split to...
5663 (vqsubs): ...this and...
5665 (vhsub): Split to...
5666 (vhsubs): ...this and...
5668 (vsubhn): Split to itself and...
5671 (vabds): ...this and...
5672 (vabdu): ...this and...
5674 (vabdl): Split to...
5675 (vabdls): ...this and...
5678 (vabas): ...this and...
5679 (vabau): ...this and...
5680 (vabal): Split to...
5681 (vabals): ...this and...
5684 (vmaxs): ...this and...
5685 (vmaxu): ...this and...
5688 (vmins): ...this and...
5689 (vminu): ...this and...
5691 (vpmax): Split to...
5692 (vpmaxs): ...this and...
5693 (vpmaxu): ...this and...
5695 (vpmin): Split to...
5696 (vpmins): ...this and...
5697 (vpminu): ...this and...
5699 (vpaddl): Split to...
5700 (vpaddls): ...this and...
5702 (vpadal): Split to...
5703 (vpadals): ...this and...
5706 (vqmovn): Split to...
5707 (vqmovns): ...this and...
5709 (vmovl): Split to...
5710 (vmovls): ...this and...
5712 (vmlal_lane): Split to...
5713 (vmlals_lane): ...this and...
5714 (vmlalu_lane): ...this.
5715 (vmlsl_lane): Split to...
5716 (vmlsls_lane): ...this and...
5717 (vmlslu_lane): ...this.
5718 (vmlal_n): Split to...
5719 (vmlals_n): ...this and...
5720 (vmlalu_n): ...this.
5721 (vmlsl_n): Split to...
5722 (vmlsls_n): ...this and...
5723 (vmlslu_n): ...this.
5724 (vext): Make type "SHIFTINSERT".
5726 (vcvts): ...this and...
5728 (vcvt_n): Split to...
5729 (vcvts_n): ...this and...
5731 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5732 (vaddl_s16): Likewise.
5733 (vaddl_s32): Likewise.
5734 (vaddl_u8): Likewise.
5735 (vaddl_u16): Likewise.
5736 (vaddl_u32): Likewise.
5737 (vaddw_s8): Likewise.
5738 (vaddw_s16): Likewise.
5739 (vaddw_s32): Likewise.
5740 (vaddw_u8): Likewise.
5741 (vaddw_u16): Likewise.
5742 (vaddw_u32): Likewise.
5743 (vhadd_s8): Likewise.
5744 (vhadd_s16): Likewise.
5745 (vhadd_s32): Likewise.
5746 (vhadd_u8): Likewise.
5747 (vhadd_u16): Likewise.
5748 (vhadd_u32): Likewise.
5749 (vhaddq_s8): Likewise.
5750 (vhaddq_s16): Likewise.
5751 (vhaddq_s32): Likewise.
5752 (vhaddq_u8): Likewise.
5753 (vhaddq_u16): Likewise.
5754 (vrhadd_s8): Likewise.
5755 (vrhadd_s16): Likewise.
5756 (vrhadd_s32): Likewise.
5757 (vrhadd_u8): Likewise.
5758 (vrhadd_u16): Likewise.
5759 (vrhadd_u32): Likewise.
5760 (vrhaddq_s8): Likewise.
5761 (vrhaddq_s16): Likewise.
5762 (vrhaddq_s32): Likewise.
5763 (vrhaddq_u8): Likewise.
5764 (vrhaddq_u16): Likewise.
5765 (vrhaddq_u32): Likewise.
5766 (vqadd_s8): Likewise.
5767 (vqadd_s16): Likewise.
5768 (vqadd_s32): Likewise.
5769 (vqadd_s64): Likewise.
5770 (vqadd_u8): Likewise.
5771 (vqadd_u16): Likewise.
5772 (vqadd_u32): Likewise.
5773 (vqadd_u64): Likewise.
5774 (vqaddq_s8): Likewise.
5775 (vqaddq_s16): Likewise.
5776 (vqaddq_s32): Likewise.
5777 (vqaddq_s64): Likewise.
5778 (vqaddq_u8): Likewise.
5779 (vqaddq_u16): Likewise.
5780 (vqaddq_u32): Likewise.
5781 (vqaddq_u64): Likewise.
5782 (vaddhn_s16): Likewise.
5783 (vaddhn_s32): Likewise.
5784 (vaddhn_s64): Likewise.
5785 (vaddhn_u16): Likewise.
5786 (vaddhn_u32): Likewise.
5787 (vaddhn_u64): Likewise.
5788 (vraddhn_s16): Likewise.
5789 (vraddhn_s32): Likewise.
5790 (vraddhn_s64): Likewise.
5791 (vraddhn_u16): Likewise.
5792 (vraddhn_u32): Likewise.
5793 (vraddhn_u64): Likewise.
5794 (vmul_p8): Likewise.
5795 (vmulq_p8): Likewise.
5796 (vqdmulh_s16): Likewise.
5797 (vqdmulh_s32): Likewise.
5798 (vqdmulhq_s16): Likewise.
5799 (vqdmulhq_s32): Likewise.
5800 (vqrdmulh_s16): Likewise.
5801 (vqrdmulh_s32): Likewise.
5802 (vqrdmulhq_s16): Likewise.
5803 (vqrdmulhq_s32): Likewise.
5804 (vmull_s8): Likewise.
5805 (vmull_s16): Likewise.
5806 (vmull_s32): Likewise.
5807 (vmull_u8): Likewise.
5808 (vmull_u16): Likewise.
5809 (vmull_u32): Likewise.
5810 (vmull_p8): Likewise.
5811 (vqdmull_s16): Likewise.
5812 (vqdmull_s32): Likewise.
5813 (vmla_s8): Likewise.
5814 (vmla_s16): Likewise.
5815 (vmla_s32): Likewise.
5816 (vmla_f32): Likewise.
5817 (vmla_u8): Likewise.
5818 (vmla_u16): Likewise.
5819 (vmla_u32): Likewise.
5820 (vmlaq_s8): Likewise.
5821 (vmlaq_s16): Likewise.
5822 (vmlaq_s32): Likewise.
5823 (vmlaq_f32): Likewise.
5824 (vmlaq_u8): Likewise.
5825 (vmlaq_u16): Likewise.
5826 (vmlaq_u32): Likewise.
5827 (vmlal_s8): Likewise.
5828 (vmlal_s16): Likewise.
5829 (vmlal_s32): Likewise.
5830 (vmlal_u8): Likewise.
5831 (vmlal_u16): Likewise.
5832 (vmlal_u32): Likewise.
5833 (vqdmlal_s16): Likewise.
5834 (vqdmlal_s32): Likewise.
5835 (vmls_s8): Likewise.
5836 (vmls_s16): Likewise.
5837 (vmls_s32): Likewise.
5838 (vmls_f32): Likewise.
5839 (vmls_u8): Likewise.
5840 (vmls_u16): Likewise.
5841 (vmls_u32): Likewise.
5842 (vmlsq_s8): Likewise.
5843 (vmlsq_s16): Likewise.
5844 (vmlsq_s32): Likewise.
5845 (vmlsq_f32): Likewise.
5846 (vmlsq_u8): Likewise.
5847 (vmlsq_u16): Likewise.
5848 (vmlsq_u32): Likewise.
5849 (vmlsl_s8): Likewise.
5850 (vmlsl_s16): Likewise.
5851 (vmlsl_s32): Likewise.
5852 (vmlsl_u8): Likewise.
5853 (vmlsl_u16): Likewise.
5854 (vmlsl_u32): Likewise.
5855 (vqdmlsl_s16): Likewise.
5856 (vqdmlsl_s32): Likewise.
5857 (vfma_f32): Likewise.
5858 (vfmaq_f32): Likewise.
5859 (vfms_f32): Likewise.
5860 (vfmsq_f32): Likewise.
5861 (vsubl_s8): Likewise.
5862 (vsubl_s16): Likewise.
5863 (vsubl_s32): Likewise.
5864 (vsubl_u8): Likewise.
5865 (vsubl_u16): Likewise.
5866 (vsubl_u32): Likewise.
5867 (vsubw_s8): Likewise.
5868 (vsubw_s16): Likewise.
5869 (vsubw_s32): Likewise.
5870 (vsubw_u8): Likewise.
5871 (vsubw_u16): Likewise.
5872 (vsubw_u32): Likewise.
5873 (vhsub_s8): Likewise.
5874 (vhsub_s16): Likewise.
5875 (vhsub_s32): Likewise.
5876 (vhsub_u8): Likewise.
5877 (vhsub_u16): Likewise.
5878 (vhsub_u32): Likewise.
5879 (vhsubq_s8): Likewise.
5880 (vhsubq_s16): Likewise.
5881 (vhsubq_s32): Likewise.
5882 (vhsubq_u8): Likewise.
5883 (vhsubq_u16): Likewise.
5884 (vhsubq_u32): Likewise.
5885 (vqsub_s8): Likewise.
5886 (vqsub_s16): Likewise.
5887 (vqsub_s32): Likewise.
5888 (vqsub_s64): Likewise.
5889 (vqsub_u8): Likewise.
5890 (vqsub_u16): Likewise.
5891 (vqsub_u32): Likewise.
5892 (vqsub_u64): Likewise.
5893 (vqsubq_s8): Likewise.
5894 (vqsubq_s16): Likewise.
5895 (vqsubq_s32): Likewise.
5896 (vqsubq_s64): Likewise.
5897 (vqsubq_u8): Likewise.
5898 (vqsubq_u16): Likewise.
5899 (vqsubq_u32): Likewise.
5900 (vqsubq_u64): Likewise.
5901 (vsubhn_s16): Likewise.
5902 (vsubhn_s32): Likewise.
5903 (vsubhn_s64): Likewise.
5904 (vsubhn_u16): Likewise.
5905 (vsubhn_u32): Likewise.
5906 (vsubhn_u64): Likewise.
5907 (vrsubhn_s16): Likewise.
5908 (vrsubhn_s32): Likewise.
5909 (vrsubhn_s64): Likewise.
5910 (vrsubhn_u16): Likewise.
5911 (vrsubhn_u32): Likewise.
5912 (vrsubhn_u64): Likewise.
5913 (vceq_s8): Likewise.
5914 (vceq_s16): Likewise.
5915 (vceq_s32): Likewise.
5916 (vceq_f32): Likewise.
5917 (vceq_u8): Likewise.
5918 (vceq_u16): Likewise.
5919 (vceq_u32): Likewise.
5920 (vceq_p8): Likewise.
5921 (vceqq_s8): Likewise.
5922 (vceqq_s16): Likewise.
5923 (vceqq_s32): Likewise.
5924 (vceqq_f32): Likewise.
5925 (vceqq_u8): Likewise.
5926 (vceqq_u16): Likewise.
5927 (vceqq_u32): Likewise.
5928 (vceqq_p8): Likewise.
5929 (vcge_s8): Likewise.
5930 (vcge_s16): Likewise.
5931 (vcge_s32): Likewise.
5932 (vcge_f32): Likewise.
5933 (vcge_u8): Likewise.
5934 (vcge_u16): Likewise.
5935 (vcge_u32): Likewise.
5936 (vcgeq_s8): Likewise.
5937 (vcgeq_s16): Likewise.
5938 (vcgeq_s32): Likewise.
5939 (vcgeq_f32): Likewise.
5940 (vcgeq_u8): Likewise.
5941 (vcgeq_u16): Likewise.
5942 (vcgeq_u32): Likewise.
5943 (vcle_s8): Likewise.
5944 (vcle_s16): Likewise.
5945 (vcle_s32): Likewise.
5946 (vcle_f32): Likewise.
5947 (vcle_u8): Likewise.
5948 (vcle_u16): Likewise.
5949 (vcle_u32): Likewise.
5950 (vcleq_s8): Likewise.
5951 (vcleq_s16): Likewise.
5952 (vcleq_s32): Likewise.
5953 (vcleq_f32): Likewise.
5954 (vcleq_u8): Likewise.
5955 (vcleq_u16): Likewise.
5956 (vcleq_u32): Likewise.
5957 (vcgt_s8): Likewise.
5958 (vcgt_s16): Likewise.
5959 (vcgt_s32): Likewise.
5960 (vcgt_f32): Likewise.
5961 (vcgt_u8): Likewise.
5962 (vcgt_u16): Likewise.
5963 (vcgt_u32): Likewise.
5964 (vcgtq_s8): Likewise.
5965 (vcgtq_s16): Likewise.
5966 (vcgtq_s32): Likewise.
5967 (vcgtq_f32): Likewise.
5968 (vcgtq_u8): Likewise.
5969 (vcgtq_u16): Likewise.
5970 (vcgtq_u32): Likewise.
5971 (vclt_s8): Likewise.
5972 (vclt_s16): Likewise.
5973 (vclt_s32): Likewise.
5974 (vclt_f32): Likewise.
5975 (vclt_u8): Likewise.
5976 (vclt_u16): Likewise.
5977 (vclt_u32): Likewise.
5978 (vcltq_s8): Likewise.
5979 (vcltq_s16): Likewise.
5980 (vcltq_s32): Likewise.
5981 (vcltq_f32): Likewise.
5982 (vcltq_u8): Likewise.
5983 (vcltq_u16): Likewise.
5984 (vcltq_u32): Likewise.
5985 (vcage_f32): Likewise.
5986 (vcageq_f32): Likewise.
5987 (vcale_f32): Likewise.
5988 (vcaleq_f32): Likewise.
5989 (vcagt_f32): Likewise.
5990 (vcagtq_f32): Likewise.
5991 (vcalt_f32): Likewise.
5992 (vcaltq_f32): Likewise.
5993 (vtst_s8): Likewise.
5994 (vtst_s16): Likewise.
5995 (vtst_s32): Likewise.
5996 (vtst_u8): Likewise.
5997 (vtst_u16): Likewise.
5998 (vtst_u32): Likewise.
5999 (vtst_p8): Likewise.
6000 (vtstq_s8): Likewise.
6001 (vtstq_s16): Likewise.
6002 (vtstq_s32): Likewise.
6003 (vtstq_u8): Likewise.
6004 (vtstq_u16): Likewise.
6005 (vtstq_u32): Likewise.
6006 (vtstq_p8): Likewise.
6007 (vabd_s8): Likewise.
6008 (vabd_s16): Likewise.
6009 (vabd_s32): Likewise.
6010 (vabd_f32): Likewise.
6011 (vabd_u8): Likewise.
6012 (vabd_u16): Likewise.
6013 (vabd_u32): Likewise.
6014 (vabdq_s8): Likewise.
6015 (vabdq_s16): Likewise.
6016 (vabdq_s32): Likewise.
6017 (vabdq_f32): Likewise.
6018 (vabdq_u8): Likewise.
6019 (vabdq_u16): Likewise.
6020 (vabdq_u32): Likewise.
6021 (vabdl_s8): Likewise.
6022 (vabdl_s16): Likewise.
6023 (vabdl_s32): Likewise.
6024 (vabdl_u8): Likewise.
6025 (vabdl_u16): Likewise.
6026 (vabdl_u32): Likewise.
6027 (vaba_s8): Likewise.
6028 (vaba_s16): Likewise.
6029 (vaba_s32): Likewise.
6030 (vaba_u8): Likewise.
6031 (vaba_u16): Likewise.
6032 (vaba_u32): Likewise.
6033 (vabaq_s8): Likewise.
6034 (vabaq_s16): Likewise.
6035 (vabaq_s32): Likewise.
6036 (vabaq_u8): Likewise.
6037 (vabaq_u16): Likewise.
6038 (vabaq_u32): Likewise.
6039 (vabal_s8): Likewise.
6040 (vabal_s16): Likewise.
6041 (vabal_s32): Likewise.
6042 (vabal_u8): Likewise.
6043 (vabal_u16): Likewise.
6044 (vabal_u32): Likewise.
6045 (vmax_s8): Likewise.
6046 (vmax_s16): Likewise.
6047 (vmax_s32): Likewise.
6048 (vmax_f32): Likewise.
6049 (vmax_u8): Likewise.
6050 (vmax_u16): Likewise.
6051 (vmax_u32): Likewise.
6052 (vmaxq_s8): Likewise.
6053 (vmaxq_s16): Likewise.
6054 (vmaxq_s32): Likewise.
6055 (vmaxq_f32): Likewise.
6056 (vmaxq_u8): Likewise.
6057 (vmaxq_u16): Likewise.
6058 (vmaxq_u32): Likewise.
6059 (vmin_s8): Likewise.
6060 (vmin_s16): Likewise.
6061 (vmin_s32): Likewise.
6062 (vmin_f32): Likewise.
6063 (vmin_u8): Likewise.
6064 (vmin_u16): Likewise.
6065 (vmin_u32): Likewise.
6066 (vminq_s8): Likewise.
6067 (vminq_s16): Likewise.
6068 (vminq_s32): Likewise.
6069 (vminq_f32): Likewise.
6070 (vminq_u8): Likewise.
6071 (vminq_u16): Likewise.
6072 (vminq_u32): Likewise.
6073 (vpadd_s8): Likewise.
6074 (vpadd_s16): Likewise.
6075 (vpadd_s32): Likewise.
6076 (vpadd_f32): Likewise.
6077 (vpadd_u8): Likewise.
6078 (vpadd_u16): Likewise.
6079 (vpadd_u32): Likewise.
6080 (vpaddl_s8): Likewise.
6081 (vpaddl_s16): Likewise.
6082 (vpaddl_s32): Likewise.
6083 (vpaddl_u8): Likewise.
6084 (vpaddl_u16): Likewise.
6085 (vpaddl_u32): Likewise.
6086 (vpaddlq_s8): Likewise.
6087 (vpaddlq_s16): Likewise.
6088 (vpaddlq_s32): Likewise.
6089 (vpaddlq_u8): Likewise.
6090 (vpaddlq_u16): Likewise.
6091 (vpaddlq_u32): Likewise.
6092 (vpadal_s8): Likewise.
6093 (vpadal_s16): Likewise.
6094 (vpadal_s32): Likewise.
6095 (vpadal_u8): Likewise.
6096 (vpadal_u16): Likewise.
6097 (vpadal_u32): Likewise.
6098 (vpadalq_s8): Likewise.
6099 (vpadalq_s16): Likewise.
6100 (vpadalq_s32): Likewise.
6101 (vpadalq_u8): Likewise.
6102 (vpadalq_u16): Likewise.
6103 (vpadalq_u32): Likewise.
6104 (vpmax_s8): Likewise.
6105 (vpmax_s16): Likewise.
6106 (vpmax_s32): Likewise.
6107 (vpmax_f32): Likewise.
6108 (vpmax_u8): Likewise.
6109 (vpmax_u16): Likewise.
6110 (vpmax_u32): Likewise.
6111 (vpmin_s8): Likewise.
6112 (vpmin_s16): Likewise.
6113 (vpmin_s32): Likewise.
6114 (vpmin_f32): Likewise.
6115 (vpmin_u8): Likewise.
6116 (vpmin_u16): Likewise.
6117 (vpmin_u32): Likewise.
6118 (vrecps_f32): Likewise.
6119 (vrecpsq_f32): Likewise.
6120 (vrsqrts_f32): Likewise.
6121 (vrsqrtsq_f32): Likewise.
6122 (vshl_s8): Likewise.
6123 (vshl_s16): Likewise.
6124 (vshl_s32): Likewise.
6125 (vshl_s64): Likewise.
6126 (vshl_u8): Likewise.
6127 (vshl_u16): Likewise.
6128 (vshl_u32): Likewise.
6129 (vshl_u64): Likewise.
6130 (vshlq_s8): Likewise.
6131 (vshlq_s16): Likewise.
6132 (vshlq_s32): Likewise.
6133 (vshlq_s64): Likewise.
6134 (vshlq_u8): Likewise.
6135 (vshlq_u16): Likewise.
6136 (vshlq_u32): Likewise.
6137 (vshlq_u64): Likewise.
6138 (vrshl_s8): Likewise.
6139 (vrshl_s16): Likewise.
6140 (vrshl_s32): Likewise.
6141 (vrshl_s64): Likewise.
6142 (vrshl_u8): Likewise.
6143 (vrshl_u16): Likewise.
6144 (vrshl_u32): Likewise.
6145 (vrshl_u64): Likewise.
6146 (vrshlq_s8): Likewise.
6147 (vrshlq_s16): Likewise.
6148 (vrshlq_s32): Likewise.
6149 (vrshlq_s64): Likewise.
6150 (vrshlq_u8): Likewise.
6151 (vrshlq_u16): Likewise.
6152 (vrshlq_u32): Likewise.
6153 (vrshlq_u64): Likewise.
6154 (vqshl_s8): Likewise.
6155 (vqshl_s16): Likewise.
6156 (vqshl_s32): Likewise.
6157 (vqshl_s64): Likewise.
6158 (vqshl_u8): Likewise.
6159 (vqshl_u16): Likewise.
6160 (vqshl_u32): Likewise.
6161 (vqshl_u64): Likewise.
6162 (vqshlq_s8): Likewise.
6163 (vqshlq_s16): Likewise.
6164 (vqshlq_s32): Likewise.
6165 (vqshlq_s64): Likewise.
6166 (vqshlq_u8): Likewise.
6167 (vqshlq_u16): Likewise.
6168 (vqshlq_u32): Likewise.
6169 (vqshlq_u64): Likewise.
6170 (vqrshl_s8): Likewise.
6171 (vqrshl_s16): Likewise.
6172 (vqrshl_s32): Likewise.
6173 (vqrshl_s64): Likewise.
6174 (vqrshl_u8): Likewise.
6175 (vqrshl_u16): Likewise.
6176 (vqrshl_u32): Likewise.
6177 (vqrshl_u64): Likewise.
6178 (vqrshlq_s8): Likewise.
6179 (vqrshlq_s16): Likewise.
6180 (vqrshlq_s32): Likewise.
6181 (vqrshlq_s64): Likewise.
6182 (vqrshlq_u8): Likewise.
6183 (vqrshlq_u16): Likewise.
6184 (vqrshlq_u32): Likewise.
6185 (vqrshlq_u64): Likewise.
6186 (vshr_n_s8): Likewise.
6187 (vshr_n_s16): Likewise.
6188 (vshr_n_s32): Likewise.
6189 (vshr_n_s64): Likewise.
6190 (vshr_n_u8): Likewise.
6191 (vshr_n_u16): Likewise.
6192 (vshr_n_u32): Likewise.
6193 (vshr_n_u64): Likewise.
6194 (vshrq_n_s8): Likewise.
6195 (vshrq_n_s16): Likewise.
6196 (vshrq_n_s32): Likewise.
6197 (vshrq_n_s64): Likewise.
6198 (vshrq_n_u8): Likewise.
6199 (vshrq_n_u16): Likewise.
6200 (vshrq_n_u32): Likewise.
6201 (vshrq_n_u64): Likewise.
6202 (vrshr_n_s8): Likewise.
6203 (vrshr_n_s16): Likewise.
6204 (vrshr_n_s32): Likewise.
6205 (vrshr_n_s64): Likewise.
6206 (vrshr_n_u8): Likewise.
6207 (vrshr_n_u16): Likewise.
6208 (vrshr_n_u32): Likewise.
6209 (vrshr_n_u64): Likewise.
6210 (vrshrq_n_s8): Likewise.
6211 (vrshrq_n_s16): Likewise.
6212 (vrshrq_n_s32): Likewise.
6213 (vrshrq_n_s64): Likewise.
6214 (vrshrq_n_u8): Likewise.
6215 (vrshrq_n_u16): Likewise.
6216 (vrshrq_n_u32): Likewise.
6217 (vrshrq_n_u64): Likewise.
6218 (vshrn_n_s16): Likewise.
6219 (vshrn_n_s32): Likewise.
6220 (vshrn_n_s64): Likewise.
6221 (vshrn_n_u16): Likewise.
6222 (vshrn_n_u32): Likewise.
6223 (vshrn_n_u64): Likewise.
6224 (vrshrn_n_s16): Likewise.
6225 (vrshrn_n_s32): Likewise.
6226 (vrshrn_n_s64): Likewise.
6227 (vrshrn_n_u16): Likewise.
6228 (vrshrn_n_u32): Likewise.
6229 (vrshrn_n_u64): Likewise.
6230 (vqshrn_n_s16): Likewise.
6231 (vqshrn_n_s32): Likewise.
6232 (vqshrn_n_s64): Likewise.
6233 (vqshrn_n_u16): Likewise.
6234 (vqshrn_n_u32): Likewise.
6235 (vqshrn_n_u64): Likewise.
6236 (vqrshrn_n_s16): Likewise.
6237 (vqrshrn_n_s32): Likewise.
6238 (vqrshrn_n_s64): Likewise.
6239 (vqrshrn_n_u16): Likewise.
6240 (vqrshrn_n_u32): Likewise.
6241 (vqrshrn_n_u64): Likewise.
6242 (vqshrun_n_s16): Likewise.
6243 (vqshrun_n_s32): Likewise.
6244 (vqshrun_n_s64): Likewise.
6245 (vqrshrun_n_s16): Likewise.
6246 (vqrshrun_n_s32): Likewise.
6247 (vqrshrun_n_s64): Likewise.
6248 (vshl_n_s8): Likewise.
6249 (vshl_n_s16): Likewise.
6250 (vshl_n_s32): Likewise.
6251 (vshl_n_s64): Likewise.
6252 (vshl_n_u8): Likewise.
6253 (vshl_n_u16): Likewise.
6254 (vshl_n_u32): Likewise.
6255 (vshl_n_u64): Likewise.
6256 (vshlq_n_s8): Likewise.
6257 (vshlq_n_s16): Likewise.
6258 (vshlq_n_s32): Likewise.
6259 (vshlq_n_s64): Likewise.
6260 (vshlq_n_u8): Likewise.
6261 (vshlq_n_u16): Likewise.
6262 (vshlq_n_u32): Likewise.
6263 (vshlq_n_u64): Likewise.
6264 (vqshl_n_s8): Likewise.
6265 (vqshl_n_s16): Likewise.
6266 (vqshl_n_s32): Likewise.
6267 (vqshl_n_s64): Likewise.
6268 (vqshl_n_u8): Likewise.
6269 (vqshl_n_u16): Likewise.
6270 (vqshl_n_u32): Likewise.
6271 (vqshl_n_u64): Likewise.
6272 (vqshlq_n_s8): Likewise.
6273 (vqshlq_n_s16): Likewise.
6274 (vqshlq_n_s32): Likewise.
6275 (vqshlq_n_s64): Likewise.
6276 (vqshlq_n_u8): Likewise.
6277 (vqshlq_n_u16): Likewise.
6278 (vqshlq_n_u32): Likewise.
6279 (vqshlq_n_u64): Likewise.
6280 (vqshlu_n_s8): Likewise.
6281 (vqshlu_n_s16): Likewise.
6282 (vqshlu_n_s32): Likewise.
6283 (vqshlu_n_s64): Likewise.
6284 (vqshluq_n_s8): Likewise.
6285 (vqshluq_n_s16): Likewise.
6286 (vqshluq_n_s32): Likewise.
6287 (vqshluq_n_s64): Likewise.
6288 (vshll_n_s8): Likewise.
6289 (vshll_n_s16): Likewise.
6290 (vshll_n_s32): Likewise.
6291 (vshll_n_u8): Likewise.
6292 (vshll_n_u16): Likewise.
6293 (vshll_n_u32): Likewise.
6294 (vsra_n_s8): Likewise.
6295 (vsra_n_s16): Likewise.
6296 (vsra_n_s32): Likewise.
6297 (vsra_n_s64): Likewise.
6298 (vsra_n_u8): Likewise.
6299 (vsra_n_u16): Likewise.
6300 (vsra_n_u32): Likewise.
6301 (vsra_n_u64): Likewise.
6302 (vsraq_n_s8): Likewise.
6303 (vsraq_n_s16): Likewise.
6304 (vsraq_n_s32): Likewise.
6305 (vsraq_n_s64): Likewise.
6306 (vsraq_n_u8): Likewise.
6307 (vsraq_n_u16): Likewise.
6308 (vsraq_n_u32): Likewise.
6309 (vsraq_n_u64): Likewise.
6310 (vrsra_n_s8): Likewise.
6311 (vrsra_n_s16): Likewise.
6312 (vrsra_n_s32): Likewise.
6313 (vrsra_n_s64): Likewise.
6314 (vrsra_n_u8): Likewise.
6315 (vrsra_n_u16): Likewise.
6316 (vrsra_n_u32): Likewise.
6317 (vrsra_n_u64): Likewise.
6318 (vrsraq_n_s8): Likewise.
6319 (vrsraq_n_s16): Likewise.
6320 (vrsraq_n_s32): Likewise.
6321 (vrsraq_n_s64): Likewise.
6322 (vrsraq_n_u8): Likewise.
6323 (vrsraq_n_u16): Likewise.
6324 (vrsraq_n_u32): Likewise.
6325 (vrsraq_n_u64): Likewise.
6326 (vabs_s8): Likewise.
6327 (vabs_s16): Likewise.
6328 (vabs_s32): Likewise.
6329 (vabs_f32): Likewise.
6330 (vabsq_s8): Likewise.
6331 (vabsq_s16): Likewise.
6332 (vabsq_s32): Likewise.
6333 (vabsq_f32): Likewise.
6334 (vqabs_s8): Likewise.
6335 (vqabs_s16): Likewise.
6336 (vqabs_s32): Likewise.
6337 (vqabsq_s8): Likewise.
6338 (vqabsq_s16): Likewise.
6339 (vqabsq_s32): Likewise.
6340 (vneg_s8): Likewise.
6341 (vneg_s16): Likewise.
6342 (vneg_s32): Likewise.
6343 (vneg_f32): Likewise.
6344 (vnegq_s8): Likewise.
6345 (vnegq_s16): Likewise.
6346 (vnegq_s32): Likewise.
6347 (vnegq_f32): Likewise.
6348 (vqneg_s8): Likewise.
6349 (vqneg_s16): Likewise.
6350 (vqneg_s32): Likewise.
6351 (vqnegq_s8): Likewise.
6352 (vqnegq_s16): Likewise.
6353 (vqnegq_s32): Likewise.
6354 (vmvn_s8): Likewise.
6355 (vmvn_s16): Likewise.
6356 (vmvn_s32): Likewise.
6357 (vmvn_u8): Likewise.
6358 (vmvn_u16): Likewise.
6359 (vmvn_u32): Likewise.
6360 (vmvn_p8): Likewise.
6361 (vmvnq_s8): Likewise.
6362 (vmvnq_s16): Likewise.
6363 (vmvnq_s32): Likewise.
6364 (vmvnq_u8): Likewise.
6365 (vmvnq_u16): Likewise.
6366 (vmvnq_u32): Likewise.
6367 (vmvnq_p8): Likewise.
6368 (vcls_s8): Likewise.
6369 (vcls_s16): Likewise.
6370 (vcls_s32): Likewise.
6371 (vclsq_s8): Likewise.
6372 (vclsq_s16): Likewise.
6373 (vclsq_s32): Likewise.
6374 (vclz_s8): Likewise.
6375 (vclz_s16): Likewise.
6376 (vclz_s32): Likewise.
6377 (vclz_u8): Likewise.
6378 (vclz_u16): Likewise.
6379 (vclz_u32): Likewise.
6380 (vclzq_s8): Likewise.
6381 (vclzq_s16): Likewise.
6382 (vclzq_s32): Likewise.
6383 (vclzq_u8): Likewise.
6384 (vclzq_u16): Likewise.
6385 (vclzq_u32): Likewise.
6386 (vcnt_s8): Likewise.
6387 (vcnt_u8): Likewise.
6388 (vcnt_p8): Likewise.
6389 (vcntq_s8): Likewise.
6390 (vcntq_u8): Likewise.
6391 (vcntq_p8): Likewise.
6392 (vrecpe_f32): Likewise.
6393 (vrecpe_u32): Likewise.
6394 (vrecpeq_f32): Likewise.
6395 (vrecpeq_u32): Likewise.
6396 (vrsqrte_f32): Likewise.
6397 (vrsqrte_u32): Likewise.
6398 (vrsqrteq_f32): Likewise.
6399 (vrsqrteq_u32): Likewise.
6400 (vget_lane_s8): Likewise.
6401 (vget_lane_s16): Likewise.
6402 (vget_lane_s32): Likewise.
6403 (vget_lane_f32): Likewise.
6404 (vget_lane_u8): Likewise.
6405 (vget_lane_u16): Likewise.
6406 (vget_lane_u32): Likewise.
6407 (vget_lane_p8): Likewise.
6408 (vget_lane_p16): Likewise.
6409 (vget_lane_s64): Likewise.
6410 (vget_lane_u64): Likewise.
6411 (vgetq_lane_s8): Likewise.
6412 (vgetq_lane_s16): Likewise.
6413 (vgetq_lane_s32): Likewise.
6414 (vgetq_lane_f32): Likewise.
6415 (vgetq_lane_u8): Likewise.
6416 (vgetq_lane_u16): Likewise.
6417 (vgetq_lane_u32): Likewise.
6418 (vgetq_lane_p8): Likewise.
6419 (vgetq_lane_p16): Likewise.
6420 (vgetq_lane_s64): Likewise.
6421 (vgetq_lane_u64): Likewise.
6422 (vcvt_s32_f32): Likewise.
6423 (vcvt_f32_s32): Likewise.
6424 (vcvt_f32_u32): Likewise.
6425 (vcvt_u32_f32): Likewise.
6426 (vcvtq_s32_f32): Likewise.
6427 (vcvtq_f32_s32): Likewise.
6428 (vcvtq_f32_u32): Likewise.
6429 (vcvtq_u32_f32): Likewise.
6430 (vcvt_n_s32_f32): Likewise.
6431 (vcvt_n_f32_s32): Likewise.
6432 (vcvt_n_f32_u32): Likewise.
6433 (vcvt_n_u32_f32): Likewise.
6434 (vcvtq_n_s32_f32): Likewise.
6435 (vcvtq_n_f32_s32): Likewise.
6436 (vcvtq_n_f32_u32): Likewise.
6437 (vcvtq_n_u32_f32): Likewise.
6438 (vmovn_s16): Likewise.
6439 (vmovn_s32): Likewise.
6440 (vmovn_s64): Likewise.
6441 (vmovn_u16): Likewise.
6442 (vmovn_u32): Likewise.
6443 (vmovn_u64): Likewise.
6444 (vqmovn_s16): Likewise.
6445 (vqmovn_s32): Likewise.
6446 (vqmovn_s64): Likewise.
6447 (vqmovn_u16): Likewise.
6448 (vqmovn_u32): Likewise.
6449 (vqmovn_u64): Likewise.
6450 (vqmovun_s16): Likewise.
6451 (vqmovun_s32): Likewise.
6452 (vqmovun_s64): Likewise.
6453 (vmovl_s8): Likewise.
6454 (vmovl_s16): Likewise.
6455 (vmovl_s32): Likewise.
6456 (vmovl_u8): Likewise.
6457 (vmovl_u16): Likewise.
6458 (vmovl_u32): Likewise.
6459 (vmul_lane_s16): Likewise.
6460 (vmul_lane_s32): Likewise.
6461 (vmul_lane_f32): Likewise.
6462 (vmul_lane_u16): Likewise.
6463 (vmul_lane_u32): Likewise.
6464 (vmulq_lane_s16): Likewise.
6465 (vmulq_lane_s32): Likewise.
6466 (vmulq_lane_f32): Likewise.
6467 (vmulq_lane_u16): Likewise.
6468 (vmulq_lane_u32): Likewise.
6469 (vmla_lane_s16): Likewise.
6470 (vmla_lane_s32): Likewise.
6471 (vmla_lane_f32): Likewise.
6472 (vmla_lane_u16): Likewise.
6473 (vmla_lane_u32): Likewise.
6474 (vmlaq_lane_s16): Likewise.
6475 (vmlaq_lane_s32): Likewise.
6476 (vmlaq_lane_f32): Likewise.
6477 (vmlaq_lane_u16): Likewise.
6478 (vmlaq_lane_u32): Likewise.
6479 (vmlal_lane_s16): Likewise.
6480 (vmlal_lane_s32): Likewise.
6481 (vmlal_lane_u16): Likewise.
6482 (vmlal_lane_u32): Likewise.
6483 (vqdmlal_lane_s16): Likewise.
6484 (vqdmlal_lane_s32): Likewise.
6485 (vmls_lane_s16): Likewise.
6486 (vmls_lane_s32): Likewise.
6487 (vmls_lane_f32): Likewise.
6488 (vmls_lane_u16): Likewise.
6489 (vmls_lane_u32): Likewise.
6490 (vmlsq_lane_s16): Likewise.
6491 (vmlsq_lane_s32): Likewise.
6492 (vmlsq_lane_f32): Likewise.
6493 (vmlsq_lane_u16): Likewise.
6494 (vmlsq_lane_u32): Likewise.
6495 (vmlsl_lane_s16): Likewise.
6496 (vmlsl_lane_s32): Likewise.
6497 (vmlsl_lane_u16): Likewise.
6498 (vmlsl_lane_u32): Likewise.
6499 (vqdmlsl_lane_s16): Likewise.
6500 (vqdmlsl_lane_s32): Likewise.
6501 (vmull_lane_s16): Likewise.
6502 (vmull_lane_s32): Likewise.
6503 (vmull_lane_u16): Likewise.
6504 (vmull_lane_u32): Likewise.
6505 (vqdmull_lane_s16): Likewise.
6506 (vqdmull_lane_s32): Likewise.
6507 (vqdmulhq_lane_s16): Likewise.
6508 (vqdmulhq_lane_s32): Likewise.
6509 (vqdmulh_lane_s16): Likewise.
6510 (vqdmulh_lane_s32): Likewise.
6511 (vqrdmulhq_lane_s16): Likewise.
6512 (vqrdmulhq_lane_s32): Likewise.
6513 (vqrdmulh_lane_s16): Likewise.
6514 (vqrdmulh_lane_s32): Likewise.
6515 (vmul_n_s16): Likewise.
6516 (vmul_n_s32): Likewise.
6517 (vmul_n_f32): Likewise.
6518 (vmul_n_u16): Likewise.
6519 (vmul_n_u32): Likewise.
6520 (vmulq_n_s16): Likewise.
6521 (vmulq_n_s32): Likewise.
6522 (vmulq_n_f32): Likewise.
6523 (vmulq_n_u16): Likewise.
6524 (vmulq_n_u32): Likewise.
6525 (vmull_n_s16): Likewise.
6526 (vmull_n_s32): Likewise.
6527 (vmull_n_u16): Likewise.
6528 (vmull_n_u32): Likewise.
6529 (vqdmull_n_s16): Likewise.
6530 (vqdmull_n_s32): Likewise.
6531 (vqdmulhq_n_s16): Likewise.
6532 (vqdmulhq_n_s32): Likewise.
6533 (vqdmulh_n_s16): Likewise.
6534 (vqdmulh_n_s32): Likewise.
6535 (vqrdmulhq_n_s16): Likewise.
6536 (vqrdmulhq_n_s32): Likewise.
6537 (vqrdmulh_n_s16): Likewise.
6538 (vqrdmulh_n_s32): Likewise.
6539 (vmla_n_s16): Likewise.
6540 (vmla_n_s32): Likewise.
6541 (vmla_n_f32): Likewise.
6542 (vmla_n_u16): Likewise.
6543 (vmla_n_u32): Likewise.
6544 (vmlaq_n_s16): Likewise.
6545 (vmlaq_n_s32): Likewise.
6546 (vmlaq_n_f32): Likewise.
6547 (vmlaq_n_u16): Likewise.
6548 (vmlaq_n_u32): Likewise.
6549 (vmlal_n_s16): Likewise.
6550 (vmlal_n_s32): Likewise.
6551 (vmlal_n_u16): Likewise.
6552 (vmlal_n_u32): Likewise.
6553 (vqdmlal_n_s16): Likewise.
6554 (vqdmlal_n_s32): Likewise.
6555 (vmls_n_s16): Likewise.
6556 (vmls_n_s32): Likewise.
6557 (vmls_n_f32): Likewise.
6558 (vmls_n_u16): Likewise.
6559 (vmls_n_u32): Likewise.
6560 (vmlsq_n_s16): Likewise.
6561 (vmlsq_n_s32): Likewise.
6562 (vmlsq_n_f32): Likewise.
6563 (vmlsq_n_u16): Likewise.
6564 (vmlsq_n_u32): Likewise.
6565 (vmlsl_n_s16): Likewise.
6566 (vmlsl_n_s32): Likewise.
6567 (vmlsl_n_u16): Likewise.
6568 (vmlsl_n_u32): Likewise.
6569 (vqdmlsl_n_s16): Likewise.
6570 (vqdmlsl_n_s32): Likewise.
6572 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6574 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6575 Add cost of alu.arith in simple SImode case.
6577 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6579 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6582 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6584 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6585 (common_handle_option): Move code to finish_options.
6587 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6590 * stor-layout.c (min_align_of_type): Respect user alignment
6593 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6595 * passes.c (remove_cgraph_node_from_order): New.
6596 (do_per_function_toporder): Register cgraph removal
6599 2014-11-17 Terry Guo <terry.guo@arm.com>
6601 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6602 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6603 (generic_vfp): Likewise.
6604 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6606 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6608 PR rtl-optimization/63906
6609 * lra-remat.c (operand_to_remat): Check SP and
6610 frame_pointer_required.
6612 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6614 * doc/invoke.texi (floop-unroll-and-jam): Document
6615 (loop-unroll-jam-size): Likewise.
6616 (loop-unroll-jam-depth): Likewise.
6617 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6618 (getScheduleForBandList): Replaced unsafe union_map reuse.
6620 2014-11-17 Andrew Pinski <apinski@cavium.com>
6622 * config/aarch64/thunderx.md: Remove copyright which should not
6625 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6626 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6628 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6629 Altivec style vector loads that ignore the bottom 3 bits of the
6631 (rs6000_debug_addr_mask): New function to print the addr_mask
6632 values if debugging.
6633 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6635 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6636 vector loads that ignore the bottom 3 bits of the address. Allow
6637 pre-increment and pre-decrement on floating point, even if the
6638 -mupper-regs-{sf,df} options were used.
6639 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6640 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6641 placement for direct move support.
6642 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6643 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6644 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6645 depending on the underlying cpu.
6646 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6647 (rs6000_secondary_reload_toc_costs): Helper function to identify
6648 costs of a TOC load for secondary reload support.
6649 (rs6000_secondary_reload_memory): Helper function for secondary
6650 reload, to determine if a particular memory operation is directly
6651 handled by the hardware, or if it needs support from secondary
6652 reload to create a valid address.
6653 (rs6000_secondary_reload): Rework code, to be clearer. If the
6654 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6655 reload scalar values, since the FPR registers have D-form
6656 addressing. Move most of the code handling memory to the function
6657 rs6000_secondary_reload_memory, and use the reg_addr structure to
6658 determine what type of address modes are supported. Print more
6659 debug information if -mdebug=addr.
6660 (rs6000_secondary_reload_inner): Rework entire function to be more
6661 general. Use the reg_addr bits to determine what type of
6662 addressing is supported.
6663 (rs6000_preferred_reload_class): Rework. Move constant handling
6664 into a single place. Prefer using FLOAT_REGS for scalar floating
6666 (rs6000_secondary_reload_class): Use a FPR register to move a
6667 value from an Altivec register to a GPR, and vice versa. Move VSX
6668 handling above traditional floating point.
6670 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6671 Delete some spaces in the constraints.
6672 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6673 allow using FPR registers to load/store an Altivec register for
6674 scalar floating point types.
6675 (SF->SF move peephole2): Likewise.
6676 (DFmode splitter): Add a define_split to move floating point
6677 constants to the constant pool before register allocation.
6678 Normally constants are put into the pool immediately, but
6679 -ffast-math delays putting them into the constant pool for the
6680 reciprocal approximation support.
6681 (SFmode splitter): Likewise.
6683 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6684 (-mupper-regs-sf): Likewise.
6686 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6687 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6689 (-mupper-regs): New combination option that sets -mupper-regs-sf
6690 and -mupper-regs-df by default if the cpu supports the instructions.
6692 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6693 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6695 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6696 to return true if the operand is a floating point constant that
6697 must be put into the constant pool, before register allocation
6700 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6701 -mupper-regs-df by default.
6702 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6703 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6704 various -mcpu=... options.
6705 (power7 cpu): Enable -mupper-regs-df by default.
6707 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6710 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6712 * ira-conflicts.c (build_conflict_bit_table): Add the current
6713 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6715 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6717 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6718 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6719 (devirtualization_time_bonus): Use it.
6720 (ipcp_discover_new_direct_edges): Likewise.
6721 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6722 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6724 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6726 * tree.c (free_lang_data_in_decl): Set
6727 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6729 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6731 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6732 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6734 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6736 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6737 (cgraph_node::cannot_return_p): Likewise.
6738 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6739 (cgraph_edge::maybe_hot_p): Likewise.
6741 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6743 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6744 (optimize_function_for_size_p): Likewise.
6745 (probably_never_executed): Likewise; replace cfun by fun.
6747 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6749 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6750 variant reading from memory and assembling to ld1.
6752 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6753 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6754 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6755 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6756 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6757 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6758 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6760 2014-11-17 Jason Merrill <jason@redhat.com>
6762 * tree-inline.c (copy_fn): New.
6763 * tree-inline.h: Declare it.
6765 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6767 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6768 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6769 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6770 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6771 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6772 * config/aarch64/iterators.md (VD1): Remove.
6774 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6776 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6777 AARCH64_FL_CRYPTO from feature flags.
6778 (cortex-a57): Likewise.
6779 (cortex-a57.cortex-a53): Likewise.
6781 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6783 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6784 DECL_FUNCTION_SPECIFIC_TARGET.
6785 * i386.c (ix86_set_current_function): Handle explicit default options.
6787 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6789 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6791 (expand_builtin_mempcpy_with_bounds): Likewise.
6792 (expand_builtin_memset_with_bounds): Likewise.
6794 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6796 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6797 ipa-ref.h, plugin-api.h.
6798 (get_string_length): Handle calls with bounds.
6799 (adjust_last_stmt): Likewise.
6800 (handle_builtin_strchr): Likewise.
6801 (handle_builtin_strcpy): Likewise.
6802 (handle_builtin_memcpy): Likewise.
6803 (handle_builtin_strcat): Likewise.
6805 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6807 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6808 (chkp_get_nochk_fndecl): New.
6809 (chkp_optimize_string_function_calls): New.
6810 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6811 * tree-cfg.h (insert_cond_bb): New.
6812 * tree-cfg.c (insert_cond_bb): New.
6814 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6816 * tree-core.h (built_in_class): Add builtin codes to be used
6817 by Pointer Bounds Checker for instrumented builtin functions.
6818 * tree-streamer-in.c: Include ipa-chkp.h.
6819 (streamer_get_builtin_tree): Created instrumented decl if
6821 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6822 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6824 (chkp_maybe_clone_builtin_fndecl): New.
6825 (chkp_maybe_create_clone): Support builtin function decls.
6826 (chkp_versioning): Clone builtin functions.
6827 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6828 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6829 (chkp_replace_function_pointer): Likewise.
6830 * builtins.c (expand_builtin_memcpy_args): New.
6831 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6832 (expand_builtin_memcpy_with_bounds): New.
6833 (expand_builtin_mempcpy_with_bounds): New.
6834 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6835 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6836 (expand_builtin_memset_with_bounds): New.
6837 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6838 (expand_builtin_with_bounds): New.
6839 * builtins.h (expand_builtin_with_bounds): New.
6840 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6842 2014-11-17 Dodji Seketeli <dodji@redhat.com>
6844 * gimple.h (gimple_set_visited, gimple_visited_p)
6845 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
6846 comments to these accessors.
6848 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
6850 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
6851 Set avr_log_details to "all".
6853 2014-11-17 Richard Biener <rguenther@suse.de>
6856 * match.pd: Guard X / CST -> X * CST' transform against
6859 2014-11-17 Terry Guo <terry.guo@arm.com>
6861 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
6864 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
6866 * ifcvt.c (HAVE_cbranchcc4): Define.
6867 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6868 Use HAVE_cbranchcc4.
6870 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6872 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6873 aarch64_convert_mode, aarch64_gen_ccmp_first,
6874 aarch64_gen_ccmp_next): New functions.
6875 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
6877 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6879 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
6880 * aarch64.c (aarch64_nzcv_codes): New data.
6881 (aarch64_ccmp_mode_to_code): New.
6882 (aarch64_print_operand): Output nzcv.
6883 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
6885 (cstore<mode>4): Handle ccmp_cc_register.
6886 * config/aarch64/predicates.md (const0_operand): New.
6888 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6890 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
6891 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
6892 extacted from aarch64_get_condition_code.
6893 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
6894 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
6896 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6898 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
6899 aarch64_ccmp_operand): New constraints.
6901 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6903 * Makefile.in: Add ccmp.o.
6906 * expr.c: include "ccmp.h"
6907 (expand_cond_expr_using_cmove): Handle VOIDmode.
6908 (expand_expr_real_1): Try to expand ccmp.
6910 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6912 * cfgexpand.c (expand_gimple_cond): Check ccmp.
6913 * expmed.c (emit_cstore): Make it global.
6914 * expmed.h: #include "insn-codes.h"
6915 (emit_cstore): New prototype.
6916 * expr.c (expand_operands): Make it global.
6917 * expr.h (expand_operands): New prototype.
6918 * optabs.c (get_rtx_code): Make it global.
6919 * optabs.h (get_rtx_code): New prototype.
6921 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6923 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
6924 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6925 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6927 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
6930 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
6931 Always combine comparisons or conversions from booleans.
6933 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6935 * ipa-polymorphic-call.c
6936 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
6937 (ipa_polymorphic_call_context::meet_speculation_with): New function.
6938 (ipa_polymorphic_call_context::combine_with): Handle types in
6939 construction better.
6940 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
6942 (ipa_polymorphic_call_context::meet_with): New function.
6943 * cgraph.h (class ipa_polymorphic_call_context): Add
6944 meet_width, meet_speculation_with; constify speculation_consistent_p.
6945 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
6946 with incomming context.
6947 (propagate_context_accross_jump_function): Likewise; be more cureful.
6948 about set_contains_variable.
6949 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
6950 (find_more_scalar_values_for_callers_subset): Fix.
6951 (find_more_contexts_for_caller_subset): Perform meet operation.
6953 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6955 * passes.c (execute_one_pass): Do not apply all transforms prior
6956 every simple IPA pass.
6957 * cgraphunit.c: Do not include fibheap.h
6958 (expand_thunk): Use get_untransformed_body.
6959 (cgraph_node::expand): Likewise.
6960 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
6961 * cgraph.c (release_function_body): Do not push cfun when CFG
6963 (cgraph_node::get_untransformed_body): Break out from ...
6964 (cgraph_node::get_body): ... here; add code to apply all transforms.
6965 * cgraph.h (cgraph_node): Add get_untransformed_body.
6966 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
6967 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6968 * tree-inline.c (expand_call_inline): LIkewise.
6969 * i386.c (ix86_reset_to_default_globals): Break out from ...
6970 (ix86_set_current_function): ... here;
6971 (ix86_reset_previous_fndecl): Use it.
6972 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
6974 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
6976 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
6977 * doc/tm.texi: Regenerate.
6979 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
6981 * config/sh/sh.c: Do not include algorithm.
6982 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
6984 (sh_emit_compare_and_branch): Ditto.
6985 (sh_emit_compare_and_set): Ditto.
6986 * config/sh/sh.md (replacement peephole2): Ditto.
6987 (cstore4_media): Ditto.
6990 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6992 * lra-remat.c (cand_transf_func): Process regno for
6993 rematerialization too.
6994 * lra.c (lra): Switch on rematerialization pass.
6996 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6998 * lra.c (lra): Switch off rematerialization pass.
7000 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
7002 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
7003 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
7004 instead of builtins.
7005 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
7007 (_mm_sqrt_sd): Fix comment.
7008 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7009 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7010 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7011 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
7012 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
7013 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
7014 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
7015 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
7016 Use vector extensions instead of builtins.
7017 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
7018 _mm_mullo_epi32): Likewise.
7019 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
7021 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
7022 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
7023 Use vector extensions instead of builtins.
7024 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
7025 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
7026 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
7027 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
7028 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
7029 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
7030 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
7031 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
7033 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
7034 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
7035 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
7036 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
7037 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
7038 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
7039 _mm512_div_ps): Use vector extensions instead of builtins.
7040 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
7041 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
7042 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
7043 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
7046 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
7048 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
7049 * lto-streamer.h (cl_optimization_stream_out,
7050 cl_optimization_stream_in): Declare.
7051 * optc-save-gen.awk: Generate cl_optimization LTO streaming
7052 and hashing routines.
7053 * opth-gen.awk: Add prototype of cl_optimization_hash.
7054 * tree-streamer-in.c (unpack_ts_optimization): Remove.
7055 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
7056 * tree-streamer-out.c (pack_ts_optimization): Remove.
7057 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
7059 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
7061 * common.opt (flag_loop_unroll_and_jam): New flag.
7062 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
7064 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
7065 * graphite-poly.h (struct poly_bb:map_sepclass): New field
7066 * graphite-poly.c (new_poly_bb): Initialization for new field.
7067 (apply_poly_transforms): Support for unroll and jam flag.
7068 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
7070 (generate_luj_sepclass_opt): Build the separation class option.
7071 (generate_luj_options): Set unroll and jam options.
7072 (set_options): Support for unroll and jam options.
7073 (scop_to_isl_ast): Likewise
7074 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
7075 computing the separating class map.
7076 (optimize_isl): Support for the separating class map.
7077 (apply_schedule_map_to_scop): Likewise.
7078 (getScheduleMap): Likewise.
7079 (getScheduleForBand): Likewise.
7080 (getScheduleForBandList): Likewise.
7081 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
7082 * toplev.c (process_options) Likewise.
7084 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7086 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
7088 (replace_loop_annotate): ...here. Call it on the header and on the
7089 latch block, if any. Restore proper behavior of final cleanup.
7091 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7093 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
7094 for max-completely-peeled-insns limit.
7096 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7098 * ipa-prop.h (ipa_known_type_data): Remove.
7099 (ipa_binfo_from_known_type_jfunc): Remove.
7101 2014-11-14 Andrew Pinski <apinski@cavium.com>
7103 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
7105 * config/aarch64/aarch64.md: Include thunderx.md.
7106 (generic_sched): Set to no for thunderx.
7107 * config/aarch64/thunderx.md: New file.
7109 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7111 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
7114 * config/rs6000/vector.md (VEC_R): Move secondary reload support
7115 insns to rs6000.md from vector.md.
7116 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
7117 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
7118 (vec_reload_and_plus_<mptrsize>): Likewise.
7120 * config/rs6000/rs6000.md (Fa): New mode attribute to give
7121 constraint for the Altivec registers for a type.
7122 (RELOAD): New mode iterator for all of the types that have
7123 secondary reload address support to load up a base register.
7124 (extendsfdf2_fpr): Use correct constraint.
7125 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
7127 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
7128 Generate the non-VSX instruction if all registers were FPRs. Do
7129 not use the patterns in vsx.md for scalar operations.
7130 (floatsi<mode>2_lfiwax_mem): Likewise.
7131 (floatunssi<mode>2_lfiwzx): Likewise.
7132 (floatunssi<mode>2_lfiwzx_mem): Likewise.
7133 (fix_trunc<mode>di2_fctidz): Likewise.
7134 (fixuns_trunc<mode>di2_fctiduz): Likewise.
7135 (fctiwz_<mode>): Likewise.
7136 (fctiwuz_<mode>): Likewise.
7138 (floatdidf2_fpr): Likewise.
7139 (floatdidf2_mem): Likewise.
7140 (floatunsdidf2): Likewise.
7141 (floatunsdidf2_fcfidu): Likewise.
7142 (floatunsdidf2_mem): Likewise.
7143 (floatdisf2_fcfids): Likewise.
7144 (floatdisf2_mem): Likewise.
7145 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7146 it more obvious that the code is for pre-ISA 2.06 machines.
7147 (floatdisf2_internal2): Likewise.
7148 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7149 Generate the non-VSX instruction if all registers were FPRs. Do
7150 not use the patterns in vsx.md for scalar operations.
7151 (floatunsdisf2_mem): Likewise.
7152 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7153 handlers here from vector.md, and expand the types we generate
7154 reload handlers for.
7155 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7156 (vec_reload_and_plus_<mptrsize>): Likewise.
7158 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7159 vector forms of the instructions. Move VSX scalar forms to
7160 rs6000.md, and add support for -mupper-regs-sf.
7161 (vsx_floatuns<VSi><mode>2): Likewise.
7162 (vsx_fix_trunc<mode><VSi>2): Likewise.
7163 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7164 (vsx_float_fix_<mode>2): Delete DF version, rename to
7165 vsx_float_fix_v2df2.
7166 (vsx_float_fix_v2df2): Likewise.
7168 2014-11-14 Martin Jambor <mjambor@suse.cz>
7170 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7171 (ipa_pass_through_data): Removed field type_preserved.
7172 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7173 (ipa_jump_func): Removed field known_type.
7174 (ipa_get_jf_known_type_offset): Removed.
7175 (ipa_get_jf_known_type_base_type): Likewise.
7176 (ipa_get_jf_known_type_component_type): Likewise.
7177 (ipa_get_jf_ancestor_type): Likewise.
7178 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7179 (ipa_get_jf_pass_through_result): Likewise.
7180 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7181 (values_equal_for_ipcp_p): Removed BINFO handling.
7182 (ipa_get_indirect_edge_target_1): Updated comment.
7183 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7184 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7185 (ipa_set_jf_known_type): Removed.
7186 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7188 (ipa_set_jf_arith_pass_through): Likewise.
7189 (ipa_set_ancestor_jf): Likewise.
7190 (ipa_binfo_from_known_type_jfunc): Removed.
7191 (prop_type_change_info): Removed fields known_current_type and
7192 multiple_types_encountered.
7193 (extr_type_from_vtbl_ptr_store): Removed.
7194 (check_stmt_for_type_change): Do not attempt to identify changed type.
7195 (detect_type_change_from_memory_writes): Do not set the removed fields,
7196 always set jfunc to unknown.
7197 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7198 (compute_complex_ancestor_jump_func): Likewise.
7199 (compute_known_type_jump_func): Removed.
7200 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7201 change. Do not comute known type jump functions.
7202 (combine_known_type_and_ancestor_jfs): Removed.
7203 (update_jump_functions_after_inlining): Removed handling of
7204 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7205 (ipa_write_jump_function): Do not stream removed fields or known type
7207 (ipa_read_jump_function): Likewise.
7209 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7211 * lra-int.h (lra_create_live_ranges): Add parameter.
7212 * lra-lives.c (temp_bitmap): Move higher.
7213 (initiate_live_solver): Move temp_bitmap initialization into
7214 lra_live_ranges_init.
7215 (finish_live_solver): Move temp_bitmap clearing into
7217 (process_bb_lives): Add parameter. Use it to control live info
7218 update and dead insn elimination. Pass it to mark_regno_live and
7220 (lra_create_live_ranges): Add parameter. Pass it to
7222 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7223 initiate_live_solver and finish_live_solver.
7224 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7225 Use temp_bitmap to update avail_cands.
7226 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7227 check with lra_need_for_spill_p after live range pass. Switch on
7228 rematerialization pass.
7230 2014-11-14 Martin Jambor <mjambor@suse.cz>
7232 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7233 agg_preserved flag instead.
7234 (ipa_get_jf_ancestor_type_preserved): Likewise.
7235 (ipa_node_params): Rename known_vals to known_csts, update all users.
7236 New field known_contexts.
7237 (ipa_get_indirect_edge_target): Update prototype.
7238 (ipcp_poly_ctx_values_pool): Declare.
7239 (ipa_context_from_jfunc): Likewise.
7240 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7241 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7242 parameter newline of method dump.
7243 * ipa-cp.c (ctxlat): New field.
7244 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7245 (ipcp_poly_ctx_values_pool):New variable.
7246 (ipa_get_poly_ctx_lat): New function.
7247 (print_ipcp_constant_value): New overloaded function for contexts.
7248 (print_all_lattices): Also print contexts.
7249 (ipa_topo_info): New field contexts;
7250 (set_all_contains_variable): Also set the flag in the context lattice.
7251 (initialize_node_lattices): Likewise for flag bottom.
7252 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7253 (ipa_value_from_jfunc): Likewise.
7254 (ipa_context_from_jfunc): New function.
7255 (values_equal_for_ipcp_p): New overloaded function for contexts.
7256 (allocate_and_init_ipcp_value): Construct the value.
7257 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7258 (propagate_scalar_accross_jump_function): Removed handling of
7259 KNOWN_TYPE jump functions.
7260 (propagate_context_accross_jump_function): New function.
7261 (propagate_constants_accross_call): Also propagate contexts.
7262 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7263 (ipa_get_indirect_edge_target): Likewise.
7264 (devirtualization_time_bonus): Likewise.
7265 (gather_context_independent_values): Create and populate known_contexts
7266 vector rather than known_binfos.
7267 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7268 (estimate_local_effects): Likewise.
7269 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7271 (ipcp_propagate_stage): Also propagate effects of contexts.
7272 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7273 ipa_get_indirect_edge_target_1.
7274 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7275 (create_specialized_node): Work on contexts rather than BINFOs.
7276 (find_more_contexts_for_caller_subset): New function.
7277 (known_contexts_useful_p): New function.
7278 (copy_useful_known_contexts): Likewise.
7279 (modify_known_vectors_with_val): Likewise.
7280 (ipcp_val_in_agg_replacements_p): Renamed to
7281 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7283 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7284 (decide_about_value): Work on contexts rather than BINFOs.
7285 (decide_whether_version_node): Likewise.
7286 (ipcp_driver): Initialize the new alloc pool.
7287 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7288 printing of edge contexts.
7289 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7290 type_preserved to false.
7291 (update_jump_functions_after_inlining): Use access function instead of
7292 reading agg_preserved directly. Store combined context in the ancestor
7294 (try_make_edge_direct_virtual_call): Work on contexts rather than
7296 (update_indirect_edges_after_inlining): Get context from
7297 ipa_context_from_jfunc.
7298 (ipa_free_node_params_substructures): Free also known_contexts.
7299 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7300 (ipa_free_all_structures_after_iinln): Likewise.
7301 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7302 contexts rather than BINFOs.
7303 (estimate_edge_devirt_benefit): Likewise.
7304 (estimate_edge_size_and_time): Likewise.
7305 (estimate_calls_size_and_time): Likewise.
7306 (estimate_node_size_and_time): Likewise.
7307 (estimate_ipcp_clone_size_and_time): Likewise.
7308 (do_estimate_edge_time): Likewise.
7309 (do_estimate_edge_size): Likewise.
7310 (do_estimate_edge_hints): Likewise.
7311 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7312 parameter newline, ouput newline only when it is set.
7313 (ipa_polymorphic_call_context::equal_to): New method.
7315 2014-11-14 Martin Jambor <mjambor@suse.cz>
7317 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7318 users converted to the same specialization as the using class/function
7319 or specialization on tree.
7320 (ipcp_value): Likewise.
7321 (ipcp_lattice): Likewise.
7322 (ipcp_agg_lattice): Now derived from tree specialization of
7324 (values_topo): Moved to new class value_topo_info.
7325 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7326 Updated all callers.
7327 (print_lattice): Turned into ipcp_lattice::print. Updated all
7329 (value_topo_info): New class template.
7330 (ipa_topo_info): New field constants. New constructor.
7331 (build_toporder_info): Do not clear stack_top, only checkign assert
7333 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7334 Updated all callers.
7335 (set_lattice_contains_variable): Turned into
7336 ipcp_lattice::set_contains_variable. Updated all callers.
7337 (add_value_source): Turned into ipcp_value::add_source. Updated all
7339 (allocate_and_init_ipcp_value): New function.
7340 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7341 parameter got default a value. Updated all callers.
7342 (add_scalar_value_to_lattice): Removed, users converted to using
7343 ipcp_lattice::add_value with default value of the last parameter.
7344 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7346 (propagate_effects): Made method of value_topo_info.
7347 (cgraph_edge_brings_value_p): Now a template function.
7348 (get_info_about_necessary_edges): Likewise.
7349 (gather_edges_for_value): Likewise.
7350 (perhaps_add_new_callers): Likewise.
7351 (decide_about_value): Likewise.
7352 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7354 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7356 * doc/install.texi (--with-diagnostics-color=): Document.
7358 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7359 IFN_GOMP_SIMD_LANE without lhs as useless.
7361 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7362 (varying_state): Add true for can_free.
7363 (check_call): For builtin or internal !nonfreeing_call_p set
7365 (check_stmt): For asm volatile and asm with "memory" set
7367 (analyze_function): Clear local->can_free initially, continue
7368 calling check_stmt until all flags are computed, dump can_free
7370 (pure_const_write_summary): Write can_free flag.
7371 (pure_const_read_summary): Read it back.
7372 (propagate_pure_const): Propagate also can_free flag, set
7373 w->nonfreeing_fn if it is false after propagation.
7374 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7375 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7376 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7377 Also return true for IFN_ABNORMAL_DISPATCHER.
7378 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7379 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7380 (input_overwrite_node): Read it back.
7382 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7383 Marek Polacek <polacek@redhat.com>
7385 * sanopt.c: Include tree-ssa-operands.h.
7386 (struct sanopt_info): Add has_freeing_call_p,
7387 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7388 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7389 being_visited_p fields.
7390 (struct sanopt_ctx): Add asan_check_map field.
7391 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7392 maybe_optimize_asan_check_ifn): New functions.
7393 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7395 (pass_sanopt::execute): Call sanopt_optimize even for
7397 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7400 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7402 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7403 'if (extract_scalar_result)' to the only place that it is true.
7405 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7407 * config.gcc (default_gnu_indirect_function): Set to yes
7408 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7411 2014-11-14 Felix Yang <felix.yang@huawei.com>
7412 Jiji Jiang <jiangjiji@huawei.com>
7414 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7415 VALL mode iterator instead of VALLDI.
7417 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7419 * optc-save-gen.awk: Output cl_target_option_eq,
7420 cl_target_option_hash, cl_target_option_stream_out,
7421 cl_target_option_stream_in functions.
7422 * opth-gen.awk: Output prototypes for
7423 cl_target_option_eq and cl_target_option_hash.
7424 * lto-streamer.h (cl_target_option_stream_out,
7425 cl_target_option_stream_in): Declare.
7426 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7427 (cl_option_hash_eq): Use cl_target_option_eq.
7428 * tree-streamer-in.c (unpack_value_fields): Stream in
7430 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7431 DECL_FUNCTION_SPECIFIC_TARGET.
7432 (hash_tree): Hash TREE_TARGET_OPTION; visit
7433 DECL_FUNCTION_SPECIFIC_TARGET.
7434 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7436 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7438 2014-11-14 Richard Biener <rguenther@suse.de>
7440 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7441 valueization hook defaulted to no_follow_ssa_edges.
7442 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7443 2nd valueization hook to gimple_simplify.
7444 * tree-ssa-ccp.c (valueize_op_1): New function to be
7445 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7447 * tree-vrp.c (vrp_valueize_1): New function to be
7448 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7449 (vrp_visit_assignment_or_call): Adjust.
7451 2014-11-14 Marek Polacek <polacek@redhat.com>
7453 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7454 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7455 folding with TYPE_OVERFLOW_SANITIZED.
7457 2014-11-14 Marek Polacek <polacek@redhat.com>
7460 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7461 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7462 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7464 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7465 instrument BUILT_IN_UNREACHABLE here.
7466 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7468 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7469 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7470 SANITIZE_UNREACHABLE.
7471 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7472 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7474 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7476 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7477 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7479 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7481 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7483 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7484 vect_create_epilog_for_reduction): Likewise.
7485 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7487 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7490 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7491 numerical immediate handling to...
7492 (aarch64_internal_mov_immediate): ...this. New.
7493 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7494 (aarch64_mov_operand_p): Relax predicate.
7495 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7496 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7498 (*movdi_aarch64): Likewise.
7500 2014-11-14 Richard Biener <rguenther@suse.de>
7502 * match.pd: Implement more binary patterns exercised by
7504 * fold-const.c (sing_bit_p): Export.
7505 (exact_inverse): Likewise.
7506 (fold_binary_loc): Remove patterns here.
7507 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7508 * fold-const.h (sing_bit_p): Declare.
7509 (exact_inverse): Likewise.
7511 2014-11-14 Marek Polacek <polacek@redhat.com>
7513 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7515 2014-11-14 Richard Biener <rguenther@suse.de>
7517 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7518 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7519 (parser::parse_op): Allow to iterate over predicates.
7521 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7523 * configure.ac (--with-diagnostics-color): New configure
7524 option, default to --with-diagnostics-color=auto.
7525 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7526 to determine -fdiagnostics-color= option default.
7527 * doc/invoke.texi (-fdiagnostics-color=): Document new
7529 * configure: Regenerated.
7530 * config.in: Regenerated.
7532 2014-11-13 Teresa Johnson <tejohnson@google.com>
7534 PR tree-optimization/63841
7535 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7537 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7539 * timevar.def (TV_SCHED_FUSION): New time var.
7540 * passes.def (pass_sched_fusion): New pass.
7541 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7542 (extract_base_offset_in_addr, fusion_load_store): New.
7543 (arm_sched_fusion_priority): New.
7544 (arm_option_override): Disable scheduling fusion by default
7545 on non-armv7 processors or ldrd/strd isn't preferred.
7546 * sched-int.h (struct _haifa_insn_data): New field.
7547 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7548 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7549 (pass_data_sched_fusion, pass_sched_fusion): New.
7550 (make_pass_sched_fusion): New.
7551 * haifa-sched.c (sched_fusion): New.
7552 (insn_cost): Handle sched_fusion.
7553 (priority): Handle sched_fusion by calling target hook.
7554 (enum rfs_decision): New enum value.
7555 (rfs_str): New element for RFS_FUSION.
7556 (rank_for_schedule): Support sched_fusion.
7557 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7558 (schedule_block, fix_tick_ready): Handle sched_fusion.
7559 * common.opt (flag_schedule_fusion): New.
7560 * tree-pass.h (make_pass_sched_fusion): New.
7561 * target.def (fusion_priority): New.
7562 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7563 * doc/tm.texi: Regenerated.
7564 * doc/invoke.texi (-fschedule-fusion): New.
7566 2014-11-13 Rong Xu <xur@google.com>
7569 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7570 footer, instead of unconditionally overwritten.
7572 2014-11-14 Martin Jambor <mjambor@suse.cz>
7574 * cgraph.h (clear_outer_type): Make public. Fix comment.
7575 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7576 clear_outer_type when resetting the context.
7578 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7581 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7582 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7584 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7586 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7587 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7588 * tree-inline.c (estimate_operator_cost): Likewise.
7589 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7592 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7593 against VEC_RSHIFT_EXPR.
7595 * optabs.h (expand_vec_shift_expr): Remove.
7596 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7597 (expand_vec_shift_expr): Remove.
7598 * tree.def (VEC_RSHIFT_EXPR): Remove
7600 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7602 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7603 (shift_amt_for_vec_perm_mask): New.
7604 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7605 and mask appropriate.
7607 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7608 (have_whole_vector_shift): New.
7609 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7610 looking for vec_shr_optab.
7611 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7612 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7613 instead of VEC_RSHIFT_EXPRs.
7615 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7617 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7619 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7620 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7622 * tree_vec_data_refs.c (vect_permute_load_chain,
7623 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7624 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7626 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7628 (vect_gen_perm_mask_checked): New.
7629 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7630 (vect_gen_perm_mask_any): ...this.
7631 (perm_mask_for_reverse): Call can_vec_perm_p and
7632 vect_gen_perm_mask_checked.
7634 2014-11-13 Felix Yang <felix.yang@huawei.com>
7636 * ipa-utils.h: Fix typo in comments.
7637 * ipa-profile.c: Likewise.
7638 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7640 2014-11-13 Teresa Johnson <tejohnson@google.com>
7642 PR tree-optimization/63841
7643 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7645 2014-11-13 Teresa Johnson <tejohnson@google.com>
7647 PR tree-optimization/63841
7648 * tree.c (initializer_zerop): A clobber does not zero initialize.
7650 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7652 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7653 does not match the operand mode expected by the insn pattern.
7655 2014-11-13 Richard Biener <rguenther@suse.de>
7657 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7658 and inverted_tcc_comparison_with_nans operator lists.
7659 Use tcc_comparison in the truth_valued_p predicate definition.
7660 Restrict logical_inverted_value with bit_xor to integral types.
7661 Build a boolean true for simplifying x |^ !x because of
7662 vector types. Implement patterns from forward_propagate_comparison
7663 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7664 (get_prop_dest_stmt): Likewise.
7665 (pass_forwprop::execute): Do not call it.
7666 * fold-const.c (fold_unary_loc): Remove the pattern here.
7668 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7669 Andrey Turetskiy <andrey.turetskiy@intel.com>
7671 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7673 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7674 accelerator compiler.
7675 * config/i386/intelmic-mkoffload.c: New file.
7676 * config/i386/t-intelmic: Ditto.
7678 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7679 Andrey Turetskiy <andrey.turetskiy@intel.com>
7680 Ilya Verbin <ilya.verbin@intel.com>
7682 * common.opt (foffload, foffload-abi): New options.
7683 * config/i386/i386.c (ix86_offload_options): New static function.
7684 (TARGET_OFFLOAD_OPTIONS): Define.
7685 * coretypes.h (enum offload_abi): New enum.
7686 * doc/tm.texi: Regenerate.
7687 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7688 * gcc.c (offload_targets): New static variable.
7689 (handle_foffload_option): New static function.
7690 (driver_handle_option): Handle OPT_foffload_.
7691 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7692 according to offload_targets.
7693 * hooks.c (hook_charptr_void_null): New hook.
7694 * hooks.h (hook_charptr_void_null): Declare.
7695 * lto-opts.c: Include lto-section-names.h.
7696 (lto_write_options): Append options from target offload_options hook and
7697 store them to offload_lto section. Do not store target-specific,
7698 driver and diagnostic options in offload_lto section.
7699 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7701 (append_compiler_options, append_linker_options)
7702 (append_offload_options): New static functions.
7703 (compile_offload_image): Add new arguments with options.
7704 Call append_compiler_options and append_offload_options.
7705 (compile_images_for_offload_targets): Add new arguments with options.
7706 (find_and_merge_options): New static function.
7707 (run_gcc): Outline options handling into the new functions:
7708 find_and_merge_options, append_compiler_options, append_linker_options.
7709 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7710 Forbid OPT_foffload_abi_ for non-offload compiler.
7711 * target.def (offload_options): New target hook.
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 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7719 (process_command): Tweak path construction for the possibility
7720 of being configured as an offload compiler.
7721 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7722 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7723 (driver::set_up_specs): Tweak path construction for the possibility of
7724 being configured as an offload compiler.
7725 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7726 (offload_names, offloadbegin, offloadend): New static variables.
7727 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7728 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7729 New static functions.
7730 (run_gcc): Determine whether offload sections are present. If so, run
7731 compile_images_for_offload_targets and return the names of new generated
7732 objects to linker. If there are offload sections, but no LTO sections,
7733 then return the copies of input objects without link-time recompilation.
7735 2014-11-13 Richard Biener <rguenther@suse.de>
7737 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7739 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7740 Bernd Schmidt <bernds@codesourcery.com>
7741 Andrey Turetskiy <andrey.turetskiy@intel.com>
7742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7744 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7745 * cgraphunit.c: Include omp-low.h.
7746 * doc/tm.texi: Regenerate.
7747 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7748 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7749 * lto-cgraph.c (output_offload_tables): New function.
7750 (input_offload_tables): Likewise.
7751 * lto-section-in.c (lto_section_name): Add "offload_table".
7752 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7753 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7754 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7755 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7756 (output_offload_tables, input_offload_tables): Declare.
7757 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7758 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7759 (expand_omp_target): Add child_fn into offload_funcs vector.
7760 (add_decls_addresses_to_decl_constructor): New function.
7761 (omp_finish_file): Likewise.
7762 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7763 * target.def (record_offload_symbol): New DEFHOOK.
7764 * toplev.c: Include omp-low.h.
7765 (compile_file): Call omp_finish_file.
7766 * varpool.c: Include omp-low.h.
7767 (varpool_node::get_create): Add decl into offload_vars vector.
7769 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7770 Ilya Tocar <ilya.tocar@intel.com>
7771 Andrey Turetskiy <andrey.turetskiy@intel.com>
7772 Bernd Schmidt <bernds@codesourcery.com>
7774 * cgraph.c: Include context.h.
7775 (cgraph_node::create): Set node->offloadable and g->have_offload if
7776 decl have "omp declare target" attribute.
7777 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7778 * cgraphunit.c: Include lto-section-names.h.
7779 (ipa_passes): Call ipa_write_summaries if there is something to write to
7780 OFFLOAD_SECTION_NAME_PREFIX sections.
7781 (symbol_table::compile): Set flag_generate_lto if there is something to
7783 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7784 * context.c (gcc::context::context): Initialize have_offload with false.
7785 * context.h (class context): Add have_offload flag.
7786 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7788 (inline_free_summary): Always remove hooks.
7789 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7790 from non-offloadable nodes while streaming a node into offload section.
7791 (reachable_from_other_partition_p): Likewise.
7792 (select_what_to_stream): New function.
7793 (compute_ltrans_boundary): Do not call
7794 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7795 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7796 (section_name_prefix): Declare.
7797 * lto-streamer.c (section_name_prefix): New variable.
7798 (lto_get_section_name): Use section_name_prefix instead of
7799 LTO_SECTION_NAME_PREFIX.
7800 * lto-streamer.h (select_what_to_stream): Declare.
7801 * omp-low.c: Include context.h.
7802 (is_targetreg_ctx): New function.
7803 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7804 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7805 is_targetreg_ctx function. Replace usage of "omp declare target"
7806 attribute with a cgraph_node flag offloadable.
7807 (expand_omp_target): Set mark_force_output for offloadable functions.
7808 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7809 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7810 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7811 if the node should not be streamed out.
7812 * tree-pass.h (ipa_write_summaries): New bool argument.
7813 * varpool.c: Include context.h.
7814 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7815 decl have "omp declare target" attribute.
7817 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7818 Thomas Schwinge <thomas@codesourcery.com>
7819 Ilya Verbin <ilya.verbin@intel.com>
7820 Andrey Turetskiy <andrey.turetskiy@intel.com>
7822 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7823 (enable_as_accelerator): New variables substituted by configure.
7824 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7825 being configured as an offload compiler.
7826 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7828 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7829 install for the offload compiler.
7830 * config.in: Regenerate.
7831 * configure: Regenerate.
7832 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7833 (enable_as_accelerator): Compute new variables.
7834 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7835 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7836 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7837 * doc/install.texi (Options specification): Document
7838 --enable-as-accelerator-for and --enable-offload-targets.
7840 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7842 PR tree-optimization/63828
7843 * ipa-polymorphic-call.c (possible_placement_new): Check
7844 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
7846 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
7848 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
7849 (REVERSIBLE_CC_MODE): Fix example.
7850 (REVERSE_CONDITION): Fix typo.
7851 * doc/tm.texi: Regenerate.
7853 2014-11-13 Tom de Vries <tom@codesourcery.com>
7855 * omp-low.c (pass_data_expand_omp): Set properties_provided to
7857 (pass_expand_omp::gate): Remove function. Move gate expression to ...
7858 (pass_expand_omp::execute): ... here, as new variable gate. Add early
7859 exit if gate is false.
7860 (pass_data pass_data_expand_omp_ssa): New pass_data.
7861 (class pass_expand_omp_ssa): New pass.
7862 (make_pass_expand_omp_ssa): New function.
7863 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
7864 instead of NEXT_PASS.
7865 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
7866 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
7867 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
7868 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
7869 cfun->omp_expand_needed.
7870 * tree-pass.h: Add define PROP_gimple_eomp.
7871 (make_pass_expand_omp_ssa): Declare.
7873 2014-11-13 Marek Polacek <polacek@redhat.com>
7875 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
7876 * fold-const.c (fold_binary_loc): Use it.
7877 * match.pd: Likewise.
7879 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7881 * lra-lives.c (struct bb_data): Rename to ...
7882 (struct bb_data_pseudos): ... this.
7883 (initiate_live_solver): Update struct name.
7885 2014-11-13 Richard Biener <rguenther@suse.de>
7887 * match.pd: Implement conditional expression patterns.
7888 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
7890 (combine_cond_exprs): Remove.
7891 (pass_forwprop::execute): Do not call combine_cond_exprs.
7892 * fold-const.c (fold_ternary_loc): Remove patterns here.
7893 (pedantic_omit_one_operand_loc): Remove.
7895 2014-12-13 Richard Biener <rguenther@suse.de>
7898 * match.pd: Implement bswap patterns for transforms checked by
7899 gcc.dg/builtin-bswap-8.c.
7901 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
7903 * lra.c (lra): Switch off rematerialization pass.
7905 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
7907 * common.opt (flra-remat): New.
7908 * opts.c (default_options_table): Add entry for flra_remat.
7909 * timevar_def (TV_LRA_REMAT): New.
7910 * doc/invoke.texi (-flra-remat): Add description of the new
7912 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
7913 lra-saves.c. Add lra-remat.c.
7914 * Makefile.in (OBJS): Add lra-remat.o.
7915 * lra-remat.c: New file.
7916 * lra.c: Add info about the rematerialization pass in the top
7918 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
7919 Process unallocatable regs too.
7920 (lra_constraint_new_insn_uid_start): Remove.
7921 (lra): Add code for calling rematerialization sub-pass.
7922 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
7923 (lra_constrain_insn, lra_remat): New prototypes.
7924 (lra_eliminate_regs_1): Add parameter.
7925 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
7926 Process unallocatable hard regs too.
7927 (process_bb_lives): Ditto.
7928 * lra-spills.c (remove_pseudos): Add argument to
7929 lra_eliminate_regs_1 call.
7930 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
7931 for sp offset calculation.
7932 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
7933 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
7935 (process_insn_for_elimination): Add argument for
7936 eliminate_regs_in_insn call.
7937 * lra-constraints.c (get_equiv_with_elimination): Add argument
7938 for lra_eliminate_regs_1 call.
7939 (process_addr_reg): Add parameter. Use it.
7940 (process_address_1): Ditto. Add argument for process_addr_reg
7942 (process_address): Ditto.
7943 (curr_insn_transform): Add parameter. Use it. Add argument for
7944 process_address calls.
7945 (lra_constrain_insn): New function.
7946 (lra_constraints): Add argument for curr_insn_transform call.
7948 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7950 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
7951 (print_ignored_options): Fix quoting.
7952 * opts.c (common_handle_option): Likewise.
7953 (set_debug_level): Likewise.
7954 * toplev.c (process_options): Likewise.
7956 2014-11-12 Jakub Jelinek <jakub@redhat.com>
7959 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
7960 chain instead of node->indirect_calls. Put !can_throw into
7961 conditions of all the loops.
7963 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7965 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
7966 set pic_offset_table_rtx.
7968 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
7970 * common/config/mips/mips-common.c (mips_handle_option): Ensure
7971 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
7972 * config.gcc (--with-fp-32): New option.
7973 (--with-odd-spreg-32): Likewise.
7974 * config.in (HAVE_AS_DOT_MODULE): New config define.
7975 * config/mips/mips-protos.h
7976 (mips_secondary_memory_needed): New prototype.
7977 (mips_hard_regno_caller_save_mode): Likewise.
7978 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
7979 (mips_get_arg_info): Assert that V2SFmode is only handled specially
7980 with TARGET_PAIRED_SINGLE_FLOAT.
7981 (mips_return_mode_in_fpr_p): Likewise.
7982 (mips16_call_stub_mode_suffix): Likewise.
7983 (mips_get_reg_raw_mode): New static function.
7984 (mips_return_fpr_pair): O32 return values span two registers.
7985 (mips16_build_call_stub): Likewise.
7986 (mips_function_value_regno_p): Support both FP return registers.
7987 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
7988 specific cases for TARGET_FPXX to move via memory.
7989 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
7990 than UNITS_PER_FPREG 'span' one register.
7991 (mips_dwarf_frame_reg_mode): New static function.
7992 (mips_file_start): Switch to using .module instead of .gnu_attribute.
7993 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
7994 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
7995 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
7996 slots with two CFI directives even for O32 FP64.
7997 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
7998 saving/restoring callee-saved registers.
7999 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
8000 (mips_secondary_memory_needed): New function.
8001 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
8002 odd-numbered single-precision registers when using TARGET_FLOATXX.
8003 Implement -modd-spreg and defaults.
8004 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
8005 callee-saved behaviour.
8006 (mips_hard_regno_caller_save_mode): Implement.
8007 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
8008 (TARGET_GET_RAW_ARG_MODE): Define target hook.
8009 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
8010 * config/mips/mips.h (TARGET_FLOAT32): New macro.
8011 (TARGET_O32_FP64A_ABI): Likewise.
8012 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
8013 _MIPS_SPFPSET builtin define.
8014 (MIPS_FPXX_OPTION_SPEC): New macro.
8015 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
8016 --with-odd-spreg-32=* to -m[no-]odd-spreg.
8017 (ISA_HAS_ODD_SPREG): New macro.
8018 (ISA_HAS_MXHC1): True for anything other than -mfp32.
8019 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
8020 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
8021 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
8022 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8023 (SECONDARY_MEMORY_NEEDED): Likewise.
8024 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
8025 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
8026 FP64A ABI extensions.
8027 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
8029 * config/mips/mips.opt (mfpxx): New target option.
8030 (modd-spreg): Likewise.
8031 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
8032 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
8034 * config/mips/t-mti-elf: Remove fp64 multilib.
8035 * config/mips/t-mti-linux: Likewise.
8036 * configure.ac: Detect .module support.
8037 * configure: Regenerate.
8038 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
8039 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
8042 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
8045 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
8047 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
8048 (x86_output_mi_thunk): Set PIC register to %r11. Call
8049 ix86_init_large_pic_reg to initialize PIC register.
8051 2014-11-12 Kai Tietz <ktietz@redhat.com>
8053 * sdbout.c (sdbout_symbol): Eliminate register only
8054 if decl isn't a global variable.
8056 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
8058 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
8060 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
8061 qualifier_lane_index.
8062 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
8063 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
8064 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
8066 (aarch64_types_getlane_qualifiers): Rename to...
8067 (aarch64_types_binop_imm_qualifiers): ...this.
8068 (TYPES_SHIFTIMM): Follow renaming.
8069 (TYPES_GETLANE): Rename to...
8070 (TYPE_GETREG): ...this.
8072 (aarch64_types_setlane_qualifiers): Rename to...
8073 (aarch64_type_ternop_imm_qualifiers): ...this.
8074 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
8075 (TYPES_SETLANE): Follow renaming above, and rename self to...
8076 (TYPE_SETREG): ...this.
8078 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
8079 (aarch64_simd_expand_args): Add range check and endianness-flip.
8081 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
8083 * config/aarch64/aarch64-simd.md
8084 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
8085 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
8086 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
8088 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
8089 (aarch64_sq<r>dmulh_lane<mode>): ...this.
8091 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
8092 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
8094 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
8095 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
8097 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
8098 (aarch64_sqdmull_lane<mode>): ...this.
8100 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
8101 (aarch64_sqdmull_laneq<mode>): ...this.
8103 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
8104 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
8105 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
8106 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
8108 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
8109 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
8110 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
8111 bounds check and lane flip.
8113 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
8114 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
8115 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
8117 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
8118 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
8119 renaming of TERNOP_LANE to QUADOP_LANE.
8121 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
8122 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
8123 qualifiers to TERNOP_LANE.
8125 2014-11-12 Tobias Burnus <burnus@net-b.de>
8127 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
8128 * configure.ac: Ditto.
8129 * graphite-interchange.c: Remove HAVE_CLOOG block.
8130 * config.in: Regenerate.
8131 * configure: Regenerate.
8133 2014-11-12 Jiong Wang <jiong.wang@arm.com>
8135 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
8137 (EPILOGUE_USES): Guard the check by epilogue_completed.
8138 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
8140 (aarch64_can_eliminate): Check LR_REGNUM liveness.
8142 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8144 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8146 2014-11-12 Marek Polacek <polacek@redhat.com>
8148 * fold-const.c (fold_binary_loc): Don't fold if the result
8150 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8151 -(-A) -> A): Likewise.
8153 2014-11-12 Richard Biener <rguenther@suse.de>
8155 Merge from match-and-simplify branch
8156 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8158 * genmatch.c (user_id): Add new member is_oper_list.
8159 (user_id::user_id): Add new default argument.
8160 (parser::parse_operator_list): New function.
8161 (parser::parse_for): Allow operator-list.
8162 (parser::parse_pattern): Call parser::parse_operator_list.
8163 (parser::parse_operation): Reject operator-list.
8164 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8166 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8168 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8170 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8172 * genmatch.c (parser::parse_op): Check if predicate is used in
8175 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8177 * genmatch.c (parser::parse_for): Make sure to have a valid
8178 token to report errors at.
8180 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8182 * genmatch.c (parser): Add new member parsing_match_operand.
8183 (parser::parse_operation): Check for conditional convert in result
8185 (parser::parse_expr): Check for commutative operator in result operand.
8186 Check for :type in match operand.
8187 (parser::parse_simplify): Set/unset parsing_match_operand.
8188 (parser::parser): Initialize parsing_match_operand.
8190 2014-10-28 Richard Biener <rguenther@suse.de>
8192 * genmatch.c (parser::parse_for): Properly check for already
8195 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8197 * genmatch.c (error_cb): Adjust for printing warnings.
8198 (warning_at): New function.
8199 (user_id): Add new member used.
8200 (get_operator): Mark user_id as used.
8201 (parse_for): Warn for unused operators.
8203 2014-11-12 Richard Biener <rguenther@suse.de>
8205 * match.pd: Implement simple complex operations cancelling.
8206 * fold-const.c (fold_unary_loc): Remove them here.
8208 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8210 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8211 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8212 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8214 2014-11-12 Richard Biener <rguenther@suse.de>
8216 * genmatch.c (::gen_transform): Add capture_info and
8217 expand_compares arguments.
8218 (struct expr): Add is_generic flag.
8219 (lower_cond): New functions lowering [VEC_]COND_EXPR
8220 conditions to a GENERIC and a GIMPLE variant.
8221 (lower): Call lower_cond.
8222 (cmp_operand): Also compare the is_generic flag.
8223 (capture_info::cinfo): Add cond_expr_cond_p flag.
8224 (capture_info::capture_info): Pass down whether the
8225 expression argument is a COND_EXPR condition.
8226 (capture_info::walk_match): Likewise, mark captures
8227 capturing COND_EXPR conditions with cond_expr_cond_p.
8228 (expr::gen_transform): Pass down whether we need to
8229 expand compares from COND_EXPR conditions.
8230 (capture::gen_transform): Expand compares substituted
8231 from COND_EXPR conditions into non-COND_EXPR conditions.
8232 (dt_operand::gen_gimple_expr): Handle explicitely marked
8233 GENERIC expressions as generic.
8234 (dt_simplify::gen): Pass whether we need to expand
8235 conditions to gen_transform. Handle capture results
8236 which are from COND_EXPR conditions.
8237 (main): Pass gimple flag down to lower.
8239 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8242 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8243 * builtins.c (fold_builtin_arith_overflow): New function.
8244 (fold_builtin_3): Use it.
8245 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8246 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8247 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8248 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8249 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8250 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8251 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8252 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8253 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8254 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8255 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8256 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8257 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8258 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8259 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8260 * expr.c (write_complex_part): Remove prototype, no longer static.
8261 * expr.h (write_complex_part): New prototype.
8262 * function.c (aggregate_value_p): For internal functions return 0.
8263 * gimple-fold.c (arith_overflowed_p): New functions.
8264 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8265 * gimple-fold.h (arith_overflowed_p): New prototype.
8266 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8267 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8269 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8270 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8272 * gimplify.c (gimplify_call_expr): Handle gimplification of
8273 internal calls with lhs.
8274 * internal-fn.c (get_range_pos_neg, get_min_precision,
8275 expand_arith_overflow_result_store): New functions.
8276 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8277 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8278 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8279 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8280 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8281 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8282 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8283 0 as first argument expansion.
8284 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8285 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8286 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8287 Handle MUL_OVERFLOW expansion.
8288 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8290 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8291 expand_neg_overflow, prepare arguments for it.
8292 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8294 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8295 expand_MUL_OVERFLOW): New functions.
8296 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8298 * tree-vrp.c (check_for_binary_op_overflow): New function.
8299 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8300 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8301 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8303 * optabs.def (umulv4_optab): New optab.
8304 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8305 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8306 * doc/extend.texi (Integer Overflow Builtins): Document
8307 __builtin_*_overflow.
8309 2014-11-12 Richard Biener <rguenther@suse.de>
8311 * genmatch.c (capture_info::capture_info): Add missing
8313 (capture_info::walk_match): Fix COND_EXPR handling.
8314 (capture_info::walk_result): Likewise.
8316 2014-11-12 Richard Biener <rguenther@suse.de>
8319 * match.pd: Add missing conversion to the -(T)-X pattern.
8321 2014-11-12 Richard Biener <rguenther@suse.de>
8324 * hash-table.h: Include ggc.h also for generator programs.
8325 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8326 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8328 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8330 PR tree-optimization/63761
8331 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8332 rather than taking it as a parameter. Add some comments to explain the
8333 gsi_move_before in case of load and why canonicalization of bswap into
8334 a rotation is only done for 16bit values.
8335 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8336 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8337 are already in canonical form. Adapt bswap_replace to removal of its
8340 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8342 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8343 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8344 (for_each_rtx_in_insn): Delete.
8345 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8346 * df-core.c: Remove reference to for_each_rtx in comment.
8348 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8350 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8351 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8352 * doc/aarch64-acle-intrinsics.texi: Remove.
8353 * doc/arm-acle-intrinsics.texi: Remove.
8354 * doc/arm-neon-intrinsics.texi: Remove.
8355 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8356 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8357 Extension section. Add references to public ACLE specification.
8359 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8361 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8362 void and adjust accordingly.
8363 (register_edge_assert_for_1): Likewise.
8364 (register_edge_assert_for): Likewise.
8365 (find_conditional_asserts): Likewise.
8366 (find_switch_asserts): Likewise.
8367 (find_assert_locations_1): Likewise.
8368 (find_assert_locations): Likewise.
8369 (insert_range_insertions): Inspect the need_assert_for bitmap.
8371 2014-11-11 Andrew Pinski <apinski@cavium.com>
8374 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8376 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8377 at the end of the file.
8379 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8380 Manuel López-Ibáñez <manu@gcc.gnu.org>
8383 * diagnostic-core.h: Add prototype for fatal_error.
8384 * diagnostic.c (fatal_error): New function fatal_error.
8385 * gcc.c (store_arg): Remove have_o_argbuf_index.
8386 (process_command): Check if input and output files are the same.
8387 * toplev.c (init_asm_output): Check if input and output files are
8390 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8392 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8394 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8397 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8398 smaller than 8 bytes.
8399 (sparc_function_arg_1): Tweak.
8400 (sparc_function_value_1): Tweak.
8402 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8404 * ChangeLog.jit: New.
8405 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8406 sphinx is installed, falling back to "texinfo" otherwise.
8407 (FULL_DRIVER_NAME): New variable, adapted from the
8408 install-driver target. New target, a symlink within the builddir,
8409 linked to "xgcc", for use when running the JIT library from the
8411 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8412 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8414 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8415 sphinx is installed, falling back to "texinfo" otherwise.
8416 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8417 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8418 * configure: Regenerate.
8419 * doc/install.texi (--enable-host-shared): Specify that this is
8420 required when building libgccjit.
8421 (Tools/packages necessary for modifying GCC): Add Sphinx.
8422 * timevar.def (TV_JIT_REPLAY): New.
8427 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8430 * configure: Regenerate.
8432 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8434 * config/aarch64/aarch64-simd.md
8435 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8436 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8437 are punning between float vectors and integer vectors.
8439 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8441 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8442 open-coded swap with std::swap to swap values.
8443 (alpha_emit_setcc): Ditto.
8444 (alpha_emit_conditional_move): Ditto.
8445 (alpha_split_tmode_pair): Ditto.
8447 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8449 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8450 permutations on power of 2 cases.
8452 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8454 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8455 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8457 2014-11-11 Richard Biener <rguenther@suse.de>
8459 * tree-core.h (pedantic_lvalues): Remove.
8460 * fold-const.c (pedantic_lvalues): Likewise.
8461 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8463 2014-11-11 Martin Liska <mliska@suse.cz>
8467 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8469 (sem_variable::merge): Likewise.
8470 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8472 2014-11-11 Richard Biener <rguenther@suse.de>
8474 * match.pd: Implement patterns from associate_plusminus
8475 and factor in differences from the fold-const.c implementation.
8476 * fold-const.c (fold_binary_loc): Remove patterns here.
8477 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8478 (pass_forwprop::execute): Don't call it.
8479 * tree.c (tree_nop_conversion_p): New function, factored
8480 from tree_nop_conversion.
8481 * tree.h (tree_nop_conversion_p): Declare.
8483 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8485 * system.h: Include algorithm and utility.
8486 * rtl.h: Do not include utility here.
8487 * wide-int.h: Ditto.
8488 * tree-vect-data-refs.c (swap): Remove template.
8489 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8491 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8495 * system.h: Include <string> before "safe-ctype.h"
8496 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8497 calls to min/max with wi namespace.
8498 * ipa-chkp.c: Don't include <string>.
8500 2014-11-11 Terry Guo <terry.guo@arm.com>
8502 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8503 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8505 (*thumb1_movhf): Likewise.
8507 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8509 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8510 instead of INT64_MAX.
8512 2014-11-11 Tobias Burnus <burnus@net-b.de>
8514 * doc/install.texi (Prerequisites): Remove CLooG.
8516 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8518 * ipa-inline.c (edge_badness): Adjust.
8519 (inline_small_functions): Likewise.
8520 * predict.c (propagate_freq): Likewise.
8521 (estimate_bb_frequencies): Likewise.
8522 * sreal.c (sreal::dump): Rename from dump_sreal.
8524 (copy): Remove function.
8525 (sreal::shift_right): Rename from sreal_sift_right.
8526 (sreal::normalize): Rename from normalize.
8527 (sreal_init): Remove function.
8528 (sreal::to_int): Rename from sreal_to_int.
8529 (sreal_compare): Remove function.
8530 (sreal::operator+): Rename from sreal_add.
8531 (sreal::operator-): Rename from sreal_sub.
8532 (sreal::operator*): Rename from sreal_mul.
8533 (sreal::operator/): Rename from sreal_div.
8534 * sreal.h (class sreal): Adjust.
8535 (inline sreal &operator+=): New operator.
8536 (inline sreal &operator-=): Likewise.
8537 (inline sreal &operator/=): Likewise.
8538 (inline sreal &operator*=): Likewise.
8539 (inline bool operator!=): Likewise.
8540 (inline bool operator>): Likewise.
8541 (inline bool operator<=): Likewise.
8542 (inline bool operator>=): Likewise.
8544 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8546 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8547 less than MAX_PENDING_LIST_LENGTH.
8548 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8550 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8552 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8553 swap with std::swap to swap values.
8554 (ix86_fixup_binary_operands): Ditto.
8555 (ix86_binary_operator_ok): Ditto.
8556 (ix86_prepare_fp_compare_args): Ditto.
8557 (ix86_expand_branch): Ditto.
8558 (ix86_expand_carry_flag_compare): Ditto.
8559 (ix86_expand_int_movcc): Ditto.
8560 (ix86_prepare_sse_fp_compare_args): Ditto.
8561 (ix86_expand_sse_fp_minmax): Ditto.
8562 (ix86_expand_int_vcond): Ditto.
8563 (ix86_split_long_move): Ditto.
8564 (ix86_expand_sse_comi): Ditto.
8565 (ix86_expand_sse_compare_and_jump): Ditto.
8566 (ix86_expand_sse_compare_mask): Ditto.
8567 * config/i386/i386.md (*add<mode>_1): Ditto.
8568 (addsi_1_zext): Ditto.
8571 (*add<mode>_2): Ditto.
8572 (*addsi_2_zext): Ditto.
8573 (*add<mode>_3): Ditto.
8574 (*addsi_3_zext): Ditto.
8575 (*add<mode>_5): Ditto.
8576 (absneg splitter): Ditto.
8578 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8581 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8584 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8585 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8586 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8587 be reloaded through memory.
8591 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8592 Martin Liska <mliska@suse.cz>
8594 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8595 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8596 gimple_call_chain, gimple_call_fntype and call flags.
8598 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8600 PR rtl-optimization/63620
8601 PR rtl-optimization/63799
8602 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8603 and setting PIC pseudo insns.
8604 (lra_create_live_ranges): Fix the typo.
8606 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8609 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8610 SSA copies whose source and destination names both occur in
8613 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8615 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8616 * common.opt: Remove using of fgraphite-code-generator flag.
8617 * flag-types.h: Likewise.
8618 * graphite.c: Remove using of CLooG.
8619 * graphite-blocking.c: Likewise.
8620 * graphite-dependences.c: Likewise.
8621 * graphite-poly.c: Likewise.
8622 * graphite-poly.h: Likewise.
8623 * graphite-scop-detection.c: Likewise.
8624 * graphite-sese-to-poly.c: Likewise.
8625 * graphite-clast-to-gimple.c: Removed.
8626 * graphite-clast-to-gimple.h: Likewise.
8627 * graphite-htab.h: Likewise.
8629 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8631 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8634 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8636 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8637 (frv_io_handle_use): Use find_all_hard_regs.
8639 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8641 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8642 than an rtx *. Take the regstate_t directly rather than via a void *.
8643 Return a bool rather than an int. Iterate over all subrtxes here.
8644 (frv_registers_conflict_p): Update accordingly.
8646 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8648 * config/frv/frv.c: Include rtl-iter.h.
8649 (frv_acc_group_1): Delete.
8650 (frv_acc_group): Use FOR_EACH_SUBRTX.
8652 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8654 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8655 (frv_clear_registers_used): Delete.
8656 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8658 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8661 * calls.c (initialize_argument_information): When emitting thunk call
8662 use original memory placement of the argument.
8664 2014-11-10 Renlin Li <renlin.li@arm.com>
8667 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8669 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8671 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8672 bswaphi if available.
8674 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8676 * config/nvptx/nvptx.c: New file.
8677 * config/nvptx/nvptx.h: New file.
8678 * config/nvptx/nvptx-protos.h: New file.
8679 * config/nvptx/nvptx.md: New file.
8680 * config/nvptx/t-nvptx: New file.
8681 * config/nvptx/nvptx.opt: New file.
8682 * common/config/nvptx/nvptx-common.c: New file.
8683 * config.gcc: Handle nvptx-*-*.
8685 2014-11-10 Richard Biener <rguenther@suse.de>
8687 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8688 released operands on the free list.
8690 2014-11-10 Richard Biener <rguenther@suse.de>
8692 * match.pd: Implement pattern from simplify_mult.
8693 * tree-ssa-forwprop.c (simplify_mult): Remove.
8694 (pass_forwprop::execute): Do not call simplify_mult.
8696 2014-11-10 Richard Biener <rguenther@suse.de>
8698 PR tree-optimization/63800
8699 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8700 we can restore the previous availability in after_dom_children.
8701 (eliminate_dom_walker::after_dom_children): Restore
8702 previous availability.
8704 2014-11-10 Richard Biener <rguenther@suse.de>
8707 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8708 properly treat the embedded multiplication as commutative
8709 when looking for feeding negates.
8711 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8713 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8715 2014-11-10 Martin Liska <mliska@suse.cz>
8717 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8718 for the test because of default char signedness
8719 on powerpc64 target.
8721 2014-11-10 Richard Biener <rguenther@suse.de>
8723 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8724 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8725 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8727 2014-11-10 Richard Biener <rguenther@suse.de>
8729 * match.pd: Move rest of the conversion combining patterns
8730 from tree-ssa-forwprop.c.
8731 * tree-ssa-forwprop.c (combine_conversions): Remove.
8732 (pass_forwprop::execute): Do not call it.
8734 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8736 * gimple-low.c (lower_function_body): Clear the location of the first
8737 inserted representative return if it also fills in for the fallthru.
8739 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8741 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8742 that bb is always executed to early exit. Use predicate of
8743 cd-equivalent block for join blocks if it exists.
8744 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8745 (tree_if_conversion): Free post-dominance information.
8747 2014-11-09 Jason Merrill <jason@redhat.com>
8749 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8750 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8751 (_mm_mask_cvtusepi32_storeu_epi16)
8752 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8754 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8756 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8758 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8760 PR rtl-optimization/63620
8761 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8762 name. Move to lra.c. Make it external.
8763 (substitute_pseudo_within_insn): Ditto.
8764 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8766 (undo_optional_reloads): Ditto.
8767 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8769 (lra_substitute_pseudo_within_insn): Ditto.
8770 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8771 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8772 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8774 (struct bb_data, bb_data_t, bb_data): New.
8775 (get_bb_data, get_bb_data_by_index): Ditto.
8776 (all_hard_regs_bitmap): New.
8777 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8778 (initiate_live_solver, finish_live_solver): New.
8779 (process_bb_lives): Change return type. Add code updating local
8780 live data and removing dead insns. Pass new argument to
8781 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8782 life info. Return the result.
8783 (lra_create_live_ranges): Add code to do global pseudo live
8785 (lra_live_ranges_init): Call initiate_live_solver.
8786 (lra_live_ranges_finish): Call finish_live_solver.
8787 * lra.c (lra_dump_bitmap_with_title): New.
8788 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8789 from lra-constraints.c.
8791 2014-11-09 Richard Biener <rguenther@suse.de>
8793 * match.pd: Add patterns convering two conversions in a row
8795 * fold-const.c (fold_unary_loc): Remove them here.
8796 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8797 * genmatch.c (dt_node::gen_kids): Check whether we may
8798 follow SSA use-def chains.
8800 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8802 * config/aarch64/aarch64.c: Include rtl-iter.h.
8803 (aarch64_tls_operand_p_1): Delete.
8804 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8806 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8808 * config/arm/arm.c (arm_note_pic_base): Delete.
8809 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8811 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8813 * config/arm/arm.c: Include rtl-iter.h.
8814 (arm_tls_referenced_p_1): Delete.
8815 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8817 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8819 * config/arm/aarch-common.c: Include rtl-iter.h.
8820 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8821 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8822 (arm_get_set_operands): Pass the insn pattern rather than the
8824 (arm_no_early_store_addr_dep): Likewise.
8826 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8828 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8830 (thumb_set_return_address): Likewise.
8832 2014-11-07 Jeff Law <law@redhat.com>
8834 PR tree-optimization/61515
8835 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8836 stack rather than looking at every SSA_NAME's value.
8838 2014-11-07 Richard Biener <rguenther@suse.de>
8840 PR tree-optimization/63605
8841 * fold-const.c (fold_binary_loc): Properly use element_precision
8842 for types that may not be scalar.
8844 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
8847 * config/i386/i386.md (builtin_setjmp_receiver): Use
8848 pic_offset_table_rtx for PIC register.
8849 (nonlocal_goto_receiver): Delete.
8851 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
8853 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
8854 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
8856 2014-11-07 Martin Liska <mliska@suse.cz>
8859 * cgraphunit.c (cgraph_node::create_wrapper):
8860 TREE_ADDRESSABLE is set to false for a newly created thunk.
8862 2014-11-07 Martin Liska <mliska@suse.cz>
8865 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
8866 Missing checking for CASE_LOW and CASE_HIGH added.
8868 2014-11-07 Martin Liska <mliska@suse.cz>
8871 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
8872 is correctly handled for thunks created by IPA ICF.
8874 2014-11-07 Jiong Wang <jiong.wang@arm.com>
8875 2014-11-07 Richard Biener <rguenther@suse.de>
8877 PR tree-optimization/63676
8878 * gimple-fold.c (fold_gimple_assign): Do not fold node when
8879 TREE_CLOBBER_P be true.
8881 2014-11-07 Richard Biener <rguenther@suse.de>
8884 * match.pd: Guard conflicting GENERIC pattern properly.
8886 2014-11-07 Richard Biener <rguenther@suse.de>
8888 * match.pd: Add patterns for POINTER_PLUS_EXPR association
8889 and special patterns from tree-ssa-forwprop.c
8890 * fold-const.c (fold_binary_loc): Remove them here.
8891 * tree-ssa-forwprop.c (to_purge): New global bitmap.
8892 (fwprop_set_lattice_val): New function.
8893 (fwprop_invalidate_lattice): Likewise.
8894 (remove_prop_source_from_use): Instead of purging dead EH
8895 edges record blocks to do that in to_purge.
8896 (tidy_after_forward_propagate_addr): Likewise.
8897 (forward_propagate_addr_expr): Invalidate the lattice for
8898 SSA names we release.
8899 (simplify_conversion_from_bitmask): Likewise.
8900 (simplify_builtin_call): Likewise.
8901 (associate_pointerplus_align): Remove.
8902 (associate_pointerplus_diff): Likewise.
8903 (associate_pointerplus): Likewise.
8904 (fold_all_stmts): Merge with ...
8905 (pass_forwprop::execute): ... the original loop over all
8906 basic-blocks. Delay purging dead EH edges and invalidate
8907 the lattice for SSA names we release.
8909 2014-11-07 Terry Guo <terry.guo@arm.com>
8911 * config/arm/arm.opt (masm-syntax-unified): New option.
8912 * doc/invoke.texi (-masm-syntax-unified): Document new option.
8913 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
8914 (ASM_APP_ON): Redefined.
8915 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
8916 code always use UAL syntax.
8917 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
8918 * config/arm/thumb1.md: Likewise.
8920 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
8922 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
8923 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
8926 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
8928 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
8929 Set default_mips_arch and default_mips_abi instead of tm_defines.
8930 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
8932 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
8933 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
8934 based on MIPS_ABI_DEFAULT.
8935 (STANDARD_STARTFILE_PREFIX_2): Ditto.
8937 2014-11-06 Joseph Myers <joseph@codesourcery.com>
8939 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
8940 cases of extended identifiers.
8942 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
8944 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
8946 2014-11-06 DJ Delorie <dj@redhat.com>
8948 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
8950 (movhicc_<code>_<mode>): Likewise.
8951 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
8953 (m32c_eh_return_data_regno): Change to using memregs to avoid
8954 tying up all the compute regs.
8955 (m32c_legitimate_address_p) Subregs are not valid addresses.
8957 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
8959 * function.c (thread_prologue_and_epilogue_insns): No longer static.
8960 * function.h (thread_prologue_and_epilogue_insns): Declare.
8962 * target.def (assemble_undefined_decl): New hooks.
8963 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
8964 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
8965 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
8966 * doc/tm.texi: Regenerate.
8967 * output.h (assemble_undefined_decl): Declare.
8968 (get_fnname_from_decl): Declare.
8969 * varasm.c (assemble_undefined_decl): New function.
8970 (get_fnname_from_decl): New function.
8971 * final.c (rest_of_handle_final): Use it.
8972 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
8973 for nodes without a definition.
8975 * target.def (call_args, end_call_args): New hooks.
8976 * hooks.c (hook_void_rtx_tree): New empty function.
8977 * hooks.h (hook_void_rtx_tree): Declare.
8978 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
8979 * doc/tm.texi: Regenerate.
8980 * calls.c (expand_call): Slightly rearrange the code. Use the two new
8982 (expand_library_call_value_1): Use the two new hooks.
8984 * expr.c (use_reg_mode): Just return for pseudo registers.
8986 * combine.c (try_combine): Don't allow a call as one of the source
8989 * target.def (decl_end): New hook.
8990 * varasm.c (assemble_variable_contents, assemble_constant_contents):
8992 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
8993 * doc/tm.texi: Regenerate.
8995 2014-11-06 Renlin Li <renlin.li@arm.com>
8997 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
8998 (processor): New architecture_version field.
8999 (aarch64_override_options): Initialize aarch64_architecture_version.
9000 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
9001 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
9003 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9005 * params.def (sra-max-scalarization-size-Ospeed): New.
9006 (sra-max-scalarization-size-Osize): Likewise.
9007 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
9008 (sra-max-scalarization-size-Osize): Likewise.
9009 * toplev.c (process_options): Set default values for new
9011 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
9012 * targhooks.c (get_move_ratio): Remove static designator.
9013 * target.h (get_move_ratio): Declare.
9015 2014-11-06 Marek Polacek <polacek@redhat.com>
9017 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
9018 Remove vector limit.
9020 2014-11-06 Richard Biener <rguenther@suse.de>
9022 * match.pd: Implement bitwise binary and unary simplifications
9023 from tree-ssa-forwprop.c.
9024 * fold-const.c (fold_unary_loc): Remove them here.
9025 (fold_binary_loc): Likewise.
9026 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
9027 (truth_valued_ssa_name): Likewise.
9028 (lookup_logical_inverted_value): Likewise.
9029 (simplify_bitwise_binary_1): Likewise.
9030 (hoist_conversion_for_bitop_p): Likewise.
9031 (simplify_bitwise_binary_boolean): Likewise.
9032 (simplify_bitwise_binary): Likewise.
9033 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
9034 and simplify_bitwise_binary.
9035 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
9036 (decision_tree::insert): Also insert non-expressions.
9038 2014-11-06 Hale Wang <hale.wang@arm.com>
9040 * config/arm/arm-cores.def: Add support for
9041 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9042 cortex-m1.small-multiply.
9043 * config/arm/arm-tables.opt: Regenerate.
9044 * config/arm/arm-tune.md: Regenerate.
9045 * config/arm/arm.c: Update the rtx-costs for MUL.
9046 * config/arm/bpabi.h: Handle
9047 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9048 cortex-m1.small-multiply.
9049 * doc/invoke.texi: Document
9050 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9051 cortex-m1.small-multiply.
9053 2014-11-06 Hale Wang <hale.wang@arm.com>
9055 * config/arm/arm.c: Add cortex-m7 tune.
9056 * config/arm/arm-cores.def: Use cortex-m7 tune.
9058 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
9061 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
9062 (ix86_encode_section_info): Do not check for non-automatic varibles
9063 when setting SYMBOL_FLAG_FAR_ADDR flag.
9064 (x86_64_elf_select_section): Do not check ix86_cmodel here.
9065 (x86_64_elf_unique_section): Ditto.
9066 (x86_elf_aligned_common): Emit tab before .largecomm.
9068 2014-11-05 Joseph Myers <joseph@codesourcery.com>
9070 PR preprocessor/9449
9071 * doc/cpp.texi (Character sets, Tokenization)
9072 (Implementation-defined behavior): Don't refer to UCNs in
9073 identifiers requiring -fextended-identifiers.
9074 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
9075 by default for C99 and later and C++.
9076 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
9077 identifiers needing -fextended-identifiers.
9079 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
9081 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
9082 for 512-bit wide modes.
9083 (expand_vec_perm_1): Use correct versions of patterns.
9084 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
9085 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
9087 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
9093 * tree-chkp-opt.c: New.
9096 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
9098 (GTFILES): Add tree-chkp.c.
9099 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9100 * tree.def (POINTER_BOUNDS_TYPE): New.
9101 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9102 (POINTER_BOUNDS_MODE): New.
9103 (make_pointer_bounds_mode): New.
9104 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9105 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9106 (layout_type): Support POINTER_BOUNDS_TYPE.
9107 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9108 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9109 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9110 (type_contains_placeholder_1): Likewise.
9111 (build_common_tree_nodes): Initialize
9112 pointer_bounds_type_node.
9113 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9114 (pointer_bounds_type_node): New.
9115 (POINTER_BOUNDS_P): New.
9116 (BOUNDED_TYPE_P): New.
9118 (CALL_WITH_BOUNDS_P): New.
9119 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
9120 (gimple_call_with_bounds_p): New.
9121 (gimple_call_set_with_bounds): New.
9122 (gimple_return_retbnd): New.
9123 (gimple_return_set_retbnd): New
9124 * gimple.c (gimple_build_return): Increase number of ops
9125 for return statement.
9126 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
9128 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9129 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
9130 * gimplify.c (gimplify_init_constructor): Avoid infinite
9131 loop during gimplification of bounds initializer.
9132 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
9133 (special_function_p): Use original decl name when analyzing
9134 instrumentation clone.
9135 (arg_data): Add fields special_slot, pointer_arg and
9137 (store_bounds): New.
9138 (emit_call_1): Propagate instrumentation flag for CALL.
9139 (initialize_argument_information): Compute pointer_arg,
9140 pointer_offset and special_slot for pointer bounds arguments.
9141 (finalize_must_preallocate): Preallocate when storing bounds
9143 (compute_argument_addresses): Skip pointer bounds.
9144 (expand_call): Store bounds into tables separately. Return
9145 result joined with resulting bounds.
9146 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9147 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9148 (expand_return): Add returned bounds arg. Handle returned bounds.
9149 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9150 (gimple_expand_cfg): Reset rtx bounds map.
9151 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9152 (expand_assignment): Handle returned bounds.
9153 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9154 target argument. Handle bounds returned by calls.
9155 (store_expr): Now wraps store_expr_with_bounds.
9156 * expr.h (store_expr_with_bounds): New.
9157 * function.c: Include tree-chkp.h, rtl-chkp.h.
9158 (bounds_parm_data): New.
9159 (use_register_for_decl): Do not registerize decls used for bounds
9161 (assign_parms_augmented_arg_list): Add bounds of the result
9162 structure pointer as the second argument.
9163 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9165 (assign_parm_is_stack_parm): Likewise.
9166 (assign_parm_load_bounds): New.
9167 (assign_bounds): New.
9168 (assign_parms): Load bounds and determine a location for
9170 (diddle_return_value_1): New.
9171 (diddle_return_value): Handle returned bounds.
9172 * function.h (rtl_data): Add field for returned bounds.
9173 * varasm.c: Include tree-chkp.h.
9174 (output_constant): Support POINTER_BOUNDS_TYPE.
9175 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9176 (ultimate_transparent_alias_target): Move up.
9177 (make_decl_rtl): For instrumented function use
9178 name of the original decl.
9179 (assemble_start_function): Mark function as global
9180 in case it is instrumentation clone of the global
9182 (do_assemble_alias): Follow transparent alias chain
9183 for identifier. Check if original alias is public.
9184 (maybe_assemble_visibility): Use visibility of the
9185 original function for instrumented version.
9186 (default_unique_section): Likewise.
9187 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9188 (init_emit_once): Build pointer bounds zero constants.
9189 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9190 * target.def (builtin_chkp_function): New.
9191 (chkp_bound_type): New.
9192 (chkp_bound_mode): New.
9193 (chkp_make_bounds_constant): New.
9194 (chkp_initialize_bounds): New.
9195 (load_bounds_for_arg): New.
9196 (store_bounds_for_arg): New.
9197 (load_returned_bounds): New.
9198 (store_returned_bounds): New.
9199 (chkp_function_value_bounds): New.
9200 (setup_incoming_vararg_bounds): New.
9201 (function_arg): Update hook description with new possible return
9203 * targhooks.h (default_load_bounds_for_arg): New.
9204 (default_store_bounds_for_arg): New.
9205 (default_load_returned_bounds): New.
9206 (default_store_returned_bounds): New.
9207 (default_chkp_bound_type): New.
9208 (default_chkp_bound_mode): New.
9209 (default_builtin_chkp_function): New.
9210 (default_chkp_function_value_bounds): New.
9211 (default_chkp_make_bounds_constant): New.
9212 (default_chkp_initialize_bounds): New.
9213 (default_setup_incoming_vararg_bounds): New.
9214 * targhooks.c (default_load_bounds_for_arg): New.
9215 (default_store_bounds_for_arg): New.
9216 (default_load_returned_bounds): New.
9217 (default_store_returned_bounds): New.
9218 (default_chkp_bound_type): New.
9219 (default_chkp_bound_mode); New.
9220 (default_builtin_chkp_function): New.
9221 (default_chkp_function_value_bounds): New.
9222 (default_chkp_make_bounds_constant): New.
9223 (default_chkp_initialize_bounds): New.
9224 (default_setup_incoming_vararg_bounds): New.
9225 * builtin-types.def (BT_BND): New.
9226 (BT_FN_PTR_CONST_PTR): New.
9227 (BT_FN_CONST_PTR_CONST_PTR): New.
9228 (BT_FN_BND_CONST_PTR): New.
9229 (BT_FN_CONST_PTR_BND): New.
9230 (BT_FN_PTR_CONST_PTR_SIZE): New.
9231 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9232 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9233 (BT_FN_VOID_CONST_PTR_SIZE): New.
9234 (BT_FN_VOID_PTR_BND): New.
9235 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9236 (BT_FN_BND_CONST_PTR_SIZE): New.
9237 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9238 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9239 * chkp-builtins.def: New.
9240 * builtins.def: include chkp-builtins.def.
9241 (DEF_CHKP_BUILTIN): New.
9242 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9243 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9244 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9245 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9246 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9247 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9248 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9249 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9250 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9251 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9252 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9253 (std_expand_builtin_va_start): Init bounds for va_list.
9254 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9255 __CHKP__ macro when Pointer Bounds Checker is on.
9256 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9257 * passes.def (pass_ipa_chkp_versioning): New.
9258 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9259 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9260 (pass_chkp_instrumentation_passes): New.
9261 (pass_ipa_chkp_produce_thunks): New.
9262 (pass_local_optimization_passes): New.
9263 (pass_chkp_opt): New.
9264 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9265 (make_pass_ipa_chkp_produce_thunks): New.
9266 (make_pass_chkp): New.
9267 (make_pass_chkp_opt): New.
9268 (make_pass_early_local_passes): Renamed to ...
9269 (make_pass_build_ssa_passes): This.
9270 (make_pass_chkp_instrumentation_passes): New.
9271 (make_pass_local_optimization_passes): New.
9272 * passes.c (pass_manager::execute_early_local_passes): Execute
9273 early passes in three steps.
9274 (execute_all_early_local_passes): Renamed to ...
9275 (execute_build_ssa_passes): This.
9276 (pass_data_early_local_passes): Renamed to ...
9277 (pass_data_build_ssa_passes): This.
9278 (pass_early_local_passes): Renamed to ...
9279 (pass_build_ssa_passes): This.
9280 (pass_data_chkp_instrumentation_passes): New.
9281 (pass_chkp_instrumentation_passes): New.
9282 (pass_data_local_optimization_passes): New.
9283 (pass_local_optimization_passes): New.
9284 (make_pass_early_local_passes): Renamed to ...
9285 (make_pass_build_ssa_passes): This.
9286 (make_pass_chkp_instrumentation_passes): New.
9287 (make_pass_local_optimization_passes): New.
9288 * c-family/c.opt (fcheck-pointer-bounds): New.
9289 (fchkp-check-incomplete-type): New.
9290 (fchkp-zero-input-bounds-for-main): New.
9291 (fchkp-first-field-has-own-bounds): New.
9292 (fchkp-narrow-bounds): New.
9293 (fchkp-narrow-to-innermost-array): New.
9294 (fchkp-optimize): New.
9295 (fchkp-use-fast-string-functions): New.
9296 (fchkp-use-nochk-string-functions): New.
9297 (fchkp-use-static-bounds): New.
9298 (fchkp-use-static-const-bounds): New.
9299 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9300 (fchkp-check-read): New.
9301 (fchkp-check-write): New.
9302 (fchkp-store-bounds): New.
9303 (fchkp-instrument-calls): New.
9304 (fchkp-instrument-marked-only): New.
9306 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9307 (handle_bnd_legacy): New.
9308 (handle_bnd_instrument): New.
9309 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9310 and bnd_instrument. Fix documentation.
9311 (c_common_format_attribute_table): Likewsie.
9312 * toplev.c: include tree-chkp.h.
9313 (process_options): Check Pointer Bounds Checker is supported.
9314 (compile_file): Add chkp_finish_file call.
9315 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9316 to handle instrumentation clones properly.
9317 (propagate_constants_accross_call): Do not propagate
9318 through instrumentation thunks.
9319 * ipa-pure-const.c (propagate_pure_const): Support
9321 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9322 * ipa-split.c: Include tree-chkp.h.
9324 (split_part_set_ssa_name_p): New.
9325 (consider_split): Do not split retbnd and retval
9327 (insert_bndret_call_after): new.
9328 (split_function): Propagate Pointer Bounds Checker
9329 instrumentation marks and handle returned bounds.
9330 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9331 into bit field and add with_bounds field.
9332 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9333 with_bounds field for instrumented calls.
9334 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9335 CALL_WITH_BOUNDS_P flag for calls.
9336 * tree-ssa-ccp.c: Include tree-chkp.h.
9337 (insert_clobber_before_stack_restore): Handle
9338 BUILT_IN_CHKP_BNDRET calls.
9339 * tree-ssa-dce.c: Include tree-chkp.h.
9340 (propagate_necessity): For free call fed by alloc check
9341 bounds are also provided by the same alloc.
9342 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9344 * tree-inline.c: Include tree-chkp.h.
9345 (declare_return_variable): Add arg holding
9346 returned bounds slot. Create and initialize returned bounds var.
9347 (remap_gimple_stmt): Handle returned bounds.
9348 Return sequence of statements instead of a single statement.
9349 (insert_init_stmt): Add declaration.
9350 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9351 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9352 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9353 (expand_call_inline): Handle returned bounds. Add bounds copy
9354 for generated mem to mem assignments.
9355 * tree-inline.h (copy_body_data): Add fields retbnd and
9357 * value-prof.c: Include tree-chkp.h.
9358 (gimple_ic): Support returned bounds.
9359 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9360 with "chkp ctor" and "bnd_legacy" attributes.
9361 (symtab_remove_unreachable_nodes): Keep initial values for
9362 pointer bounds to be used for checks eliminations.
9363 (process_references): Handle IPA_REF_CHKP.
9364 (walk_polymorphic_call_targets): Likewise.
9365 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9366 instrumented 'main' as externally visible.
9367 (function_and_variable_visibility): Filter instrumentation
9369 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9371 (cgraph_node): Add instrumented_version, orig_decl and
9372 instrumentation_clone fields.
9373 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9374 (varpool_node): Add need_bounds_init field.
9375 (cgraph_local_p): New.
9376 * cgraph.c: Include tree-chkp.h.
9377 (cgraph_node::remove): Fix instrumented_version
9378 of the referenced node if any.
9379 (cgraph_node::dump): Dump instrumentation_clone and
9380 instrumented_version fields.
9381 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9382 references and instrumentation thunks.
9383 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9384 all not instrumented instrumentation clones alive.
9385 (cgraph_redirect_edge_call_stmt_to_callee): Support
9387 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9389 (cgraph_rebuild_references): Likewise.
9390 * cgraphunit.c: Include tree-chkp.h.
9391 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9393 (varpool_finalize_decl): Register statically initialized decls
9394 in Pointer Bounds Checker.
9395 (walk_polymorphic_call_targets): Do not mark generated call to
9396 __builtin_unreachable as with_bounds.
9397 (output_weakrefs): If there are both instrumented and original
9398 versions, output only one of them.
9399 (cgraph_node::expand_thunk): Set with_bounds flag
9400 for created call statement.
9401 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9402 (ipa_ref): increase size of use field.
9403 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9404 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9405 (ctor_for_folding): Do not fold constant bounds vars.
9406 * lto-streamer.h (LTO_minor_version): Change minor version from
9408 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9410 (lto_output_node): Output instrumentation_clone,
9411 thunk.add_pointer_bounds_args and orig_decl field.
9412 (lto_output_ref): Adjust to new ipa_ref::use field size.
9413 (input_overwrite_node): Read instrumentation_clone field.
9414 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9416 (input_ref): Adjust to new ipa_ref::use field size.
9417 (input_cgraph_1): Compute instrumented_version fields and restore
9418 IDENTIFIER_TRANSPARENT_ALIAS chains.
9419 (lto_output_varpool_node): Output
9420 need_bounds_init value.
9421 (input_varpool_node): Read need_bounds_init value.
9422 * lto-partition.c (add_symbol_to_partition_1): Keep original
9423 and instrumented versions together.
9424 (privatize_symbol_name): Restore transparent alias chain if required.
9425 (add_references_to_partition): Add references to pointer bounds vars.
9426 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9427 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9428 (gen_type_die_with_usage): Skip pointer bounds.
9429 (dwarf2out_global_decl): Likewise.
9430 (is_base_type): Support POINTER_BOUNDS_TYPE.
9431 (gen_formal_types_die): Skip pointer bounds.
9432 (gen_decl_die): Likewise.
9433 * var-tracking.c (vt_add_function_parameters): Skip
9435 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9437 (sem_variable::merge): Reset need_bounds_init flag.
9438 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9440 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9441 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9442 (TARGET_LOAD_RETURNED_BOUNDS): New.
9443 (TARGET_STORE_RETURNED_BOUNDS): New.
9444 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9445 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9446 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9447 (TARGET_CHKP_BOUND_TYPE): New.
9448 (TARGET_CHKP_BOUND_MODE): New.
9449 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9450 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9451 * doc/tm.texi: Regenerated.
9452 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9455 * doc/invoke.texi (-mmpx): New.
9457 (chkp-max-ctor-size): New.
9458 * config/i386/constraints.md (w): New.
9461 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9462 * config/i386/i386-modes.def (BND32): New.
9464 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9465 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9466 (regclass_map): Add bound registers.
9467 (dbx_register_map): Likewise.
9468 (dbx64_register_map): Likewise.
9469 (svr4_dbx_register_map): Likewise.
9470 (isa_opts): Add -mmpx.
9472 (ix86_option_override_internal): Support MPX ISA.
9473 (ix86_conditional_register_usage): Support bound registers.
9474 (ix86_code_end): Add MPX bnd prefix.
9475 (output_set_got): Likewise.
9476 (print_reg): Avoid prefixes for bound registers.
9477 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9478 (ix86_print_operand_punct_valid_p): Likewise.
9479 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9481 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9482 (ix86_class_likely_spilled_p): Add bound regs support.
9483 (ix86_hard_regno_mode_ok): Likewise.
9484 (x86_order_regs_for_local_alloc): Likewise.
9485 (ix86_bnd_prefixed_insn_p): New.
9486 (ix86_builtins): Add
9487 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9488 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9489 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9490 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9491 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9492 IX86_BUILTIN_BNDUPPER.
9493 (builtin_isa): Add leaf_p and nothrow_p fields.
9494 (def_builtin): Initialize leaf_p and nothrow_p.
9495 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9498 (bdesc_mpx_const): New.
9499 (ix86_init_mpx_builtins): New.
9500 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9501 (ix86_emit_cmove): New.
9502 (ix86_emit_move_max): New.
9503 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9504 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9505 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9506 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9507 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9508 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9509 (ix86_function_value_bounds): New.
9510 (ix86_builtin_mpx_function): New.
9511 (ix86_get_arg_address_for_bt): New.
9512 (ix86_load_bounds): New.
9513 (ix86_store_bounds): New.
9514 (ix86_load_returned_bounds): New.
9515 (ix86_store_returned_bounds): New.
9516 (ix86_mpx_bound_mode): New.
9517 (ix86_make_bounds_constant): New.
9518 (ix86_initialize_bounds):
9519 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9520 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9521 (TARGET_LOAD_RETURNED_BOUNDS): New.
9522 (TARGET_STORE_RETURNED_BOUNDS): New.
9523 (TARGET_CHKP_BOUND_MODE): New.
9524 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9525 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9526 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9527 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9528 (ix86_option_override_internal): Do not
9529 support x32 with MPX.
9530 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9532 (function_arg_advance_32): Return number of used integer
9534 (function_arg_advance_64): Likewise.
9535 (function_arg_advance_ms_64): Likewise.
9536 (ix86_function_arg_advance): Handle pointer bounds.
9537 (ix86_function_arg): Likewise.
9538 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9539 possible function value.
9540 (ix86_function_value_1): Handle pointer bounds type/mode
9541 (ix86_return_in_memory): Likewise.
9542 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9543 (ix86_expand_call): Generate returned bounds.
9544 (ix86_setup_incoming_vararg_bounds): New.
9545 (ix86_va_start): Initialize bounds for pointers in va_list.
9546 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9547 * config/i386/i386.h (TARGET_MPX): New.
9548 (TARGET_MPX_P): New.
9549 (FIRST_PSEUDO_REGISTER): Fix to new value.
9550 (FIXED_REGISTERS): Add bound registers.
9551 (CALL_USED_REGISTERS): Likewise.
9552 (REG_ALLOC_ORDER): Likewise.
9553 (HARD_REGNO_NREGS): Likewise.
9554 (VALID_BND_REG_MODE): New.
9555 (FIRST_BND_REG): New.
9556 (LAST_BND_REG): New.
9557 (reg_class): Add BND_REGS.
9558 (REG_CLASS_NAMES): Likewise.
9559 (REG_CLASS_CONTENTS): Likewise.
9561 (ANY_BND_REG_P): New.
9563 (HI_REGISTER_NAMES): Add bound registers.
9564 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9566 * config/i386/i386.md (UNSPEC_BNDMK): New.
9567 (UNSPEC_BNDMK_ADDR): New.
9568 (UNSPEC_BNDSTX): New.
9569 (UNSPEC_BNDLDX): New.
9570 (UNSPEC_BNDLDX_ADDR): New.
9571 (UNSPEC_BNDCL): New.
9572 (UNSPEC_BNDCU): New.
9573 (UNSPEC_BNDCN): New.
9574 (UNSPEC_MPX_FENCE): New.
9575 (UNSPEC_SIZEOF): New.
9578 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9579 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9580 (prefix_rep): Check for bnd prefix.
9581 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9582 (length_nobnd): New.
9583 (length): Use length_nobnd when specified.
9584 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9589 (*jcc_1): Add MPX bnd prefix.
9592 (*indirect_jump): Likewise.
9593 (*tablejump_1): Likewise.
9594 (simple_return_internal): Likewise.
9595 (simple_return_internal_long): Likewise.
9596 (simple_return_pop_internal): Likewise.
9597 (simple_return_indirect_internal): Likewise.
9601 (*mov<mode>_internal_mpx): New.
9602 (<mode>_<bndcheck>): New.
9603 (*<mode>_<bndcheck>): New.
9608 move_size_reloc_<mode>): New.
9609 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9610 (address_mpx_no_index_operand): New.
9611 (bnd_mem_operator): New.
9612 (symbol_operand): New.
9613 (x86_64_immediate_size_operand): New.
9614 * config/i386/i386.opt (mmpx): New.
9615 * config/i386/i386-builtin-types.def (BND): New.
9617 (BND_FTYPE_PCVOID_ULONG): New.
9618 (VOID_FTYPE_BND_PCVOID): New.
9619 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9620 (BND_FTYPE_PCVOID_PCVOID): New.
9621 (BND_FTYPE_PCVOID): New.
9622 (BND_FTYPE_BND_BND): New.
9623 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9624 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9625 (ULONG_FTYPE_VOID): New.
9626 (PVOID_FTYPE_BND): New.
9628 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9630 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9631 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9632 pass_cleanup_barriers, pass_delay_slots,
9633 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9634 pass_shorten_branches, pass_est_nothrow_function_flags,
9635 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9636 into pass_late_compilation.
9637 (pass_late_compilation): Add.
9638 * passes.c (pass_data_late_compilation, pass_late_compilation,
9639 make_pass_late_compilation): New.
9640 * timevar.def (TV_LATE_COMPILATION): New.
9642 * target.def (omit_struct_return_reg): New data hook.
9643 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9644 * doc/tm.texi: Regenerate.
9645 * function.c (expand_function_end): Use it.
9647 * target.def (no_register_allocation): New data hook.
9648 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9649 * doc/tm.texi: Regenerate.
9650 * ira.c (gate_ira): New function.
9651 (pass_data_ira): Set has_gate.
9652 (pass_ira): Add a gate function.
9653 (pass_data_reload): Likewise.
9654 (pass_reload): Add a gate function.
9656 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9657 no register allocation happens on the target and return.
9658 * final.c (alter_subreg): Ensure register is not a pseudo before
9659 calling simplify_subreg.
9660 (output_operand): Assert that x isn't a pseudo only if doing
9661 register allocation.
9663 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9666 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9669 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9671 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9672 * rtl.h (SUBREG_P): New macro added.
9674 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9676 * config/aarch64/aarch64-builtins.c
9677 (aarch64_build_scalar_type): Remove.
9678 (aarch64_scalar_builtin_types, aarch64_simd_type,
9679 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9680 aarch64_mangle_builtin_vector_type,
9681 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9682 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9683 aarch64_init_simd_builtin_types,
9684 aarch64_init_simd_builtin_scalar_types): New.
9685 (aarch64_init_simd_builtins): Refactor.
9686 (aarch64_init_crc32_builtins): Fixup with qualifier.
9687 * config/aarch64/aarch64-protos.h
9688 (aarch64_mangle_builtin_type): Export.
9689 * config/aarch64/aarch64-simd-builtin-types.def: New.
9690 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9691 (aarch64_mangle_type): Refactor.
9692 * config/aarch64/arm_neon.h: Declare vector types based on
9694 * config/aarch64/t-aarch64: Update dependency.
9696 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9698 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9699 atomic_update_decl): Guard declaration with #ifdef.
9701 2014-11-04 Marek Polacek <polacek@redhat.com>
9703 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9705 2014-11-04 Marek Polacek <polacek@redhat.com>
9707 * Makefile.in (OBJS): Add sanopt.o.
9708 (GTFILES): Add sanopt.c.
9709 * asan.h (asan_expand_check_ifn): Declare.
9710 * asan.c (asan_expand_check_ifn): No longer static.
9711 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9712 * sanopt.c: ...here. New file.
9714 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9715 Wilco Dijkstra <wilco.dijkstra@arm.com>
9718 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9721 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9723 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9724 also verify that mode is equal to the mode of op0.
9726 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9727 emit into a sequence instead.
9729 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9731 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9733 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9735 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9736 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9737 (reduc_smax_<mode> *2): Rename to...
9738 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9739 (reduc_umin_<mode> *2): Rename to...
9740 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9741 (reduc_umax_<mode> *2): Rename to...
9742 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9744 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9746 config/arm/neon.md (reduc_plus_*): Rename to...
9747 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9749 2014-11-04 Michael Collison <michael.collison@linaro.org>
9751 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9752 to support constraints for CONST_INT in atomic operations.
9753 * config/aarch64/atomics.md
9754 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9755 (atomic_nand<mode>): Likewise.
9756 (atomic_fetch_<atomic_optab><mode>): Likewise.
9757 (atomic_fetch_nand<mode>): Likewise.
9758 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9759 (atomic_nand_fetch<mode>): Likewise.
9761 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9763 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9764 of __ARM_FEATURE_IDIV.
9766 2014-11-04 Marek Polacek <polacek@redhat.com>
9768 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9770 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9772 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9774 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9777 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9778 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9779 Allow CC mode if HAVE_cbranchcc4.
9781 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9783 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9784 with -fdump-go-spec. Anonymous substructures are now flattened and
9785 replaced by their fields (record) or the first named, non-bitfield
9788 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9790 * input.c (expand_location_to_spelling_point): Fix typo.
9791 (expansion_point_location_if_in_system_header): Fix comment.
9793 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9795 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9797 2014-11-03 Richard Biener <rguenther@suse.de>
9799 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9800 like ordinary operations.
9801 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9804 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9806 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9808 * configure, config.h.in: Regenerate.
9809 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9810 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9811 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9812 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9813 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9814 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9815 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9816 (atomic_update_decl): New static variables.
9817 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9818 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9819 and __atomic_feupdateenv for soft-float and no-FPRs.
9821 2014-11-03 Richard Biener <rguenther@suse.de>
9823 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9824 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9825 * fold-const.c (fold_unary_loc): Remove them here.
9826 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9827 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9828 GIMPLE_UNARY_RHS case.
9829 (gimple_fold_stmt_to_constant_1): Likewise.
9830 (replace_stmt_with_simplification): Fix inverted comparison.
9832 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9834 PR tree-optimization/60770
9835 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9836 statement should be removed.
9837 (maybe_register_def): Likewise. Replace clobbers with default
9839 (rewrite_dom_walker::before_dom_children): Remove statement if
9840 rewrite_update_stmt says so.
9841 * tree-ssa-live.c: Include tree-ssa.h.
9842 (set_var_live_on_entry): Do not mark undefined variables as live.
9843 (verify_live_on_entry): Do not check undefined variables.
9844 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
9845 of partially undefined variables.
9846 * tree-ssa.c (ssa_undefined_value_p): Likewise.
9847 (execute_update_addresses_taken): Do not drop clobbers.
9849 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9851 PR tree-optimization/63666
9852 * fold-const.c: Include "optabs.h".
9853 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
9854 can_vec_perm_p permutation to one that is not.
9856 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9858 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
9860 2014-11-03 Andrew Pinski <apinski@cavium.com>
9862 * config/mips/mips-cpus.def (octeon3): New cpu.
9863 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
9864 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
9865 of the comparison no longer matches mode of the operands.
9866 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
9867 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
9868 (TARGET_OCTEON2): Likewise.
9869 (TUNE_OCTEON): Add Octeon3.
9870 * config/mips/mips.md (processor): Add octeon3.
9871 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
9872 (octeon_arith): Add octeon3.
9873 (octeon_condmove): Remove.
9874 (octeon_condmove_o1): New reservation.
9875 (octeon_condmove_o2): New reservation.
9876 (octeon_condmove_o3_int_on_cc): New reservation.
9877 (octeon_load_o2): Add octeon3.
9878 (octeon_cop_o2): Likewise.
9879 (octeon_store): Likewise.
9880 (octeon_brj_o2): Likewise.
9881 (octeon_imul3_o2): Likewise.
9882 (octeon_imul_o2): Likewise.
9883 (octeon_mfhilo_o2): Likewise.
9884 (octeon_imadd_o2): Likewise.
9885 (octeon_idiv_o2_si): Likewise.
9886 (octeon_idiv_o2_di): Likewise.
9887 (octeon_fpu): Add to the automaton.
9888 (octeon_fpu): New cpu unit.
9889 (octeon_condmove_o2): Check for non floating point modes.
9890 (octeon_load_o2): Add prefetchx.
9891 (octeon_cop_o2): Don't check for octeon3.
9892 (octeon3_faddsubcvt): New reservation.
9893 (octeon3_fmul): Likewise.
9894 (octeon3_fmadd): Likewise.
9895 (octeon3_div_sf): Likewise.
9896 (octeon3_div_df): Likewise.
9897 (octeon3_sqrt_sf): Likewise.
9898 (octeon3_sqrt_df): Likewise.
9899 (octeon3_rsqrt_sf): Likewise.
9900 (octeon3_rsqrt_df): Likewise.
9901 (octeon3_fabsnegmov): Likewise.
9902 (octeon_fcond): Likewise.
9903 (octeon_fcondmov): Likewise.
9904 (octeon_fpmtc1): Likewise.
9905 (octeon_fpmfc1): Likewise.
9906 (octeon_fpload): Likewise.
9907 (octeon_fpstore): Likewise.
9908 * config/mips/mips-tables.opt: Regenerate.
9909 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
9911 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9913 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9914 Allow CC mode if HAVE_cbranchcc4.
9916 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9918 * config/arc/arc.c (write_ext_corereg_1): Delete.
9919 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
9921 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9923 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
9924 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
9926 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9928 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
9929 (small_data_pattern_1): Delete.
9930 (small_data_pattern): Use FOR_EACH_SUBRTX.
9932 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9934 * config/arc/arc.c: Include rtl-iter.h.
9935 (arc_rewrite_small_data_1): Delete.
9936 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
9938 2014-11-02 Michael Collison <michael.collison@linaro.org>
9940 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
9941 to support vector modes.
9942 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9944 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
9946 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
9947 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
9948 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
9949 * optabs.c: (gen_move_insn): Move to expr.c.
9950 * expr.h: Move protypes and enums to optabs.h.
9951 * expr.c: (gen_move_insn): Relocate from optabs.c.
9952 * genemit.c (main): Include insn-codes.h.
9953 * gengtype.c (open_base_files): Include insn-codes.h.
9954 * asan.c: Include insn-codes.h.
9955 * bb-reorder.c: Ditto.
9956 * builtins.c: Ditto.
9958 * cfgexpand.c: Ditto.
9959 * cilk-common.c: Ditto.
9966 * function.c: Ditto.
9968 * internal-fn.c: Ditto.
9969 * loop-unroll.c: Ditto.
9971 * modulo-sched.c: Ditto.
9973 * postreload.c: Ditto.
9977 * shrink-wrap.c: Ditto.
9978 * simplify-rtx.c: Ditto.
9980 * target-globals.c: Ditto.
9981 * targhooks.c: Ditto.
9983 * tree-if-conv.c: Ditto.
9984 * tree-ssa-forwprop.c: Ditto.
9985 * tree-ssa-loop-prefetch.c: Ditto.
9986 * tree-ssa-math-opts.c: Ditto.
9987 * tree-ssa-phiopt.c: Ditto.
9988 * tree-ssa-reassoc.c: Ditto.
9989 * tree-switch-conversion.c: Ditto.
9990 * tree-vect-data-refs.c: Ditto.
9991 * tree-vect-generic.c: Ditto.
9992 * tree-vect-loop.c: Ditto.
9993 * tree-vect-patterns.c: Ditto.
9994 * tree-vect-slp.c: Ditto.
9995 * tree-vect-stmts.c: Ditto.
9996 * tree-vrp.c: Ditto.
9997 * value-prof.c: Ditto.
9998 * config/aarch64/aarch64-builtins.c: Ditto.
9999 * config/alpha/alpha.c: Ditto.
10000 * config/arm/arm.c: Ditto.
10001 * config/cris/cris.c: Ditto.
10002 * config/epiphany/epiphany.c: Ditto.
10003 * config/frv/frv.c: Ditto.
10004 * config/h8300/h8300.c: Ditto.
10005 * config/ia64/ia64.c: Ditto.
10006 * config/iq2000/iq2000.c: Ditto.
10007 * config/m32c/m32c.c: Ditto.
10008 * config/mep/mep.c: Ditto.
10009 * config/microblaze/microblaze.c: Ditto.
10010 * config/mips/mips.c: Ditto.
10011 * config/mn10300/mn10300.c: Ditto.
10012 * config/moxie/moxie.c: Ditto.
10013 * config/msp430/msp430.c: Ditto.
10014 * config/nios2/nios2.c: Ditto.
10015 * config/pa/pa.c: Ditto.
10016 * config/rl78/rl78.c: Ditto.
10017 * config/rs6000/rs6000.c: Ditto.
10018 * config/rx/rx.c: Ditto.
10019 * config/s390/s390.c: Ditto.
10020 * config/sh/sh.c: Ditto.
10021 * config/sh/sh_treg_combine.cc: Ditto.
10022 * config/spu/spu.c: Ditto.
10023 * config/stormy16/stormy16.c: Ditto.
10024 * config/tilegx/mul-tables.c: Ditto.
10025 * config/tilegx/tilegx.c: Ditto.
10026 * config/tilepro/mul-tables.c: Ditto.
10027 * config/tilepro/tilepro.c: Ditto.
10028 * config/vax/vax.c: Ditto.
10030 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10032 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
10033 (CLEAR_BY_PIECES_P): Likewise.
10034 (SET_BY_PIECES_P): Likewise.
10035 (STORE_BY_PIECES_P): Likewise.
10036 * doc/tm.texi: Regenerate.
10037 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
10038 SET_BY_PIECES_P, STORE_BY_PIECES_P.
10039 * expr.c (MOVE_BY_PIECES_P): Remove.
10040 (CLEAR_BY_PIECES_P): Likewise.
10041 (SET_BY_PIECES_P): Likewise.
10042 (STORE_BY_PIECES_P): Likewise.
10043 (can_move_by_pieces): Rewrite in terms of
10044 targetm.use_by_pieces_infrastructure_p.
10045 (emit_block_move_hints): Likewise.
10046 (can_store_by_pieces): Likewise.
10047 (store_by_pieces): Likewise.
10048 (clear_storage_hints): Likewise.
10049 (emit_push_insn): Likewise.
10050 (expand_constructor): Likewise.
10052 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10054 * config/aarch64/aarch64.c
10055 (aarch64_use_by_pieces_infrastructre_p): New.
10056 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
10057 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
10059 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10061 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
10062 (STORE_BY_PIECES_P): Likewise.
10063 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10064 (mips_move_by_pieces_p): Rename to...
10065 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
10066 parameters, use the default hook implementation as a
10069 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10071 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10072 (sh_use_by_pieces_infrastructure_p): Likewise.
10073 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
10074 (STORE_BY_PIECES_P): Likewise.
10075 (SET_BY_PIECES_P): Likewise.
10077 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10079 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10080 (arc_use_by_pieces_infrastructure_p): Likewise.
10081 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
10082 (CAN_MOVE_BY_PIECES): Likewise.
10084 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10086 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
10087 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
10088 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
10089 (CLEAR_BY_PIECES): Likewise.
10090 (SET_BY_PIECES): Likewise.
10091 (STORE_BY_PIECES): Likewise.
10093 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10095 * target.def (use_by_pieces_infrastructure_p): New.
10096 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
10098 (STORE_BY_PIECES_P): Likewise.
10099 (CLEAR_BY_PIECES_P): Likewise.
10100 (SET_BY_PIECES_P): Likewise.
10101 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
10102 * doc/tm.texi: Regenerate.
10103 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
10104 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
10105 (STORE_BY_PIECES_P): Likewise.
10106 (CLEAR_BY_PIECES_P): Likewise.
10107 (SET_BY_PIECES_P): Likewise.
10108 (STORE_MAX_PIECES): Move to...
10109 * defaults.h (STORE_MAX_PIECES): ...here.
10110 * targhooks.c (get_move_ratio): New.
10111 (default_use_by_pieces_infrastructure_p): Likewise.
10112 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
10113 * target.h (by_pieces_operation): New.
10115 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10118 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
10119 assignment to 'nargs' variable.
10121 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10124 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
10125 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
10126 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
10127 be reloaded through memory.
10131 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10133 PR rtl-optimization/63659
10134 * ree.c (update_reg_equal_equiv_notes): New function.
10135 (combine_set_extension, transform_ifelse): Use it.
10137 2014-10-31 Jeff Law <law@redhat.com>
10139 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
10140 and Jonny Grant (collect2).
10142 2014-10-31 Richard Biener <rguenther@suse.de>
10144 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10145 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10147 (fold_builtin_expect): Likewise.
10148 (integer_valued_real_p): Likewise.
10149 * cfgexpand.c (expand_debug_expr): Likewise.
10150 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10151 (find_foldable_builtin_expect): Likewise.
10152 * trans-mem.c (thread_private_new_memory): Likewise.
10153 * tree-affine.c (aff_combination_expand): Likewise.
10154 * tree-data-ref.c (initialize_matrix_A): Likewise.
10155 * tree-inline.c (copy_bb): Likewise.
10156 * tree-pretty-print.c (dump_function_name): Likewise.
10157 (print_call_name): Likewise.
10158 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10159 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10160 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10161 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10162 (vect_recog_widen_mult_pattern): Likewise.
10163 (vect_operation_fits_smaller_type): Likewise.
10164 * tree-vrp.c (find_assert_locations_1): Likewise.
10165 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10166 converts to NOP_EXPR.
10168 2014-10-31 Richard Biener <rguenther@suse.de>
10170 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10171 CONVERT_EXPRs in generated code.
10172 (dt_simplify::gen): Likewise.
10174 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10177 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10178 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10179 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10180 using mcount in 32bit PIC mode.
10181 (ix86_elim_entry_set_got): New.
10182 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10183 in PROLOGUE, delete initial if possible.
10185 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10187 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10188 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10190 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10192 PR tree-optimization/63259
10193 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10194 rotation left if it is a 16 bit byte swap.
10195 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10196 and RROTATE_EXPR statements if it is a byte rotation.
10198 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10201 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10202 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10203 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10205 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10208 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10209 to avoid alloc-dealloc mismatch with new, called in
10210 ipa_icf::sem_function::init.
10212 2014-10-30 Felix Yang <felix.yang@huawei.com>
10214 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10215 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10216 (xtensa_reorg, xtensa_reorg_loops): New.
10217 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10218 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10219 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10220 (xtensa_doloop_hooks): Define.
10221 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10222 (zero_cost_loop_start): Rewritten.
10223 (zero_cost_loop_end): Likewise.
10225 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10227 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10229 2014-10-30 Richard Biener <rguenther@suse.de>
10231 * genmatch.c: Remove <map>, <utility> and <string> includes.
10232 Include ggc.h and hash-map.h.
10233 (ggc_internal_cleared_alloc): Provide stub definition.
10234 (ggc_free): Likewise.
10235 (struct capture_id_map_hasher): New traits for hash_map.
10236 (cid_map_t): New typedef.
10237 (everywhere else): Replace std::map use with cid_map_t.
10238 * hash-map.h (hash_map::elements): New member function.
10239 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10240 hash-map.h and $(GGC_H) as dependency.
10242 2014-10-30 Richard Biener <rguenther@suse.de>
10244 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10245 uses inside TREE_TYPE ().
10246 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10247 (find_candidates_dom_walker::before_dom_children): Likewise.
10248 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10249 (replace_profitable_candidates): Likewise.
10250 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10251 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10252 * convert.c (convert_to_integer): Use CASE_CONVERT.
10254 2014-10-30 Richard Biener <rguenther@suse.de>
10256 * match.pd: Implement more patterns that simplify to a single value.
10257 * fold-const.c (fold_binary_loc): Remove them here.
10258 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10259 (fwprop_ssa_val): Remove restriction on single uses.
10261 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10263 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10265 2014-10-30 Martin Liska <mliska@suse.cz>
10269 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10270 (func_checker::compare_gimple_label): Simlified comparison introduced.
10271 * ipa-icf-gimple.h: Missing comment added.
10273 2014-10-30 Jeff Law <law@redhat.com>
10275 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10276 argument from rtx to rtx_insn *.
10277 (compute_movmem_length, compute_clrmem_length): Likewise.
10278 (copy_fp_args, length_fp_args): Likewise.
10279 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10280 "insn" from rtx to rtx_insn *.
10281 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10282 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10283 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10284 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10285 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10286 (compute_movmem_length, compute_clrmem_length): Likewise.
10287 (copy_fp-args, length_fp_args): Likewise.
10289 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10291 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10293 (CUMULATIVE_ARGS): Guard against target includes.
10294 (machine_function): Likewise.
10296 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10298 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10299 recog state after aarch64_prev_real_insn call.
10301 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10303 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10305 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10307 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10308 (struct machine_function): Gate definition on
10309 !defined(USED_FOR_TARGET).
10311 2014-10-29 DJ Delorie <dj@redhat.com>
10313 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10315 2014-10-29 Martin Liska <mliska@suse.cz>
10318 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10319 to local declarations.
10320 * function.c (add_local_decl): Implementation moved from header
10321 file, assert introduced for tree type.
10322 * function.h: Likewise.
10324 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10326 * godump.c (go_format_type): Represent "float _Complex" and
10327 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10329 2014-10-29 Richard Biener <rguenther@suse.de>
10331 * match.pd: Implement a first set of conversion patterns.
10332 * fold-const.c (fold_unary_loc): Remove them here.
10333 * tree-ssa-forwprop.c (simplify_vce): Remove.
10334 (pass_forwprop::execute): Do not call simplify_vce.
10336 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10338 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10339 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10340 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10341 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10342 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10343 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10344 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10345 config/arc/arc.h, config/arc/predicates.md,
10346 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10347 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10348 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10349 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10350 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10351 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10352 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10353 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10354 config/darwin-protos.h, config/darwin.c,
10355 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10356 config/epiphany/epiphany.md, config/fr30/fr30.c,
10357 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10358 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10359 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10360 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10361 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10362 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10363 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10364 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10365 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10366 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10367 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10368 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10369 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10370 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10371 config/mips/mips-protos.h, config/mips/mips.c,
10372 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10373 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10374 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10375 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10376 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10377 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10378 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10379 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10380 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10381 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10382 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10383 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10384 config/s390/predicates.md, config/s390/s390-protos.h,
10385 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10386 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10387 config/sh/sh.md, config/sparc/predicates.md,
10388 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10389 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10390 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10391 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10392 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10393 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10394 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10395 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10396 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10397 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10398 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10399 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10400 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10401 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10402 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10403 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10404 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10405 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10406 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10407 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10408 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10409 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10410 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10411 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10412 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10413 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10414 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10415 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10416 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10417 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10418 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10419 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10420 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10421 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10422 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10423 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10424 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10425 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10426 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10427 var-tracking.c, varasm.c: Remove redundant enum from
10429 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10430 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10433 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10435 PR rtl-optimization/63340 (part 2)
10436 * rtl.h (invalid_mode_change_p): Delete.
10437 (valid_mode_changes_for_regno): New function.
10438 * reginfo.c (invalid_mode_change_p): Delete.
10439 (valid_mode_changes_for_regno): New function.
10440 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10441 classes to registers that are allowed by valid_mode_changes_for_regno.
10442 (setup_regno_cost_classes_by_mode): Likewise.
10443 (print_allocno_costs): Remove invalid_mode_change_p test.
10444 (print_pseudo_costs, find_costs_and_classes): Likewise.
10446 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10448 PR rtl-optimization/63340 (part 1)
10449 * ira-costs.c (all_cost_classes): New variable.
10450 (complete_cost_classes): New function, split out from...
10451 (setup_cost_classes): ...here.
10452 (initiate_regno_cost_classes): Set up all_cost_classes.
10453 (restrict_cost_classes): New function.
10454 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10455 registers that are valid for the register's mode.
10456 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10457 restriction of all_cost_classes to a particular mode.
10458 (print_allocno_costs): Remove contains_reg_of_mode check.
10459 (print_pseudo_costs, find_costs_and_classes): Likewise.
10461 2014-10-29 Richard Biener <rguenther@suse.de>
10463 PR tree-optimization/63666
10464 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10465 accessing out-of-bound elements.
10467 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10468 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10469 Anna Tikhonova <anna.tikhonova@intel.com>
10470 Ilya Tocar <ilya.tocar@intel.com>
10471 Andrey Turetskiy <andrey.turetskiy@intel.com>
10472 Ilya Verbin <ilya.verbin@intel.com>
10473 Kirill Yukhin <kirill.yukhin@intel.com>
10474 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10476 * config/i386/i386.md
10477 (movhi_internal): Always detect maskmov.
10478 (movqi_internal): Fix target check.
10480 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10482 Anna Tikhonova <anna.tikhonova@intel.com>
10483 Ilya Tocar <ilya.tocar@intel.com>
10484 Andrey Turetskiy <andrey.turetskiy@intel.com>
10485 Ilya Verbin <ilya.verbin@intel.com>
10486 Kirill Yukhin <kirill.yukhin@intel.com>
10487 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10489 * config/i386/avx512bwintrin.h: Add new intrinsics.
10490 * config/i386/avx512vlbwintrin.h: Ditto.
10491 * config/i386/avx512vlintrin.h: Ditto.
10493 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10495 * godump.c (precision_to_units): New helper function.
10496 (go_append_artificial_name): Ditto.
10497 (go_append_decl_name): Ditto.
10498 (go_append_bitfield): Ditto.
10499 (go_get_uinttype_for_precision): Ditto.
10500 (go_append_padding): Ditto.
10501 (go_force_record_alignment): Ditto.
10502 (go_format_type): Represent unions with an array of uints of the size
10503 of the alignment in go. This fixes the 'random' size of the union's
10504 representation using just the first field.
10505 (go_format_type): Add argument that indicates whether a record is
10506 nested (used for generation of artificial go names).
10507 (go_output_fndecl): Adapt to new go_format_type signature.
10508 (go_output_typedef): Ditto.
10509 (go_output_var): Ditto.
10510 (go_output_var): Prefer to output type as alias (typedef).
10511 (go_format_type): Bitfields in records are simulated as arrays of bytes
10514 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10516 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10518 * cgraph.h: Flatten. Remove all include files.
10519 (symbol_table::initialize): Move to cgraph.c.
10520 * cgraph.c: Adjust include files.
10521 (symbol_table::initialize): Relocate from cgraph.h.
10522 * gengtype.c (open_base_files): Adjust include files.
10523 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10525 * ipa-inline.h: Remove all include files.
10526 * ipa-prop.h: Ditto.
10527 * ipa-reference.h: Ditto.
10528 * ipa-utils.h: Ditto:
10529 * lto-streamer.h: Remove cgraph.h from include list.
10530 * asan.c: Adjust include files.
10531 * auto-profile.c: Ditto.
10532 * bb-reorder.c: Ditto.
10534 * cfgexpand.c: Ditto.
10535 * cgraphbuild.c: Ditto.
10536 * cgraphclones.c: Ditto.
10537 * cgraphunit.c: Ditto.
10538 * combine.c: Ditto.
10539 * coverage.c: Ditto.
10540 * data-streamer.c: Ditto.
10541 * data-streamer-in.c: Ditto.
10542 * data-streamer-out.c: Ditto.
10544 * dwarf2out.c: Ditto.
10548 * fold-const.c: Ditto.
10549 * ggc-page.c: Ditto.
10550 * gimple-fold.c: Ditto.
10551 * gimple-iterator.c: Ditto.
10552 * gimple-pretty-print.c: Ditto.
10553 * gimple-streamer-in.c: Ditto.
10554 * gimple-streamer-out.c: Ditto.
10555 * gimplify.c: Ditto.
10557 * ipa-comdats.c: Ditto.
10559 * ipa-devirt.c: Ditto.
10560 * ipa-icf.c: Ditto.
10561 * ipa-icf-gimple.c: Ditto.
10562 * ipa-inline-analysis.c: Ditto.
10563 * ipa-inline.c: Ditto.
10564 * ipa-inline-transform.c: Ditto.
10565 * ipa-polymorphic-call.c: Ditto.
10566 * ipa-profile.c: Ditto.
10567 * ipa-prop.c: Ditto.
10568 * ipa-pure-const.c: Ditto.
10569 * ipa-ref.c: Ditto.
10570 * ipa-reference.c: Ditto.
10571 * ipa-split.c: Ditto.
10572 * ipa-utils.c: Ditto.
10573 * ipa-visibility.c: Ditto.
10574 * langhooks.c: Ditto.
10575 * lto-cgraph.c: Ditto.
10576 * lto-compress.c: Ditto.
10577 * lto-opts.c: Ditto.
10578 * lto-section-in.c: Ditto.
10579 * lto-section-out.c: Ditto.
10580 * lto-streamer.c: Ditto.
10581 * lto-streamer-in.c: Ditto.
10582 * lto-streamer-out.c: Ditto.
10583 * omp-low.c: Ditto.
10584 * opts-global.c: Ditto.
10586 * predict.c: Ditto.
10587 * print-tree.c: Ditto.
10588 * profile.c: Ditto.
10590 * stor-layout.c: Ditto.
10593 * trans-mem.c: Ditto.
10595 * tree-cfg.c: Ditto.
10596 * tree-eh.c: Ditto.
10597 * tree-emutls.c: Ditto.
10598 * tree-inline.c: Ditto.
10599 * tree-nested.c: Ditto.
10600 * tree-pretty-print.c: Ditto.
10601 * tree-profile.c: Ditto.
10602 * tree-sra.c: Ditto.
10603 * tree-ssa-alias.c: Ditto.
10604 * tree-ssa-loop-ivcanon.c: Ditto.
10605 * tree-ssa-loop-ivopts.c: Ditto.
10606 * tree-ssa-pre.c: Ditto.
10607 * tree-ssa-structalias.c: Ditto.
10608 * tree-streamer.c: Ditto.
10609 * tree-streamer-in.c: Ditto.
10610 * tree-streamer-out.c: Ditto.
10611 * tree-switch-conversion.c: Ditto.
10612 * tree-tailcall.c: Ditto.
10613 * tree-vect-data-refs.c: Ditto.
10614 * tree-vectorizer.c: Ditto.
10615 * tree-vect-stmts.c: Ditto.
10618 * value-prof.c: Ditto.
10620 * varpool.c: Ditto.
10621 * config/arm/arm.c: Ditto.
10622 * config/bfin/bfin.c: Ditto.
10623 * config/c6x/c6x.c: Ditto.
10624 * config/cris/cris.c: Ditto.
10625 * config/darwin.c: Ditto.
10626 * config/darwin-c.c: Ditto.
10627 * config/i386/i386.c: Ditto.
10628 * config/i386/winnt.c: Ditto.
10629 * config/microblaze/microblaze.c: Ditto.
10630 * config/mips/mips.c: Ditto.
10631 * config/rs6000/rs6000.c: Ditto.
10632 * config/rx/rx.c: Ditto.
10634 2014-10-28 Richard Biener <rguenther@suse.de>
10636 * gimple-fold.h (follow_single_use_edges): Declare.
10637 * gimple-fold.c (follow_single_use_edges): New function.
10638 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10639 * tree-ssa-propagate.c
10640 (substitute_and_fold_dom_walker::before_dom_children): Allow
10641 following single-use edges when folding stmts we propagated into.
10643 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10644 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10645 Anna Tikhonova <anna.tikhonova@intel.com>
10646 Ilya Tocar <ilya.tocar@intel.com>
10647 Andrey Turetskiy <andrey.turetskiy@intel.com>
10648 Ilya Verbin <ilya.verbin@intel.com>
10649 Kirill Yukhin <kirill.yukhin@intel.com>
10650 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10652 * config/i386/avx512bwintrin.h: New.
10653 * config/i386/avx512dqintrin.h: Ditto.
10654 * config/i386/avx512vlbwintrin.h: Ditto.
10655 * config/i386/avx512vldqintrin.h: Ditto.
10656 * config/i386/avx512vlintrin.h: Ditto.
10657 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10658 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10660 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10661 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10662 Anna Tikhonova <anna.tikhonova@intel.com>
10663 Ilya Tocar <ilya.tocar@intel.com>
10664 Andrey Turetskiy <andrey.turetskiy@intel.com>
10665 Ilya Verbin <ilya.verbin@intel.com>
10666 Kirill Yukhin <kirill.yukhin@intel.com>
10667 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10669 * config/i386/i386.c
10670 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10671 avx_shufpd256_mask, avx_vpermilv2df_mask.
10673 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10675 Anna Tikhonova <anna.tikhonova@intel.com>
10676 Ilya Tocar <ilya.tocar@intel.com>
10677 Andrey Turetskiy <andrey.turetskiy@intel.com>
10678 Ilya Verbin <ilya.verbin@intel.com>
10679 Kirill Yukhin <kirill.yukhin@intel.com>
10680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10682 * config/i386/i386.c
10683 (ix86_init_mmx_sse_builtins):
10684 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10685 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10686 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10687 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10688 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10689 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10690 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10691 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10692 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10693 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10694 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10695 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10696 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10697 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10698 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10699 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10700 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10701 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10703 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10705 Anna Tikhonova <anna.tikhonova@intel.com>
10706 Ilya Tocar <ilya.tocar@intel.com>
10707 Andrey Turetskiy <andrey.turetskiy@intel.com>
10708 Ilya Verbin <ilya.verbin@intel.com>
10709 Kirill Yukhin <kirill.yukhin@intel.com>
10710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10712 * config/i386/i386.c
10713 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10714 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10715 IX86_BUILTIN_GATHER3ALTDIV8SI.
10716 (ix86_expand_builtin):
10717 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10718 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10719 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10720 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10721 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10722 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10723 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10724 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10725 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10726 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10727 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10728 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10729 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10730 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10731 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10732 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10733 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10734 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10735 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10736 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10738 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10740 Anna Tikhonova <anna.tikhonova@intel.com>
10741 Ilya Tocar <ilya.tocar@intel.com>
10742 Andrey Turetskiy <andrey.turetskiy@intel.com>
10743 Ilya Verbin <ilya.verbin@intel.com>
10744 Kirill Yukhin <kirill.yukhin@intel.com>
10745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10747 * config/i386/i386-builtin-types.def
10766 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10767 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10768 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10769 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10770 (V16SF_FTYPE_V16HI): Ditto.
10771 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10772 (V16SF_FTYPE_V16SI): Ditto.
10773 (V4DI_FTYPE_V4DI): Ditto.
10774 (V16SI_FTYPE_V16SF): Ditto.
10775 (V8DI_FTYPE_PV2DI): Ditto.
10776 (V8DF_FTYPE_PV2DF): Ditto.
10777 (V4DI_FTYPE_PV2DI): Ditto.
10778 (V4DF_FTYPE_PV2DF): Ditto.
10779 (V16SI_FTYPE_PV2SI): Ditto.
10780 (V16SF_FTYPE_PV2SF): Ditto.
10781 (V8SF_FTYPE_FLOAT): Ditto.
10782 (V4SF_FTYPE_FLOAT): Ditto.
10783 (V4DF_FTYPE_DOUBLE): Ditto.
10784 (V8SF_FTYPE_PV4SF): Ditto.
10785 (V8SI_FTYPE_PV4SI): Ditto.
10786 (V4SI_FTYPE_PV2SI): Ditto.
10787 (V8SF_FTYPE_PV2SF): Ditto.
10788 (V8SI_FTYPE_PV2SI): Ditto.
10789 (V16SF_FTYPE_PV8SF): Ditto.
10790 (V16SI_FTYPE_PV8SI): Ditto.
10791 (V8DI_FTYPE_V8SF): Ditto.
10792 (V4DI_FTYPE_V4SF): Ditto.
10793 (V2DI_FTYPE_V4SF): Ditto.
10794 (V64QI_FTYPE_QI): Ditto.
10795 (V32HI_FTYPE_HI): Ditto.
10796 (V16UHI_FTYPE_V16UHI): Ditto.
10797 (V32UHI_FTYPE_V32UHI): Ditto.
10798 (V2UDI_FTYPE_V2UDI): Ditto.
10799 (V4UDI_FTYPE_V4UDI): Ditto.
10800 (V8UDI_FTYPE_V8UDI): Ditto.
10801 (V4USI_FTYPE_V4USI): Ditto.
10802 (V16USI_FTYPE_V16USI): Ditto.
10803 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10804 (V2DF_FTYPE_V8DF_INT): Ditto.
10805 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10806 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10807 (V8DF_FTYPE_V8DF_INT): Ditto.
10808 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10809 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10810 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10811 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10812 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10813 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10814 (V8DI_FTYPE_V8DI_INT): Ditto.
10815 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10816 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10817 (V8SF_FTYPE_V16SF_INT): Ditto.
10818 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10819 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10820 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10821 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10822 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10823 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10824 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10825 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10826 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10827 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10828 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10829 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10830 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10831 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10832 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10833 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10834 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10835 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10836 (V32HI_FTYPE_V32HI_INT): Ditto.
10837 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10838 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10839 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10840 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10841 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10842 (V8SI_FTYPE_V16SI_INT): Ditto.
10843 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10844 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10845 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10846 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10847 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
10848 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
10849 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10850 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10851 (V8DI_FTYPE_V64QI_V64QI): Ditto.
10852 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10853 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10854 (V2DI_FTYPE_V8DI_INT): Ditto.
10855 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10856 (QI_FTYPE_QI): Ditto.
10857 (SI_FTYPE_SI): Ditto.
10858 (DI_FTYPE_DI): Ditto.
10859 (HI_FTYPE_V16QI): Ditto.
10860 (SI_FTYPE_V32QI): Ditto.
10861 (DI_FTYPE_V64QI): Ditto.
10862 (QI_FTYPE_V8HI): Ditto.
10863 (HI_FTYPE_V16HI): Ditto.
10864 (SI_FTYPE_V32HI): Ditto.
10865 (QI_FTYPE_V4SI): Ditto.
10866 (QI_FTYPE_V8SI): Ditto.
10867 (HI_FTYPE_V16SI): Ditto.
10868 (QI_FTYPE_V2DI): Ditto.
10869 (QI_FTYPE_V4DI): Ditto.
10870 (QI_FTYPE_V8DI): Ditto.
10871 (V16QI_FTYPE_HI): Ditto.
10872 (V32QI_FTYPE_SI): Ditto.
10873 (V64QI_FTYPE_DI): Ditto.
10874 (V8HI_FTYPE_QI): Ditto.
10875 (V16HI_FTYPE_HI): Ditto.
10876 (V32HI_FTYPE_SI): Ditto.
10877 (V4SI_FTYPE_QI): Ditto.
10878 (V4SI_FTYPE_HI): Ditto.
10879 (V8SI_FTYPE_QI): Ditto.
10880 (V8SI_FTYPE_HI): Ditto.
10881 (V2DI_FTYPE_QI): Ditto.
10882 (V4DI_FTYPE_QI): Ditto.
10883 (QI_FTYPE_QI_QI): Ditto.
10884 (SI_FTYPE_SI_SI): Ditto.
10885 (DI_FTYPE_DI_DI): Ditto.
10886 (QI_FTYPE_QI_INT): Ditto.
10887 (SI_FTYPE_SI_INT): Ditto.
10888 (DI_FTYPE_DI_INT): Ditto.
10889 (HI_FTYPE_V16QI_V16QI): Ditto.
10890 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10891 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10892 (SI_FTYPE_V32QI_V32QI): Ditto.
10893 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10894 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10895 (DI_FTYPE_V64QI_V64QI): Ditto.
10896 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10897 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10898 (QI_FTYPE_V8HI_V8HI): Ditto.
10899 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10900 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10901 (HI_FTYPE_V16HI_V16HI): Ditto.
10902 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10903 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10904 (SI_FTYPE_V32HI_V32HI): Ditto.
10905 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10906 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10907 (QI_FTYPE_V4SI_V4SI): Ditto.
10908 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10909 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10910 (QI_FTYPE_V8SI_V8SI): Ditto.
10911 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10912 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10913 (QI_FTYPE_V2DI_V2DI): Ditto.
10914 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10915 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10916 (QI_FTYPE_V4DI_V4DI): Ditto.
10917 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10918 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10919 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10920 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
10921 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10922 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10923 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10924 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10925 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10926 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10927 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10928 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10929 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10930 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10931 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10932 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10933 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10934 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10935 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10936 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10937 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10938 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10939 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10940 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10941 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10942 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10943 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10944 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10945 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10946 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10947 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10948 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10949 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10950 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10951 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10952 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10953 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10954 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10955 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10956 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10957 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10958 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10959 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10960 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10961 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10962 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10963 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10964 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10965 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10966 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10967 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10968 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10969 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10970 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10971 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10972 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10973 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10974 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10975 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10976 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10977 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10978 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10979 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10980 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10981 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10982 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10983 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10984 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10985 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10986 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10987 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10988 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10989 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10990 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10991 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10992 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
10993 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10994 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10995 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
10996 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10997 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10998 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
10999 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
11000 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
11001 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
11002 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
11003 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
11004 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
11005 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
11006 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
11007 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
11008 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
11009 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
11010 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
11011 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
11012 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
11013 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
11014 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
11015 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
11016 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
11017 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
11018 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
11019 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
11020 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
11021 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
11022 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
11023 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
11024 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
11025 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
11026 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11027 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11028 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
11029 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
11030 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11031 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
11032 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11033 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11034 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11035 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11036 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11037 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11038 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11039 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11040 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11041 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11042 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11043 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11044 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11045 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11046 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11047 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11048 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11049 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11050 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11051 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11052 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11053 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11054 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11055 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11056 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11057 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11058 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11059 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11060 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11061 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11062 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11063 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11064 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11065 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11066 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11067 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11068 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11069 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11070 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11071 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11072 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11073 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11074 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11075 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11076 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11077 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11078 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11079 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11080 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11081 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11082 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11083 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11084 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11085 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11086 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11087 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11088 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11089 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11090 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11091 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11092 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11093 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11094 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11095 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11096 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11097 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11098 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11099 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11100 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11101 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11102 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11103 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11104 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11105 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11106 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11107 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11108 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11109 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11110 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11111 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11112 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11113 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11114 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11115 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11116 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11117 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11118 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11119 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11120 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11121 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11122 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11123 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11124 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11125 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11126 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11127 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11128 (QI_FTYPE_V8DF_INT): Ditto.
11129 (QI_FTYPE_V4DF_INT): Ditto.
11130 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11131 (QI_FTYPE_V2DF_INT): Ditto.
11132 (HI_FTYPE_V16SF_INT): Ditto.
11133 (QI_FTYPE_V8SF_INT): Ditto.
11134 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11135 (QI_FTYPE_V4SF_INT): Ditto.
11136 (QI_FTYPE_V8DF_INT_QI): Ditto.
11137 (QI_FTYPE_V4DF_INT_QI): Ditto.
11138 (QI_FTYPE_V2DF_INT_QI): Ditto.
11139 (HI_FTYPE_V16SF_INT_HI): Ditto.
11140 (QI_FTYPE_V8SF_INT_QI): Ditto.
11141 (QI_FTYPE_V4SF_INT_QI): Ditto.
11142 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
11143 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
11144 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11145 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11146 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11147 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11148 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11149 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11150 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11151 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11152 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11153 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11154 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11155 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11156 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11157 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11158 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11159 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11160 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11161 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11162 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11163 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11164 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11165 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11166 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11167 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11168 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11169 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11170 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11171 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11172 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11173 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11174 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11175 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11176 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11177 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11178 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11179 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11180 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11181 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11182 (V8DI_FTYPE_V8DI_INT): Ditto.
11183 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11184 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11185 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11186 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11187 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11188 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11189 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11190 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11191 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11192 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11193 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11194 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11195 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11196 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11197 * config/i386/i386.c (ix86_builtins):
11198 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11199 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11200 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11201 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11202 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11203 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11204 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11205 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11206 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11207 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11208 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11209 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11210 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11211 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11212 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11213 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11214 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11215 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11216 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11217 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11218 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11219 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11220 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11221 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11222 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11223 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11224 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11225 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11226 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11227 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11228 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11229 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11230 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11231 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11232 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11233 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11234 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11235 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11236 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11237 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11238 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11239 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11240 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11241 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11242 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11243 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11244 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11245 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11246 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11247 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11248 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11249 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11250 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11251 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11252 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11253 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11254 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11255 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11256 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11257 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11258 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11259 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11260 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11261 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11262 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11263 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11264 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11265 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11266 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11267 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11268 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11269 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11270 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11271 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11272 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11273 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11274 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11275 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11276 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11277 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11278 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11279 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11280 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11281 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11282 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11283 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11284 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11285 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11286 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11287 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11288 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11289 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11290 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11291 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11292 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11293 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11294 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11295 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11296 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11297 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11298 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11299 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11300 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11301 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11302 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11303 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11304 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11305 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11306 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11307 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11308 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11309 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11310 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11311 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11312 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11313 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11314 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11315 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11316 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11317 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11318 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11319 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11320 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11321 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11322 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11323 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11324 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11325 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11326 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11327 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11328 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11329 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11330 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11331 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11332 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11333 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11334 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11335 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11336 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11337 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11338 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11339 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11340 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11341 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11342 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11343 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11344 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11345 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11346 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11347 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11348 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11349 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11350 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11351 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11352 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11353 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11354 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11355 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11356 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11357 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11358 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11359 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11360 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11361 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11362 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11363 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11364 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11365 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11366 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11367 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11368 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11369 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11370 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11371 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11372 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11373 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11374 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11375 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11376 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11377 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11378 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11379 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11380 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11381 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11382 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11383 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11384 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11385 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11386 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11387 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11388 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11389 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11390 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11391 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11392 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11393 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11394 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11395 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11396 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11397 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11398 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11399 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11400 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11401 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11402 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11403 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11404 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11405 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11406 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11407 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11408 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11409 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11410 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11411 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11412 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11413 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11414 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11415 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11416 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11417 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11418 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11419 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11420 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11421 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11422 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11423 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11424 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11425 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11426 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11427 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11428 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11429 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11430 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11431 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11432 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11433 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11434 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11435 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11436 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11437 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11438 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11439 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11440 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11441 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11442 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11443 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11444 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11445 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11446 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11447 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11448 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11449 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11450 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11451 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11452 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11453 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11454 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11455 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11456 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11457 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11458 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11459 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11460 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11461 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11462 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11463 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11464 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11465 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11466 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11467 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11468 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11469 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11470 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11471 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11472 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11473 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11474 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11475 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11476 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11477 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11478 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11479 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11480 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11481 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11482 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11483 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11484 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11485 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11486 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11487 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11488 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11489 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11490 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11491 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11492 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11493 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11494 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11495 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11496 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11497 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11498 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11499 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11500 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11501 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11502 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11503 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11504 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11505 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11506 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11507 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11508 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11509 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11510 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11511 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11512 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11513 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11514 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11515 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11516 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11517 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11518 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11519 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11520 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11521 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11522 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11523 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11524 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11525 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11526 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11527 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11528 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11529 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11530 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11531 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11532 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11533 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11534 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11535 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11536 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11537 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11538 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11539 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11540 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11541 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11542 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11543 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11544 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11545 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11546 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11547 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11548 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11549 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11550 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11551 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11552 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11553 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11554 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11555 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11556 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11557 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11558 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11559 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11560 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11561 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11562 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11563 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11564 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11565 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11566 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11567 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11568 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11569 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11570 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11571 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11572 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11573 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11574 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11575 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11576 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11577 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11578 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11579 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11580 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11581 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11582 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11583 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11584 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11585 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11586 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11587 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11588 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11589 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11590 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11591 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11592 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11593 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11594 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11595 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11596 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11597 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11598 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11599 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11600 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11601 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11602 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11603 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11604 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11605 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11606 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11607 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11608 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11609 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11610 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11611 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11612 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11613 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11614 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11615 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11616 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11617 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11618 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11619 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11620 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11621 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11622 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11623 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11624 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11625 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11626 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11627 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11628 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11629 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11630 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11631 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11632 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11633 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11634 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11635 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11636 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11637 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11638 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11639 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11640 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11641 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11642 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11643 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11644 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11645 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11646 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11647 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11648 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11649 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11650 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11651 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11652 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11653 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11654 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11655 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11656 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11657 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11658 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11659 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11660 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11661 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11662 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11663 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11664 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11665 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11666 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11667 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11668 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11669 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11670 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11671 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11672 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11673 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11674 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11675 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11676 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11677 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11678 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11679 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11680 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11681 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11682 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11683 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11684 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11685 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11686 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11687 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11688 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11689 (bdesc_special_args):
11690 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11691 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11692 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11693 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11694 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11695 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11696 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11697 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11698 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11699 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11700 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11701 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11702 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11703 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11704 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11705 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11706 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11707 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11708 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11709 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11710 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11711 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11712 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11713 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11714 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11715 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11716 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11717 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11718 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11719 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11720 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11721 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11722 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11723 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11724 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11725 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11726 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11727 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11728 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11729 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11730 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11731 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11732 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11733 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11734 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11735 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11736 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11737 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11738 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11739 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11740 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11741 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11742 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11743 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11744 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11745 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11746 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11747 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11748 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11749 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11750 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11751 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11752 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11753 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11754 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11755 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11756 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11757 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11758 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11759 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11760 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11761 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11762 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11763 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11764 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11765 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11766 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11767 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11768 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11769 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11770 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11771 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11772 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11773 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11774 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11775 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11776 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11777 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11778 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11779 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11780 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11781 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11782 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11783 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11784 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11785 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11786 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11787 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11788 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11789 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11790 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11791 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11792 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11793 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11794 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11795 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11796 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11797 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11798 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11799 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11800 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11801 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11802 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11803 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11804 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11805 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11806 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11807 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11808 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11809 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11810 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11811 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11812 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11813 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11814 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11815 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11816 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11817 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11818 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11819 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11820 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11821 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11822 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11823 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11824 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11825 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11826 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11827 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11828 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11829 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11830 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11831 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11832 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11833 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11834 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11835 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11836 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11837 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11838 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11839 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11840 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11841 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11842 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11843 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
11844 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
11845 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
11846 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
11847 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
11848 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
11849 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
11850 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
11851 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
11852 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
11853 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
11854 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
11855 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
11856 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
11857 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
11858 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
11859 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
11860 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
11861 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
11862 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
11863 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
11864 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
11865 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
11866 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
11867 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
11868 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
11869 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
11870 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
11871 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
11872 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
11873 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
11874 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
11875 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
11876 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
11877 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
11878 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
11879 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
11880 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
11881 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
11882 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
11883 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
11884 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
11885 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
11886 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
11887 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
11888 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
11889 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
11890 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
11891 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
11892 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
11893 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
11894 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
11895 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
11896 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
11897 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
11898 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
11899 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
11900 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
11901 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
11902 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
11903 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
11904 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
11905 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
11906 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
11907 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
11908 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
11909 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
11910 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
11911 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
11912 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
11913 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
11914 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
11915 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
11916 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
11917 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
11918 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
11919 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
11920 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
11921 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
11922 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
11923 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
11924 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
11925 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
11926 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
11927 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
11928 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
11929 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
11930 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
11931 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
11932 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
11933 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
11934 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
11935 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
11936 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
11937 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
11938 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
11939 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
11940 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
11941 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
11942 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
11943 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
11944 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
11945 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
11946 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
11947 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
11948 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
11949 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
11950 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
11951 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
11952 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
11953 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
11954 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
11955 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
11956 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
11957 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
11958 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
11959 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
11960 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
11961 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
11962 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
11963 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
11964 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
11965 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
11966 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
11967 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
11968 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
11969 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
11970 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
11971 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
11972 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
11973 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
11974 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
11975 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
11976 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
11977 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
11978 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
11979 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
11980 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
11981 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
11982 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
11983 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
11984 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
11985 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
11986 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
11987 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
11988 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
11989 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
11990 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
11991 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
11992 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
11993 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
11994 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
11995 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
11996 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
11997 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
11998 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
11999 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
12000 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
12001 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
12002 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
12003 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
12004 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
12005 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
12006 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
12007 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
12008 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
12009 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
12010 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
12011 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
12012 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
12013 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
12014 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
12015 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
12016 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
12017 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
12018 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
12019 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
12020 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
12021 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
12022 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
12023 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
12024 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
12025 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
12026 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
12027 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
12028 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
12029 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
12030 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
12031 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
12032 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
12033 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
12034 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
12035 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
12036 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
12037 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
12038 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
12039 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
12040 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
12041 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
12042 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
12043 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
12044 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
12045 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
12046 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
12047 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
12048 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
12049 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
12050 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
12051 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
12052 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
12053 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
12054 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
12055 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
12056 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
12057 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
12058 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
12059 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
12060 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
12061 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
12062 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
12063 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
12064 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
12065 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
12066 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
12067 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
12068 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
12069 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
12070 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
12071 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
12072 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
12073 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
12074 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
12075 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
12076 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
12077 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
12078 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
12079 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
12080 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
12081 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
12082 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
12083 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
12084 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
12085 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
12086 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
12087 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
12088 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
12089 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
12090 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
12091 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
12092 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
12093 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
12094 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
12095 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
12096 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
12097 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
12098 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
12099 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
12100 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
12101 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
12102 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
12103 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
12104 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
12105 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
12106 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
12107 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
12108 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
12109 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
12110 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
12111 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
12112 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
12113 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
12114 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
12115 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
12116 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
12117 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
12118 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
12119 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
12120 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
12121 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
12122 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
12123 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
12124 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
12125 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
12126 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
12127 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
12128 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
12129 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
12130 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
12131 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
12132 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
12133 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
12134 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
12135 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
12136 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
12137 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
12138 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
12139 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
12140 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
12141 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
12142 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
12143 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
12144 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12145 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12146 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12147 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12148 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12149 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12150 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12151 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12152 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12153 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12154 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12155 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12156 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12157 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12158 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12159 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12160 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12161 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12162 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12163 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12164 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12165 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12166 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12167 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12168 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12169 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12170 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12171 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12172 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12173 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12174 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12175 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12176 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12177 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12178 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12179 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12180 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12181 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12182 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12183 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12184 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12185 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12186 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12187 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12188 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12189 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12190 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12191 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12192 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12193 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12194 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12195 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12196 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12197 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12198 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12199 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12200 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12201 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12202 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12203 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12204 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12205 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12206 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12207 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12208 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12209 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12210 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12211 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12212 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12213 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12214 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12215 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12216 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12217 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12218 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12219 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12220 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12221 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12222 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12223 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12224 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12225 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12226 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12227 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12228 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12229 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12230 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12231 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12232 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12233 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12234 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12235 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12236 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12237 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12238 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12239 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12240 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12241 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12242 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12243 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12244 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12245 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12246 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12247 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12248 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12249 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12250 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12251 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12252 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12253 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12254 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12255 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12256 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12257 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12258 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12259 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12260 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12261 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12262 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12263 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12264 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12265 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12266 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12267 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12268 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12269 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12270 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12271 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12272 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12273 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12274 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12275 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12276 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12277 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12278 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12279 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12280 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12281 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12282 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12283 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12284 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12285 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12286 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12287 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12288 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12289 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12290 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12291 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12292 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12293 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12294 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12295 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12296 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12297 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12298 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12300 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12302 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12303 type for the left shift in CASE_CONVERT case.
12305 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12307 * asan.h (asan_intercepted_p): New function.
12308 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12309 hash value construction. Call iterative_hash_expr instead of explicit
12311 (asan_mem_ref_hasher::equal): Change condition.
12312 (has_mem_ref_been_instrumented): Likewise.
12313 (update_mem_ref_hash_table): Likewise.
12314 (maybe_update_mem_ref_hash_table): New function.
12315 (instrument_strlen_call): Removed.
12316 (get_mem_refs_of_builtin_call): Handle new parameter.
12317 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12318 of instrument_mem_region_access if intercepted_p is true.
12319 (instrument_mem_region_access): Instrument only base with len instead of
12320 base and end with 1.
12321 (build_check_stmt): Remove start_instrumented and end_instrumented
12323 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12324 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12325 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12326 * builtins.c (expand_builtin): Include asan.h. Don't expand
12327 string/memory builtin functions that have interceptors if ASan is
12330 2014-10-28 Richard Biener <rguenther@suse.de>
12332 PR middle-end/63665
12333 * fold-const.c (fold_comparison): Properly guard simplifying
12334 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12336 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12338 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12339 * fold-const.c (const_binop): Likewise.
12340 * cfgexpand.c (expand_debug_expr): Likewise.
12341 * tree-inline.c (estimate_operator_cost): Likewise.
12342 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12343 * optabs.c (optab_for_tree_code): Likewise.
12344 (expand_vec_shift_expr): Likewise, update comment.
12345 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12346 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12347 * optabs.def: Remove vec_shl_optab.
12348 * doc/md.texi: Remove references to vec_shr_m.
12350 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12352 * asan.c (report_error_func): Add noabort path.
12353 (check_func): Ditto. Formatting.
12354 (asan_expand_check_ifn): Handle noabort path.
12355 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12357 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12358 * opts.c (finish_options): Reword comment.
12359 * sanitizer.def: Add noabort ASan builtins.
12361 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12363 * asan.c (set_asan_shadow_offset): New function.
12364 (asan_shadow_offset): Likewise.
12365 (asan_emit_stack_protection): Call asan_shadow_offset.
12366 (build_shadow_mem_access): Likewise.
12367 * asan.h (set_asan_shadow_offset): Declare.
12368 * common.opt (fasan-shadow-offset): New option.
12369 (frandom-seed): Fixed parameter name.
12370 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12371 (frandom-seed): Fixed parameter name.
12372 * opts-global.c (handle_common_deferred_options): Handle
12373 -fasan-shadow-offset.
12374 * opts.c (common_handle_option): Likewise.
12376 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12379 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12381 2014-10-27 DJ Delorie <dj@redhat.com>
12383 * tree.c (build_common_tree_nodes): Don't even store the
12384 __int128 types if they're not supported.
12386 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12388 * config/i386/i386.c (ix86_loop_memcount): Delete.
12389 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12391 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12393 * config/i386/i386.c (find_constant_1): Delete.
12394 (find_constant): Use FOR_EACH_SUBRTX.
12396 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12398 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12399 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12401 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12403 * config/i386/i386.c: Include rtl-iter.h
12404 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12405 (ix86_check_avx256_stores): Update call accordingly.
12406 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12407 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12409 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12411 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12412 Take an rtx and return a bool.
12413 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12414 Use FOR_EACH_SUBRTX_VAR.
12415 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12418 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12420 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12422 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12423 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12425 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12427 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12428 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12430 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12432 * config/alpha/alpha.c: Include rtl-iter.h.
12433 (split_small_symbolic_operand_1): Delete.
12434 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12436 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12438 * config/s390/s390.c: Include rtl-iter.h.
12439 (check_dpu): Delete.
12440 (s390_loop_unroll_adjust): Only iterate over patterns.
12441 Use FOR_EACH_SUBRTX.
12443 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12445 * config/spu/spu.c: Include rtl-iter.h
12446 (ea_symbol_ref): Replace with...
12447 (ea_symbol_ref_p): ...this new function.
12448 (spu_legitimate_address_p): Update call accordingly.
12449 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12451 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12452 Tom Tromey <tromey@redhat.com>
12454 * aclocal.m4, configure: Rebuild.
12455 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12456 * configure.ac: Use GCC_ENABLE_PLUGINS.
12457 * stor-layout.c (finish_bitfield_layout): Now public. Change
12458 argument type to 'tree'.
12459 (finish_record_layout): Update.
12460 * stor-layout.h (finish_bitfield_layout): Declare.
12462 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12464 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12465 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12466 Restore, enable for bigendian, update to use __builtin..._scal...
12468 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12470 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12471 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12472 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12473 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12475 * config/aarch64/aarch64-simd.md
12476 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12477 (reduc_<maxmin_uns>_internal<mode>): ...this.
12478 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12479 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12481 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12482 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12483 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12485 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12486 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12487 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12488 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12489 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12490 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12491 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12492 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12494 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12496 * config/aarch64/aarch64-simd-builtins.def
12497 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12499 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12501 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12502 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12504 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12505 (aarch64_reduc_plus_internal<mode>): ...this.
12507 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12508 (aarch64_reduc_plus_internalv2si): ...this.
12510 (reduc_splus_<mode>/V2F): Rename to...
12511 (aarch64_reduc_plus_internal<mode>): ...this.
12513 * config/aarch64/iterators.md
12514 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12515 (UNSPEC_ADDV): New.
12516 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12518 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12519 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12520 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12521 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12522 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12524 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12526 PR tree-optimization/61114
12527 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12528 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12530 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12531 back to old reduc_... + BIT_FIELD_REF only if not.
12533 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12534 return the reduce-to-scalar (reduc_..._scal) optab.
12535 (scalar_reduc_to_vector): New.
12537 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12538 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12541 * optabs.h (scalar_reduc_to_vector): Declare.
12543 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12544 to either scalar or vector.
12546 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12548 PR tree-optimization/61114
12549 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12550 extract_bit_field around optab result.
12552 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12555 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12556 for REDUC_{MIN,MAX,PLUS}_EXPR.
12558 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12559 (vect_create_epilog_for_reduction): For direct vector reduction, use
12560 result of tree code directly without extract_bit_field.
12562 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12565 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12567 * basic-block.h: Remove all includes.
12568 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12569 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12570 * Makefile.in (GTFILES): Add cfg.h to list.
12571 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12572 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12573 * genconditions.c (write_header): Add predict.h and basic-block.h to
12575 * genemit.c (main): Ditto.
12576 * genpreds.c (write_insn_preds_c): Ditto.
12577 * genrecog.c (write_header): Ditto.
12578 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12579 to list of includes.
12580 * alias.c: Adjust include files.
12582 * auto-inc-dec.c: Ditto.
12583 * auto-profile.c: Ditto.
12584 * bb-reorder.c: Ditto.
12585 * bt-load.c: Ditto.
12586 * builtins.c: Ditto.
12587 * caller-save.c: Ditto.
12590 * cfganal.c: Ditto.
12591 * cfgbuild.c: Ditto.
12592 * cfgcleanup.c: Ditto.
12593 * cfgexpand.c: Ditto.
12594 * cfghooks.c: Ditto.
12595 * cfgloop.c: Ditto.
12596 * cfgloopanal.c: Ditto.
12597 * cfgloopmanip.c: Ditto.
12599 * cgraphbuild.c: Ditto.
12600 * cgraphclones.c: Ditto.
12601 * cgraphunit.c: Ditto.
12602 * combine-stack-adj.c: Ditto.
12603 * combine.c: Ditto.
12604 * compare-elim.c: Ditto.
12605 * coverage.c: Ditto.
12609 * data-streamer-in.c: Ditto.
12610 * data-streamer-out.c: Ditto.
12611 * data-streamer.c: Ditto.
12615 * df-core.c: Ditto.
12616 * df-problems.c: Ditto.
12617 * df-scan.c: Ditto.
12620 * dominance.c: Ditto.
12621 * domwalk.c: Ditto.
12623 * dwarf2cfi.c: Ditto.
12624 * emit-rtl.c: Ditto.
12625 * et-forest.c: Ditto.
12630 * fold-const.c: Ditto.
12631 * function.c: Ditto.
12633 * gcc-plugin.h: Ditto.
12635 * generic-match-head.c: Ditto.
12636 * ggc-page.c: Ditto.
12637 * gimple-builder.c: Ditto.
12638 * gimple-expr.c: Ditto.
12639 * gimple-fold.c: Ditto.
12640 * gimple-iterator.c: Ditto.
12641 * gimple-low.c: Ditto.
12642 * gimple-match-head.c: Ditto.
12643 * gimple-pretty-print.c: Ditto.
12644 * gimple-ssa-isolate-paths.c: Ditto.
12645 * gimple-ssa-strength-reduction.c: Ditto.
12646 * gimple-streamer-in.c: Ditto.
12647 * gimple-streamer-out.c: Ditto.
12648 * gimple-streamer.h: Ditto.
12649 * gimple-walk.c: Ditto.
12651 * gimplify-me.c: Ditto.
12652 * gimplify.c: Ditto.
12654 * graphite-blocking.c: Ditto.
12655 * graphite-clast-to-gimple.c: Ditto.
12656 * graphite-dependences.c: Ditto.
12657 * graphite-interchange.c: Ditto.
12658 * graphite-isl-ast-to-gimple.c: Ditto.
12659 * graphite-optimize-isl.c: Ditto.
12660 * graphite-poly.c: Ditto.
12661 * graphite-scop-detection.c: Ditto.
12662 * graphite-sese-to-poly.c: Ditto.
12663 * graphite.c: Ditto.
12664 * haifa-sched.c: Ditto.
12665 * hw-doloop.c: Ditto.
12667 * init-regs.c: Ditto.
12668 * internal-fn.c: Ditto.
12670 * ipa-devirt.c: Ditto.
12671 * ipa-icf-gimple.c: Ditto.
12672 * ipa-icf.c: Ditto.
12673 * ipa-inline-analysis.c: Ditto.
12674 * ipa-inline.c: Ditto.
12675 * ipa-polymorphic-call.c: Ditto.
12676 * ipa-profile.c: Ditto.
12677 * ipa-prop.c: Ditto.
12678 * ipa-pure-const.c: Ditto.
12679 * ipa-reference.c: Ditto.
12680 * ipa-split.c: Ditto.
12681 * ipa-utils.c: Ditto.
12683 * ira-build.c: Ditto.
12684 * ira-color.c: Ditto.
12685 * ira-conflicts.c: Ditto.
12686 * ira-costs.c: Ditto.
12687 * ira-emit.c: Ditto.
12688 * ira-lives.c: Ditto.
12692 * loop-doloop.c: Ditto.
12693 * loop-init.c: Ditto.
12694 * loop-invariant.c: Ditto.
12695 * loop-iv.c: Ditto.
12696 * loop-unroll.c: Ditto.
12697 * lower-subreg.c: Ditto.
12698 * lra-assigns.c: Ditto.
12699 * lra-coalesce.c: Ditto.
12700 * lra-constraints.c: Ditto.
12701 * lra-eliminations.c: Ditto.
12702 * lra-lives.c: Ditto.
12703 * lra-spills.c: Ditto.
12705 * lto-cgraph.c: Ditto.
12706 * lto-compress.c: Ditto.
12707 * lto-opts.c: Ditto.
12708 * lto-section-in.c: Ditto.
12709 * lto-section-out.c: Ditto.
12710 * lto-streamer-in.c: Ditto.
12711 * lto-streamer-out.c: Ditto.
12712 * lto-streamer.c: Ditto.
12714 * mode-switching.c: Ditto.
12715 * modulo-sched.c: Ditto.
12716 * omp-low.c: Ditto.
12718 * opts-global.c: Ditto.
12720 * postreload-gcse.c: Ditto.
12721 * postreload.c: Ditto.
12722 * predict.c: Ditto.
12723 * print-rtl.c: Ditto.
12724 * profile.c: Ditto.
12727 * reg-stack.c: Ditto.
12728 * regcprop.c: Ditto.
12729 * regcprop.h: Ditto.
12730 * reginfo.c: Ditto.
12731 * regrename.c: Ditto.
12732 * regstat.c: Ditto.
12734 * reload1.c: Ditto.
12736 * resource.c: Ditto.
12737 * rtlanal.c: Ditto.
12738 * sched-deps.c: Ditto.
12739 * sched-ebb.c: Ditto.
12740 * sched-int.h: Ditto.
12741 * sched-rgn.c: Ditto.
12742 * sched-vis.c: Ditto.
12743 * sel-sched-dump.c: Ditto.
12744 * sel-sched-ir.c: Ditto.
12745 * sel-sched-ir.h: Ditto.
12746 * sel-sched.c: Ditto.
12748 * shrink-wrap.c: Ditto.
12749 * stack-ptr-mod.c: Ditto.
12751 * store-motion.c: Ditto.
12755 * trans-mem.c: Ditto.
12756 * tree-affine.c: Ditto.
12757 * tree-call-cdce.c: Ditto.
12758 * tree-cfg.c: Ditto.
12759 * tree-cfgcleanup.c: Ditto.
12760 * tree-chrec.c: Ditto.
12761 * tree-complex.c: Ditto.
12762 * tree-data-ref.c: Ditto.
12763 * tree-dfa.c: Ditto.
12764 * tree-eh.c: Ditto.
12765 * tree-emutls.c: Ditto.
12766 * tree-if-conv.c: Ditto.
12767 * tree-inline.c: Ditto.
12768 * tree-into-ssa.c: Ditto.
12769 * tree-loop-distribution.c: Ditto.
12770 * tree-nested.c: Ditto.
12771 * tree-nrv.c: Ditto.
12772 * tree-object-size.c: Ditto.
12773 * tree-outof-ssa.c: Ditto.
12774 * tree-parloops.c: Ditto.
12775 * tree-phinodes.c: Ditto.
12776 * tree-predcom.c: Ditto.
12777 * tree-pretty-print.c: Ditto.
12778 * tree-profile.c: Ditto.
12779 * tree-scalar-evolution.c: Ditto.
12780 * tree-sra.c: Ditto.
12781 * tree-ssa-address.c: Ditto.
12782 * tree-ssa-alias.c: Ditto.
12783 * tree-ssa-ccp.c: Ditto.
12784 * tree-ssa-coalesce.c: Ditto.
12785 * tree-ssa-copy.c: Ditto.
12786 * tree-ssa-copyrename.c: Ditto.
12787 * tree-ssa-dce.c: Ditto.
12788 * tree-ssa-dom.c: Ditto.
12789 * tree-ssa-dse.c: Ditto.
12790 * tree-ssa-forwprop.c: Ditto.
12791 * tree-ssa-ifcombine.c: Ditto.
12792 * tree-ssa-live.c: Ditto.
12793 * tree-ssa-loop-ch.c: Ditto.
12794 * tree-ssa-loop-im.c: Ditto.
12795 * tree-ssa-loop-ivcanon.c: Ditto.
12796 * tree-ssa-loop-ivopts.c: Ditto.
12797 * tree-ssa-loop-manip.c: Ditto.
12798 * tree-ssa-loop-niter.c: Ditto.
12799 * tree-ssa-loop-prefetch.c: Ditto.
12800 * tree-ssa-loop-unswitch.c: Ditto.
12801 * tree-ssa-loop.c: Ditto.
12802 * tree-ssa-math-opts.c: Ditto.
12803 * tree-ssa-operands.c: Ditto.
12804 * tree-ssa-phiopt.c: Ditto.
12805 * tree-ssa-phiprop.c: Ditto.
12806 * tree-ssa-pre.c: Ditto.
12807 * tree-ssa-propagate.c: Ditto.
12808 * tree-ssa-reassoc.c: Ditto.
12809 * tree-ssa-sccvn.c: Ditto.
12810 * tree-ssa-sink.c: Ditto.
12811 * tree-ssa-strlen.c: Ditto.
12812 * tree-ssa-structalias.c: Ditto.
12813 * tree-ssa-tail-merge.c: Ditto.
12814 * tree-ssa-ter.c: Ditto.
12815 * tree-ssa-threadedge.c: Ditto.
12816 * tree-ssa-threadupdate.c: Ditto.
12817 * tree-ssa-uncprop.c: Ditto.
12818 * tree-ssa-uninit.c: Ditto.
12819 * tree-ssa.c: Ditto.
12820 * tree-ssanames.c: Ditto.
12821 * tree-stdarg.c: Ditto.
12822 * tree-streamer-in.c: Ditto.
12823 * tree-streamer-out.c: Ditto.
12824 * tree-streamer.c: Ditto.
12825 * tree-switch-conversion.c: Ditto.
12826 * tree-tailcall.c: Ditto.
12827 * tree-vect-data-refs.c: Ditto.
12828 * tree-vect-generic.c: Ditto.
12829 * tree-vect-loop-manip.c: Ditto.
12830 * tree-vect-loop.c: Ditto.
12831 * tree-vect-patterns.c: Ditto.
12832 * tree-vect-slp.c: Ditto.
12833 * tree-vect-stmts.c: Ditto.
12834 * tree-vectorizer.c: Ditto.
12835 * tree-vrp.c: Ditto.
12839 * valtrack.c: Ditto.
12840 * valtrack.h: Ditto.
12841 * value-prof.c: Ditto.
12842 * var-tracking.c: Ditto.
12844 * varpool.c: Ditto.
12845 * vtable-verify.c: Ditto.
12847 * config/aarch64/aarch64-builtins.c: Ditto.
12848 * config/aarch64/aarch64.c: Ditto.
12849 * config/alpha/alpha.c: Ditto.
12850 * config/arc/arc.c: Ditto.
12851 * config/arm/arm.c: Ditto.
12852 * config/avr/avr.c: Ditto.
12853 * config/bfin/bfin.c: Ditto.
12854 * config/c6x/c6x.c: Ditto.
12855 * config/cr16/cr16.c: Ditto.
12856 * config/cris/cris.c: Ditto.
12857 * config/darwin-c.c: Ditto.
12858 * config/darwin.c: Ditto.
12859 * config/epiphany/epiphany.c: Ditto.
12860 * config/epiphany/mode-switch-use.c: Ditto.
12861 * config/epiphany/resolve-sw-modes.c: Ditto.
12862 * config/fr30/fr30.c: Ditto.
12863 * config/frv/frv.c: Ditto.
12864 * config/h8300/h8300.c: Ditto.
12865 * config/i386/i386.c: Ditto.
12866 * config/i386/winnt.c: Ditto.
12867 * config/ia64/ia64.c: Ditto.
12868 * config/iq2000/iq2000.c: Ditto.
12869 * config/lm32/lm32.c: Ditto.
12870 * config/m32c/m32c.c: Ditto.
12871 * config/m32r/m32r.c: Ditto.
12872 * config/m68k/m68k.c: Ditto.
12873 * config/mcore/mcore.c: Ditto.
12874 * config/mep/mep.c: Ditto.
12875 * config/microblaze/microblaze.c: Ditto.
12876 * config/mips/mips.c: Ditto.
12877 * config/mmix/mmix.c: Ditto.
12878 * config/mn10300/mn10300.c: Ditto.
12879 * config/moxie/moxie.c: Ditto.
12880 * config/msp430/msp430.c: Ditto.
12881 * config/nds32/nds32-cost.c: Ditto.
12882 * config/nds32/nds32-fp-as-gp.c: Ditto.
12883 * config/nds32/nds32-intrinsic.c: Ditto.
12884 * config/nds32/nds32-isr.c: Ditto.
12885 * config/nds32/nds32-md-auxiliary.c: Ditto.
12886 * config/nds32/nds32-memory-manipulation.c: Ditto.
12887 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
12888 * config/nds32/nds32-predicates.c: Ditto.
12889 * config/nds32/nds32.c: Ditto.
12890 * config/nios2/nios2.c: Ditto.
12891 * config/pa/pa.c: Ditto.
12892 * config/pdp11/pdp11.c: Ditto.
12893 * config/rl78/rl78.c: Ditto.
12894 * config/rs6000/rs6000.c: Ditto.
12895 * config/rx/rx.c: Ditto.
12896 * config/s390/s390.c: Ditto.
12897 * config/sh/sh-mem.cc: Ditto.
12898 * config/sh/sh.c: Ditto.
12899 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
12900 * config/sh/sh_treg_combine.cc: Ditto.
12901 * config/sparc/sparc.c: Ditto.
12902 * config/spu/spu.c: Ditto.
12903 * config/stormy16/stormy16.c: Ditto.
12904 * config/tilegx/tilegx.c: Ditto.
12905 * config/tilepro/tilepro.c: Ditto.
12906 * config/v850/v850.c: Ditto.
12907 * config/vax/vax.c: Ditto.
12908 * config/xtensa/xtensa.c: Ditto.
12910 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12912 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
12913 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12914 Remove using preprocessor directives.
12916 2014-10-27 Richard Biener <rguenther@suse.de>
12918 * match.pd (0 % X): Properly use the iterator iterating over
12919 all modulo operators.
12922 2014-10-27 Richard Biener <rguenther@suse.de>
12924 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
12925 (lattice): New global.
12926 (fwprop_ssa_val): New function.
12927 (fold_all_stmts): Likewise.
12928 (pass_forwprop::execute): Finally fold all stmts.
12930 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12933 * doc/invoke.texi (fmessage-length): Update text to match reality.
12935 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12937 * config/microblaze/microblaze.c: Include rtl-iter.h.
12938 (microblaze_tls_referenced_p_1): Delete.
12939 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
12941 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12943 * config/mips/mips.c (mips_at_reg_p): Delete.
12944 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
12946 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12948 * config/mips/mips.c (mips_record_lo_sum): Replace with...
12949 (mips_record_lo_sums): ...this new function.
12950 (mips_reorg_process_insns): Update accordingly.
12952 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12954 * config/mips/mips.c (mips_sim_insn): Update comment.
12955 (mips_sim_wait_regs_2): Delete.
12956 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
12958 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12960 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
12961 and return a bool. Iterate over all subrtxes here.
12962 (r10k_needs_protection_p): Update accordingly.
12964 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12966 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
12967 rather than an rtx pointer. Change type of insn from "void *"
12968 to its real type. Return bool rather than int. Iterate over
12970 (r10k_needs_protection_p_store): Update accordingly.
12971 (r10k_needs_protection_p): Likewise.
12973 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12975 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
12976 (mips16_rewrite_pool_refs): Take the insn and constant pool as
12977 parameters. Iterate over the instruction's pattern and return void.
12978 (mips16_lay_out_constants): Update accordingly.
12980 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12982 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
12983 (mips_refers_to_kernel_reg_p): ...this new function.
12984 (mips_expand_prologue): Update accordingly.
12986 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12988 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
12989 as a parameter instead of the containing MEM. Iterate over all
12990 subrtxes. Don't return a value.
12991 (mips_rewrite_small_data): Update call accordingly.
12993 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12995 * config/mips/mips.c: Include rtl-iter.h.
12996 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
12997 Take the context as a parameter instead of the containing MEM.
12998 Iterate over all subrtxes.
12999 (mips_small_data_pattern_p): Update call accordingly.
13001 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13003 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
13004 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
13006 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13008 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
13009 return a bool. Replace "void *" with specific type. Iterate
13011 (mep_store_data_bypass_1): Update calls accordingly.
13013 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13015 * config/mep/mep.c: Include rtl-iter.h.
13016 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
13017 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
13019 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13021 * config/xtensa/xtensa.c: Include rtl-iter.h.
13022 (xtensa_tls_referenced_p_1): Delete.
13023 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
13025 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13027 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
13028 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
13030 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13032 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
13033 rtx as argument and return the number of changes.
13034 * config/sh/sh.c: Include rtl-iter.h.
13035 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
13036 over all subrtxes. Return the number of changes made.
13037 * config/sh/sh.md: Update caller accordingly.
13039 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13041 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
13042 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
13044 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13046 * config/m68k/m68k.c: Include rtl-iter.h.
13047 (m68k_final_prescan_insn_1): Delete.
13048 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
13050 2014-10-25 Jakub Jelinek <jakub@redhat.com>
13052 PR tree-optimization/63641
13053 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
13054 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
13056 2014-10-25 Alan Modra <amodra@gmail.com>
13058 PR rtl-optimization/63615
13059 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
13060 decomposing PLUS or MINUS if operands are not placed adjacent
13061 in the "ops" array.
13063 2014-10-25 Joseph Myers <joseph@codesourcery.com>
13065 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
13066 not allow e500 double in registers not satisyfing
13069 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
13071 * dwarf2out.c (declare_in_namespace): Only emit external
13072 declarations in the local scope once.
13074 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
13076 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
13078 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13080 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
13081 update uses to use new macro arguments.
13082 (__LD3_LANE_FUNC): Likewise.
13083 (__LD4_LANE_FUNC): Likewise.
13085 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13087 * config/aarch64/aarch64-builtins.c
13088 (aarch64_types_loadstruct_lane_qualifiers): Define.
13089 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
13090 ld4_lane): New builtins.
13091 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
13093 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13094 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13095 (aarch64_ld2_lane<mode>): New expand.
13096 (aarch64_ld3_lane<mode>): Likewise.
13097 (aarch64_ld4_lane<mode>): Likewise.
13098 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13099 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
13101 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
13103 * avr-protos.h (avr_out_sign_extend): New.
13104 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
13105 (avr_out_sign_extend): New function.
13106 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
13107 (extendhisi2, extendpsisi2): Use it.
13108 (adjust_len) [sext]: New.
13110 2014-10-24 Martin Liska <mliska@suse.cz>
13112 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
13115 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13117 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
13118 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13119 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
13120 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13122 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13124 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
13126 * config/aarch64/aarch64.c (is_mem_p): Delete.
13127 (is_memory_op): Rename to...
13128 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
13129 (dep_between_memop_and_curr): Assert that the input is a SET.
13130 (aarch64_madd_needs_nop): Add comment. Do not call
13131 dep_between_memop_and_curr on NULL body.
13132 (aarch64_final_prescan_insn): Add comment.
13133 Include rtl-iter.h.
13135 2014-10-24 Richard Biener <rguenther@suse.de>
13137 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
13138 to genmatch BUILD_LIBS instead.
13140 2014-10-24 Richard Biener <rguenther@suse.de>
13142 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
13143 and build_call_expr_loc.
13144 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13145 non_lvalue_loc to build it for GENERIC.
13146 (decision_tree::gen_generic): Add location argument to
13147 generic_simplify prototype.
13148 (capture_info): New class.
13149 (capture_info::capture_info): New constructor.
13150 (capture_info::walk_match): New method.
13151 (capture_info::walk_result): New method.
13152 (capture_info::walk_c_expr): New method.
13153 (dt_simplify::gen): Handle preserving side-effects for
13154 GENERIC code generation.
13155 (decision_tree::gen_generic): Do not reject operands
13156 with TREE_SIDE_EFFECTS.
13157 * generic-match.h: New file.
13158 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13159 * match.pd: Add some constant folding patterns from fold-const.c.
13160 * fold-const.c: Include generic-match.h.
13161 (fold_unary_loc): Dispatch to generic_simplify.
13162 (fold_ternary_loc): Likewise.
13163 (fold_binary_loc): Likewise. Remove patterns now implemented
13164 by generic_simplify.
13165 * gimple-fold.c (replace_stmt_with_simplification): New function.
13166 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13167 (no_follow_ssa_edges): New function.
13168 (fold_stmt): New overload with valueization hook. Use
13169 no_follow_ssa_edges for the overload without hook.
13170 (fold_stmt_inplace): Likewise.
13171 * gimple-fold.h (no_follow_ssa_edges): Declare.
13173 2014-10-24 Felix Yang <felix.yang@huawei.com>
13174 Jiji Jiang <jiangjiji@huawei.com>
13177 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13178 (__LD3R_FUNC): Ditto.
13179 (__LD4R_FUNC): Ditto.
13180 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13181 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13182 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13183 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13184 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13185 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13186 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13187 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13188 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13189 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13190 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13191 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13192 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13193 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13194 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13195 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13196 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13197 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13198 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13199 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13200 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13202 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13203 (aarch64_simd_ld3r<mode>): Likewise.
13204 (aarch64_simd_ld4r<mode>): Likewise.
13205 (aarch64_ld2r<mode>): New expand.
13206 (aarch64_ld3r<mode>): Likewise.
13207 (aarch64_ld4r<mode>): Likewise.
13209 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13211 * rtlanal.c (get_base_term): Handle SCRATCH.
13213 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13215 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13218 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13220 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13221 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13222 (max_issue, choose_ready, sched_init): Update.
13224 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13226 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13227 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13228 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13229 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13230 (print_rank_for_schedule_stats): Print out elements of ready list that
13231 ended up on their respective places due to each of the sorting
13233 (ready_sort): Update.
13234 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13235 (schedule_block): Update.
13237 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13239 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13240 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13241 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13242 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13243 (model_start_schedule): Update.
13244 (sched_pressure_start_bb): New static function. Calculate
13245 sched_class_regs_num.
13246 (schedule_block): Use it.
13247 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13249 2014-10-24 Richard Biener <rguenther@suse.de>
13251 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13252 host library and make sure to pull in the required libintl
13253 and libiconv dependencies.
13255 2014-10-24 Richard Biener <rguenther@suse.de>
13257 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13259 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13262 * collect2.c (main): Filter out -fno-lto.
13264 2014-10-24 Martin Liska <mliska@suse.cz>
13266 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13267 division by zero in dumps.
13268 (sem_item_optimizer::merge_classes): Ditto.
13270 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13272 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13274 2014-10-23 Ian Lance Taylor <iant@google.com>
13276 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13278 2014-10-23 Ian Lance Taylor <iant@google.com>
13280 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13282 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13285 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13286 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13287 instead of only handling autoinc in dest if it is a MEM.
13288 (vt_stack_adjustments): Fix up formatting.
13290 2014-10-23 DJ Delorie <dj@redhat.com>
13292 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13293 independend of -mlarge.
13294 * config/msp430/constraints.md (Ys): Update comment.
13296 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13300 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13301 while it is pseudo.
13302 * dse.c (deletable_insn_p): Likewise.
13304 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13306 * config/avr/avr.c: Fix GNU coding rules and typos.
13307 * config/avr/avr.h: Dito.
13308 * config/avr/avr-c.c: Dito.
13309 * config/avr/avr.md: Dito.
13311 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13313 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13315 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13317 (define_expand "abs<mode>2"): Ditto.
13319 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13321 * tree-core.h (tree_var_decl): Extend `function_code' field
13322 by one bit, move `regdecl_flag' field to ...
13323 (tree_decl_with_vis): Here.
13324 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13326 2014-10-23 Richard Biener <rguenther@suse.de>
13328 * Makefile.in (BUILD_CPPLIB): Add.
13329 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13332 2014-10-23 Richard Biener <rguenther@suse.de>
13334 * fold-const.c (fold_binary_loc): Preserve side-effects of
13335 X - X when simplifying to 0.
13336 * stor-layout.c (finish_bitfield_representative): Strip
13337 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13339 2014-10-22 Richard Biener <rguenther@suse.de>
13340 Tobias Burnus <burnus@net-b.de>
13343 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13345 2014-10-22 Dehao Chen <dehao@google.com>
13347 * auto-profile.c: Change order of header files.
13349 2014-10-22 Guozhi Wei <carrot@google.com>
13351 PR tree-optimization/63530
13352 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13353 pointer alignment according to DR_MISALIGNMENT.
13355 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13357 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13359 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13361 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13362 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13363 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13364 * dominance.h: New. Add prototypes for dominance.c.
13365 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13366 * cfghooks.h: (struct profile_record) Relocate here.
13367 Relocate 2 prototypes from basic-block.h.
13368 * basic-block.h: Move prototypes and struct to new header files.
13369 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13370 * rtl.h: Move a few prototypes to new header files.
13371 * cfgcleanup.c (merge_memattrs): Make static.
13372 * genopinit.c (main): Add predict.h to list of includes.
13373 * predict.h: Update prototype list to match predict.c.
13374 * predict.c (maybe_hot_count_p): Export.
13375 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13376 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13377 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13378 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13379 * profile.h: Adjust prototypes.
13380 * ifcvt.h: New. Relocate struct ce_if_block here.
13381 * ifcvt.c: Include ifcvt.h.
13382 * config/frv/frv.c: Include ifcvt.h.
13383 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13385 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13387 * lra.c (lra): Remove call to recog_init.
13388 * config/i386/i386.md (preferred_for_speed): New attribute
13389 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13390 "enabled". Remove check for sched1.
13392 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13394 * recog.h (recog_data_d): Remove enabled_alternatives.
13395 * recog.c (extract_insn): Don't set it.
13396 * reload.c (find_reloads): Call get_enabled_alternatives.
13398 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13400 * recog.h (constrain_operands): Add an alternative_mask parameter.
13401 (constrain_operands_cached): Likewise.
13402 (get_preferred_alternatives): Declare new form.
13403 * recog.c (get_preferred_alternatives): New bb-taking instance.
13404 (constrain_operands): Take the set of available alternatives as
13406 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13407 (extract_constrain_insn_cached): Update calls to constrain_operands.
13408 * caller-save.c (reg_save_code): Likewise.
13409 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13410 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13411 * ree.c (combine_reaching_defs): Likewise.
13412 * reload.c (can_reload_into): Likewise.
13413 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13414 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13415 (emit_insn_if_valid_for_reload): Likewise.
13416 * reorg.c (fill_slots_from_thread): Likewise.
13417 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13418 * config/pa/pa.c (pa_can_combine_p): Likewise.
13419 * config/rl78/rl78.c (insn_ok_now): Likewise.
13420 * config/sh/sh.md (define_peephole2): Likewise.
13421 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13423 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13425 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13427 * genattr.c (main): Handle "preferred_for_size" and
13428 "preferred_for_speed" in the same way as "enabled".
13429 * recog.h (bool_attr): New enum.
13430 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13431 (get_preferred_alternatives, check_bool_attrs): Declare.
13432 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13433 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13435 (get_enabled_alternatives): Use get_bool_attr_mask.
13436 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13437 instead of recog_data.enabled_alternatives.
13438 * ira.c (ira_setup_alts): Likewise.
13439 * postreload.c (reload_cse_simplify_operands): Likewise.
13440 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13441 * ira-lives.c (preferred_alternatives): New variable.
13442 (process_bb_node_lives): Set it.
13443 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13444 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13445 of recog_data.enabled_alternatives.
13446 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13447 to preferred_alternatives.
13448 * lra-constraints.c (process_alt_operands): Update accordingly.
13449 * lra.c (lra_set_insn_recog_data): Likewise.
13450 (lra_update_insn_recog_data): Assert check_bool_attrs.
13452 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13454 * recog.h (extract_constrain_insn): Declare.
13455 * recog.c (extract_constrain_insn): New function.
13456 * lra.c (check_rtl): Use it.
13457 * postreload.c (reload_cse_simplify_operands): Likewise.
13458 * reg-stack.c (check_asm_stack_operands): Likewise.
13459 (subst_asm_stack_regs): Likewise.
13460 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13461 * regrename.c (build_def_use): Likewise.
13462 * sel-sched.c (get_reg_class): Likewise.
13463 * config/arm/arm.c (note_invalid_constants): Likewise.
13464 * config/s390/predicates.md (execute_operation): Likewise.
13466 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13467 Yury Gribov <y.gribov@samsung.com>
13469 * common.opt (flag_sanitize_recover): New variable.
13470 (fsanitize-recover): Remove Var/Init, deprecate.
13471 (fsanitize-recover=): New option.
13472 * doc/invoke.texi (fsanitize-recover): Update docs.
13473 * opts.c (finish_options): Use opts->x_flag_sanitize
13474 instead of flag_sanitize. Prohibit -fsanitize-recover
13475 for anything besides UBSan. Formatting.
13476 (common_handle_option): Handle OPT_fsanitize_recover_
13477 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13478 instead of flag_sanitize.
13479 * asan.c (pass_sanopt::execute): Fix up formatting.
13480 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13481 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13482 instrument_bool_enum_load, ubsan_instrument_float_cast,
13483 instrument_nonnull_arg, instrument_nonnull_return): Check
13484 bits in flag_sanitize_recover bitmask instead of
13485 flag_sanitize_recover as bool flag.
13487 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13489 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13491 2014-10-22 Renlin Li <renlin.li@arm.com>
13493 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13494 __ARM_FEATURE_IDIV__.
13496 2014-10-22 Richard Biener <rguenther@suse.de>
13498 * Makefile.in (s-match): Adjust dependencies to only catch
13501 2014-10-22 Richard Biener <rguenther@suse.de>
13502 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13504 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13505 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13506 (gimple-match.c): Generate by triggering s-match.
13507 (generic-match.c): Likewise.
13508 (s-match): Rule to build gimple-match.c and generic-match.c
13509 by running the genmatch generator program.
13510 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13511 (build/genmatch.o): Dependencies to build genmatch.
13512 (genprog): Add match.
13513 (build/genmatch): Likewise.
13514 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13515 * generic-match-head.c: New file.
13516 * gimple-match-head.c: Likewise.
13517 * gimple-match.h: Likewise.
13518 * genmatch.c: Likewise.
13519 * match.pd: Likewise.
13520 * builtins.h (fold_builtin_n): Export.
13521 * builtins.c (fold_builtin_n): Likewise.
13522 * gimple-fold.h (gimple_build): Declare various overloads.
13523 (gimple_simplify): Likewise.
13524 (gimple_convert): Re-implement in terms of gimple_build.
13525 * gimple-fold.c (gimple_convert): Remove.
13526 (gimple_build): New functions.
13527 * doc/match-and-simplify.texi: New file.
13528 * doc/gccint.texi: Add menu item Match and Simplify and include
13529 match-and-simplify.texi.
13531 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13534 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13535 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13536 even for just TARGET_AVX2, not only for
13537 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13538 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13539 otherwise build it using concatenation of 256-bit
13541 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13542 avx512 broadcast patterns.
13543 (vec_dup<mode>): Likewise. For avx2 use
13544 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13545 vbroadcast<ssescalarmodesuffix>.
13546 (AVX2_VEC_DUP_MODE): New mode iterator.
13547 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13548 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13551 * config/i386/i386.c (ix86_pic_register_p): Also return
13552 true if x is a hard register with ORIGINAL_REGNO equal to
13553 pic_offset_table_rtx pseudo REGNO.
13554 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13555 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13557 2014-10-22 Alan Modra <amodra@gmail.com>
13559 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13560 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13561 (gcc_obstack_init): Use obstack_specify_allocation in place of
13563 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13564 (regexp_representation): Likewise.
13565 * godump.c (go_output_type): Likewise.
13567 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13569 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13570 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13571 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13573 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13575 * doc/invoke.texi (pedantic-errors): Explain better.
13577 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13578 Vidya Praveen <vidya.praveen@atmel.com>
13579 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13580 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13581 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13583 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13584 __MEMX for avrtiny.
13585 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13586 (avr_nonconst_pointer_addrspace): Likewise.
13587 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13589 Added AVRTINY architecture to avr target.
13590 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13591 (base_arch_s): member added for AVRTINY architecture.
13592 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13593 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13594 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13595 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13596 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13597 in callee saved register list.
13598 (avr_option_override): CCP address updated for AVRTINY.
13599 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13600 Reset avr_have_dimode if AVRTINY.
13601 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13602 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13603 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13604 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13605 (expand_epilogue): Likewise.
13606 (avr_print_operand): Print CCP address in case of AVRTINY also.
13608 (function_arg_regno_p): Check different register list for arguments
13610 (init_cumulative_args): Check for AVRTINY to update number of argument
13612 (tiny_valid_direct_memory_access_range): New function. Return false if
13613 direct memory access range is not in accepted range for AVRTINY.
13614 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13615 indirect load (with displacement) for AVRTINY.
13616 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13617 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13618 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13619 indirect load (no displacement) for AVRTINY.
13620 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13621 indirect load (with displacement) for AVRTINY.
13622 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13623 indirect load for pre-decrement address.
13624 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13625 functions. Update instruction length for AVRTINY.
13626 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13628 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13629 (out_movsi_r_mr): Likewise, for SImode.
13630 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13631 indirect store (no displacement) for AVRTINY.
13632 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13633 indirect store (with displacement) for AVRTINY.
13634 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13635 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13637 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13638 indirect load (no displacement) for PSImode in AVRTINY.
13639 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13640 indirect load (with displacement) for PSImode in AVRTINY.
13641 (avr_out_load_psi): Call PSImode register indirect load functions for
13642 AVRTINY. Update instruction length for AVRTINY.
13643 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13644 indirect store (no displacement) for PSImode in AVRTINY.
13645 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13646 indirect store (with displacement) for PSImode in AVRTINY.
13647 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13648 register indirect store functions for AVRTINY.
13649 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13650 register indirect store (with displacement) for AVRTINY.
13651 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13652 register indirect store function for QImode in AVRTINY.
13653 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13654 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13655 indirect store (no displacement) for HImode in AVRTINY.
13656 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13657 indirect store (with displacement) for HImode in AVRTINY.
13658 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13659 indirect store for post-increment address in HImode.
13660 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13661 register indirect store function for HImode in AVRTINY.
13662 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13663 in case of AVRTINY.
13664 (order_regs_for_local_alloc): Updated register allocation order for
13666 (avr_conditional_register_usage): New function. It is a target hook
13667 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13668 used registers list and register allocation order for AVRTINY.
13669 (avr_return_in_memory): Update return value size for AVRTINY.
13670 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13671 for AVRTINY arch and tiny program memory base address.
13672 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13673 (avr_texinfo): Added description for AVRTINY arch.
13674 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13675 STATIC_CHAIN_REGNUM for AVRTINY.
13676 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13677 * config/avr/avr.md: Added constants for tmp/ zero registers in
13678 AVRTINY. Attributes for AVRTINY added.
13679 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13680 memory access range.
13681 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13682 in AVRTINY memory access range.
13683 (*mov<mode>): Likewise for HImode and SImode.
13684 (*movsf): Likewise for SFmode.
13685 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13687 * config/avr/avr-protos.h: Added function prototype for
13688 tiny_valid_direct_memory_access_range.
13689 * config/avr/avr-tables.opt: Regenerate.
13690 * gcc/config/avr/t-multilib: Regenerate.
13691 * doc/avr-mmcu.texi: Regenerate.
13693 2014-10-21 Andrew Pinski <apinski@cavium.com>
13695 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13696 available option also.
13697 * config/aarch64/aarch64-cost-tables.h: New file.
13698 * config/aarch64/aarch64-cores.def (thunderx): New core.
13699 * config/aarch64/aarch64-tune.md: Regenerate.
13700 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13701 of config/arm/aarch-cost-tables.h.
13702 (thunderx_regmove_cost): New variable.
13703 (thunderx_tunings): New variable.
13705 2014-10-21 Dehao Chen <dehao@google.com>
13707 * auto-profile.c: New file.
13708 * auto-profile.h: New file.
13709 * basic-block.h (maybe_hot_count_p): New export func.
13710 (add_working_set): New export func.
13711 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13712 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13713 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13714 * opts.c (enable_fdo_optimizations): New func.
13715 (common_handle_option): Handle -fauto-profile flag.
13716 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13717 (class pass_early_inline): Export early_inliner.
13718 (early_inliner): Likewise.
13719 (pass_early_inline::execute): Likewise.
13720 * ipa-inline.h (early_inliner): Likewise.
13721 * predict.c (maybe_hot_count_p): New export func.
13722 (counts_to_freqs): AutoFDO logic.
13723 (rebuild_frequencies): Likewise.
13724 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13725 * profile.c (add_working_set): New func.
13726 * Makefile.in (auto-profile.o): New object file.
13727 * passes.def (pass_ipa_auto_profile): New pass.
13728 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13729 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13730 * toplev.c (compile_file): AutoFDO logic.
13731 * doc/invoke.texi (-fauto-profile): New doc.
13732 * coverage.c (coverage_init): AutoFDO logic.
13733 * common.opt (-fauto-profile): New flag.
13734 * timevar.def (TV_IPA_AUTOFDO): New tag.
13735 * value-prof.c (gimple_alloc_histogram_value): New export func.
13736 (check_ic_target): Likewise.
13737 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13738 (check_ic_target): Likewise.
13740 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13742 * cgraph.c (cgraph_c_finalize): New function.
13743 * cgraph.h (cgraph_c_finalize): New prototype.
13744 (cgraphunit_c_finalize): New prototype.
13745 * cgraphunit.c (first_analyzed): Move from analyze_functions
13747 (first_analyzed_var): Likewise.
13748 (analyze_functions): Move static variables into file-scope.
13749 (cgraphunit_c_finalize): New function.
13750 * diagnostic.c (diagnostic_finish): Free the memory for
13751 context->classify_diagnostic and context->printer, running the
13752 destructor for the latter.
13753 (bt_stop): Use toplev::main.
13754 * dwarf2out.c (dwarf2out_finalize): New function.
13755 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13756 * gcse.c (gcse_c_finalize): New function.
13757 * gcse.h (gcse_c_finalize): New prototype.
13758 * ggc-page.c (init_ggc): Make idempotent.
13759 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13760 * ipa-cp.c (ipa_cp_c_finalize): New function.
13761 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13762 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13763 a field of class pass_ipa_pure_const.
13764 (node_duplication_hook_holder): Likewise.
13765 (node_removal_hook_holder): Likewise.
13766 (register_hooks): Convert to method...
13767 (pass_ipa_pure_const::register_hooks): ...here, converting
13768 static variable init_p into...
13769 (pass_ipa_pure_const::init_p): ...new field.
13770 (pure_const_generate_summary): Update invocation of
13771 register_hooks to invoke as a method of current_pass.
13772 (pure_const_read_summary): Likewise.
13773 (propagate): Convert to...
13774 (pass_ipa_pure_const::execute): ...method.
13775 * ipa-reference.c (ipa_init): Move static bool init_p from here
13777 (ipa_init_p): New file-scope variable, so that it can be reset
13778 when repeatedly invoking the compiler within one process by...
13779 (ipa_reference_c_finalize): New function.
13780 * ipa-reference.h (ipa_reference_c_finalize): New.
13781 * main.c (main): Replace invocation of toplev_main with
13782 construction of a toplev instance, and call its "main" method.
13783 * params.c (global_init_params): Add an assert that
13784 params_finished is false.
13785 (params_c_finalize): New.
13786 * params.h (params_c_finalize): New.
13787 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13788 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13789 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13790 before calling write_summary hook.
13791 (ipa_write_optimization_summaries_1): Likewise when calling
13792 write_optimization_summary hook.
13793 (ipa_read_summaries_1): Likewise for read_summary hook.
13794 (ipa_read_optimization_summaries_1): Likewise for
13795 read_optimization_summary hook.
13796 (execute_ipa_stmt_fixups): Likewise.
13797 * stringpool.c (init_stringpool): Clean up if we're called more
13799 * timevar.c (timevar_init): Ignore repeated calls.
13800 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13802 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13803 (initialize_rtl): Move static local "initialized_once"
13804 into file scope, and rename to...
13805 (rtl_initialized): New variable.
13806 (do_compile): Move timevar initialization from here to
13807 toplev::start_timevars.
13808 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13809 toplev::finalize): New functions.
13810 (toplev_main): Rename to...
13811 (toplev::main): ...this.
13812 * toplev.h (class toplev): New class.
13814 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13816 * loop-doloop.c: Include loop-unroll.h.
13818 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13820 * cfg.h: New. Header file for cfg.c.
13821 * cfganal.h: New. Header file for cfganal.c.
13822 * lcm.h: New. Header file for lcm.c.
13823 * loop-unroll.h: New. Header file for loop-unroll.h.
13824 * cfgloop.h: (unroll_loops): Remove prototype.
13825 * basic-block.h: Move prototypes and structs to new header files.
13826 Include cfg.h, cfganal.h, and lcm.h.
13827 * loop-init.c: Include loop-unroll.h.
13828 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13829 * modulo-sched.c: Include loop-unroll.h.
13831 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13833 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13834 MARKER_BYTE_UNKNOWN markers when handling casts.
13836 2014-10-21 Richard Biener <rguenther@suse.de>
13838 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13839 are the non-singleton PHI.
13841 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13843 PR tree-optimization/63563
13844 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
13845 if either dra or drb stmts are not normal loads/stores.
13847 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
13849 * config/i386/i386.c (expand_vec_perm_1): Fix
13850 expand_vec_perm_palignr case.
13851 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
13854 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
13856 * cfgloopanal.c (seq_cost): Delete.
13857 * rtl.h (seq_cost): New prototype.
13858 * rtlanal.c (seq_cost): New function.
13859 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
13861 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
13863 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
13864 * basic-block.h: Remove prototypes for cfgrtl.c.
13865 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
13866 prototypes to cfgrtl.h.
13867 * profile.h (profile_info): Add extern export declaration.
13868 * rtl.h: Remove prototypes for cfgrtl.h.
13869 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
13870 * ipa-inline.c: Include profile.h.
13871 * loop-unroll.c: Ditto.
13872 * modulo-sched.c: Ditto.
13873 * postreload-gcse.c: Ditto.
13874 * predict.c: Ditto.
13875 * sched-ebb.c: Ditto.
13876 * sched-rgn.c: Ditto.
13878 * tree-ssa-loop-ivcanon.c: Ditto.
13880 2014-10-20 Richard Biener <rguenther@suse.de>
13882 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
13883 operands to get a def operand kind match. Signal mismatches
13884 to the parent so we can try swapping its operands.
13885 (vect_build_slp_tree): Try swapping operands if they have
13886 a mismatched operand kind.
13888 2014-10-20 Alan Modra <amodra@gmail.com>
13891 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
13892 Increase "ops" array size. Correct array size tests. Init
13893 n_constants in loop. Break out of innermost loop when finding
13894 a trivial CONST expression.
13896 2014-10-20 Martin Liska <mliska@suse.cz>
13899 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
13900 Gimple tempate string is compared.
13902 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
13904 * varasm.c (const_alias_set): Remove.
13905 (init_varasm_once): Remove initialization of const_alias_set.
13906 (build_constant_desc): Do not set alias set to const_alias_set.
13908 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
13910 * configure: Regenerate.
13911 * configure.ac: Move the test for section attribute specifier "e" in GAS
13912 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
13913 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
13914 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
13915 ifdef HAVE_GAS_SECTION_EXCLUDE.
13917 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
13919 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
13920 match_operand expression.
13922 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13923 David Edelsohn <dje.gcc@gmail.com>
13925 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
13927 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13929 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13931 * doc/invoke.texi (Options to Request or Suppress Warnings):
13932 Explain options precedence.
13933 (Wtrampolines): Do not indent paragraph.
13935 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
13937 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
13938 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
13939 (pa_jump_in_call_delay): Likewise.
13940 * config/pa/pa.c (pa_option_override): Remove jump in call delay
13942 (pa_output_millicode_call): Remove support for jump in call delay.
13943 (pa_output_call): Likewise.
13944 (pa_jump_in_call_delay): Delete.
13945 (pa_following_call): Likewise.
13946 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
13947 (uncond_branch): Remove following call check from attribute length.
13949 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
13952 * config/sh/sh-modes.def (PSI): Remove.
13953 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
13954 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
13955 (sh_reorg): Remove commented out FPSCR code.
13956 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
13957 insn instead of move insn.
13958 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
13959 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
13961 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
13962 (sh1_builtin_p): Uncomment.
13963 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
13964 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
13965 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
13966 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
13967 (general_movsrc_operand, general_movdst_operand): Disallow
13969 * config/sh/sh.md (FPSCR_FR): New constant.
13970 (push_fpscr): Emit sts_fpscr insn.
13971 (pop_fpscr): Emit lds_fpscr_insn.
13972 (movsi_ie): Disallow FPSCR operands.
13973 (fpu_switch, unnamed related split, extend_psi_si,
13974 truncate_si_psi): Remove insns.
13975 (lds_fpscr, sts_fpscr): New insns.
13976 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
13978 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
13980 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
13981 (clone_inlined_nodes): Do not overwrite the clone if above predicate
13984 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
13986 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
13987 (expand_vec_perm_d): Ditto.
13988 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
13989 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
13991 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
13992 (ix86_expand_sse_unpack): Handle V64QImode.
13993 (expand_vec_perm_blend): Update conditions for TARGET, handle
13994 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
13995 (expand_vec_perm_pshufb): Handle V64QImode.
13996 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
13997 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
13998 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
13999 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
14000 (ix86_expand_vecop_qihi): Handle V64QImode.
14001 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
14002 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
14003 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
14004 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
14005 (mul<mode>3): Use VI1_AVX512.
14006 (<sse2_avx2>_packsswb): Ditto.
14007 (<sse2_avx2>_packuswb): Ditto.
14008 (<ssse3_avx2>_pshufb<mode>3): Ditto.
14009 (<shift_insn><mode>3): Ditto.
14011 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
14013 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
14014 conditions to fix bootstrap.
14016 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
14018 gcc-plugin.h: Add tm.h and flattened includes from function.h.
14020 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
14021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14022 Anna Tikhonova <anna.tikhonova@intel.com>
14023 Ilya Tocar <ilya.tocar@intel.com>
14024 Andrey Turetskiy <andrey.turetskiy@intel.com>
14025 Ilya Verbin <ilya.verbin@intel.com>
14026 Kirill Yukhin <kirill.yukhin@intel.com>
14027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14029 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
14030 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
14031 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
14032 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
14033 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
14034 (define_expand "vec_init<mode>"): Use VF48_I1248.
14036 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
14037 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14038 Anna Tikhonova <anna.tikhonova@intel.com>
14039 Ilya Tocar <ilya.tocar@intel.com>
14040 Andrey Turetskiy <andrey.turetskiy@intel.com>
14041 Ilya Verbin <ilya.verbin@intel.com>
14042 Kirill Yukhin <kirill.yukhin@intel.com>
14043 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14045 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
14046 expand_sse2_mulvxdi3.
14048 2014-10-17 Richard Biener <rguenther@suse.de>
14050 * fold-const.c (fold_comparison): Remove redundant constant
14051 folding and operand swapping.
14052 (fold_binary_loc): Do comparison operand swapping here.
14053 (fold_ternary_loc): Canonicalize operand order for
14054 commutative ternary operations.
14055 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
14058 2014-10-17 Jakub Jelinek <jakub@redhat.com>
14060 PR tree-optimization/63464
14061 * gimple.h (gimple_seq_discard): New prototype.
14062 * gimple.c: Include stringpool.h and tree-ssanames.h.
14063 (gimple_seq_discard): New function.
14064 * optabs.h (lshift_cheap_p): New prototype.
14065 * optabs.c (lshift_cheap_p): New function, moved from...
14066 * tree-switch-conversion.c (lshift_cheap_p): ... here.
14067 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
14068 (reassoc_branch_fixups): New variable.
14069 (update_range_test): Add otherrangep and seq arguments.
14070 Unshare exp. If otherrange is NULL, use for other ranges
14071 array of pointers pointed by otherrangep instead.
14072 Emit seq before gimplified statements for tem.
14073 (optimize_range_tests_diff): Adjust update_range_test
14075 (optimize_range_tests_xor): Likewise. Fix up comment.
14076 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
14078 (optimize_range_tests): Adjust update_range_test caller.
14079 Call optimize_range_tests_to_bit_test.
14080 (branch_fixup): New function.
14081 (execute_reassoc): Call branch_fixup.
14083 PR tree-optimization/63302
14084 * tree-ssa-reassoc.c (optimize_range_tests_xor,
14085 optimize_range_tests_diff): Use !integer_pow2p () instead of
14088 2014-10-17 Martin Liska <mliska@suse.cz>
14090 * ipa-icf.c (sem_function::merge): Local flags are set to false
14091 to enforce equal calling convention to be used.
14092 * opts.c (common_handle_option): Indentation fix.
14094 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
14096 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
14098 2014-10-17 Tom de Vries <tom@codesourcery.com>
14100 PR rtl-optimization/61605
14101 * regcprop.c (copyprop_hardreg_forward_1): Use
14102 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
14104 2014-10-17 Tom de Vries <tom@codesourcery.com>
14106 PR rtl-optimization/61605
14107 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
14108 Don't notice stores for noops. Don't regard noops as copies.
14110 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
14112 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
14113 register in a special way.
14114 (__cpuid_count): Ditto.
14115 * config/i386/driver-i386.h: Protect with
14116 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
14117 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
14118 is required to compile the function.
14120 2014-10-16 DJ Delorie <dj@redhat.com>
14122 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
14125 * config/rs6000/rs6000-c.c (rid_int128): New.
14126 (rs6000_macro_to_expand): Use instead of RID_INT128.
14128 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
14130 * function.h: Flatten file. Remove includes, adjust prototypes to
14131 reflect only what is in function.h.
14132 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14133 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
14135 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
14136 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
14137 prototypes to predict.h.
14138 (init_varasm_status): Move prototype to varasm.h.
14139 * expr.h: Adjust include files.
14140 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14141 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
14143 (locate_and_pad_parm): Move prototype to function.h.
14144 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14145 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14146 assign_temp, reposition_prologue_and_epilogue_notes,
14147 prologue_epilogue_contains, sibcall_epilogue_contains,
14148 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14149 set_return_jump_label): Move prototypes to function.h.
14150 * predict.h (optimize_function_for_size_p,
14151 optimize_function_for_speed_p): Relocate prototypes from function.h.
14152 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14153 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14155 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14156 * genattrtab.c (write_header): Add predict.h to include list.
14157 * genconditions.c (write_header): Add predict.h to include list.
14158 * genemit.c (main): Adjust header file includes.
14159 * gengtype.c (ifiles): Add flattened function.h header files.
14160 * genoutput.c (output_prologue): Add predict.h to include list.
14161 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14162 * genrecog.c (write_header): Add flattened function.h header files.
14163 * alias.c: Adjust include files.
14164 * auto-inc-dec.c: Likewise.
14165 * basic-block.h: Likewise.
14166 * bb-reorder.c: Likewise.
14167 * bt-load.c: Likewise.
14168 * builtins.c: Likewise.
14169 * caller-save.c: Likewise.
14170 * calls.c: Likewise.
14171 * cfgbuild.c: Likewise.
14172 * cfgcleanup.c: Likewise.
14173 * cfgexpand.c: Likewise.
14174 * cfgloop.c: Likewise.
14175 * cfgloop.h: Likewise.
14176 * cfgrtl.c: Likewise.
14177 * cgraph.h: Likewise.
14178 * cgraphclones.c: Likewise.
14179 * cgraphunit.c: Likewise.
14180 * combine-stack-adj.c: Likewise.
14181 * combine.c: Likewise.
14182 * coverage.c: Likewise.
14183 * cprop.c: Likewise.
14185 * cselib.c: Likewise.
14186 * dbxout.c: Likewise.
14188 * df-core.c: Likewise.
14189 * df-problems.c: Likewise.
14190 * df-scan.c: Likewise.
14191 * dojump.c: Likewise.
14192 * dwarf2cfi.c: Likewise.
14193 * dwarf2out.c: Likewise.
14194 * emit-rtl.c: Likewise.
14195 * except.c: Likewise.
14196 * explow.c: Likewise.
14197 * expr.c: Likewise.
14198 * final.c: Likewise.
14199 * function.c: Likewise.
14200 * gcse.c: Likewise.
14201 * gimple-fold.c: Likewise.
14202 * gimple-low.c: Likewise.
14203 * gimple-streamer.h: Likewise.
14204 * haifa-sched.c: Likewise.
14205 * ifcvt.c: Likewise.
14207 * jump.c: Likewise.
14209 * loop-invariant.c: Likewise.
14210 * lra-assigns.c: Likewise.
14211 * lra-coalesce.c: Likewise.
14212 * lra-constraints.c: Likewise.
14213 * lra-eliminations.c: Likewise.
14214 * lra-lives.c: Likewise.
14215 * lra-spills.c: Likewise.
14217 * lto-cgraph.c: Likewise.
14218 * lto-section-in.c: Likewise.
14219 * lto-section-out.c: Likewise.
14220 * lto-streamer-in.c: Likewise.
14221 * lto-streamer-out.c: Likewise.
14222 * mode-switching.c: Likewise.
14223 * modulo-sched.c: Likewise.
14224 * omp-low.c: Likewise.
14225 * optabs.c: Likewise.
14226 * passes.c: Likewise.
14227 * postreload-gcse.c: Likewise.
14228 * postreload.c: Likewise.
14229 * predict.c: Likewise.
14230 * profile.c: Likewise.
14231 * recog.c: Likewise.
14233 * reg-stack.c: Likewise.
14234 * regcprop.c: Likewise.
14235 * reginfo.c: Likewise.
14236 * regrename.c: Likewise.
14237 * reload.c: Likewise.
14238 * reload1.c: Likewise.
14239 * reorg.c: Likewise.
14240 * resource.c: Likewise.
14241 * rtlanal.c: Likewise.
14242 * sched-deps.c: Likewise.
14243 * sched-ebb.c: Likewise.
14244 * sched-rgn.c: Likewise.
14245 * sel-sched-dump.c: Likewise.
14246 * sel-sched-ir.c: Likewise.
14247 * sel-sched.c: Likewise.
14248 * shrink-wrap.c: Likewise.
14249 * simplify-rtx.c: Likewise.
14250 * statistics.c: Likewise.
14251 * stmt.c: Likewise.
14252 * stor-layout.c: Likewise.
14253 * store-motion.c: Likewise.
14254 * symtab.c: Likewise.
14255 * targhooks.c: Likewise.
14256 * toplev.c: Likewise.
14257 * trans-mem.c: Likewise.
14258 * tree-cfg.c: Likewise.
14259 * tree-cfgcleanup.c: Likewise.
14260 * tree-dfa.c: Likewise.
14261 * tree-eh.c: Likewise.
14262 * tree-inline.c: Likewise.
14263 * tree-into-ssa.c: Likewise.
14264 * tree-nested.c: Likewise.
14265 * tree-nrv.c: Likewise.
14266 * tree-profile.c: Likewise.
14267 * tree-ssa-alias.c: Likewise.
14268 * tree-ssa-ccp.c: Likewise.
14269 * tree-ssa-copy.c: Likewise.
14270 * tree-ssa-copyrename.c: Likewise.
14271 * tree-ssa-dom.c: Likewise.
14272 * tree-ssa-operands.c: Likewise.
14273 * tree-ssa-propagate.c: Likewise.
14274 * tree-ssa-structalias.c: Likewise.
14275 * tree-ssa-tail-merge.c: Likewise.
14276 * tree-ssa-threadedge.c: Likewise.
14277 * tree-ssa-threadupdate.c: Likewise.
14278 * tree-ssa-uncprop.c: Likewise.
14279 * tree-ssa-uninit.c: Likewise.
14280 * tree-ssa.c: Likewise.
14281 * tree-stdarg.c: Likewise.
14282 * tree-tailcall.c: Likewise.
14283 * tree.c: Likewise.
14284 * tsan.c: Likewise.
14285 * valtrack.c: Likewise.
14286 * varasm.c: Likewise.
14287 * vmsdbgout.c: Likewise.
14289 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14290 * config/alpha/alpha.c: Likewise.
14291 * config/arc/arc.c: Likewise.
14292 * config/arm/arm.c: Likewise.
14293 * config/avr/avr-log.c: Likewise.
14294 * config/avr/avr.c: Likewise.
14295 * config/bfin/bfin.c: Likewise.
14296 * config/c6x/c6x.c: Likewise.
14297 * config/cr16/cr16.c: Likewise.
14298 * config/cris/cris.c: Likewise.
14299 * config/darwin.c: Likewise.
14300 * config/epiphany/epiphany.c: Likewise.
14301 * config/epiphany/mode-switch-use.c: Likewise.
14302 * config/epiphany/resolve-sw-modes.c: Likewise.
14303 * config/fr30/fr30.c: Likewise.
14304 * config/frv/frv.c: Likewise.
14305 * config/h8300/h8300.c: Likewise.
14306 * config/i386/i386.c: Likewise.
14307 * config/ia64/ia64.c: Likewise.
14308 * config/iq2000/iq2000.c: Likewise.
14309 * config/lm32/lm32.c: Likewise.
14310 * config/m32c/m32c.c: Likewise.
14311 * config/m32r/m32r.c: Likewise.
14312 * config/m68k/m68k.c: Likewise.
14313 * config/mcore/mcore.c: Likewise.
14314 * config/mep/mep-pragma.c: Likewise.
14315 * config/mep/mep.c: Likewise.
14316 * config/microblaze/microblaze.c: Likewise.
14317 * config/mips/mips.c: Likewise.
14318 * config/mmix/mmix.c: Likewise.
14319 * config/mn10300/mn10300.c: Likewise.
14320 * config/moxie/moxie.c: Likewise.
14321 * config/msp430/msp430.c: Likewise.
14322 * config/nds32/nds32-cost.c: Likewise.
14323 * config/nds32/nds32-fp-as-gp.c: Likewise.
14324 * config/nds32/nds32-intrinsic.c: Likewise.
14325 * config/nds32/nds32-isr.c: Likewise.
14326 * config/nds32/nds32-md-auxiliary.c: Likewise.
14327 * config/nds32/nds32-memory-manipulation.c: Likewise.
14328 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14329 * config/nds32/nds32-predicates.c: Likewise.
14330 * config/nds32/nds32.c: Likewise.
14331 * config/nios2/nios2.c: Likewise.
14332 * config/pa/pa.c: Likewise.
14333 * config/pdp11/pdp11.c: Likewise.
14334 * config/rl78/rl78.c: Likewise.
14335 * config/rs6000/rs6000.c: Likewise.
14336 * config/rx/rx.c: Likewise.
14337 * config/s390/s390.c: Likewise.
14338 * config/score/score.c: Likewise.
14339 * config/sh/sh.c: Likewise.
14340 * config/sparc/sparc.c: Likewise.
14341 * config/spu/spu.c: Likewise.
14342 * config/stormy16/stormy16.c: Likewise.
14343 * config/tilegx/tilegx.c: Likewise.
14344 * config/tilepro/tilepro.c: Likewise.
14345 * config/v850/v850.c: Likewise.
14346 * config/vax/vax.c: Likewise.
14347 * config/xtensa/xtensa.c: Likewise.
14349 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14351 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14352 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14354 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14356 * config/sh/sh-protos.h (fldi_ok): Remove.
14357 * config/sh/sh.c (fldi_ok): Likewise.
14358 (sh_secondary_reload): Don't use fldi_ok.
14359 * config/sh/constraints.md (G constraint, H constraint): Don't use
14362 2014-10-16 Martin Liska <mliska@suse.cz>
14364 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14365 Cast to unsigned long.
14366 (sem_item_optimizer::dump_cong_classes): Likewise.
14368 2014-10-16 Tom de Vries <tom@codesourcery.com>
14370 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14371 with SSA_NAME_IN_FREELIST.
14373 2014-10-16 Richard Biener <rguenther@suse.de>
14375 PR middle-end/63554
14376 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14377 (fold_builtin_strncat_chk): Move ...
14378 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14379 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14381 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14384 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14387 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14389 Anna Tikhonova <anna.tikhonova@intel.com>
14390 Ilya Tocar <ilya.tocar@intel.com>
14391 Andrey Turetskiy <andrey.turetskiy@intel.com>
14392 Ilya Verbin <ilya.verbin@intel.com>
14393 Kirill Yukhin <kirill.yukhin@intel.com>
14394 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14396 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14399 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14400 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14401 Anna Tikhonova <anna.tikhonova@intel.com>
14402 Ilya Tocar <ilya.tocar@intel.com>
14403 Andrey Turetskiy <andrey.turetskiy@intel.com>
14404 Ilya Verbin <ilya.verbin@intel.com>
14405 Kirill Yukhin <kirill.yukhin@intel.com>
14406 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14408 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14409 V16SI, V32HI, V64QI modes.
14411 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14414 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14415 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14417 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14418 to match fp insn patterns.
14419 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14421 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14422 expand_df_unop, expand_df_binop): Remove.
14423 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14424 FPSCR_STAT_REG as not call clobbered.
14425 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14426 invoking fpscr_set_from_mem.
14428 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14429 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14431 (REGISTER_NAMES): Adjust.
14432 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14433 (FIRST_PSEUDO_REGISTER): Increase to 156.
14434 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14435 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14437 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14438 FPSCR_MODES_REG and FPSCR_STAT_REG.
14439 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14441 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14442 FPSCR_SZ): Add new constants.
14443 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14445 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14446 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14447 Use TARGET_FPU_ANY condition.
14448 (fpu_switch peephole2): Remove.
14449 (fpu_switch split): Use simple_mem_operand to capture the mem and
14450 adjust split implementation.
14451 (extend_psi_si, truncate_si_psi): New insns.
14452 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14453 set of FPSCR_MODES_REG.
14455 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14456 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14457 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14458 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14459 call_value_compact, call_value_compact_rettramp, call,
14460 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14461 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14462 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14463 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14464 call_value_pop_compact_rettramp, various unnamed splits):
14465 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14468 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14469 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14470 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14471 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14472 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14474 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14475 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14476 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14477 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14478 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14479 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14480 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14482 2014-10-16 Martin Liska <mliska@suse.cz>
14483 Jan Hubicka <hubicka@ucw.cz>
14485 * Makefile.in: New object files included.
14486 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14488 (verify_edge_corresponds_to_fndecl): More sensitive verification
14489 of nodes that are merged by IPA ICF.
14490 * cgraph.h (cgraph_node::num_references): New function.
14491 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14492 * common.opt: New options ipa-icf, ipa-icf-functions and
14493 ipa-icf-variables introduced.
14494 * doc/invoke.texi: Documentation of new options introduced.
14495 * ipa-icf-gimple.c: New file.
14496 * ipa-icf-gimple.h: New file.
14497 * ipa-icf.c: New file.
14498 * ipa-icf.h: New file.
14499 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14500 (input_overwrite_node): Likewise.
14501 * lto-section-in.c: New icf section added.
14502 * lto-streamer.h (enum lto_section_type): Likewise.
14503 * opts.c (common_handle_option): New option added.
14504 * passes.def: New pass included.
14505 * timevar.def: Time variable for IPA ICF added.
14506 * tree-pass.h: New IPA ICF pass entry point added.
14508 2014-10-16 Richard Biener <rguenther@suse.de>
14510 PR tree-optimization/63168
14511 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14512 latches if after merging they are no longer simple.
14513 * cfghooks.c (merge_blocks): Handle merging a latch block
14514 into another block.
14516 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14518 Anna Tikhonova <anna.tikhonova@intel.com>
14519 Ilya Tocar <ilya.tocar@intel.com>
14520 Andrey Turetskiy <andrey.turetskiy@intel.com>
14521 Ilya Verbin <ilya.verbin@intel.com>
14522 Kirill Yukhin <kirill.yukhin@intel.com>
14523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14525 * config/i386/sse.md
14526 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14527 support AVX-512VL instructions.
14529 2014-10-16 DJ Delorie <dj@redhat.com>
14531 * tree-core.h: Fix comment to not assume pointers are multiples of
14534 2014-10-15 Tom Tromey <tromey@redhat.com>
14536 * timevar.h (class auto_timevar): New class.
14538 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14541 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14542 Remove the second alternative.
14543 (regprefix): Remove mode attribute.
14544 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14545 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14548 2013-11-05 Ian Lance Taylor <iant@google.com>
14550 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14551 If possible, add .cfi directives to record change to bx.
14552 * config/i386/i386.c (ix86_emit_cfi): New function.
14553 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14555 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14558 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14560 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14563 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14565 PR rtl-optimization/63448
14566 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14567 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14568 (LRA_MAX_INHERITANCE_PASSES): Use it.
14569 (lra_constraint_iter_after_spill): Remove.
14570 (lra_assignment_iter): New.
14571 (lra_assignment_iter_after_spill): New.
14572 * lra-assigns.c (lra_assignment_iter): New.
14573 (lra_assignment_iter_after_spill): New.
14574 (former_reload_pseudo_spill_p): New.
14575 (spill_for): Set up former_reload_pseudo_spill_p.
14576 (setup_live_pseudos_and_spill_after_risky): Ditto.
14577 (assign_by_spills): Ditto.
14578 (lra_assign): Increment lra_assignment_iter. Print the iteration
14579 number. Reset former_reload_pseudo_spill_p. Check
14580 lra_assignment_iter_after_spill.
14581 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14582 lra_assignment_iter and lra_assignment_iter_after_spill.
14583 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14584 (lra_constraints): Remove code with
14585 lra_assignment_iter_after_spill.
14587 2014-10-15 Teresa Johnson <tejohnson@google.com>
14590 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14593 2014-10-15 Renlin Li <renlin.li@arm.com>
14595 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14596 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14597 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14598 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14600 2014-10-15 Richard Biener <rguenther@suse.de>
14602 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14603 SSA form up-to-date when devirtualizing a call to
14604 __builtin_unreachable and avoid fixing up EH info here.
14606 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14608 Anna Tikhonova <anna.tikhonova@intel.com>
14609 Ilya Tocar <ilya.tocar@intel.com>
14610 Andrey Turetskiy <andrey.turetskiy@intel.com>
14611 Ilya Verbin <ilya.verbin@intel.com>
14612 Kirill Yukhin <kirill.yukhin@intel.com>
14613 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14615 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
14616 to support AVX-512BW.
14617 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14618 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14619 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14620 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14621 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14622 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14623 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14624 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14625 (define_insn "*andnot<mode>3"): Ditto.
14626 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14627 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14628 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14629 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14630 (define_insn "*abs<mode>2"): Remove masking support.
14631 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14632 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14633 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14635 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14637 Anna Tikhonova <anna.tikhonova@intel.com>
14638 Ilya Tocar <ilya.tocar@intel.com>
14639 Andrey Turetskiy <andrey.turetskiy@intel.com>
14640 Ilya Verbin <ilya.verbin@intel.com>
14641 Kirill Yukhin <kirill.yukhin@intel.com>
14642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14644 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14645 * config/i386/sse.md
14646 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14647 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14648 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14649 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14650 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14651 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14652 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14654 2014-10-15 Renlin Li <renlin.li@arm.com>
14656 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14658 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14660 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14661 MINUS_EXPR in unsigned type to avoid undefined behavior.
14663 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14665 * stor-layout.c (self_referential_size): Do not promote arguments.
14667 2014-10-15 Marek Polacek <polacek@redhat.com>
14669 * doc/invoke.texi: Update to reflect that GNU11 is the default
14671 * c-common.h (c_language_kind): Update comment.
14673 2014-10-15 Richard Biener <rguenther@suse.de>
14675 * hash-table.c: Include bconfig.h if building for the host.
14676 * hash-table.h: Do not include ggc.h on the host but just declare
14677 a few ggc allocation templates.
14679 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14680 Jeff Law <law@redhat.com>
14682 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14683 multiple hard registers, use smaller mode derived from MODE.
14685 2014-10-15 Andreas Schwab <schwab@suse.de>
14687 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14688 as ATTRIBUTE_UNUSED.
14690 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14692 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14693 (decide_unrolling): ... this one.
14694 (peel_loops_completely): Remove.
14695 (decide_peel_simple): Remove.
14696 (decide_peel_once_rolling): Remove.
14697 (decide_peel_completely): Remove.
14698 (peel_loop_simple): Remove.
14699 (peel_loop_completely): Remove.
14700 (unroll_and_peel_loops): Rename to ...
14701 (unroll_loops): ... this one; handle only unrolling.
14702 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14703 (UAP_PEEL): Remove.
14704 (unroll_and_peel_loops): Remove.
14705 (unroll_loops): New.
14706 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14707 by pass_rtl_unroll_loops.
14708 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14709 rtl_unroll_and_peel_loops): Rename to ...
14710 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14711 (pass_rtl_unroll_and_peel_loops): Rename to ...
14712 (pass_rtl_unroll_loops): ... this one.
14713 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14714 (make_pass_rtl_unroll_loops): New.
14715 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14716 try_peel_loop): New.
14717 (canonicalize_loop_induction_variables): Update.
14719 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14721 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14722 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14723 !TARGET_HARD_FLOAT_POSTINC.
14724 (*lsip, *ssip): new instructions.
14726 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14728 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14731 2014-10-14 Andrew Pinski <apinski@cavium.com>
14733 * explow.c (convert_memory_address_addr_space): Rename to ...
14734 (convert_memory_address_addr_space_1): This. Add in_const argument.
14735 Inside a CONST RTL, permute the conversion and addition of constant
14736 for zero and sign extended pointers.
14737 (convert_memory_address_addr_space): New function.
14739 2014-10-14 Andrew Pinski <apinski@cavium.com>
14742 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14744 PR middle-end/49721
14745 * explow.c (convert_memory_address_addr_space): Also permute the
14746 conversion and addition of constant for zero-extend.
14748 2014-10-14 DJ Delorie <dj@redhat.com>
14750 * config/msp430/msp430-modes.def (PSI): Add.
14752 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14754 (msp430_hard_regno_nregs_with_padding): New.
14755 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14756 (msp430_hard_regno_nregs_has_padding): New.
14757 (msp430_hard_regno_nregs_with_padding): New.
14758 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14759 (msp430_addr_space_legitimate_address_p): New.
14760 (msp430_asm_integer): New.
14761 (msp430_init_dwarf_reg_sizes_extra): New.
14762 (msp430_print_operand): Use X suffix for PSImode even in small model.
14763 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14764 (PTR_SIZE): ...but 4 bytes for EH.
14765 (SIZE_TYPE): Use __int20.
14766 (PTRDIFF_TYPE): Likewise.
14767 (INCOMING_FRAME_SP_OFFSET): Adjust.
14768 * config/msp430/msp430.md (movqi_topbyte): New.
14769 (movpsi): Use fixed suffixes.
14770 (movsipsi2): Enable for 430X, not large model.
14771 (extendhipsi2): Likewise.
14772 (zero_extendhisi2): Likewise.
14773 (zero_extendhisipsi2): Likewise.
14774 (extend_and_shift1_hipsi2): Likewise.
14775 (extendpsisi2): Likewise.
14776 (*bitbranch<mode>4_z): Fix suffix logic.
14778 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14781 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14782 do not choke on null node.
14783 <VAR_DECL>: Likewise.
14785 2014-10-14 DJ Delorie <dj@redhat.com>
14787 * machmode.h (int_n_data_t): New.
14788 (int_n_enabled_p): New.
14790 * tree.c (int_n_enabled_p): New.
14791 (int_n_trees): New.
14792 (make_or_reuse_type): Check for all __intN types, not just __int128.
14793 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14795 * tree.h (int128_integer_type_node): Remove.
14796 (int128_unsigned_type_node): Remove.
14797 (int_n_trees_t): New.
14798 (int_n_enabled_p): New.
14799 (int_n_trees): New.
14800 * toplev.c (standard_type_bitsize): New.
14801 (do_compile): Check which __intN types are enabled for the current run.
14802 * builtin-types.def (BT_INT128): Remove.
14803 (BT_UINT128): Remove.
14804 * machmode.def: Add macro to create __int128 for all targets.
14805 * stor-layout.c (mode_for_size): Support __intN types.
14806 (smallest_mode_for_size): Likewise.
14807 (initialize_sizetypes): Support __intN types.
14808 * genmodes.c (struct mode_data): Add int_n field.
14809 (blank_mode): Likewise.
14812 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14813 (emit_mode_int_n): New.
14814 (emit_insn_modes_c): Call it.
14815 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14816 types, not just __int128.
14817 * tree-core.h (integer_type_kind): Remove __int128-specific
14818 entries, reserve spots for __intN entries.
14820 * config/msp430/msp430-modes.def (PSI): Add.
14822 2014-10-14 Kito Cheng <kito@0xlab.org>
14824 * ira.c: Fix typo in comment.
14826 * ira-build.c: Ditto.
14827 * ira-color.c: Ditto.
14828 * ira-emit.c: Ditto.
14829 * ira-int.h: Ditto.
14830 * ira-lives.c: Ditto.
14832 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14834 PR rtl-optimization/63475
14835 * alias.c (true_dependence_1): Always use get_addr to extract
14836 true address operands from x_addr and mem_addr. Use extracted
14837 address operands to check for references with alignment ANDs.
14838 Use extracted address operands with find_base_term and
14839 base_alias_check. For noncanonicalized operands call canon_rtx with
14840 extracted address operand.
14841 (write_dependence_1): Ditto.
14842 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
14844 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
14847 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
14850 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14852 Anna Tikhonova <anna.tikhonova@intel.com>
14853 Ilya Tocar <ilya.tocar@intel.com>
14854 Andrey Turetskiy <andrey.turetskiy@intel.com>
14855 Ilya Verbin <ilya.verbin@intel.com>
14856 Kirill Yukhin <kirill.yukhin@intel.com>
14857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14859 * config/i386/i386.c
14860 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
14861 (ix86_expand_int_vcond): Ditto.
14863 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14864 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14865 Anna Tikhonova <anna.tikhonova@intel.com>
14866 Ilya Tocar <ilya.tocar@intel.com>
14867 Andrey Turetskiy <andrey.turetskiy@intel.com>
14868 Ilya Verbin <ilya.verbin@intel.com>
14869 Kirill Yukhin <kirill.yukhin@intel.com>
14870 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14872 * config/i386/i386.c
14873 (emit_reduc_half): Handle V64QI and V32HI mode.
14874 * config/i386/sse.md
14875 (define_mode_iterator VI_AVX512BW): New.
14876 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
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
14888 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
14890 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14892 Anna Tikhonova <anna.tikhonova@intel.com>
14893 Ilya Tocar <ilya.tocar@intel.com>
14894 Andrey Turetskiy <andrey.turetskiy@intel.com>
14895 Ilya Verbin <ilya.verbin@intel.com>
14896 Kirill Yukhin <kirill.yukhin@intel.com>
14897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14899 * config/i386/i386.c
14900 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
14901 * config/i386/sse.md
14902 (define_mode_iterator VI): Add V64QI and V32HI modes.
14904 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14906 Anna Tikhonova <anna.tikhonova@intel.com>
14907 Ilya Tocar <ilya.tocar@intel.com>
14908 Andrey Turetskiy <andrey.turetskiy@intel.com>
14909 Ilya Verbin <ilya.verbin@intel.com>
14910 Kirill Yukhin <kirill.yukhin@intel.com>
14911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14913 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
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_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
14926 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
14928 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14930 Anna Tikhonova <anna.tikhonova@intel.com>
14931 Ilya Tocar <ilya.tocar@intel.com>
14932 Andrey Turetskiy <andrey.turetskiy@intel.com>
14933 Ilya Verbin <ilya.verbin@intel.com>
14934 Kirill Yukhin <kirill.yukhin@intel.com>
14935 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14937 * config/i386/sse.md
14938 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
14939 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
14941 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14943 Anna Tikhonova <anna.tikhonova@intel.com>
14944 Ilya Tocar <ilya.tocar@intel.com>
14945 Andrey Turetskiy <andrey.turetskiy@intel.com>
14946 Ilya Verbin <ilya.verbin@intel.com>
14947 Kirill Yukhin <kirill.yukhin@intel.com>
14948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14950 * config/i386/sse.md
14951 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
14952 (define_mode_iterator VI2_AVX2): Add V32HI mode.
14953 (define_expand "mul<mode>3<mask_name>"): Add masking.
14954 (define_insn "*mul<mode>3<mask_name>"): Ditto.
14955 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
14956 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
14957 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
14958 (define_mode_attr SDOT_PMADD_SUF): Ditto.
14959 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
14960 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
14961 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
14962 (define_insn "avx2_packusdw"): Delete.
14963 (define_insn "sse4_1_packusdw"): Ditto.
14964 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
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_insn "vec_dup<mode>"): Update constraints.
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_mode_iterator SSESCALARMODE): Add V4TI mode.
14989 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
14990 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
14992 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14993 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14994 Anna Tikhonova <anna.tikhonova@intel.com>
14995 Ilya Tocar <ilya.tocar@intel.com>
14996 Andrey Turetskiy <andrey.turetskiy@intel.com>
14997 Ilya Verbin <ilya.verbin@intel.com>
14998 Kirill Yukhin <kirill.yukhin@intel.com>
14999 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15001 * config/i386/sse.md
15002 (define_expand "mul<mode>3<mask_name>"): Add masking.
15004 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15005 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15006 Anna Tikhonova <anna.tikhonova@intel.com>
15007 Ilya Tocar <ilya.tocar@intel.com>
15008 Andrey Turetskiy <andrey.turetskiy@intel.com>
15009 Ilya Verbin <ilya.verbin@intel.com>
15010 Kirill Yukhin <kirill.yukhin@intel.com>
15011 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15013 * config/i386/sse.md
15014 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
15015 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
15017 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15019 Anna Tikhonova <anna.tikhonova@intel.com>
15020 Ilya Tocar <ilya.tocar@intel.com>
15021 Andrey Turetskiy <andrey.turetskiy@intel.com>
15022 Ilya Verbin <ilya.verbin@intel.com>
15023 Kirill Yukhin <kirill.yukhin@intel.com>
15024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15026 * config/i386/sse.md
15027 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
15028 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
15029 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
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_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
15043 use VF_128_256 mode iterator and update assembler emit code.
15044 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
15045 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
15046 Add masking, use VF_128_256 mode iterator.
15047 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
15048 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
15049 Add masking, use VF_128_256 mode iterator and update assembler emit
15051 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
15052 (define_mode_attr avx512flogicsuff): Delete.
15053 (define_insn "avx512f_<logic><mode>"): Ditto.
15054 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
15056 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
15058 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15059 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15060 Anna Tikhonova <anna.tikhonova@intel.com>
15061 Ilya Tocar <ilya.tocar@intel.com>
15062 Andrey Turetskiy <andrey.turetskiy@intel.com>
15063 Ilya Verbin <ilya.verbin@intel.com>
15064 Kirill Yukhin <kirill.yukhin@intel.com>
15065 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15067 * config/i386/sse.md
15068 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
15069 (define_expand "vashr<mode>3<mask_name>"): Add masking,
15070 use VI12_128 mode iterator.
15071 (define_expand "ashrv2di3<mask_name>"): New.
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/i386.c
15083 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
15084 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
15085 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
15086 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
15087 CODE_FOR_avx512vl_ucmpv4si3_mask.
15088 * config/i386/sse.md
15089 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
15090 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
15092 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
15093 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
15094 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
15095 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
15096 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
15097 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
15099 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15100 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15101 Anna Tikhonova <anna.tikhonova@intel.com>
15102 Ilya Tocar <ilya.tocar@intel.com>
15103 Andrey Turetskiy <andrey.turetskiy@intel.com>
15104 Ilya Verbin <ilya.verbin@intel.com>
15105 Kirill Yukhin <kirill.yukhin@intel.com>
15106 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15108 * config/i386/sse.md
15109 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
15110 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
15111 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
15112 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
15113 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
15114 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
15115 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15116 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15117 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
15119 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15121 Anna Tikhonova <anna.tikhonova@intel.com>
15122 Ilya Tocar <ilya.tocar@intel.com>
15123 Andrey Turetskiy <andrey.turetskiy@intel.com>
15124 Ilya Verbin <ilya.verbin@intel.com>
15125 Kirill Yukhin <kirill.yukhin@intel.com>
15126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15128 * config/i386/sse.md
15129 (define_insn "avx512f_blendm<mode>"): Delete.
15130 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
15131 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
15132 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
15133 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
15135 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15138 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15141 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15143 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
15144 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15145 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15146 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15149 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15152 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15154 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15157 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15160 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15163 2014-10-14 Richard Biener <rguenther@suse.de>
15165 PR tree-optimization/63512
15166 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15169 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15172 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15173 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15175 (negsf2_i): Rename to *negsf2_i.
15176 (abssf2_i): Rename to *abssf2_i.
15177 (negdf2_i): Rename to *negdf2_i.
15178 (absdf2_i): Rename to *absdf2_i.
15180 2014-10-14 Felix Yang <felix.yang@huawei.com>
15181 Jeff Law <law@redhat.com>
15183 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15184 "replace" into boolean bitfields; turn member "loop_depth" into a short
15185 integer; add new member "no_equiv" and "reserved".
15186 (no_equiv): Set no_equiv of struct equivalence if register is marked
15187 as having no known equivalence.
15188 (update_equiv_regs): Check all definitions for a multiple-set
15189 register to make sure that the RHS have the same value.
15191 2014-10-13 Richard Henderson <rth@redhat.com>
15193 * combine-stack-adj.c (no_unhandled_cfa): New.
15194 (maybe_merge_cfa_adjust): New.
15195 (combine_stack_adjustments_for_block): Use them.
15197 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15199 * Makefile.in (TAGS): Tag ../include files.
15201 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15203 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15204 to rs6000_dbx_register_number.
15205 (DWARF_FRAME_REGNUM): Redefine as identity map.
15206 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15207 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15208 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15209 argument to handle .debug_frame and .eh_frame directly. Always
15210 translate SPE high register numbers. Add special treatment for CR,
15211 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15213 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15214 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15215 (RS6000_USE_DWARF_NUMBERING): Define.
15216 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15217 (RS6000_USE_DWARF_NUMBERING): Define.
15218 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15219 (RS6000_USE_DWARF_NUMBERING): Define.
15220 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15221 (RS6000_USE_DWARF_NUMBERING): Define.
15222 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15223 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15225 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15227 * config/i386/i386.c (ix86_address_cost): Lower cost for
15228 when address contains GOT register.
15230 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15231 Vladimir Makarov <vmakarov@redhat.com>
15234 PR middle-end/47602
15235 PR rtl-optimization/55458
15236 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15237 (ix86_init_pic_reg): New.
15238 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15239 (ix86_save_reg): Likewise.
15240 (ix86_expand_prologue): Remove PIC register initialization
15241 now performed in ix86_init_pic_reg.
15242 (ix86_output_function_epilogue): Add check on pseudo register.
15243 (set_pic_reg_ever_alive): New.
15244 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15245 set_pic_reg_ever_alive.
15246 (legitimize_tls_address): Likewise.
15247 (ix86_pic_register_p): New check.
15248 (ix86_delegitimize_address): Add check on pseudo register.
15249 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15250 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15251 (TARGET_INIT_PIC_REG): New.
15252 (TARGET_USE_PSEUDO_PIC_REG): New.
15253 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15254 if pic_offset_table_rtx exists.
15255 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15257 * doc/tm.texi: Regenerate.
15258 * function.c (assign_parms): Generate pseudo register for PIC.
15259 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15261 * ira-color.c (color_pass): Add check on pseudo register.
15262 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15264 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15266 (ira): Add target specific PIC register initialization.
15267 (do_reload): Keep PIC pseudo register.
15268 * lra-assigns.c (spill_for): Add checks on pseudo register.
15269 * lra-constraints.c (contains_symbol_ref_p): New.
15270 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15272 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15273 * target.def (use_pseudo_pic_reg): New.
15274 (init_pic_reg): New.
15276 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15278 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15279 Remove m_SILVERMONT and m_INTEL from the tune.
15281 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15283 PR libfortran/63471
15284 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15285 when _HPUX_SOURCE is defined.
15287 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15289 PR tree-optimization/62127
15290 * tree.c (remap_type_1): When remapping array, remap
15293 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15295 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15296 longer impact parallelization.
15298 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15301 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15303 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15305 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15307 2014-10-13 Richard Biener <rguenther@suse.de>
15309 PR tree-optimization/63419
15310 * gimple-fold.h (gimple_convert): New function.
15311 * gimple-fold.c (gimple_convert): Likewise.
15312 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15313 to split out required conversions early.
15315 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15317 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15318 Add the parts of an insn in reverse order, with the pattern at
15319 the top of the queue. Detect when we're iterating over a SEQUENCE
15320 pattern and in that case just consider patterns of subinstructions.
15322 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15325 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15327 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15329 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15330 address. Use def chains to handle GBR clobbering call insns.
15332 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15334 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15335 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15336 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15337 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15338 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15339 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15340 * doc/gty.texi (for_user): Document new option.
15341 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15343 (walk_type): Don't error out on for_user option.
15344 (write_func_for_structure): Emit user marking routines if requested by
15346 (write_local_func_for_structure): Likewise.
15347 (main): Mark types with for_user option as used.
15348 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15349 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15350 * hash-table.h (ggc_hasher): New struct.
15351 (hash_table::create_ggc): New function.
15352 (gt_pch_nx): New overload for hash_table.
15354 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15356 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15357 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15358 * config/sh/sh.c: Likewise.
15359 * config/sh/sh-mem.cc: Likewise.
15360 * config/sh/sh.md: Likewise.
15361 * config/sh/predicates.md: Likewise.
15362 * config/sh/sync.md: Likewise.
15364 2014-10-11 Martin Liska <mliska@suse.cz>
15366 PR middle-end/63376
15367 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15368 for call_cgraph_insertion_hooks added.
15370 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15373 * stor-layout.c (min_align_of_type): Don't decrease alignment
15374 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15375 TYPE_USER_ALIGN is set.
15377 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15379 PR rtl-optimization/63483
15380 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15381 references when alignment ANDs are involved.
15382 (write_dependence_p): Ditto.
15383 (may_alias_p): Ditto.
15385 2014-10-10 Marek Polacek <polacek@redhat.com>
15387 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15388 * doc/invoke.texi: Document -fsanitize=object-size.
15389 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15390 or it into SANITIZE_UNDEFINED.
15391 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15392 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15393 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15394 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15395 * ubsan.c: Include tree-object-size.h.
15396 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15397 (ubsan_expand_bounds_ifn): Use false instead of 0.
15398 (ubsan_expand_objsize_ifn): New function.
15399 (instrument_object_size): New function.
15400 (pass_ubsan::execute): Add object size instrumentation.
15401 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15403 2014-10-10 Richard Henderson <rth@redhat.com>
15406 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15407 Restrict the set of expressions we're willing to move.
15409 2014-10-10 Jeff Law <law@redhat.com>
15411 * ira.c (struct equivalence): Promote INIT_INSNs field to
15412 an rtx_insn_list. Add comments.
15413 (no_equiv): Promote LIST to an rtx_insn_list. Update
15414 testing for and creating the special marker. Use methods
15415 to extract the insn and next pointers. Promote INSN to an
15417 (update_equiv_regs): Update test for special marker in the
15420 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15422 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15423 * configure: Regenerate.
15424 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15425 TARGET_FIX_ERR_A53_835769_DEFAULT.
15426 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15428 * doc/install.texi (aarch64*-*-*): Document
15429 new --enable-fix-cortex-a53-835769 option.
15431 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15432 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15434 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15435 (ADJUST_INSN_LENGTH): Define.
15436 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15437 * config/aarch64/aarch64.c (is_mem_p): New function.
15438 (is_memory_op): Likewise.
15439 (aarch64_prev_real_insn): Likewise.
15440 (is_madd_op): Likewise.
15441 (dep_between_memop_and_curr): Likewise.
15442 (aarch64_madd_needs_nop): Likewise.
15443 (aarch64_final_prescan_insn): Likewise.
15444 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15445 and -mno-fix-cortex-a53-835769 options.
15447 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15449 PR tree-optimization/63464
15450 * tree-switch-conversion.c (struct case_bit_test): Remove
15451 hi and lo fields, add wide_int mask field.
15452 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15453 hi/lo fields into wide_int mask operations, optimize by pretending
15454 minval to be 0 if maxval is small enough.
15455 (process_switch): Adjust caller.
15457 2014-10-10 Richard Biener <rguenther@suse.de>
15459 PR tree-optimization/63379
15460 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15461 a neutral operand for min/max when it is not a reduction chain.
15463 2014-10-10 Richard Biener <rguenther@suse.de>
15465 PR tree-optimization/63476
15466 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15467 (BB_LIVE_VOP_ON_EXIT): New define.
15468 (create_expression_by_pieces): Assign VUSEs to stmts.
15469 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15470 (pass_pre::execute): Assert virtual SSA form is up-to-date
15473 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15475 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15477 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15479 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15482 2014-10-09 Richard Biener <rguenther@suse.de>
15484 PR tree-optimization/63380
15485 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15488 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15490 * config/avr/avr.opt (mmcu=): Change to have a string value.
15491 (mn-flash=, mskip-bug, march=, mrmw): New options.
15492 (HeaderInclude): New.
15493 (mmcu=): Remove Var / Init clauses.
15494 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15496 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15497 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15498 (SYMBOL_FLAG_IO_LOW): Define.
15499 (avr_device_to_as, avr_device_to_ld): Don't declare.
15500 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15501 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15502 (EXTRA_SPEC_FUNCTIONS): Don't define.
15503 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15504 (LINK_SPEC): Translate -arch= option to -m= option.
15505 Don't use device_to_ld / device_to_data_start.
15506 (STARTFILE_SPEC): Now empty.
15507 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15508 * config/avr/gen-avr-mmcu-specs.c: New file.
15509 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15510 (s-device-specs): Likewise.
15511 (GCC_PASSES): Add s-device-specs.
15512 (install-driver): Depend on install-device-specs.
15513 (install-device-specs): New rule.
15514 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15515 avr_arch_index and provide fallback initialization for avr_n_flash.
15516 (varasm.h): #include.
15517 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15518 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15519 (avr_attribute_table): Add "io", "address" and "io_low".
15520 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15521 Add special handling for symbols with "io" and/or "address" attributes.
15522 (avr_asm_asm_output_aligned_bss): New function.
15523 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15524 as appropriate. Handle io_low attribute.
15525 (avr_out_sbxx_branch): Handle symbolic io addresses.
15526 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15527 avr_n_flash instead of avr_current_device->n_flash.
15528 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15529 (avr_emit_movmemhi): Likewise.
15530 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15531 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15532 Don't define avr_current_device->macro (that's the specfile's job).
15533 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15534 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15535 * config/avr/avr.md (*cpse.ne): Likewise.
15536 (mov<mode>): Use avr_eval_addr_attrib.
15537 (cbi): Change constraint for low_io_address_operand operand to "i".
15538 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15539 * config/avr/predicates.md (io_address_operand):
15540 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15541 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15542 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15544 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15545 * config/avr/genmultilib.awk: Use -march=.
15546 Remove Multilib matches processing.
15547 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15548 * config/avr/avr-arch.h: Add double include guard.
15549 (avr_mcu_t) <library_name>: Update comment.
15550 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15551 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15552 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15553 (avr_device_to_sp8): Likewise.
15554 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15556 * doc/extend.texi (io, address): Document new AVR variable attributes.
15557 (io_low): Likewise.
15559 2014-10-09 Marek Polacek <polacek@redhat.com>
15561 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15563 2014-10-08 Richard Biener <rguenther@suse.de>
15565 PR tree-optimization/61969
15566 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15569 2014-10-09 Richard Biener <rguenther@suse.de>
15571 PR tree-optimization/63445
15572 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15573 overflow for non-equality compares.
15575 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15577 PR rtl-optimization/57003
15578 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15579 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15580 killing regs_invalidated_by_call.
15582 2014-10-08 Teresa Johnson <tejohnson@google.com>
15584 PR bootstrap/63432.
15585 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15586 (ssa_fix_duplicate_block_edges): Invoke it.
15587 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15589 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15592 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15593 atomic_fetch_<fetchop_name>si_hard,
15594 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15595 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15596 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15597 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15599 2014-10-08 Rong Xu <xur@google.com>
15601 * gcov-tool.c (profile_overlap): New driver function
15602 to compute profile overlap.
15603 (print_overlap_usage_message): New.
15604 (overlap_usage): New.
15606 (print_usage): Add calls to overlap function.
15608 * doc/gcov-tool.texi: Add documentation.
15610 2014-10-08 Steve Ellcey <sellcey@mips.com>
15612 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15613 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15615 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15617 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15618 pattern matching of MEM_REF.
15619 (check_stmt_for_type_change): Update.
15621 2014-10-08 Steve Ellcey <sellcey@mips.com>
15623 * config/mips/linux64.h: Remove.
15624 * config/mips/gnu-user64.h: Remove.
15625 * gcc.config (mips*-*-*): Remove references to linux64.h and
15627 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15628 with modified version from gnu-user64.h.
15629 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15630 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15631 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15633 (GNU_USER_LINK_EMULATION64): Ditto.
15634 (GNU_USER_LINK_EMULATIONN32): Ditto.
15635 (GLIBC_DYNAMIC_LINKER32): Ditto.
15636 (GLIBC_DYNAMIC_LINKER64): Ditto.
15637 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15638 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15639 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15640 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15641 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15642 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15643 (GLIBC_DYNAMIC_LINKER): Delete.
15644 (UCLIBC_DYNAMIC_LINKER): Delete.
15646 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15647 Richard Biener <rguenther@suse.de>
15649 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15650 Get address space from operand 0 (BASE).
15652 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15655 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15657 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15659 * dwarf2out.c: Remove current_function_has_inlines.
15660 (gen_subprogram_die): Same.
15661 (gen_inlined_subroutine_die): Same.
15663 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15665 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15667 (_addcarry_u64): Ditto.
15668 (_addcarryx_u64): Ditto.
15670 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15672 * cgraph.h (cgraph_node::get_fun): Declare.
15673 * cgraph.c (cgraph_node::get_fun): New method.
15674 * ipa-inline.c (can_inline_edge_p): Use it.
15676 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15678 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15679 and -ftrapping-math.
15680 * lto-wrapper.c (merge_and_complain): Likewise.
15681 (run_gcc): Likewise.
15683 2014-10-06 Rong Xu <xur@google.com>
15685 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15686 * tree-profile.c: (params.h): New include.
15687 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15688 and __gcov_indirect_call_topn_counters for
15689 indirect_call_topn_profile.
15690 (gimple_init_edge_profiler): New decls for
15691 __gcov_indirect_call_topn_profiler.
15692 (gimple_gen_ic_profiler): Generate the correct profiler call.
15693 (gimple_gen_ic_func_profiler): Fix format.
15694 * value-prof.c (params.h): New include.
15695 (dump_histogram_value): Hanlde indirect_call_topn counters.
15696 (stream_in_histogram_value): Ditto.
15697 (gimple_indirect_call_to_profile): Use indirect_call_topn
15698 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15699 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15701 * value-prof.h (enum hist_type): Histrogram type for
15702 indirect_call_topn counters.
15703 * profile.c (instrument_values): Instrument
15704 indirect_call_topn counters.
15706 2014-10-06 Rong Xu <xur@google.com>
15708 * Makefile.in: Fix dependence.
15709 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15710 indirect call topn profiler.
15711 * gcov-io.h: Ditto.
15713 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15715 * calls.c (expand_call): Do not use the target as the return slot if
15716 it is not sufficiently aligned.
15718 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15720 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15721 discussion of permutes and why we don't handle them.
15723 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15725 * config/sparc/predicates.md (int_register_operand): Delete.
15727 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15729 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15731 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15733 * ubsan.h (ubsan_get_source_location): New prototype.
15734 * ubsan.c (ubsan_source_location_type): New variable.
15735 Function renamed to ...
15736 (ubsan_get_source_location_type): ... this. Cache
15737 return value in ubsan_source_location_type variable.
15738 (ubsan_source_location, ubsan_create_data): Use
15739 ubsan_get_source_location_type instead of
15740 ubsan_source_location_type.
15741 * asan.c (asan_protect_global): Don't protect globals
15742 with ubsan_get_source_location_type () type.
15743 (asan_add_global): Provide global decl location info
15746 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15748 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15751 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15753 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15755 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15757 (ipa_polymorphic_call_context::dump): Fix formating.
15758 (walk_ssa_copies): Add logic avoiding loops; update uses.
15759 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15761 2014-10-02 Mark Wielaard <mjw@redhat.com>
15764 * dwarf2out.c (gen_subprogram_die): When a member function is
15765 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15766 * langhooks.h (struct lang_hooks_for_decls): Add
15767 function_decl_deleted_p langhook.
15768 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15769 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15771 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15773 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15774 NULL pointer checks.
15775 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15776 if type doesn't change.
15777 * cgraph.h (cgraph_indirect_call_info): New flag.
15778 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15779 (cgraph_node::dump): Dump it.
15780 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15781 of context.get_dynamic_type.
15782 (ipa_make_edge_direct_to_target): Do not speculate
15783 edge that is already speuclative.
15784 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15785 speculate to __builtin_unreachable
15786 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15788 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15790 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15792 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15793 get_dynamic_type; drop TODO.
15794 * ipa-polymorphic-call.c
15795 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15796 for otr_type to be unknown.
15798 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15800 * common/config/score/score-common.c: Remove.
15801 * config.gcc: Remove support for score-*.
15802 * config/score/constraints.md: Remove.
15803 * config/score/elf.h: Remove.
15804 * config/score/predicates.md: Remove.
15805 * config/score/score-conv.h: Remove.
15806 * config/score/score-generic.md: Remove.
15807 * config/score/score-modes.def: Remove.
15808 * config/score/score-protos.h: Remove.
15809 * config/score/score.c: Remove.
15810 * config/score/score.h: Remove.
15811 * config/score/score.md: Remove.
15812 * config/score/score.opt: Remove.
15813 * doc/md.texi: Don't document score-*.
15815 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15818 * genconditions.c: Directly include ggc.h before rtl.h.
15820 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15822 * ipa-polymorphic-call.c
15823 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15824 code determining speculative type.
15825 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15827 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15829 * altivec.md (altivec_lvsl): New define_expand.
15830 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15831 (altivec_lvsr): New define_expand.
15832 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15833 * rs6000.c (rs6000_expand_builtin): Change to use
15834 altivec_lvs[lr]_direct; remove commented-out code.
15836 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15838 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15839 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15840 little endian target.
15842 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15844 * tree-pretty-print.c (dump_location): Make it extern. Dump also
15846 * tree-pretty-print.h (dump_location): Declare.
15847 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
15848 (pp_gimple_stmt_1): Likewise.
15849 (dump_implicit_edges): Likewise.
15850 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
15854 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15856 * gcc.c (driver::global_initializations): Remove "const" so
15857 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
15858 and decoded_options_count.
15860 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15862 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
15864 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
15865 TARGET_E500_DOUBLE case here.
15867 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
15872 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
15874 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15876 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
15877 * lto-cgraph.c (lto_output_edge, input_edge): Stream
15878 in_polymorphic_cdtor
15879 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
15880 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
15881 * cgraphclones.c (cgraph_edge::clone): Likewise.
15882 * ipa-prop.c (update_jump_functions_after_inlining,
15883 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
15884 to possible_dynamic_type_change.
15885 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
15886 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15887 IN_POLY_CDOTR argument.
15889 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
15890 for BASE and OUTER_TYPE being NULL.
15891 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15892 in_poly_cdtor parameter.
15894 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15896 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
15897 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
15899 (expand_vec_perm_1): Likewise.
15901 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15902 Uros Bizjak <ubizjak@gmail.com>
15904 PR tree-optimization/61403
15905 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
15906 error in comment. Also optimize 256-bit vectors for AVX2
15907 or AVX (floating vectors only), provided the first permutation
15908 can be performed in one insn.
15910 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15912 * gcc.c (class driver): New class.
15913 (main): Reimplement in terms of driver::main, moving most of the
15914 locals to be locals within individual methods of class driver.
15915 The remaining locals "explicit_link_files", "decoded_options" and
15916 "decoded_options_count" are used by multiple driver:: methods, and
15917 so become member data. Doing so isolates the argc/argv reads and
15918 writes. Replace "goto out" with a special exit code from
15919 new method driver::prepare_infiles. Split out the old
15920 implementation of main into the following...
15921 (driver::main): New function, corresponding to the old "main"
15923 (driver::set_progname): New function, taken from the old
15924 "main" implementation.
15925 (driver::expand_at_files): Likewise.
15926 (driver::decode_argv): Likewise.
15927 (driver::global_initializations): Likewise.
15928 (driver::build_multilib_strings): Likewise.
15929 (driver::set_up_specs): Likewise.
15930 (driver::putenv_COLLECT_GCC): Likewise.
15931 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
15932 (driver::handle_unrecognized_options): Likewise.
15933 (driver::maybe_print_and_exit): Likewise.
15934 (driver::prepare_infiles): Likewise.
15935 (driver::do_spec_on_infiles): Likewise.
15936 (driver::maybe_run_linker): Likewise.
15937 (driver::final_actions): Likewise.
15938 (driver::get_exit_code): Likewise.
15940 2014-10-03 Yury Gribov <y.gribov@samsung.com>
15942 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
15943 don't emit empty ctors.
15945 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
15947 * convert.c (convert_to_integer): Do not introduce useless conversions
15948 between integral types.
15950 2014-10-03 David Sherwood <david.sherwood@arm.com>
15952 * ira-int.h (ira_allocno): Mark hard_regno as signed.
15954 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
15956 * lra-constraints.c (inherit_in_ebb): Handle calls with
15957 multiple return values.
15958 * caller-save.c (save_call_clobbered_regs): Likewise.
15960 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15962 * tree-vect-data-refs.c (vect_permute_load_chain,
15963 vect_shift_permute_load_chain): Fix a typo in temporary var names,
15964 suffle3 to shuffle3.
15967 * omp-low.c (taskreg_contexts): New variable.
15968 (scan_omp_parallel): Push newly created context into taskreg_contexts
15969 vector and move record layout code to finish_taskreg_scan.
15970 (scan_omp_task): Likewise.
15971 (finish_taskreg_scan): New function.
15972 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
15973 vector elements and release it.
15976 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
15977 of palignr arguments can't be used due to min 0 or max - min
15978 too high, try also op0, op1 order of palignr arguments.
15980 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
15982 * cgraph.h (ipa_polymorphic_call_context):
15983 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
15984 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
15985 * ipa-polymorphic-call.c
15986 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
15987 past end of dynamic types.
15988 (ipa_polymorphic_call_context::stream_out,
15989 speculative_outer_type): Stream dynamic flag.
15990 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
15991 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
15993 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
15995 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
15996 * ipa-prop.c (update_jump_functions_after_inlining,
15997 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
15999 2014-10-02 Teresa Johnson <tejohnson@google.com>
16001 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
16002 up when synthesizing counts to avoid rounding errors.
16004 2014-10-02 Teresa Johnson <tejohnson@google.com>
16006 PR middle-end/63422
16007 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
16008 asserts to handle incoming insanities.
16010 2014-10-02 Martin Jambor <mjambor@suse.cz>
16012 PR tree-optimization/63375
16013 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
16016 2014-10-02 Olivier Hainque <hainque@adacore.com>
16018 * Makefile.in (CROSS): Define, to @CROSS.
16020 2014-10-02 Jakub Jelinek <jakub@redhat.com>
16023 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
16024 if it expands to a single insn only.
16025 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
16026 fail unless in_order is true. Add forward declaration.
16027 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
16028 is useful for one_operand_p.
16029 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
16031 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16033 * cgraphclones.c (build_function_type_skip_args): Do not make new
16034 type variant of old.
16036 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16038 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
16039 when speculation is added.
16040 (ipa_edge_args): Add polymorphic_call_contexts.
16041 (ipa_get_ith_polymorhic_call_context): New accesor.
16042 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
16043 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
16044 (ipa_compute_jump_functions_for_edge): Compute contexts.
16045 (update_jump_functions_after_inlining): Update contexts.
16046 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
16047 update dumping; add speculative edge creation.
16048 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
16050 (update_indirect_edges_after_inlining): Pass down context.
16051 (ipa_edge_duplication_hook): Duplicate contexts.
16052 (ipa_write_node_info): Stream out contexts.
16053 (ipa_read_node_info): Stream in contexts.
16054 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
16056 (try_speculative_devirtualization): New function.
16057 * ipa-utils.h (try_speculative_devirtualization): Declare.
16059 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16061 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
16062 dumping during WPA.
16064 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16066 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
16069 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16071 * ipa-polymorphic-call.c
16072 (ipa_polymorphic_call_context::restrict_to_inner_class):
16073 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
16074 use speculation_consistent_p to do so; Add CONSDER_BASES
16075 and CONSIDER_PLACEMENT_NEW parameters.
16076 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
16077 short circuit obvious cases.
16078 (ipa_polymorphic_call_context::dump): Improve formatting.
16079 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
16080 combine_speculation_with to record speculations; Do not ICE when
16081 object is located in pointer type decl; do not ICE for methods
16082 of UNION_TYPE; do not record nonpolymorphic types.
16083 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
16084 (ipa_polymorphic_call_context::combine_speculation_with): New method.
16085 (ipa_polymorphic_call_context::combine_with): New method.
16086 (ipa_polymorphic_call_context::make_speculative): Move here; use
16087 combine speculation.
16088 * cgraph.h (ipa_polymorphic_call_context): Update
16089 restrict_to_inner_class prototype; add offset_by, make_speculative,
16090 combine_with, useless_p, combine_speculation_with and
16091 speculation_consistent_p methods.
16092 (ipa_polymorphic_call_context::offset_by): New method.
16093 (ipa_polymorphic_call_context::useless_p): New method.
16095 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
16097 PR rtl-optimization/62151
16098 * combine.c (can_combine_p): Allow the destination register of INSN
16099 to be clobbered in I3.
16100 (subst): Do not substitute into clobbers of registers.
16102 2014-10-01 Jakub Jelinek <jakub@redhat.com>
16105 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
16106 offset, TARGET_MEM_REF and SSA_NAME.
16108 * config/i386/i386.c (expand_vec_perm_palignr): Handle
16109 256-bit vectors for TARGET_AVX2.
16111 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
16112 dfirst permutation.
16115 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
16116 argument to avx2_permv2ti.
16118 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16120 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
16122 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
16124 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
16125 (fmod<mode>3): Ditto.
16126 (fpremxf4_i387): Ditto.
16127 (reminderxf3): Ditto.
16128 (reminder<mode>3): Ditto.
16129 (fprem1xf4_i387): Ditto.
16131 2014-09-30 Teresa Johnson <tejohnson@google.com>
16133 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
16134 duplicate_blocks bitmap.
16135 (remove_ctrl_stmt_and_useless_edges): Ditto.
16136 (create_block_for_threading): Ditto.
16137 (compute_path_counts): New function.
16138 (update_profile): Ditto.
16139 (recompute_probabilities): Ditto.
16140 (update_joiner_offpath_counts): Ditto.
16141 (freqs_to_counts_path): Ditto.
16142 (clear_counts_path): Ditto.
16143 (ssa_fix_duplicate_block_edges): Update profile info.
16144 (ssa_create_duplicates): Pass new parameter.
16145 (ssa_redirect_edges): Remove old profile update.
16146 (thread_block_1): New duplicate_blocks bitmap,
16147 remove old profile update.
16148 (thread_single_edge): Pass new parameter.
16150 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16152 PR middle-end/62120
16153 * varasm.c (decode_reg_name_and_count): Check availability for
16154 registers from ADDITIONAL_REGISTER_NAMES.
16156 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16159 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16160 (PLUGIN_HEADERS): Add pass-instances.def.
16162 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16164 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16166 * config/aarch64/aarch64-simd.md
16167 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16168 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16169 (vqdmulls_lane_s32): Fix return type.
16170 (vqdmulls_laneq_s32): New.
16172 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16174 PR inline-asm/63282
16175 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16176 or invert_jump_1 if jump isn't any_condjump_p.
16178 2014-09-30 Terry Guo <terry.guo@arm.com>
16180 * config/arm/arm-cores.def (cortex-m7): New core name.
16181 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16183 * config/arm/arm-tables.opt: Regenerated.
16184 * config/arm/arm-tune.md: Regenerated.
16185 * config/arm/arm.h (TARGET_VFP5): New macro.
16186 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16187 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16188 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16189 * doc/invoke.texi: Document new cpu and fpu names.
16191 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16193 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16194 before sinking insn.
16196 2014-09-30 David Sherwood <david.sherwood@arm.com>
16198 * ira-int.h (ira_allocno): Add "wmode" field.
16199 * ira-build.c (create_insn_allocnos): Add new "parent" function
16201 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16202 that cannot be accessed in wmode.
16204 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16206 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16209 2014-09-29 Andi Kleen <ak@linux.intel.com>
16211 * opts.c (print_filtered_help): Print --param min/max/default
16214 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16216 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16218 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16220 * tree-vrp.c (get_single_symbol): New function.
16221 (build_symbolic_expr): Likewise.
16222 (symbolic_range_based_on_p): New predicate.
16223 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16224 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16225 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16226 operand is symbolic and based on the other operand.
16228 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16230 * config/microblaze/microblaze.md (call_internal1): Use VOID
16231 instead of SI to fix "((void (*)(void)) 0)()" issue
16233 2014-09-29 Nick Clifton <nickc@redhat.com>
16235 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16236 CLOBBER rtx for naked functions.
16237 (msp430_expand_epilogue): Likewise.
16238 (msp430_use_f5_series_hwmult): Cache result.
16239 (use_32bit_hwmult): Cache result.
16240 (msp430_no_hwmult): New function.
16241 (msp430_output_labelref): Use it.
16243 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16245 PR middle-end/63247
16246 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16247 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16248 use the alignment of avar rather than ovar.
16250 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16252 * config/pa/pa.c (pa_output_function_epilogue): Only update
16253 last_address when a nonnote insn is found.
16255 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16258 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16261 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16264 * ipa-polymorphic-call.c
16265 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16266 in checking array size.
16268 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16270 PR middle-end/35545
16271 * passes.def (pass_tracer): Move before last dominator pass.
16273 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16275 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16277 (run_attempt): Handle errors of "pex_run" invocation.
16279 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16281 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16282 (CC1_SPEC): Define.
16283 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16284 (TARGET_ASAN_SHADOW_OFFSET): Define.
16286 2014-09-26 Martin Liska <mliska@suse.cz>
16288 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16290 * cgraph.h: Likewise.
16291 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16292 argument introduced.
16293 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16295 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16296 transformed to global.
16297 * tree-ssa-alias.h: Likewise.
16299 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16300 Max Ostapenko <m.ostapenko@partner.samsung.com>
16302 * common.opt: New option.
16303 * doc/invoke.texi: Describe new option.
16304 * gcc.c (execute): Don't free first string early, but at the end
16305 of the function. Call retry_ice if compiler exited with
16307 (main): Factor out common code.
16308 (print_configuration): New function.
16309 (files_equal_p): Likewise.
16310 (check_repro): Likewise.
16311 (run_attempt): Likewise.
16312 (do_report_bug): Likewise.
16313 (append_text): Likewise.
16314 (try_generate_repro): Likewise
16316 2014-09-25 Andi Kleen <ak@linux.intel.com>
16318 * config/i386/i386.c (x86_print_call_or_nop): New function.
16319 (x86_function_profiler): Support -mnop-mcount and
16321 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16322 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16324 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16326 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16327 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16328 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16331 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16333 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16334 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16335 types_must_be_same_for_odr, types_odr_comparable): Declare.
16336 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16337 * ipa-polymorphic-call.c: New file.
16338 (contains_polymorphic_type_p, possible_placement_new,
16339 ipa_polymorphic_call_context::restrict_to_inner_class,
16340 contains_type_p, decl_maybe_in_construction_p,
16341 ipa_polymorphic_call_context::stream_out,
16342 ipa_polymorphic_call_context::debug,
16343 ipa_polymorphic_call_context::stream_in,
16344 ipa_polymorphic_call_context::set_by_decl,
16345 ipa_polymorphic_call_context::set_by_invariant,
16347 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16348 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16349 extr_type_from_vtbl_ptr_store, record_known_type
16350 check_stmt_for_type_change,
16351 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16353 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16354 and streamer-hooks.h
16355 (contains_polymorphic_type_p, possible_placement_new,
16356 ipa_polymorphic_call_context::restrict_to_inner_class,
16357 contains_type_p, decl_maybe_in_construction_p,
16358 ipa_polymorphic_call_context::stream_out,
16359 ipa_polymorphic_call_context::debug,
16360 ipa_polymorphic_call_context::stream_in,
16361 ipa_polymorphic_call_context::set_by_decl,
16362 ipa_polymorphic_call_context::set_by_invariant,
16364 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16365 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16366 extr_type_from_vtbl_ptr_store, record_known_type
16367 check_stmt_for_type_change,
16368 ipa_polymorphic_call_context::get_dynamic_type): Move to
16369 ipa-polymorphic-call.c
16370 (type_all_derivations_known_p, types_odr_comparable,
16371 types_must_be_same_for_odr): Export.
16372 (type_known_to_have_no_deriavations_p): New function.
16373 * Makefile.in: Add ipa-polymorphic-call.c
16375 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16377 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16378 for better storage.
16379 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16380 (possible_polymorphic_call_targets): Instead of computing both
16381 speculative and non-speculative answers, do just one at a time.
16382 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16383 (dump_targets): Break out from ...
16384 (dump_possible_polymorphic_call_targets): ... here; dump both
16385 speculative and non-speculative lists.
16386 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16387 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16389 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16391 PR rtl-optimization/63348
16392 * emit-rtl.c (try_split): Do not emit extra barrier.
16394 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16396 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16397 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16399 (aarch64_<sur>shll2_n<mode>): Likewise.
16400 (aarch64_<sur>shr_n<mode>): Likewise.
16401 (aarch64_<sur>sra_n<mode>: Likewise.
16402 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16403 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16404 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16405 * config/aarch64/iterators.md (ve_mode): New.
16406 (offsetlr): Remap to infix text for use in new predicates.
16407 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16408 (aarch64_simd_shift_imm_hi): Likewise.
16409 (aarch64_simd_shift_imm_si): Likewise.
16410 (aarch64_simd_shift_imm_di): Likewise.
16411 (aarch64_simd_shift_imm_offset_qi): Likewise.
16412 (aarch64_simd_shift_imm_offset_hi): Likewise.
16413 (aarch64_simd_shift_imm_offset_si): Likewise.
16414 (aarch64_simd_shift_imm_offset_di): Likewise.
16415 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16416 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16417 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16418 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16420 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16422 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16423 new created BB as the intersection of live-in from "old_dest" and
16424 live-out from "bb".
16426 2014-09-25 Felix Yang <felix.yang@huawei.com>
16428 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16429 * genautomata.c (merge_states): Ditto.
16431 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16434 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16435 in instruction sequence.
16437 2014-09-25 Nick Clifton <nickc@redhat.com>
16440 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16441 in instruction sequence.
16443 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16446 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16447 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16449 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16451 Anna Tikhonova <anna.tikhonova@intel.com>
16452 Ilya Tocar <ilya.tocar@intel.com>
16453 Andrey Turetskiy <andrey.turetskiy@intel.com>
16454 Ilya Verbin <ilya.verbin@intel.com>
16455 Kirill Yukhin <kirill.yukhin@intel.com>
16456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16458 * config/i386/sse.md
16459 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16460 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16461 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16462 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16463 Use VI8F_256_512 mode iterator.
16464 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16465 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
16467 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16468 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16469 Anna Tikhonova <anna.tikhonova@intel.com>
16470 Ilya Tocar <ilya.tocar@intel.com>
16471 Andrey Turetskiy <andrey.turetskiy@intel.com>
16472 Ilya Verbin <ilya.verbin@intel.com>
16473 Kirill Yukhin <kirill.yukhin@intel.com>
16474 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16476 * config/i386/sse.md
16477 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16478 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16479 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16480 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16481 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16482 (define_insn "*vec_concatv2df"): Add EVEX version.
16484 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16486 Anna Tikhonova <anna.tikhonova@intel.com>
16487 Ilya Tocar <ilya.tocar@intel.com>
16488 Andrey Turetskiy <andrey.turetskiy@intel.com>
16489 Ilya Verbin <ilya.verbin@intel.com>
16490 Kirill Yukhin <kirill.yukhin@intel.com>
16491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16493 * config/i386/sse.md
16494 (define_insn "vec_set<mode>_0"): Add EVEX version.
16496 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16497 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16498 Anna Tikhonova <anna.tikhonova@intel.com>
16499 Ilya Tocar <ilya.tocar@intel.com>
16500 Andrey Turetskiy <andrey.turetskiy@intel.com>
16501 Ilya Verbin <ilya.verbin@intel.com>
16502 Kirill Yukhin <kirill.yukhin@intel.com>
16503 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16505 * config/i386/sse.md
16507 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16509 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16510 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16511 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16512 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16513 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16514 (define_expand "sse2_cvtpd2ps_mask): New.
16515 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16516 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16518 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16520 Anna Tikhonova <anna.tikhonova@intel.com>
16521 Ilya Tocar <ilya.tocar@intel.com>
16522 Andrey Turetskiy <andrey.turetskiy@intel.com>
16523 Ilya Verbin <ilya.verbin@intel.com>
16524 Kirill Yukhin <kirill.yukhin@intel.com>
16525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16527 * config/i386/i386.c
16528 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16529 (ufix_notruncv8dfv8si2_mask_round): ... this.
16530 * config/i386/sse.md
16531 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16532 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16533 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16534 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16535 (define_expand "sse2_cvtpd2dq"): Delete.
16536 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16537 make 2nd operand const0 vector.
16538 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16540 (define_mode_attr pd2udqsuff): New.
16542 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16543 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16544 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16545 (define_expand "sse2_cvttpd2dq"): Ditto.
16546 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16547 make 2nd operand const0 vector.
16549 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16551 PR tree-optimization/63341
16552 * tree-vectorizer.h (vect_create_data_ref_ptr,
16553 vect_create_addr_base_for_vector_ref): Add another tree argument
16554 defaulting to NULL_TREE.
16555 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16556 argument, pass it down to vect_create_addr_base_for_vector_ref.
16557 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16558 add that to base_offset too if non-NULL.
16559 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16560 for dr_explicit_realign_optimized set it to vector byte size
16561 - 1 instead of setting offset, pass byte_offset down to
16562 vect_create_data_ref_ptr.
16564 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16566 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16567 forgotten debug output; canonicalize querries more wtih LTO.
16569 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16571 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16572 ipa-utils.h; add stream_int and stream_out methods.
16573 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16574 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16575 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16577 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16578 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16579 ipa_polymorphic_call_context::clear_speculation,
16580 ipa_polymorphic_call_context::clear_outer_type): Move here from
16582 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16583 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16584 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16585 ipa_polymorphic_call_context::clear_speculation,
16586 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16587 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16589 (ipa_polymorphic_call_context::stream_out): New method.
16590 (ipa_polymorphic_call_context::stream_in): New method.
16591 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16592 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16594 (ipa_analyze_call_uses): Simplify.
16595 (update_indirect_edges_after_inlining): Do not care about outer_type.
16596 (ipa_write_indirect_edge_info): Update.
16597 (ipa_write_indirect_edge_info): Likewise.
16598 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16599 (dump_edge_flags): Break out from ...
16600 (cgraph_node::dump): ... here; dump indirect edges.
16602 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16604 * ipa-utils.h (polymorphic_call_context): Add
16605 metdhos dump, debug and clear_outer_type.
16606 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16607 (ipa_polymorphic_call_context::clear_outer_type): New method.
16608 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16609 * ipa-devirt.c (types_odr_comparable): New function.
16610 (types_must_be_same_for_odr): New function.
16611 (odr_subtypes_equivalent_p): Simplify.
16612 (possible_placement_new): Break out from ...
16613 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16614 be more cuatious about returning false in cases the context may be
16615 valid in derived type or via placement new.
16616 (contains_type_p): Clear maybe_derived_type
16617 (ipa_polymorphic_call_context::dump): New method.
16618 (ipa_polymorphic_call_context::debug): New method.
16619 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16620 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16621 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16622 (possible_polymorphic_call_targets): Trust
16623 context.restrict_to_inner_class to suceed on all valid cases;
16624 remove confused sanity check.
16625 (dump_possible_polymorphic_call_targets): Simplify.
16627 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16629 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16630 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16631 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16632 varpool.c: Rename all instances of DECL_ABSTRACT to
16635 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16637 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16638 special handling for stores whose SET_SRC is an UNSPEC (such as
16641 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16643 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16644 !REG_P (src) to release more instruction sink opportunities.
16646 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16648 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16649 move costs for 128-bit types.
16651 2014-09-24 Martin Jambor <mjambor@suse.cz>
16653 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16654 when duplicating a PASS_THROUGH jump function when creating a
16657 2014-09-24 Marek Polacek <polacek@redhat.com>
16661 * asan.c (maybe_instrument_call): Add default case.
16662 * ipa-pure-const.c (special_builtin_state): Likewise.
16663 * predict.c (expr_expected_value_1): Likewise.
16664 * lto-streamer-out.c (write_symbol): Initialize variable.
16666 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16668 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16670 (vmuld_laneq_f64): Likewise.
16671 (vmuls_lane_f32): Likewise.
16672 (vmuls_laneq_f32): Likewise.
16674 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16677 * varpool.c (varpool_node::add): Pass decl attributes
16678 to lookup_attribute.
16680 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16683 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16685 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16687 PR tree-optimization/63266
16688 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16689 marker for unknown byte value.
16690 (MARKER_MASK): New macro.
16691 (MARKER_BYTE_UNKNOWN): New macro.
16692 (HEAD_MARKER): New macro.
16693 (do_shift_rotate): Mark bytes with unknown values due to sign
16694 extension when doing an arithmetic right shift. Replace hardcoded
16695 mask for marker by new MARKER_MASK macro.
16696 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16697 numbers accordingly.
16699 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16700 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16701 Anna Tikhonova <anna.tikhonova@intel.com>
16702 Ilya Tocar <ilya.tocar@intel.com>
16703 Andrey Turetskiy <andrey.turetskiy@intel.com>
16704 Ilya Verbin <ilya.verbin@intel.com>
16705 Kirill Yukhin <kirill.yukhin@intel.com>
16706 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16708 * config/i386/sse.md
16710 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16712 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16713 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16715 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16716 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16717 Anna Tikhonova <anna.tikhonova@intel.com>
16718 Ilya Tocar <ilya.tocar@intel.com>
16719 Andrey Turetskiy <andrey.turetskiy@intel.com>
16720 Ilya Verbin <ilya.verbin@intel.com>
16721 Kirill Yukhin <kirill.yukhin@intel.com>
16722 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16724 * config/i386/sse.md
16725 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16726 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16727 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16728 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16729 (define_expand "avx512vl_pshuflw_mask"): New.
16730 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16731 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16732 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16733 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16734 (define_expand "avx512vl_pshufhw_mask"): New.
16735 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16737 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16739 Anna Tikhonova <anna.tikhonova@intel.com>
16740 Ilya Tocar <ilya.tocar@intel.com>
16741 Andrey Turetskiy <andrey.turetskiy@intel.com>
16742 Ilya Verbin <ilya.verbin@intel.com>
16743 Kirill Yukhin <kirill.yukhin@intel.com>
16744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16746 * config/i386/i386.c
16747 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16748 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16749 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16750 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16751 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16752 * config/i386/sse.md
16753 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16755 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16756 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16758 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16759 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16760 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16761 (define_expand "avx512vl_pshufd_mask"): New.
16762 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16764 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16766 Anna Tikhonova <anna.tikhonova@intel.com>
16767 Ilya Tocar <ilya.tocar@intel.com>
16768 Andrey Turetskiy <andrey.turetskiy@intel.com>
16769 Ilya Verbin <ilya.verbin@intel.com>
16770 Kirill Yukhin <kirill.yukhin@intel.com>
16771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16773 * config/i386/i386.c
16774 (CODE_FOR_avx2_extracti128): Rename to ...
16775 (CODE_FOR_avx_vextractf128v4di): this.
16776 (CODE_FOR_avx2_inserti128): Rename to ...
16777 (CODE_FOR_avx_vinsertf128v4di): this.
16778 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16779 CODE_FOR_avx_vextractf128v4di.
16780 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16781 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16782 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16783 CODE_FOR_avx512vl_vinsertv8si.
16784 * config/i386/sse.md
16786 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16787 AVX512_VEC mode iterator.
16789 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16792 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16793 AVX512_VEC_2 mode iterator.
16794 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16795 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16796 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16797 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16798 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16799 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16800 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16801 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16802 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16803 (define_expand "avx2_extracti128"): Delete.
16804 (define_expand "avx2_inserti128"): Ditto.
16806 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16808 Anna Tikhonova <anna.tikhonova@intel.com>
16809 Ilya Tocar <ilya.tocar@intel.com>
16810 Andrey Turetskiy <andrey.turetskiy@intel.com>
16811 Ilya Verbin <ilya.verbin@intel.com>
16812 Kirill Yukhin <kirill.yukhin@intel.com>
16813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16815 * config/i386/sse.md
16816 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16817 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16818 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16819 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16820 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16821 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16822 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16823 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16824 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16825 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16826 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16827 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16828 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16830 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16832 PR rtl-optimization/63210
16833 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16834 HARD_REGNO is not available for CONFLICT_A.
16836 2014-09-23 Andi Kleen <ak@linux.intel.com>
16838 * cgraph.h (symtab_node): Add no_reorder attribute.
16839 (symbol_table::output_asm_statements): Remove.
16840 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16841 (cgraph_node::create_version_clone): Dito.
16842 (symbol_table::output_asm_statements): Remove.
16843 * trans-mem.c (ipa_tm_create_version_alias): Dito.
16844 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
16845 (output_in_order): Add no_reorder flag. Only handle no_reorder
16847 (symbol_table::compile): Add separate pass for no_reorder nodes.
16848 (process_common_attributes): Set no_reorder flag in symtab node.
16850 (process_function_and_variable_attributes): Pass symtab nodes to
16851 process_common_attributes.
16852 * doc/extend.texi (no_reorder): Document no_reorder attribute.
16853 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
16854 (lto_output_varpool_node): Dito.
16855 (input_overwrite_node): Dito.
16856 (input_varpool_node): Dito.
16857 * varpool.c (varpool_node::add): Set no_reorder attribute.
16858 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
16859 (symbol_table::output_variables): Dito.
16860 * symtab.c (symtab_node::dump_base): Print no_reorder.
16862 2014-09-23 Jiong Wang <jiong.wang@arm.com>
16864 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
16865 not be INVALID_REGNUM.
16867 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
16869 * configure: Regenerate.
16871 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
16873 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
16874 when result_mode == shift_mode.
16876 2014-09-23 Kostya Serebryany <kcc@google.com>
16878 Update to match the changed asan API.
16879 * asan.c (asan_global_struct): Update the __asan_global definition
16880 to match the new API.
16881 (asan_add_global): Ditto.
16882 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
16885 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16887 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
16888 refine the constraints used on 32/64-bit floating point moves.
16889 (f32_av): Likewise.
16890 (f64_vsx): Likewise.
16891 (f64_dm): Likewise.
16892 (f64_av): Likewise.
16893 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
16894 (BOOL_REGS_OP1): Likewise.
16895 (BOOL_REGS_OP2): Likewise.
16896 (BOOL_REGS_UNARY): Likewise.
16897 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
16898 32/64-bit floating point moves. Do not use wa, instead use ww/ws
16899 for moves involving VSX registers. Do not use constraints that
16900 target VSX registers for decimal types.
16901 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
16902 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
16904 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
16906 * tree.h (int_bit_position): Turn into inline function;
16907 implement using wide int.
16908 * tree.c (int_bit_position): Remove.
16910 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
16913 * target-globals.c (target_globals::~target_globals): Fix location
16914 of ira_int destruction.
16916 2014-09-23 Renlin Li <renlin.li@arm.com>
16918 * config/aarch64/aarch64.md (return): New.
16919 (simple_return): Likewise.
16920 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
16921 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
16923 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
16925 * common/config/aarch64/aarch64-common.c:
16926 (default_options aarch_option_optimization_table):
16927 Default to -fsched-pressure.
16929 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
16931 * cfgcleanup.c (try_optimize_cfg): Do not remove label
16932 with LABEL_PRESERVE_P flag set.
16934 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16935 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16936 Anna Tikhonova <anna.tikhonova@intel.com>
16937 Ilya Tocar <ilya.tocar@intel.com>
16938 Andrey Turetskiy <andrey.turetskiy@intel.com>
16939 Ilya Verbin <ilya.verbin@intel.com>
16940 Kirill Yukhin <kirill.yukhin@intel.com>
16941 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16943 * config/i386/sse.md
16944 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
16945 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
16946 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
16947 (define_insn "sse2_shufpd_v2df_mask"): New.
16949 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16951 Anna Tikhonova <anna.tikhonova@intel.com>
16952 Ilya Tocar <ilya.tocar@intel.com>
16953 Andrey Turetskiy <andrey.turetskiy@intel.com>
16954 Ilya Verbin <ilya.verbin@intel.com>
16955 Kirill Yukhin <kirill.yukhin@intel.com>
16956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16958 * config/i386/sse.md
16959 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
16960 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
16961 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
16962 (define_insn "sse_shufps_v4sf_mask"): New.
16964 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16966 Anna Tikhonova <anna.tikhonova@intel.com>
16967 Ilya Tocar <ilya.tocar@intel.com>
16968 Andrey Turetskiy <andrey.turetskiy@intel.com>
16969 Ilya Verbin <ilya.verbin@intel.com>
16970 Kirill Yukhin <kirill.yukhin@intel.com>
16971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16973 * config/i386/sse.md
16974 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
16975 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
16976 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
16977 (define_insn "unpcklps128_mask"): New.
16979 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16981 Anna Tikhonova <anna.tikhonova@intel.com>
16982 Ilya Tocar <ilya.tocar@intel.com>
16983 Andrey Turetskiy <andrey.turetskiy@intel.com>
16984 Ilya Verbin <ilya.verbin@intel.com>
16985 Kirill Yukhin <kirill.yukhin@intel.com>
16986 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16988 * config/i386/sse.md
16989 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
16990 (define_insn "avx512vl_unpckhpd128_mask"): New.
16991 (define_expand "avx_movddup256<mask_name>"): Add masking.
16992 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
16993 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
16994 (define_insn "avx512vl_unpcklpd128_mask"): New.
16996 2014-09-22 Joseph Myers <joseph@codesourcery.com>
16998 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16999 * doc/tm.texi: Regenerate.
17000 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
17001 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17002 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
17004 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17005 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17006 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17007 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17008 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
17010 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17011 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17012 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17013 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17014 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17015 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17016 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17017 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17018 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17019 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17020 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
17023 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
17025 * tree-ssa-ccp.c (prop_value_d): Rename to ...
17026 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
17027 * ipa-prop.c (struct type_change_info): Rename to ...
17028 (prop_type_change_info): ... this; update uses.
17029 * ggc-page.c (globals): Rename to ...
17030 (static struct ggc_globals): ... this; update uses.
17031 * tree-ssa-loop-im.c (mem_ref): Rename to ...
17032 (im_mem_ref): ... this; update uses.
17033 * ggc-common.c (loc_descriptor): Rename to ...
17034 (ggc_loc_descriptor): ... this; update uses.
17035 * lra-eliminations.c (elim_table): Rename to ...
17036 (lra_elim_table): ... this; update uses.
17037 * bitmap.c (output_info): Rename to ...
17038 (bitmap_output_info): ... this; update uses.
17039 * gcse.c (expr): Rename to ...
17040 (gcse_expr) ... this; update uses.
17041 (occr): Rename to ...
17042 (gcse_occr): .. this; update uses.
17043 * tree-ssa-copy.c (prop_value_d): Rename to ...
17044 (prop_value_t): ... this.
17045 * predict.c (block_info_def): Rename to ...
17046 (block_info): ... this; update uses.
17047 (edge_info_def): Rename to ...
17048 (edge_info): ... this; update uses.
17049 * profile.c (bb_info): Rename to ...
17050 (bb_profile_info): ... this; update uses.
17051 * alloc-pool.c (output_info): Rename to ...
17052 (pool_output_info): ... this; update uses.
17053 * ipa-cp.c (topo_info): Rename to ..
17054 (ipa_topo_info): ... this; update uses.
17055 * tree-nrv.c (nrv_data): Rename to ...
17056 (nrv_data_t): ... this; update uses.
17057 * ipa-split.c (bb_info): Rename to ...
17058 (split_bb_info): ... this one.
17059 * profile.h (edge_info): Rename to ...
17060 (edge_profile_info): ... this one; update uses.
17061 * dse.c (bb_info): Rename to ...
17062 (dse_bb_info): ... this one; update uses.
17063 * cprop.c (occr): Rename to ...
17064 (cprop_occr): ... this one; update uses.
17065 (expr): Rename to ...
17066 (cprop_expr): ... this one; update uses.
17068 2014-09-22 Jason Merrill <jason@redhat.com>
17070 * Makefile.in (check-parallel-%): Add @.
17072 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17074 * config/aarch64/geniterators.sh: New.
17075 * config/aarch64/iterators.md (VDQF_DF): New.
17076 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
17077 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
17079 2014-09-22 Peter A. Bigot <pab@pabigot.com>
17081 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
17082 -lnosys when -msim absent.
17084 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
17086 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
17088 2014-09-22 Richard Biener <rguenther@suse.de>
17090 * gimplify.c (gimplify_init_constructor): Do not leave
17091 non-GIMPLE vector constructors around.
17092 * tree-cfg.c (verify_gimple_assign_single): Verify that
17093 CONSTRUCTORs have gimple elements.
17095 2014-09-22 Jakub Jelinek <jakub@redhat.com>
17098 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
17099 insert a debug source bind stmt setting DEBUG_EXPR_DECL
17100 instead of a normal gimple assignment stmt.
17102 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17104 * config/bfin/bfin.md: Fix use of constraints in define_split.
17106 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17108 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
17109 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
17111 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17113 * hard-reg-set.h: Include hash-table.h.
17114 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
17116 * target-globals.c (target_globals::~target_globals): Call
17117 hard_regs->finalize.
17118 * rtl.h (subreg_shape): New structure.
17119 (shape_of_subreg): New function.
17120 (simplifiable_subregs): Declare.
17121 * reginfo.c (simplifiable_subreg): New structure.
17122 (simplifiable_subregs_hasher): Likewise.
17123 (simplifiable_subregs): New function.
17124 (invalid_mode_changes): Delete.
17125 (alid_mode_changes, valid_mode_changes_obstack): New variables.
17126 (record_subregs_of_mode): Remove subregs_of_mode parameter.
17127 Record valid mode changes in valid_mode_changes.
17128 (find_subregs_of_mode): Remove subregs_of_mode parameter.
17129 Update calls to record_subregs_of_mode.
17130 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
17131 handling. Initialize new variables. Update call to
17132 find_subregs_of_mode.
17133 (invalid_mode_change_p): Check new variables instead of
17134 invalid_mode_changes.
17135 (finish_subregs_of_mode): Finalize new variables instead of
17136 invalid_mode_changes.
17137 (target_hard_regs::finalize): New function.
17138 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
17139 even when CLASS_CANNOT_CHANGE_MODE is undefined.
17141 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17143 * combine.c (subst): Use simplify_subreg_regno rather than
17144 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17146 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17148 * rtl.h (subreg_info): Expand commentary
17149 * rtlanal.c (subreg_get_info): Likewise.
17151 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17153 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17154 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17155 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17157 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17159 * config/arm/arm.c: #include "tm-constrs.h"
17160 (thumb1_size_rtx_costs): Adjust rtx costs.
17162 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17164 * configure.ac (target_header_dir): Move block defining
17165 this to before the block setting inhibit_libc.
17166 (inhibit_libc): When considering $with_headers, just
17167 check it it's explicitly "no". If not, also check if
17168 $target_header_dir/stdio.h is present. If not, set
17170 * configure: Regenerate.
17172 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17174 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17176 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17178 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17179 insn for divides by integer powers of two.
17180 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17181 (mod<mode>3): Fix formatting.
17182 (three anonymous define_insn and two define_split): Delete.
17184 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17186 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17187 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17188 (floatdisf2_internal2): Ditto.
17189 (ashrdi3_no_power): Ditto. Fix formatting.
17191 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17193 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17194 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17197 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17199 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17200 constant, use addsi3 directly.
17201 (three anonymous define_insn, two define_split): Delete.
17202 (sub<mode>3): Move. Do not allow constant second operand.
17203 Generate different insn for constant first operand.
17204 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17205 (subf<mode>3_imm): New.
17206 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17207 (*plus_ltu<mode>): Only handle registers.
17208 (*plus_ltu<mode>_1): New. Handle integer third operand.
17209 (*plus_gtu<mode>): Only handle registers.
17210 (*plus_gtu<mode>_1): New. Handle integer third operand.
17212 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17214 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17215 (iorxor): New code_attr.
17216 (IORXOR): New code_attr.
17217 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17218 (ior<mode>3, xor<mode>3): Delete.
17219 (<iorxor><mode>3): New.
17220 (splitter for "big" integer ior, xor): New.
17221 (*bool<mode>3): Move. Also handle AND.
17222 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17223 (splitter for "big" integer ior, xor): Delete.
17225 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17227 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17228 (two anonymous define_insn and two define_split): Delete.
17229 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17231 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17233 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17234 (two anonymous define_insn and two define_split): Delete.
17235 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17237 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17239 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17241 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17243 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17244 (input_operand): Do not allow ca_operand.
17245 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17246 carry bit, allow SImode and Pmode.
17247 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17249 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17251 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17252 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17253 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17254 (*call_rex64_ms_sysv): Remove.
17255 (*call_value_rex64_ms_sysv): Ditto.
17256 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17258 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17260 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17261 operand 3 to "CnL".
17263 2014-09-20 Andreas Schwab <schwab@suse.de>
17265 * config/ia64/ia64.md: Remove constraints from define_split
17268 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17270 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17272 (possible_polymorphic_call_targets,
17273 dump_possible_polymorphic_call_targets,
17274 possible_polymorphic_call_target_p,
17275 possible_polymorphic_call_target_p): Simplify.
17276 (get_dynamic_type): Remove.
17277 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17278 (clear_speculation): Bring to ipa-deivrt.h
17279 (get_class_context): Rename to ...
17280 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17281 (contains_type_p): Update.
17282 (get_dynamic_type): Rename to ...
17283 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17284 (possible_polymorphic_call_targets): UPdate.
17285 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17286 * ipa-prop.c (ipa_analyze_call_uses): Update.
17288 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17290 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17291 privatize dynamic TLS variables.
17293 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17295 * diagnostic.c (warning_n): New function.
17296 * diagnostic-core.h (warning_n): Declare.
17297 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17298 output dynamic counts when available.
17300 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17302 PR tree-optimization/63255
17303 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17304 issue in setting body_removed flag.
17306 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17309 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17310 that visibility change is possible
17311 (handle_weakref_attribute): Likewise.
17312 * cgraph.h (symtab_node): Add method get_create and
17313 field refuse_visibility_changes.
17314 (symtab_node::get_create): New method.
17315 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17316 * varasm.c (mark_weak): Verify that visibility change is possible.
17318 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17320 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17321 for base_reg_operand to be common between LO_SUM and PLUS.
17322 (fusion_gpr_mem_combo): New predicate to match a fused address
17323 that combines the addis and memory offset address.
17325 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17327 (emit_fusion_gpr_load): Likewise.
17329 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17330 signature to pass each argument separately, rather than
17331 using an operands array. Rewrite the insns found by peephole2 to
17332 be a single insn, rather than hoping the insns will still be
17333 together when the peephole pass is done. Drop being called via a
17335 (emit_fusion_gpr_load): Change calling signature to be called from
17336 the fusion_gpr_load_<mode> insns with a combined memory address
17337 instead of the peephole pass passing the addis and offset
17340 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17342 (power8 fusion peephole): Drop support for doing power8 via a
17343 normal peephole that was created by the peephole2 pass.
17344 (power8 fusion peephole2): Create a new insn with the fused
17345 address, so that the fused operation is kept together after
17346 register allocation is done.
17347 (fusion_gpr_load_<mode>): Likewise.
17349 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17352 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17354 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17356 * recog.c (scratch_operand): Do not simply allow all hard registers:
17357 only allow those that are allocatable.
17359 2014-09-19 Felix Yang <felix.yang@huawei.com>
17361 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17362 comments and fix spacing to conform to coding style.
17364 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17366 * genrecog.c (validate_pattern): Allow empty constraints in
17369 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17371 * dwarf2out.c (decl_ultimate_origin): Update comment.
17372 * tree.c (block_ultimate_origin): Same.
17374 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17376 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17377 Update GCC version name to GCC 5.
17378 (rs6000_function_arg_boundary): Likewise.
17379 (rs6000_function_arg): Likewise.
17381 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17383 * config/sh/sh.md: Fix use of constraints in define_split.
17385 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17388 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17390 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17392 * doc/md.texi (Modifiers): Consistently use "read/write"
17393 nomenclature rather than "input/output".
17394 * genrecog.c (constraints_supported_in_insn_p): New.
17395 (validate_pattern): If needed, also check constraints on
17396 MATCH_SCRATCH operands.
17397 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17398 operands with no '=' or '+' modifier.
17400 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17402 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17403 scratch register as written.
17405 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17407 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17410 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17412 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17415 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17418 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17419 address load optimization force s390_optimize_prologue to leave it
17420 that way. Only do the optimization if we already decided to push
17421 r14 into a stack slot.
17423 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17425 * asan.c (build_check_stmt): Alignment arg was added.
17426 (asan_expand_check_ifn): Optimization for alignment >= 8.
17428 2014-09-19 Olivier Hainque <hainque@adacore.com>
17430 * config/i386/vxworksae.h: Remove obsolete definitions.
17431 (STACK_CHECK_PROTECT): Define.
17432 * config/i386/vx-common.h: Remove. Merge contents within
17433 config/i386/vxworks.h.
17434 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17437 2014-09-19 Olivier Hainque <hainque@adacore.com>
17439 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17440 * config/rs6000/t-vxworksmils: New file.
17441 * config/rs6000/vxworksmils.h: New file.
17443 2014-09-19 Olivier Hainque <hainque@adacore.com>
17445 * varasm.c (default_section_type_flags): Flag .persistent.bss
17446 sections as SECTION_BSS.
17448 2014-09-19 Nick Clifton <nickc@redhat.com>
17450 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17451 pop'ed registers so that DCE does not eliminate them.
17453 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17456 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17458 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17460 * system.h (LIBGCC2_TF_CEXT): Poison.
17461 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17462 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17463 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17464 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17465 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17466 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17467 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17468 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17469 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17471 2014-09-19 Kito Cheng <kito@0xlab.org>
17473 * except.h: Fix header guard.
17474 * addresses.h: Add missing header guard.
17475 * cfghooks.h: Likewise.
17476 * collect-utils.h: Likewise.
17477 * collect2-aix.h: Likewise.
17478 * conditions.h: Likewise.
17479 * cselib.h: Likewise.
17480 * dwarf2asm.h: Likewise.
17481 * graphds.h: Likewise.
17482 * graphite-scop-detection.h: Likewise.
17483 * gsyms.h: Likewise.
17484 * hw-doloop.h: Likewise.
17485 * incpath.h: Likewise.
17486 * ipa-inline.h: Likewise.
17487 * ipa-ref.h: Likewise.
17488 * ira-int.h: Likewise.
17490 * lra-int.h: Likewise.
17492 * lto-section-names.h: Likewise.
17493 * read-md.h: Likewise.
17494 * reload.h: Likewise.
17495 * rtl-error.h: Likewise.
17496 * sdbout.h: Likewise.
17497 * targhooks.h: Likewise.
17498 * tree-affine.h: Likewise.
17499 * xcoff.h: Likewise.
17500 * xcoffout.h: Likewise.
17502 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17505 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17508 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17511 * lra.c (lra): Call recog_init.
17513 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17516 * asan.c (transform_statements): Don't instrument clobber statements.
17518 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17520 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17521 to neon_load1_1reg<q>.
17523 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17526 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17527 if there are only debug stmts after the noreturn call, instead
17528 remove the debug stmts.
17530 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17532 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17533 (odr_types_equivalent_p): Use pair hash.
17534 (odr_subtypes_equivalent_p): Likewise, do structural compare
17535 on ODR types that may be mismatched.
17536 (warn_odr): Support warning when only one field is given.
17537 (odr_types_equivalent_p): Strenghten comparsions made;
17539 (add_type_duplicate): Update VISITED hash set.
17541 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17543 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17544 Enable selection of 'posix' or no thread model.
17546 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17548 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17549 when architecture is older than ARMv7.
17551 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17554 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17555 that fit exactly in a word or double word.
17557 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17559 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17560 zmm/k regs support.
17562 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17563 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17564 Anna Tikhonova <anna.tikhonova@intel.com>
17565 Ilya Tocar <ilya.tocar@intel.com>
17566 Andrey Turetskiy <andrey.turetskiy@intel.com>
17567 Ilya Verbin <ilya.verbin@intel.com>
17568 Kirill Yukhin <kirill.yukhin@intel.com>
17569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17571 * config/i386/i386.c
17572 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17573 * config/i386/sse.md
17574 (define_mode_iterator VI48F_256): New.
17575 (define_mode_attr extract_type): Ditto.
17576 (define_mode_attr extract_suf): Ditto.
17577 (define_mode_iterator AVX512_VEC): Ditto.
17579 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17581 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17583 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17585 (define_mode_attr extract_type_2): Ditto.
17586 (define_mode_attr extract_suf_2): Ditto.
17587 (define_mode_iterator AVX512_VEC_2): Ditto.
17589 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17590 AVX512_VEC_2 mode iterator.
17591 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17592 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17593 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17594 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17595 (define_split for V16FI mode): Ditto.
17596 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17597 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17598 (define_split for VI8F_256 mode): Ditto.
17599 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17600 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17601 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17602 (define_split for VI4F_256 mode): Ditto.
17603 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17604 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17605 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17606 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17607 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17608 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17609 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17610 Update `type' attribute, remove explicit `memory' attribute calculation.
17612 2014-09-16 Kito Cheng <kito@0xlab.org>
17614 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17615 ira_spilled_reg_stack_slots_num if using lra.
17616 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17617 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17618 make sure not using lra.
17619 (ira_reuse_stack_slot): Likewise.
17620 (ira_mark_new_stack_slot): Likewise.
17622 2014-09-15 Andi Kleen <ak@linux.intel.com>
17624 * function.c (allocate_struct_function): Force
17625 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17626 profiling is disabled.
17628 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17630 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17631 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17632 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17633 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17634 macro with statically checked member functions.
17635 * rtl.h (rtx_insn::deleted): New method.
17636 (rtx_insn::set_deleted): Likewise.
17637 (rtx_insn::set_undeleted): Likewise.
17638 (INSN_DELETED_P): Remove.
17640 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17642 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17643 result of emit_jump_insn_before to a new variable.
17644 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17645 (mark_jump_label_1): Likewise.
17646 (mark_jump_label_asm): Likewise.
17647 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17648 * rtl.h (mark_jump_label): Adjust.
17650 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17652 * Makefile.in (dg_target_exps): Remove.
17653 (check_gcc_parallelize): Change to just an upper bound number.
17654 (check-%-subtargets): Always print the non-parallelized goals.
17655 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17656 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17657 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17658 check_p_numbers6): New variables.
17659 (check_p_numbers): Set to sequence from 1 to 9999.
17660 (check_p_subdirs): Set to sequence from 1 to minimum of
17661 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17663 (check-%, check-parallel-%): Rewritten so that for parallelized
17664 testing each job runs all the *.exp files, with
17665 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17667 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17669 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17671 (arc_sets_cc_p): Likewise.
17672 * config/arc/arc.c (arc_print_operand): Use methods of
17673 "final_sequence" for clarity, and to enable strengthening of
17674 locals "jump" and "delay" from rtx to rtx_insn *.
17675 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17676 rtx_insn *; use method of rtx_sequence for typesafety.
17677 (arc_get_insn_variants): Use insn method of rtx_sequence for
17679 (arc_pad_return): Likewise.
17680 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17681 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17682 dyn_cast to rtx_sequence *, using insn method for typesafety.
17683 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17684 rtx_sequence * and use insn method when invoking get_attr_length.
17685 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17686 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17687 rtx_sequence *, introducing a local "seq", using its insn method
17688 from typesafety and clarity.
17689 (add_sched_insns_for_speculation): Strengthen local "next" from
17691 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17692 (predicate_insn): Likewise.
17693 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17695 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17696 * config/epiphany/epiphany-protos.h
17697 (extern void epiphany_insert_mode_switch_use): Likewise for param
17699 (get_attr_sched_use_fpu): Likewise for param.
17700 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17701 Likewise for param "insn".
17702 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17703 param "insn" of "target_insert_mode_switch_use" callback.
17704 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17705 (frv_issues_to_branch_unit_p): Likewise.
17706 (frv_pack_insn_p): Likewise.
17707 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17708 const rtx * (i.e. mutable rtx_def * const *) to
17709 rtx_insn * const *.
17710 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17711 Strengthen first param from rtx to rtx_insn *.
17712 (output_fix_trunc): Likewise.
17713 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17714 (output_fix_trunc): Likewise.
17715 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17717 (min_insn_size): Likewise for param "insn".
17718 (get_mem_group): Likewise.
17719 (is_cmp): Likewise.
17720 (get_insn_path): Likewise.
17721 (get_insn_group): Likewise.
17722 (count_num_restricted): Likewise.
17723 (fits_dispatch_window): Likewise.
17724 (add_insn_window): Likewise.
17725 (add_to_dispatch_window): Likewise.
17726 (debug_insn_dispatch_info_file): Likewise.
17727 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17729 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17730 "cmp" and local "prev".
17731 (m32c_output_compare): Likewise for param "insn".
17732 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17733 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17734 (define_predicate "large_insn_p"): Likewise.
17735 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17736 param from rtx to rtx_insn *.
17737 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17738 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17739 (m68k_sched_attr_size): Likewise.
17740 (sched_get_opxy_mem_type): Likewise for param "insn".
17741 (m68k_sched_attr_op_mem): Likewise.
17742 (sched_mem_operand_p): Likewise.
17743 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17744 * config/mep/mep.c (mep_multi_slot): Likewise.
17745 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17747 (mips_sync_loop_insns): Likewise.
17748 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17749 method of "final_sequence" for typesafety.
17750 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17752 (mips_output_sync_loop): Likewise.
17753 (mips_sync_loop_insns): Likewise.
17754 (mips_74k_agen_init): Likewise.
17755 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17757 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17758 Strengthen param "insn" from rtx to rtx_insn *.
17759 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17761 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17762 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17763 "insn". Use method of rtx_sequence for typesafety.
17764 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17766 (branch_needs_nop_p): Likewise.
17767 (use_skip_p): Likewise.
17768 (pa_insn_refs_are_delayed): Likewise.
17769 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17770 for locals "insn", "ninsn".
17771 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17773 (is_cracked_insn): Likewise.
17774 (is_branch_slot_insn): Likewise.
17775 (is_nonpipeline_insn): Likewise.
17776 (insn_terminates_group_p): Likewise.
17777 (insn_must_be_first_in_group): Likewise.
17778 (insn_must_be_last_in_group): Likewise.
17779 (force_new_group): Likewise for param "next_insn".
17780 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17782 (s390_sched_score): Likewise.
17783 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17784 (rtx sfunc_uses_reg): Likewise for sole param.
17785 * config/sh/sh.c (sh_print_operand): Use insn method of
17786 final_sequence for typesafety.
17787 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17788 Use insn method of final_sequence for typesafety.
17789 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17790 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17792 (eligible_for_return_delay): Likewise.
17793 (eligible_for_sibcall_delay): Likewise.
17794 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17795 (eligible_for_return_delay): Likewise.
17796 (eligible_for_sibcall_delay): Likewise.
17797 * config/stormy16/stormy16-protos.h
17798 (xstormy16_output_cbranch_hi): Likewise for final param.
17799 (xstormy16_output_cbranch_si): Likewise.
17800 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17801 (xstormy16_output_cbranch_si): Likewise.
17802 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17803 * config/v850/v850.c (notice_update_cc): Likewise.
17805 * final.c (get_attr_length_1): Strengthen param "insn" and param
17806 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17807 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17808 (get_attr_min_length): Likewise.
17809 (shorten_branches): Likewise for signature of locals "length_fun"
17810 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17811 from a checked cast and use its methods for clarity and to enable
17812 strengthening local "inner_insn" from rtx to rtx_insn *.
17813 * genattr.c (gen_attr): When writing out the prototypes of the
17814 various generated "get_attr_" functions, strengthen the params of
17815 the non-const functions from rtx to rtx_insn *.
17816 Similarly, strengthen the params of insn_default_length,
17817 insn_min_length, insn_variable_length_p, insn_current_length.
17818 (main): Similarly, strengthen the param of num_delay_slots,
17819 internal_dfa_insn_code, insn_default_latency, bypass_p,
17820 insn_latency, min_issue_delay, print_reservation,
17821 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17822 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17823 to hook_int_rtx_insn_unreachable.
17824 * genattrtab.c (write_attr_get): When writing out the generated
17825 "get_attr_" functions, strengthen the param "insn" from rtx to
17826 rtx_insn *, eliminating a checked cast.
17827 (make_automaton_attrs): When writing out prototypes of
17828 "internal_dfa_insn_code_", "insn_default_latency_" functions
17829 and the "internal_dfa_insn_code" and "insn_default_latency"
17830 callbacks, strengthen their params from rtx to rtx_insn *
17831 * genautomata.c (output_internal_insn_code_evaluation): When
17832 writing out code, add a checked cast from rtx to rtx_insn * when
17833 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17834 (output_dfa_insn_code_func): Strengthen param of generated
17835 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17836 (output_trans_func): Likewise for generated function
17837 "state_transition".
17838 (output_internal_insn_latency_func): When writing out generated
17839 function "internal_insn_latency", rename params from "insn" and
17840 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17841 locals "insn" and "insn2" as rtx_insn * with checked casts once
17842 we've proven that we're not dealing with const0_rtx.
17843 (output_insn_latency_func): Strengthen param of generated
17844 function "insn_latency" from rtx to rtx_insn *.
17845 (output_print_reservation_func): Likewise for generated function
17846 "print_reservation".
17847 (output_insn_has_dfa_reservation_p): Likewise for generated
17848 function "insn_has_dfa_reservation_p".
17849 * hooks.c (hook_int_rtx_unreachable): Rename to...
17850 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
17851 from rtx to rtx_insn *.
17852 * hooks.h (hook_int_rtx_unreachable): Likewise.
17853 (extern int hook_int_rtx_insn_unreachable): Likewise.
17854 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
17855 (get_attr_min_length): Likewise.
17856 * recog.c (get_enabled_alternatives): Likewise.
17857 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
17858 * reorg.c (find_end_label): Introduce local rtx "pat" and
17859 strengthen local "insn" from rtx to rtx_insn *.
17860 (redundant_insn): Use insn method of "seq" rather than element for
17861 typesafety; strengthen local "control" from rtx to rtx_insn *.
17862 * resource.c (mark_referenced_resources): Add checked cast to
17863 rtx_insn * within INSN/JUMP_INSN case.
17864 (mark_set_resources): Likewise.
17865 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
17868 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17870 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
17871 param "label" from rtx to rtx_insn *.
17872 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
17874 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
17875 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
17876 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
17877 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
17878 * final.c (default_label_align_after_barrier_max_skip): Strengthen
17879 param from rtx to rtx_insn *.
17880 (default_loop_align_max_skip): Likewise.
17881 (default_label_align_max_skip): Likewise.
17882 (default_jump_align_max_skip): Likewise.
17883 * target.def (label_align_after_barrier_max_skip): Likewise.
17884 (loop_align_max_skip): Likewise.
17885 (label_align_max_skip): Likewise.
17886 (jump_align_max_skip): Likewise.
17887 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
17888 (default_loop_align_max_skip): Likewise.
17889 (default_label_align_max_skip): Likewise.
17890 (default_jump_align_max_skip): Likewise.
17892 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17894 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
17895 from const_rtx to const rtx_insn *. Update union members from rtx
17897 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
17898 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
17899 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
17900 strengthen both params from const_rtx to const rtx_insn *.
17901 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
17902 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
17903 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
17905 * target.def (can_follow_jump): Strengthen both params from
17906 const_rtx to const rtx_insn *, and update default implementation
17907 from hook_bool_const_rtx_const_rtx_true to
17908 hook_bool_const_rtx_insn_const_rtx_insn_true.
17910 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17912 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
17913 "insn" from rtx to rtx_insn *.
17914 * sched-int.h (deps_start_bb): Likewise for 2nd param.
17916 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17918 Anna Tikhonova <anna.tikhonova@intel.com>
17919 Ilya Tocar <ilya.tocar@intel.com>
17920 Andrey Turetskiy <andrey.turetskiy@intel.com>
17921 Ilya Verbin <ilya.verbin@intel.com>
17922 Kirill Yukhin <kirill.yukhin@intel.com>
17923 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17925 * config/i386/sse.md
17926 (define_insn "vcvtph2ps<mask_name>"): Add masking.
17927 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
17928 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
17929 (define_expand "vcvtps2ph_mask"): New.
17930 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
17931 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
17932 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
17934 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17935 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17936 Anna Tikhonova <anna.tikhonova@intel.com>
17937 Ilya Tocar <ilya.tocar@intel.com>
17938 Andrey Turetskiy <andrey.turetskiy@intel.com>
17939 Ilya Verbin <ilya.verbin@intel.com>
17940 Kirill Yukhin <kirill.yukhin@intel.com>
17941 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17943 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
17945 (define_mode_iterator VI24_AVX512BW_1): Ditto.
17946 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
17947 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
17948 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
17949 also for TARGET_AVX512VL.
17950 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
17952 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
17954 * doc/install.texi (Options specification): add
17955 --disable-libsanitizer item.
17957 2014-09-14 James Clarke <jrtc27@jrtc27.com>
17958 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17961 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
17963 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
17964 kernel version check to avoid incrementing it after every major OS X
17966 (darwin_default_min_version): Avoid static memory buffer.
17968 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
17970 * tree.c (need_assembler_name_p): Store C++ type mangling only
17973 2014-09-13 Marek Polacek <polacek@redhat.com>
17975 * tree.c (protected_set_expr_location): Don't check whether T is
17978 2014-09-12 DJ Delorie <dj@redhat.com>
17980 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
17981 (extend_and_shift1_hipsi2): Likewise.
17982 (extend_and_shift2_hipsi2): Likewise.
17984 2014-09-12 David Malcolm <dmalcolm@redhat.com>
17986 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
17987 with NULL when dealing with an insn.
17988 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
17989 from rtx to rtx_insn *.
17990 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
17991 const_rtx to const rtx_insn *.
17992 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
17994 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
17996 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
17999 2014-09-12 Joseph Myers <joseph@codesourcery.com>
18001 * target.def (libgcc_floating_mode_supported_p): New hook.
18002 * targhooks.c (default_libgcc_floating_mode_supported_p): New
18004 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
18005 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
18006 (LIBGCC2_HAS_TF_MODE): Remove.
18007 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
18008 * doc/tm.texi: Regenerate.
18009 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
18011 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
18012 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
18013 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
18014 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
18015 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18016 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
18017 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
18018 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
18019 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
18020 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
18022 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
18023 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18024 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18025 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18026 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18027 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18028 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18029 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
18030 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
18031 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
18032 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18033 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
18034 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
18035 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
18037 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
18039 (ia64_libgcc_floating_mode_supported_p): New function.
18040 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
18041 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
18042 (IA64_NO_LIBGCC_TFMODE): Define.
18043 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
18044 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18045 (pdp11_scalar_mode_supported_p): New function.
18046 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
18047 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
18049 2014-09-12 Richard Biener <rguenther@suse.de>
18051 PR middle-end/63237
18052 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
18054 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
18056 * tree.c (integer_each_onep): New function.
18057 * tree.h (integer_each_onep): Declare it.
18058 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
18059 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
18060 (X & 1) == 0 for vector and complex.
18062 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18064 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
18066 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
18067 cost to spilling from integer to FP registers.
18069 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18071 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
18073 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
18074 are now handled correctly.
18076 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18078 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
18079 handling of CALLER_SAVE_REGS and POINTER_REGS.
18081 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18083 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
18084 the number of hard registers.
18086 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18087 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18088 Anna Tikhonova <anna.tikhonova@intel.com>
18089 Ilya Tocar <ilya.tocar@intel.com>
18090 Andrey Turetskiy <andrey.turetskiy@intel.com>
18091 Ilya Verbin <ilya.verbin@intel.com>
18092 Kirill Yukhin <kirill.yukhin@intel.com>
18093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18095 * config/i386/sse.md
18096 (define_mode_iterator VI48_AVX512VL): New.
18097 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
18098 "avx512f_vternlog<mode>_maskz" and update mode iterator.
18099 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
18100 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
18101 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
18102 "avx512f_vternlog<mode>_mask" and update mode iterator.
18103 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
18104 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
18106 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
18107 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
18108 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
18109 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
18110 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
18111 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
18113 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18114 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18115 Anna Tikhonova <anna.tikhonova@intel.com>
18116 Ilya Tocar <ilya.tocar@intel.com>
18117 Andrey Turetskiy <andrey.turetskiy@intel.com>
18118 Ilya Verbin <ilya.verbin@intel.com>
18119 Kirill Yukhin <kirill.yukhin@intel.com>
18120 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18122 * config/i386/sse.md (VI128_256): Delete.
18123 (define_mode_iterator VI124_256): New.
18124 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
18125 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
18126 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
18127 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
18128 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
18129 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
18130 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
18131 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
18133 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
18134 in presence of AVX-512.
18136 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18137 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18138 Anna Tikhonova <anna.tikhonova@intel.com>
18139 Ilya Tocar <ilya.tocar@intel.com>
18140 Andrey Turetskiy <andrey.turetskiy@intel.com>
18141 Ilya Verbin <ilya.verbin@intel.com>
18142 Kirill Yukhin <kirill.yukhin@intel.com>
18143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18145 * config/i386/sse.md
18146 (define_expand "<avx512>_gathersi<mode>"): Rename from
18147 "avx512f_gathersi<mode>".
18148 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18149 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18150 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18151 "avx512f_gatherdi<mode>".
18152 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18153 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18155 (define_expand "<avx512>_scattersi<mode>"): Rename from
18156 "avx512f_scattersi<mode>".
18157 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18158 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18159 "avx512f_scatterdi<mode>".
18160 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18162 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18164 * ira.h (ira_finish_once): Delete.
18165 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18166 (target_ira_int::free_ira_costs): Likewise.
18167 (target_ira_int::free_register_move_costs): Likewise.
18168 (ira_finish_costs_once): Delete.
18169 * ira.c (free_register_move_costs): Replace with...
18170 (target_ira_int::free_register_move_costs): ...this new function.
18171 (target_ira_int::~target_ira_int): Define.
18172 (ira_init): Call free_register_move_costs as a member function rather
18173 than a global function.
18174 (ira_finish_once): Delete.
18175 * ira-costs.c (free_ira_costs): Replace with...
18176 (target_ira_int::free_ira_costs): ...this new function.
18177 (ira_init_costs): Call free_ira_costs as a member function rather
18178 than a global function.
18179 (ira_finish_costs_once): Delete.
18180 * target-globals.c (target_globals::~target_globals): Call the
18181 target_ira_int destructor.
18182 * toplev.c: Include lra.h.
18183 (finalize): Call lra_finish_once rather than ira_finish_once.
18185 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18187 * common.opt (flto-odr-type-merging): New flag.
18188 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18189 (types_same_for_odr): Likewise.
18190 (odr_subtypes_equivalent_p): Likewise.
18191 (add_type_duplicate): Do not walk type variants.
18192 (register_odr_type): New function.
18193 * ipa-utils.h (register_odr_type): Declare.
18194 (odr_type_p): New function.
18195 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18197 * doc/invoke.texi (-flto-odr-type-merging): Document.
18198 * tree.c (need_assembler_name_p): Compute ODR names when asked
18200 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18202 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18205 * config/i386/i386.c (ix86_option_override_internal): Also turn
18206 off OPTION_MASK_ABI_X32 for -m16.
18208 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18210 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18213 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18216 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18217 Directly forward to __*_DENORM_MIN__.
18219 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18221 * rtl.h (LABEL_REF_LABEL): New macro.
18223 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18224 of XEXP (, 0), where we know that we have a LABEL_REF.
18225 * cfgbuild.c (make_edges): Likewise.
18226 (purge_dead_tablejump_edges): Likewise.
18227 * cfgexpand.c (convert_debug_memory_address): Likewise.
18228 * cfgrtl.c (patch_jump_insn): Likewise.
18229 * combine.c (distribute_notes): Likewise.
18230 * cse.c (hash_rtx_cb): Likewise.
18231 (exp_equiv_p): Likewise.
18232 (fold_rtx): Likewise.
18233 (check_for_label_ref): Likewise.
18234 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18235 (cselib_hash_rtx): Likewise.
18236 * emit-rtl.c (mark_label_nuses): Likewise.
18237 * explow.c (convert_memory_address_addr_space): Likewise.
18238 * final.c (output_asm_label): Likewise.
18239 (output_addr_const): Likewise.
18240 * gcse.c (add_label_notes): Likewise.
18241 * genconfig.c (walk_insn_part): Likewise.
18242 * genrecog.c (validate_pattern): Likewise.
18243 * ifcvt.c (cond_exec_get_condition): Likewise.
18244 (noce_emit_store_flag): Likewise.
18245 (noce_get_alt_condition): Likewise.
18246 (noce_get_condition): Likewise.
18247 * jump.c (maybe_propagate_label_ref): Likewise.
18248 (mark_jump_label_1): Likewise.
18249 (redirect_exp_1): Likewise.
18250 (rtx_renumbered_equal_p): Likewise.
18251 * lra-constraints.c (operands_match_p): Likewise.
18252 * reload.c (operands_match_p): Likewise.
18253 (find_reloads): Likewise.
18254 * reload1.c (set_label_offsets): Likewise.
18255 * reorg.c (get_branch_condition): Likewise.
18256 * rtl.c (rtx_equal_p_cb): Likewise.
18257 (rtx_equal_p): Likewise.
18258 * rtlanal.c (reg_mentioned_p): Likewise.
18259 (rtx_referenced_p): Likewise.
18260 (get_condition): Likewise.
18261 * sched-vis.c (print_value): Likewise.
18262 * varasm.c (const_hash_1): Likewise.
18263 (compare_constant): Likewise.
18264 (const_rtx_hash_1): Likewise.
18265 (output_constant_pool_1): Likewise.
18267 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18269 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18270 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18272 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18273 cr6_test_for_lt_reverse): Ditto.
18275 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18278 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18280 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18282 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18283 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18284 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18285 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18288 (aarch64_fold_builtin): Remove all reinterpret cases.
18290 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18292 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18294 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18295 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18296 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18297 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18298 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18299 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18300 aarch64_reinterpretv2df<mode>): Delete.
18302 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18304 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18305 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18306 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18307 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18308 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18309 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18310 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18311 vreinterpret_u32_f64): Use cast.
18313 * config/aarch64/iterators.md (VD_RE): Delete.
18315 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18317 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18318 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18319 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18320 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18321 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18322 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18323 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18324 Replace inline assembler with __aarch64_vset_lane_any.
18326 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18328 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18330 (vmull_high_lane_s32): Likewise.
18331 (vmull_high_lane_u16): Likewise.
18332 (vmull_high_lane_u32): Likewise.
18334 2014-09-11 Jason Merrill <jason@redhat.com>
18337 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18339 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18342 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18343 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18344 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18346 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18347 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18348 Anna Tikhonova <anna.tikhonova@intel.com>
18349 Ilya Tocar <ilya.tocar@intel.com>
18350 Andrey Turetskiy <andrey.turetskiy@intel.com>
18351 Ilya Verbin <ilya.verbin@intel.com>
18352 Kirill Yukhin <kirill.yukhin@intel.com>
18353 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18355 * config/i386/sse.md
18356 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18357 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18358 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18360 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18361 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18363 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18365 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18366 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18367 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18368 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18369 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18370 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18371 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18372 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18374 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18376 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18377 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18378 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18380 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18382 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18383 to access removed nodes.
18385 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18387 PR tree-optimization/63186
18388 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18389 (mark_nonssa_use): Likewise.
18390 (verify_non_ssa_vars): Verify all header blocks for label
18393 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18394 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18395 Anna Tikhonova <anna.tikhonova@intel.com>
18396 Ilya Tocar <ilya.tocar@intel.com>
18397 Andrey Turetskiy <andrey.turetskiy@intel.com>
18398 Ilya Verbin <ilya.verbin@intel.com>
18399 Kirill Yukhin <kirill.yukhin@intel.com>
18400 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18402 * config/i386/sse.md
18403 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18404 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18405 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18406 "<avx2_avx512f>_permvar<mode><mask_name>".
18407 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18408 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18409 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18410 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18412 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18413 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18414 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18415 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18417 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18419 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18420 V2DF, V4SF, DF, and DI modes.
18421 (vsx_fmav2df2): Likewise.
18422 (vsx_float_fix_<mode>2): Likewise.
18423 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18425 2014-09-10 Xinliang David Li <davidxl@google.com>
18428 * config/arm/arm.md (movcond_addsi): Handle case where source
18429 and target operands are the same.
18431 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18433 * final.c (this_is_asm_operands): Strengthen this variable from
18434 rtx to const rtx_insn *.
18435 * output.h (this_is_asm_operands): Likewise.
18436 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18437 const_rtx to const rtx_insn *.
18438 (diagnostic_for_asm): Likewise.
18439 * rtl-error.h (error_for_asm): Likewise.
18440 (warning_for_asm): Likewise.
18442 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18444 * genextract.c (print_header): When writing out insn_extract to
18445 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18446 * recog.h (insn_extract): Strengthen the param from rtx to
18449 2014-09-10 Mike Stump <mikestump@comcast.net>
18451 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18454 2014-09-10 Martin Jambor <mjambor@suse.cz>
18456 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18457 (analyze): Do not set analyze flag if expand_thunk returns false;.
18458 (create_wrapper): Likewise.
18459 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18461 2014-09-10 Martin Jambor <mjambor@suse.cz>
18464 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18465 new decl properly. Analyze the new thunk if it is expanded.
18467 2014-09-10 Andreas Schwab <schwab@suse.de>
18469 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18470 [USED_FOR_TARGET]: Define.
18472 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18474 * config/mips/mips.c (mips_secondary_reload_class): Handle
18477 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18479 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18482 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18484 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18485 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18486 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18487 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18488 flag_delete_null_pointer_checks for them.
18489 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18490 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18491 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18492 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18493 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18495 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18496 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18497 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18498 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18499 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18500 -fsanitize=returns-nonnull-attribute): Document.
18502 * ubsan.h (struct ubsan_mismatch_data): Removed.
18503 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18504 * ubsan.c (ubsan_source_location): For unknown locations,
18505 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18506 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18507 Allow more than one location and arbitrary extra arguments passed
18508 in ... instead of through MISMATCH pointer.
18509 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18510 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18511 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18514 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18515 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18516 Anna Tikhonova <anna.tikhonova@intel.com>
18517 Ilya Tocar <ilya.tocar@intel.com>
18518 Andrey Turetskiy <andrey.turetskiy@intel.com>
18519 Ilya Verbin <ilya.verbin@intel.com>
18520 Kirill Yukhin <kirill.yukhin@intel.com>
18521 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18523 * config/i386/sse.md
18524 (define_mode_iterator VI48F): New.
18525 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18526 "avx512f_compress<mode>_mask" and update mode iterator.
18527 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18528 "avx512f_compressstore<mode>_mask" and update mode iterator.
18529 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18530 "avx512f_expand<mode>_maskz" and update mode iterator.
18531 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18532 "avx512f_expand<mode>_mask" and update mode iterator.
18534 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18535 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18536 Anna Tikhonova <anna.tikhonova@intel.com>
18537 Ilya Tocar <ilya.tocar@intel.com>
18538 Andrey Turetskiy <andrey.turetskiy@intel.com>
18539 Ilya Verbin <ilya.verbin@intel.com>
18540 Kirill Yukhin <kirill.yukhin@intel.com>
18541 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18543 * config/i386/i386.c
18544 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18545 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18546 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18547 avx512dq_rangepv4sf_mask.
18548 * config/i386/sse.md
18549 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18551 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18552 (define_insn "reduces<mode>"): Ditto.
18553 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18555 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18556 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18557 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18559 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18561 Anna Tikhonova <anna.tikhonova@intel.com>
18562 Ilya Tocar <ilya.tocar@intel.com>
18563 Andrey Turetskiy <andrey.turetskiy@intel.com>
18564 Ilya Verbin <ilya.verbin@intel.com>
18565 Kirill Yukhin <kirill.yukhin@intel.com>
18566 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18568 * config/i386/i386.c
18569 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18570 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18571 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18572 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18573 avx512vl_getmantv2df_mask.
18574 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18575 avx512f_vgetmantv4sf_round.
18576 * config/i386/sse.md
18577 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18578 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18580 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18581 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18582 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18583 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18585 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18586 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18587 update mode iterator.
18589 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18590 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18593 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18594 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18595 update mode iterator.
18596 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18597 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18600 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18601 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18603 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18604 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18605 update mode iterator.
18606 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18607 "avx512f_getmant<mode><round_saeonly_name>".
18609 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18612 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18614 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18616 Anna Tikhonova <anna.tikhonova@intel.com>
18617 Ilya Tocar <ilya.tocar@intel.com>
18618 Andrey Turetskiy <andrey.turetskiy@intel.com>
18619 Ilya Verbin <ilya.verbin@intel.com>
18620 Kirill Yukhin <kirill.yukhin@intel.com>
18621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18623 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18624 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18625 (define_mode_iterator FMAMODE_AVX512): New.
18626 (define_mode_iterator FMAMODE): Remove conditions.
18627 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18628 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18629 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18631 (define_mode_iterator FMAMODE_NOVF512): Remove.
18632 (define_insn "*fma_fmadd_<mode>"): Rename from
18633 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18634 FMAMODE mode iterator.
18635 (define_mode_iterator VF_SF_AVX512VL): New.
18636 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18637 Use VF_SF_AVX512VL mode iterator.
18638 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18639 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18641 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18642 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18644 (define_insn "*fma_fmsub_<mode>"): Rename from
18645 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18646 FMAMODE mode iterator.
18647 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18648 Use VF_SF_AVX512VL mode iterator.
18649 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18650 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18652 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18653 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18655 (define_insn "*fma_fnmadd_<mode>"): Rename from
18656 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18657 use FMAMODE mode iterator.
18658 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18659 Use VF_SF_AVX512VL mode iterator.
18660 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18661 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18663 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18664 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18666 (define_insn "*fma_fnmsub_<mode>"): Rename from
18667 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18668 FMAMODE mode iterator.
18669 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18670 Use VF_SF_AVX512VL mode iterator.
18671 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18672 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18674 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18675 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18677 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18678 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18679 use VF_AVX512VL mode iterator.
18680 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18681 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18682 remove subst usage.
18683 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18684 Use VF_SF_AVX512VL mode iterator.
18685 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18686 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18688 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18689 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18691 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18692 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18693 remove usage of subst.
18694 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18695 Use VF_SF_AVX512VL mode iterator.
18696 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18697 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18699 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18700 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18703 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18706 * calls.c (precompute_arguments): Check
18707 promoted_for_signed_and_unsigned_p and set the promoted mode.
18708 (promoted_for_signed_and_unsigned_p): New function.
18709 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18710 and set the promoted mode.
18711 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18712 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18713 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18715 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18717 * opth-gen.awk: Generate mapping from cpp message reasons to the
18718 options that enable them.
18719 * doc/options.texi (CppReason): Document.
18721 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18723 * doc/invoke.texi (Wnormalized=): Update.
18725 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18728 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18729 operands. Split off the constant operand alternative to ...
18730 (*bool<mode>3_imm): New.
18732 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18734 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18735 const rtx_insn *, and move prototype to above...
18736 (single_set): ...this. Convert this from a macro to an inline
18737 function, enforcing the requirement that the param is a const
18739 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18741 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18742 Strengthen both params from rtx to rtx_insn *.
18743 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18744 Likewise; introduce locals "producer_set", "consumer_set", using
18745 them in place of "producer" and "consumer" when dealing with SET
18747 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18748 when invoking single_set in region guarded by INSN_P.
18749 (avr_out_bitop): Likewise.
18750 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18751 region guarded by GET_CODE check, using methods to strengthen
18752 local "this_insn" from rtx to rtx_insn *, and for clarity.
18753 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18754 Strengthen local "insn" from rtx to rtx_insn *.
18755 (define_insn_and_split "xload<mode>_A"): Likewise.
18756 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18758 (find_load): Likewise for return type.
18759 (workaround_speculation): Likewise for both locals named
18761 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18763 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18765 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18767 * config/h8300/h8300.c (notice_update_cc): Likewise.
18768 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18769 "insn" and "dep_insn".
18770 (exact_store_load_dependency): Likewise for both params.
18771 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18772 since this now clashes with inline function. Instead, delay
18773 calling single_set until the point where its needed, and then
18774 assign the result to "compare_set" and rework the conditional that
18776 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18777 local "last" from rtx to rtx_insn *.
18778 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18780 (mips_store_data_bypass_p): Likewise for both params.
18781 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18783 (mips_store_data_bypass_p): Likewise for both params.
18784 (mips_orphaned_high_part_p): Likewise for param "insn".
18785 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18786 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18787 Introduce local rtx "insn2_pat".
18788 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18790 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18791 Introduce local rtx "set", using it in place of "insn" for the
18792 result of single_set. This appears to fix a bug, since the call
18793 to find_regno_note on a SET does nothing.
18794 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18795 params from rtx to rtx_insn *.
18796 (set_to_load_agen): Likewise.
18797 * config/s390/s390.c (s390_label_align): Likewise for local
18798 "prev_insn". Introduce new rtx locals "set" and "src", using
18799 them in place of "prev_insn" for the results of single_set
18800 and SET_SRC respectively.
18801 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18802 Introduce new rtx local "set" using in place of "jump" for the
18803 result of single_set. Use SET_SRC (set) rather than plain
18805 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18807 (noncall_uses_reg): Likewise.
18808 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18809 guarded by GET_CODE check, using its methods for clarity, and to
18810 enable strengthening local "this_insn" from rtx to rtx_insn *.
18811 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18812 "insn" from rtx to rtx_insn *.
18813 (define_expand "umulhisi3"): Likewise.
18814 (define_expand "smulsi3_highpart"): Likewise.
18815 (define_expand "umulsi3_highpart"): Likewise.
18816 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18817 local "after". Replace GET_CODE check with a dyn_cast,
18818 introducing new local rtx_sequence * "seq", using insn method for
18821 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18822 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18823 place of "insn" once we're dealing with patterns rather than the
18825 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18826 (scan_trace): Likewise for local "elt", updating lookups within
18827 sequence to use insn method rather than element method.
18828 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18830 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18831 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18832 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18833 invoking single_set.
18834 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18835 "insn" from rtx to rtx_insn *.
18836 (skip_usage_debug_insns): Likewise for return type, adding a
18838 (check_secondary_memory_needed_p): Likewise for local "insn".
18839 (inherit_reload_reg): Likewise.
18840 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18841 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18843 (store_data_bypass_p): Likewise for both params.
18844 (if_test_bypass_p): Likewise.
18845 * recog.h (store_data_bypass_p): Likewise for both params.
18846 (if_test_bypass_p): Likewise.
18847 * reload.c (find_equiv_reg): Likewise for local "where".
18848 * reorg.c (delete_jump): Likewise for param "insn".
18849 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
18850 to const rtx_insn *.
18851 * store-motion.c (replace_store_insn): Likewise for param "del".
18852 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
18853 and use its methods for clarity, and to strengthen local "del"
18854 from rtx to rtx_insn *.
18855 (build_store_vectors): Use insn method of "st" when calling
18856 replace_store_insn for typesafety and clarity.
18858 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18860 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
18861 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
18862 on how to make it legal in future.
18864 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18866 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
18868 (restinsn): Likewise.
18869 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18870 Likewise for param.
18871 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
18873 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
18875 (arc_hazard): Likewise for both params.
18876 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
18877 checked casts to rtx_sequence * and uses of the insn method for
18879 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
18880 (arc_adjust_insn_length): Likewise for param "insn".
18881 (struct insn_length_parameters_s): Likewise for first param of
18882 "get_variants" callback field.
18883 (arc_get_insn_variants): Likewise for first param and local
18884 "inner". Replace a check of GET_CODE with a dyn_cast to
18885 rtx_sequence *, using methods for type-safety and clarity.
18886 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
18887 rtx_sequence * and uses of the insn method for type-safety when
18888 invoking arc_adjust_insn_length.
18889 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
18891 (arm_address_offset_is_imm): Likewise.
18892 (struct tune_params): Likewise for params 1 and 3 of the
18893 "sched_adjust_cost" callback field.
18894 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
18895 params 1 and 3 ("insn" and "dep").
18896 (xscale_sched_adjust_cost): Likewise.
18897 (fa726te_sched_adjust_cost): Likewise.
18898 (cortexa7_older_only): Likewise for param "insn".
18899 (cortexa7_younger): Likewise.
18900 (arm_attr_length_move_neon): Likewise.
18901 (arm_address_offset_is_imm): Likewise.
18902 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
18903 * config/avr/avr.c (avr_notice_update_cc): Likewise.
18904 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
18905 (workaround_speculation): Likewise for local "last_condjump".
18906 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
18907 (shadow_or_blockage_p): Likewise.
18908 (get_unit_reqs): Likewise.
18909 (get_unit_operand_masks): Likewise.
18910 (c6x_registers_update): Likewise.
18911 (returning_call_p): Likewise.
18912 (can_use_callp): Likewise.
18913 (convert_to_callp): Likewise.
18914 (find_last_same_clock): Likwise for local "t".
18915 (reorg_split_calls): Likewise for local "shadow".
18916 (hwloop_pattern_reg): Likewise for param "insn".
18917 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
18918 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
18919 (frv_extract_membar): Likewise.
18920 (frv_optimize_membar_local): Strengthen param "last_membar" from
18921 rtx * to rtx_insn **.
18922 (frv_optimize_membar_global): Strengthen param "membar" from rtx
18924 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
18926 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
18927 both params from rtx to rtx_insn *.
18928 (ia64_ld_address_bypass_p): Likewise.
18929 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
18931 (ia64_safe_type): Likewise.
18932 (group_barrier_needed): Likewise.
18933 (safe_group_barrier_needed): Likewise.
18934 (ia64_single_set): Likewise.
18935 (is_load_p): Likewise.
18936 (record_memory_reference): Likewise.
18937 (get_mode_no_for_insn): Likewise.
18938 (important_for_bundling_p): Likewise.
18939 (unknown_for_bundling_p): Likewise.
18940 (ia64_st_address_bypass_p): Likewise for both params.
18941 (ia64_ld_address_bypass_p): Likewise.
18942 (expand_vselect): Introduce new local rtx_insn * "insn", using it
18943 in place of rtx "x" after the emit_insn call.
18944 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
18945 Strengthen param from rtx to rtx_insn *.
18946 (ix86_agi_dependent): Likewise for both params.
18947 (ix86_attr_length_immediate_default): Likewise for param 1.
18948 (ix86_attr_length_address_default): Likewise for param.
18949 (ix86_attr_length_vex_default): Likewise for param 1.
18950 * config/i386/i386.c (ix86_attr_length_immediate_default):
18951 Likewise for param "insn".
18952 (ix86_attr_length_address_default): Likewise.
18953 (ix86_attr_length_vex_default): Likewise.
18954 (ix86_agi_dependent): Likewise for both params.
18955 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
18956 (vselect_insn): Likewise for this variable.
18957 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
18959 (m68k_sched_attr_opy_type): Likewise.
18960 * config/m68k/m68k.c (sched_get_operand): Likewise.
18961 (sched_attr_op_type): Likewise.
18962 (m68k_sched_attr_opx_type): Likewise.
18963 (m68k_sched_attr_opy_type): Likewise.
18964 (sched_get_reg_operand): Likewise.
18965 (sched_get_mem_operand): Likewise.
18966 (m68k_sched_address_bypass_p): Likewise for both params.
18967 (sched_get_indexed_address_scale): Likewise.
18968 (m68k_sched_indexed_address_bypass_p): Likewise.
18969 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
18970 (m68k_sched_indexed_address_bypass_p): Likewise.
18971 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
18972 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
18974 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
18975 params from rtx to rtx_insn *.
18976 (mips_fmadd_bypass): Likewise.
18977 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
18978 (mips_linked_madd_p): Likewise.
18979 (mips_macc_chains_last_hilo): Likewise for this variable.
18980 (mips_macc_chains_record): Likewise for param.
18981 (vr4130_last_insn): Likewise for this variable.
18982 (vr4130_swap_insns_p): Likewise for both params.
18983 (mips_ls2_variable_issue): Likewise for param.
18984 (mips_need_noat_wrapper_p): Likewise for param "insn".
18985 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
18986 in place of "x" after the emit_insn.
18987 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
18988 params from rtx to rtx_insn *.
18989 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
18990 (pa_combine_instructions): Introduce local "par" for result of
18991 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
18993 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
18994 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
18995 (rl78_alloc_physical_registers_op1): Likewise.
18996 (rl78_alloc_physical_registers_op2): Likewise.
18997 (rl78_alloc_physical_registers_ro1): Likewise.
18998 (rl78_alloc_physical_registers_cmp): Likewise.
18999 (rl78_alloc_physical_registers_umul): Likewise.
19000 (rl78_alloc_address_registers_macax): Likewise.
19001 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
19002 * config/s390/predicates.md (execute_operation): Likewise for
19004 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
19006 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
19007 (addr_generation_dependency_p): Likewise for param "insn".
19008 (s390_agen_dep_p): Likewise for both params.
19009 (s390_fpload_toreg): Likewise for param "insn".
19010 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
19011 * config/sh/sh.c (sh_loop_align): Likewise for param and local
19013 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
19014 * config/sh/sh_treg_combine.cc
19015 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
19017 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
19018 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
19019 "and_insn", "load", "shift".
19020 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
19022 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
19023 for XEXP (note, 0) of the REG_CC_SETTER note.
19024 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
19025 rtx_insn *, eliminating a checked cast made redundant by this.
19026 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
19028 * genattr.c (main): When writing out the prototype to
19029 const_num_delay_slots, strengthen the param from rtx to
19031 * genattrtab.c (write_const_num_delay_slots): Likewise when
19032 writing out the implementation of const_num_delay_slots.
19033 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
19034 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
19035 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
19036 favor of new rtx locals "src" and "set" and new local rtx_insn *
19038 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
19040 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
19041 locals "cond", "if_then_else", "set" and new rtx_insn * locals
19043 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
19044 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
19045 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
19046 the top-level scope, replacing with new more tightly-scoped rtx
19047 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
19048 "new_insn", "copy_of_insn_b", and make local rtx "set" more
19050 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
19052 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
19054 (ira_setup_alts): Likewise for param "insn".
19055 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
19056 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
19058 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
19059 new more-tightly scoped rtx locals "add3_insn", "insn",
19060 "add2_insn" and rtx_insn * "move_insn".
19061 * postreload-gcse.c (eliminate_partially_redundant_load): Add
19062 checked cast on result of gen_move_insn when invoking
19064 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
19066 (verify_changes): Add a checked cast on "object" when invoking
19068 (extract_insn_cached): Strengthen param "insn" from rtx to
19070 (extract_constrain_insn_cached): Likewise.
19071 (extract_insn): Likewise.
19072 * recog.h (insn_invalid_p): Likewise for param 1.
19073 (recog_memoized): Likewise for param.
19074 (extract_insn): Likewise.
19075 (extract_constrain_insn_cached): Likewise.
19076 (extract_insn_cached): Likewise.
19077 * reload.c (can_reload_into): Likewise for local "test_insn".
19078 * reload.h (cleanup_subreg_operands): Likewise for param.
19079 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
19080 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
19081 result of emit_insn. Remove a checked cast made redundant by this
19083 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
19085 * sel-sched.c (get_reg_class): Likewise.
19087 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
19088 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19090 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
19091 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
19093 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
19095 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19097 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
19098 const rtx_insn *, and from rtx to rtx_insn * for the other
19099 overloaded variant.
19100 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
19101 INSN_LOCATION, since we know INSN_P holds.
19102 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
19103 (insn_file): Likewise.
19104 (insn_scope): Likewise.
19105 (insn_location): Likewise.
19107 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
19108 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
19109 for the result of gen_load_const_gp.
19110 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
19111 param from rtx to rtx_insn *.
19112 * config/rs6000/rs6000.c (output_call): Likewise.
19113 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
19114 introducing a checked cast to rtx_sequence * and use of the insn
19116 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
19117 from rtx to rtx_insn *.
19118 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
19119 (insn_line): Likewise.
19120 (insn_file): Likewise.
19121 (insn_location): Likewise.
19122 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
19123 from rtx to rtx_insn *.
19124 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
19125 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
19126 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
19127 via a checked cast.
19128 * reorg.c (relax_delay_slots): Strengthen locals named "after"
19129 from rtx to rtx_insn *; use methods of "pat" for type-safety.
19131 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19133 * combine.c (try_combine): Eliminate checked cast on result of
19135 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
19136 autogenerated one by strengthening the return type and params 2 and 3
19137 from rtx to rtx_insn *, and by naming the params.
19138 * gengenrtl.c (special_rtx): Add INSN to those that are
19140 * rtl.h (gen_rtx_INSN): New prototype.
19142 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19144 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19146 (no_equiv): Likewise.
19147 (update_equiv_regs): Likewise.
19148 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19149 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19150 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19152 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19153 from rtx to rtx_insn_list *.
19154 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19155 rtx_insn_list * and use methods for clarity and typesafety.
19156 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19158 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19159 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19160 an INSN_LIST, not an insn.
19161 (reverse_equiv_p): Strengthen local "insns" from rtx to
19162 rtx_insn_list * and use methods for clarity and typesafety.
19163 (contains_reloaded_insn_p): Likewise for local "list".
19165 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19167 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19168 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19169 (arm_builtin_vectorized_function): Likewise.
19170 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19171 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19174 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19176 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19177 * builtins.h (default_target_builtins): Likewise.
19178 * gcse.h (default_target_gcse): Likewise.
19179 * target-globals.h (target_globals): Add a destructor. Convert
19180 void-pointer fields back to their real type and change from
19181 GTY((atomic)) to GTY((skip)).
19182 (restore_target_globals): Remove casts accordingly.
19183 * target-globals.c (save_target_globals): Use XCNEW rather than
19184 ggc_internal_cleared_alloc to allocate non-GC structures.
19185 Use ggc_cleared_alloc to allocate the target_globals structure
19187 (target_globals::~target_globals): Define.
19189 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19191 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19192 mnemonic instead of fldmfdd.
19193 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19194 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19195 Output vpush when address register is SP.
19196 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19197 (vfp_output_vstmd): ... This.
19198 * config/arm/vfp.md (push_multi_vfp): Update call to
19201 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19203 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19205 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19207 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19208 (*sqrtdf2_vfp): Likewise.
19209 (*cmpsf_vfp): Likewise.
19210 (*cmpsf_trap_vfp): Likewise.
19211 (*cmpdf_vfp): Likewise.
19212 (*cmpdf_trap_vfp): Likewise.
19214 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19216 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19217 (*truncdfsf2_vfp): Likewise.
19218 (*truncsisf2_vfp): Likewise.
19219 (*truncsidf2_vfp): Likewise.
19220 (fixuns_truncsfsi2): Likewise.
19221 (fixuns_truncdfsi2): Likewise.
19222 (*floatsisf2_vfp): Likewise.
19223 (*floatsidf2_vfp): Likewise.
19224 (floatunssisf2): Likewise.
19225 (floatunssidf2): Likewise.
19227 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19229 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19230 (*muldf3_vfp): Likewise.
19231 (*mulsf3negsf_vfp): Likewise.
19232 (*muldf3negdf_vfp): Likewise.
19233 (*mulsf3addsf_vfp): Likewise.
19234 (*muldf3adddf_vfp): Likewise.
19235 (*mulsf3subsf_vfp): Likewise.
19236 (*muldf3subdf_vfp): Likewise.
19237 (*mulsf3negsfaddsf_vfp): Likewise.
19238 (*fmuldf3negdfadddf_vfp): Likewise.
19239 (*mulsf3negsfsubsf_vfp): Likewise.
19240 (*muldf3negdfsubdf_vfp): Likewise.
19242 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19244 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19245 (*absdf2_vfp): Likewise.
19246 (*negsf2_vfp): Likewise.
19247 (*negdf2_vfp): Likewise.
19248 (*addsf3_vfp): Likewise.
19249 (*adddf3_vfp): Likewise.
19250 (*subsf3_vfp): Likewise.
19251 (*subdf3_vfp): Likewise.
19252 (*divsf3_vfp): Likewise.
19253 (*divdf3_vfp): Likewise.
19255 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19257 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19259 (arm_print_operand): Don't convert real values to decimal
19260 representation in default case.
19261 (fp_immediate_constant): Delete.
19262 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19263 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19265 (*thumb2_movsi_vfp): Likewise.
19266 (*movdi_vfp): Likewise.
19267 (*movdi_vfp_cortexa8): Likewise.
19268 (*movhf_vfp_neon): Likewise.
19269 (*movhf_vfp): Likewise.
19270 (*movsf_vfp): Likewise.
19271 (*thumb2_movsf_vfp): Likewise.
19272 (*movdf_vfp): Likewise.
19273 (*thumb2_movdf_vfp): Likewise.
19274 (*movsfcc_vfp): Likewise.
19275 (*thumb2_movsfcc_vfp): Likewise.
19276 (*movdfcc_vfp): Likewise.
19277 (*thumb2_movdfcc_vfp): Likewise.
19279 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19281 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19282 (-mtune): Likewise.
19285 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19288 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19289 Use qualifier_immediate for last operand. Rename to...
19290 (aarch64_types_ternop_lane_qualifiers): ... This.
19291 (TYPES_QUADOP): Rename to...
19292 (TYPES_TERNOP_LANE): ... This.
19293 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19294 error. Change return of 0 to return of NULL_RTX.
19295 (aarch64_crc32_expand_builtin): Likewise.
19296 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19297 ICE when expanding unknown builtin.
19298 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19299 TERNOP_LANE qualifiers.
19300 (sqdmlsl_lane): Likewise.
19301 (sqdmlal_laneq): Likewise.
19302 (sqdmlsl_laneq): Likewise.
19303 (sqdmlal2_lane): Likewise.
19304 (sqdmlsl2_lane): Likewise.
19305 (sqdmlal2_laneq): Likewise.
19306 (sqdmlsl2_laneq): Likewise.
19308 2014-09-09 Nick Clifton <nickc@redhat.com>
19310 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19312 (S/390 and zSeries Options): Remove superfluous word from the
19313 description of the -mhotpatch option.
19315 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19317 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19318 * ira.c: #include "shrink-wrap.h"
19319 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19320 * ifcvt.c: #include "shrink-wrap.h"
19321 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19323 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19325 * common/config/picochip/picochip-common.c: Remove.
19326 * config.gcc: Remove support for picochip.
19327 * config/picochip/constraints.md: Remove.
19328 * config/picochip/dfa_space.md: Remove.
19329 * config/picochip/dfa_speed.md: Remove.
19330 * config/picochip/picochip-protos.h: Remove.
19331 * config/picochip/picochip.c: Remove.
19332 * config/picochip/picochip.h: Remove.
19333 * config/picochip/picochip.md: Remove.
19334 * config/picochip/picochip.opt: Remove.
19335 * config/picochip/predicates.md: Remove.
19336 * config/picochip/t-picochip: Remove.
19337 * doc/md.texi: Don't document picochi.
19339 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19341 * basic-block.h (control_flow_insn_p): Strengthen param from
19342 const_rtx to const rtx_insn *.
19343 * cfgbuild.c (control_flow_insn_p): Likewise.
19345 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19347 * gcse.c (modify_mem_list): Strengthen this variable from
19348 vec<rtx> * to vec<rtx_insn *> *.
19349 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19351 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19352 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19353 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19355 (record_last_set_info): Likewise for local "last_set_insn".
19357 2014-09-08 DJ Delorie <dj@redhat.com>
19359 * doc/invoke.texi (MSP430 Options): Add -minrt.
19361 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19363 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19364 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19365 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19367 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19369 (adjust_splat): New function.
19370 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19371 (dump_swap_insn_table): Add case for SH_SPLAT.
19373 2014-09-08 Richard Biener <rguenther@suse.de>
19376 * tree-inline.c (copy_loops): The source loop header should
19377 always be non-NULL.
19378 (tree_function_versioning): If loops need fixup after removing
19379 unreachable blocks fix them.
19380 * omp-low.c (simd_clone_adjust): Do not add incr block to
19381 loop under construction.
19383 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19385 * config/aarch64/aarch64-builtins.c
19386 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19388 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19390 * config/i386/cygming.h (TF_SIZE): Remove.
19391 * config/i386/darwin.h (TF_SIZE): Remove.
19392 * config/i386/dragonfly.h (TF_SIZE): Remove.
19393 * config/i386/freebsd.h (TF_SIZE): Remove.
19394 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19395 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19396 * config/i386/sol2.h (TF_SIZE): Remove.
19397 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19398 * config/ia64/linux.h (TF_SIZE): Remove.
19399 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19400 * doc/tm.texi: Regenerate.
19401 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19403 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19405 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19407 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19409 * doc/tm.texi: Regenerate.
19410 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19412 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19413 * config/cris/cris.h (__make_dp): Remove.
19415 2014-09-08 Richard Biener <rguenther@suse.de>
19418 * cfgloop.c (mark_loop_for_removal): Track former header
19420 * cfgloop.h (struct loop): Add former_header member unconditionally.
19421 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19422 diagnostic unconditionally.
19424 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19427 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19428 constraint for operand0 and remove write only modifier from operand3.
19430 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19432 PR rtl-optimization/62208
19433 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19434 rather than const0_rtx in eq/ne-xor simplifications.
19436 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19438 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19439 (arc_output_mi_thunk): Likewise.
19441 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19442 arguments to silence bogus warning.
19444 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19446 PR middle-end/63171
19447 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19449 2014-09-06 Tom de Vries <tom@codesourcery.com>
19451 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19452 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19453 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19455 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19458 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19459 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19461 2014-09-05 Easwaran Raman <eraman@google.com>
19463 PR rtl-optimization/62146
19464 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19465 hoisted instruction unconditional.
19467 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19470 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19471 Do not allow any_mask_operand for operands[2].
19472 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19474 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19476 * config/arc/arc.c (arc_print_operand): Use insn method of
19477 final_sequence for type-safety.
19478 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19479 "insn" from rtx to rtx_insn *.
19480 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19481 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19482 Likewise for locals "branch", "label".
19483 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19484 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19485 (same_cmp_following_p): Likewise for locals "i2", "i3".
19486 * config/sh/sh_optimize_sett_clrt.cc
19487 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19488 param "cbranch_insn".
19489 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19490 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19491 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19493 (condjump_p): Likewise.
19494 (condjump_in_parallel_p): Likewise.
19495 (pc_set): Likewise.
19496 (any_uncondjump_p): Likewise.
19497 (any_condjump_p): Likewise.
19498 (condjump_label): Likewise.
19499 (returnjump_p): Strengthen param "insn" from rtx to
19501 (onlyjump_p): Strengthen param "insn" from const_rtx to
19503 (jump_to_label_p): Likewise.
19504 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19505 (invert_jump): Likewise.
19506 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19508 (get_jump_flags): Strengthen param "insn" from rtx to
19510 (get_branch_condition): Likewise.
19511 (condition_dominates_p): Likewise.
19512 (make_return_insns): Move declaration of local "pat" earlier, to
19513 after we've handled NONJUMP_INSN_P and non-sequences, using its
19514 methods to simplify the code and for type-safety.
19515 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19517 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19518 (condjump_p): Strengthen param from const_rtx to
19520 (any_condjump_p): Likewise.
19521 (any_uncondjump_p): Likewise.
19522 (pc_set): Likewise.
19523 (condjump_label): Likewise.
19524 (simplejump_p): Likewise.
19525 (returnjump_p): Likewise.
19526 (onlyjump_p): Likewise.
19527 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19528 (invert_jump): Likewise.
19529 (condjump_in_parallel_p): Strengthen param from const_rtx to
19531 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19532 to const rtx_insn *.
19533 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19534 to const rtx_insn *.
19535 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19537 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19539 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19540 above the conditional, and convert the check on GET_CODE to a
19541 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19542 the conditional. Simplify the conditional by using methods of
19545 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19547 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19548 "link" from rtx to rtx_insn_list *, and use its methods for
19549 clarity and type-safety.
19550 (toggle_cancelled_flags): Likewise.
19551 (restore_last_backtrack_point): Likewise.
19552 (queue_to_ready): Use insn method of "link" in one place.
19553 (schedule_block): Strengthen local "link" from rtx to
19554 rtx_insn_list *, and use its methods for clarity and type-safety.
19556 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19558 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19559 param "insn" from const_rtx to const rtx_insn *.
19560 (sched_get_reverse_condition_uncached): Likewise.
19561 (sched_get_condition_with_rev): Likewise.
19562 (sched_has_condition_p): Likewise.
19563 (sched_insns_conditions_mutex_p): Likewise for both params.
19564 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19565 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19566 (setup_insn_reg_uses): Move local "list" to be more tightly
19567 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19568 its methods for clarity and type-safety.
19569 (sched_analyze_1): Strengthen local "pending" from rtx to
19570 rtx_insn_list *, and local "pending_mem" from rtx to
19571 rtx_expr_list *. Use methods of each for clarity and type-safety.
19572 (sched_analyze_2): Likewise.
19573 (sched_analyze_insn): Likewise.
19575 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19576 param from const_rtx to const rtx_insn *.
19577 (sched_insns_conditions_mutex_p): Likewise for both params.
19578 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19581 * system.h (CONST_CAST_RTX_INSN): New macro.
19583 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19585 * recog.c (peep2_attempt): Strengthen return type from rtx to
19587 (peep2_update_life): Likewise for params "last", "prev", removing
19588 a checked cast made redundant by this.
19589 (peephole2_optimize): Likewise for local "last".
19591 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19593 * basic-block.h (set_block_for_insn): Eliminate this macro in
19595 * rtl.h (set_block_for_insn): New inline function, imposing the
19596 requirement that the "insn" param is an rtx_insn *.
19598 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19600 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19602 * final.c (get_call_reg_set_usage): Likewise for first param,
19603 eliminating a checked cast.
19604 * regs.h (get_call_reg_set_usage): Likewise for first param.
19605 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19606 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19607 cast, replacing references to "x" with "call_insn" where
19609 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19610 rtx_insn *, adding a checked cast.
19612 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19614 * output.h (final_scan_insn): Strengthen first param from rtx to
19617 * final.c (final_scan_insn): Likewise, renaming it back from
19618 "uncast_insn" to "insn", eliminating the checked cast.
19620 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19621 "vec" with an rtx_sequence * "seq", taking a copy of
19622 "final_sequence", and using methods of "seq" for clarity, and for
19623 type-safety in the calls to final_scan_insn.
19624 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19625 of "final_sequence" for clarity, and for type-safety in the call to
19627 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19628 rtx_sequence * and rename from "insn" to "seq".
19630 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19632 * jump.c (delete_related_insns): Introduce a new local "table" by
19633 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19634 get_labels method of "table" to simplify access to the labels in
19637 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19639 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19640 f_minmaxs, f_minmaxd types.
19642 2014-09-05 Richard Biener <rguenther@suse.de>
19644 * cfgloop.c (mark_loop_for_removal): Record former header
19645 when ENABLE_CHECKING.
19646 * cfgloop.h (strut loop): Add former_header member when
19648 * loop-init.c (fix_loop_structure): Sanity check loops
19649 marked for removal if they re-appeared.
19651 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19653 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19654 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19656 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19657 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19658 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19659 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19660 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19661 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19662 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19663 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19664 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19665 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19666 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19667 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19668 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19669 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19670 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19671 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19672 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19673 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19674 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19675 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19676 with int{32,16,8}_t.
19678 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19680 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19681 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19682 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19683 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19684 Remove temporary __asm__ and reimplement.
19686 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19688 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19689 handling cmge, cmgt, cmeq, cmtst.
19691 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19692 cmlt, cmgeu, cmgtu, cmtst): Remove.
19694 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19695 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19696 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19697 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19699 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19701 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19702 TYPES_TST): Define.
19703 (aarch64_fold_builtin): Update pattern for cmtst.
19705 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19708 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19710 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19711 Switch operands, separate out more cases, refactor.
19713 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19715 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19716 argument; rename old version to...
19717 (aarch64_const_vec_all_same_in_range_p): ...this.
19718 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19720 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19722 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19724 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19725 Remove qualifier_const_pointer, update comment.
19727 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19729 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19731 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19733 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19734 varargs with pointer parameter.
19735 (aarch64_simd_expand_builtin): pass pointer into previous.
19737 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19739 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19742 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19744 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19745 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19746 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19747 Replace temporary asm with call to builtin.
19748 (vrbit_p8, vrbitq_p8): New functions.
19750 2014-09-05 Richard Biener <rguenther@suse.de>
19752 * cfgloop.c (mark_loop_for_removal): New function.
19753 * cfgloop.h (mark_loop_for_removal): Declare.
19754 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19755 (merge_blocks): Likewise.
19756 (duplicate_block): Likewise.
19757 * except.c (sjlj_emit_dispatch_table): Likewise.
19758 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19759 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19760 (thread_through_loop_header): Likewise.
19762 2014-09-05 Richard Biener <rguenther@suse.de>
19764 PR middle-end/63148
19765 * fold-const.c (try_move_mult_to_index): Remove.
19766 (fold_binary_loc): Do not call it.
19767 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19768 from the base object again.
19770 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19772 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19775 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19778 * config/arm/arm.md (setmem): New pattern.
19779 * config/arm/arm-protos.h (struct tune_params): New fields.
19780 (arm_gen_setmem): New prototype.
19781 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19782 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19783 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19784 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19785 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19786 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19787 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19788 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19789 (arm_const_inline_cost): New function.
19790 (arm_block_set_max_insns): New function.
19791 (arm_block_set_non_vect_profit_p): New function.
19792 (arm_block_set_vect_profit_p): New function.
19793 (arm_block_set_unaligned_vect): New function.
19794 (arm_block_set_aligned_vect): New function.
19795 (arm_block_set_unaligned_non_vect): New function.
19796 (arm_block_set_aligned_non_vect): New function.
19797 (arm_block_set_vect, arm_gen_setmem): New functions.
19799 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19801 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19803 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19805 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19807 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19809 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19811 * valtrack.h: Adjust.
19813 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19815 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19817 (emit_jump_insn_before_noloc): Likewise.
19818 (emit_call_insn_before_noloc): Likewise.
19819 (emit_label_before): Likewise.
19820 (emit_label_after): Likewise.
19821 (emit_insn_before_setloc): Likewise.
19822 (emit_jump_insn_before_setloc): Likewise.
19823 (emit_call_insn_before_setloc): Likewise.
19824 (emit_call_insn_before): Likewise.
19827 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19829 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19830 rtx_insn *, eliminating a checked cast.
19832 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19834 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19835 const_rtx to const rtx_insn *.
19836 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19839 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19841 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19842 fixup_args_size_notes.
19843 * expr.c (fixup_args_size_notes): Strengthen first two params from
19844 rtx to rtx_insn *, eliminating a checked cast.
19845 * rtl.h (fixup_args_size_notes): Strengthen first two params from
19848 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19850 * haifa-sched.c (get_ready_element): Strengthen return type from
19852 * sched-int.h (get_ready_element): Likewise.
19854 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
19857 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
19858 indexed_or_indirect_operand instead of memory_operand.
19859 (floatsi<mode>2_lfiwzx_mem): Ditto.
19861 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19863 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
19864 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
19865 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
19867 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19869 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
19871 (get_last_nonnote_insn): Likewise.
19872 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
19873 * resource.c (find_basic_block): Likewise.
19875 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
19878 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19880 * genattr.c (main): Within the prototype of insn_latency written
19881 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
19882 * genautomata.c (output_internal_maximal_insn_latency_func):
19883 Within the implementation of insn_latency written out to
19884 insn-automata.c, strengthen both params from rtx to rtx_insn *,
19885 eliminating a pair of checked casts.
19887 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19889 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
19892 * rtl.h (eh_returnjump_p): Likewise.
19894 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
19896 * Makefile.in (TAGS): Handle constructs in timevar.def.
19898 2014-09-04 Guozhi Wei <carrot@google.com>
19901 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
19902 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
19903 it into two patterns.
19904 (move_lo_quad_internal_be_<mode>): Likewise.
19906 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19908 * doc/options.texi: Document that Var and Init are required if CPP
19910 * optc-gen.awk: Require Var and Init if CPP is given.
19911 * common.opt (Wpedantic): Use Init.
19913 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19915 * config/rs6000/rs6000.c (special_handling_values): Add
19917 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
19918 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
19919 as swappable with special handling SH_EXTRACT. Remove
19920 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
19922 (adjust_extract): New function.
19923 (handle_special_swappables): Add default to case statement; add
19924 case for SH_EXTRACT that calls adjust_extract.
19925 (dump_swap_insn_table): Handle SH_EXTRACT.
19927 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19929 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
19930 selection of 0th memory doubleword, regardless of endianness.
19932 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19934 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
19936 2014-09-04 Alan Modra <amodra@gmail.com>
19939 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
19942 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
19944 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
19945 * targhooks.c (default_dwarf_frame_reg_mode): New function.
19946 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
19947 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
19948 * doc/tm.texi: Regenerate.
19949 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
19950 selection logic to default_dwarf_frame_reg_mode.
19952 2014-09-03 Marek Polacek <polacek@redhat.com>
19954 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
19957 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19959 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
19960 the automodified register.
19962 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19964 * output.h (get_some_local_dynamic_name): Declare.
19965 * final.c (some_local_dynamic_name): New variable.
19966 (get_some_local_dynamic_name): New function.
19967 (final_end_function): Clear some_local_dynamic_name.
19968 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
19969 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19970 (print_operand): Report an error if '%&' is used inappropriately.
19971 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
19972 (get_some_local_dynamic_name_1): Delete.
19973 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
19974 (rs6000_get_some_local_dynamic_name): Delete.
19975 (rs6000_get_some_local_dynamic_name_1): Delete.
19976 (print_operand): Report an error if '%&' is used inappropriately.
19977 * config/s390/s390.c (machine_function): Remove some_ld_name.
19978 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19979 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
19980 * config/sparc/sparc.c: Include rtl-iter.h.
19981 (machine_function): Remove some_ld_name.
19982 (sparc_print_operand): Report an error if '%&' is used inappropriately.
19983 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19985 2014-09-03 Richard Henderson <rth@redhat.com>
19987 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
19988 (aarch64_popwb_pair_reg): Remove.
19989 (aarch64_set_frame_expr): Remove.
19990 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
19991 the restore ops performed by the insns generated.
19992 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
19993 insn. Perform the calls_eh_return addition later; do not attempt to
19994 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
19995 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
19996 special markup at all. Load cfun->machine->frame.hard_fp_offset
19997 into a local variable.
19998 (aarch64_frame_pointer_required): Don't check calls_alloca.
20000 2014-09-03 Richard Biener <rguenther@suse.de>
20002 * opts.c (default_options_optimization): Adjust
20003 max-combine-insns to 2 for -Og.
20005 2014-09-03 Martin Jambor <mjambor@suse.cz>
20008 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
20009 pass-trough jump functions correctly.
20011 2014-09-03 Martin Jambor <mjambor@suse.cz>
20014 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
20015 created replacements in ascending order of offsets.
20016 (known_aggs_to_agg_replacement_list): Likewise.
20018 2014-09-03 Martin Liska <mliska@suse.cz>
20020 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
20021 is set to set uninitialized value for vnresult.
20023 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20025 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
20026 for TARGET_MUST_PASS_IN_STACK.
20028 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20030 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
20031 for TARGET_ARG_PARTIAL_BYTES.
20033 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20035 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
20036 instructions for varargs implementation.
20037 (nds32_expand_epilogue): Emit stack adjustment instructions for
20038 varargs implementation.
20040 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20042 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
20043 optimization detection.
20045 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20047 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
20049 (nds32_function_arg_advance): Deal with nameless arguments.
20050 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
20051 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
20052 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
20054 2014-09-03 Richard Biener <rguenther@suse.de>
20056 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
20057 (struct bb_bitmap_sets): Remove deferred member.
20058 (BB_DEFERRED): Remove.
20059 (defer_or_phi_translate_block): Remove.
20060 (compute_antic_aux): Remove deferring of blocks, assert
20061 proper iteration order.
20062 (compute_antic): Do not set BB_DEFERRED.
20063 (eliminate): Allocate el_avail of proper size initially.
20065 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20067 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
20068 according to the value of crtl->args.pretend_args_size.
20070 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20072 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
20073 varargs information.
20075 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20077 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
20078 implementation for TARGET_SETUP_INCOMING_VARARGS.
20079 (nds32_strict_argument_naming): Refine comment.
20080 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
20081 Define for future implementation.
20083 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
20085 * config/i386/adxintrin.h (_subborrow_u32): New.
20086 (_addcarry_u32): Ditto.
20087 (_subborrow_u64): Ditto.
20088 (_addcarry_u64): Ditto.
20089 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
20090 IX86_BUILTIN_SBB64.
20091 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
20092 __builtin_ia32_sbb_u64
20094 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20096 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
20097 GPR-specific stuff.
20098 (nds32_function_arg_advance): Likewise.
20099 (nds32_init_cumulative_args): Likewise.
20100 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
20101 (NDS32_FIRST_GPR_REGNUM): Define.
20102 (NDS32_LAST_GPR_REGNUM): Define.
20103 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
20104 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20105 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20106 (machine_function): Use GRP-specific stuff.
20108 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20110 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
20111 (nds32_expand_epilogue): Likewise.
20112 (nds32_expand_prologue_v3push): Likewise.
20113 (nds32_expand_epilogue_v3pop): Likewise.
20115 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20117 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
20118 v3push/v3pop for variadic function.
20119 * config/nds32/nds32.md (prologue, epilogue): Likewise.
20121 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20123 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20124 Check rtx for varargs implementation.
20125 (nds32_output_stack_pop): Likewise.
20126 * config/nds32/nds32-protos.h: Have a rtx argument for
20127 nds32_output_stack_push and nds32_output_stack_pop.
20128 * config/nds32/nds32.md: Likewise.
20130 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20132 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
20133 to check if FUNC is an interrupt service routine.
20134 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
20136 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20138 * config/nds32/nds32.h (machine_function): Add some fields for variadic
20139 arguments implementation.
20141 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20143 * config/nds32/nds32-predicates.c
20144 (nds32_valid_stack_push_pop): Rename to ...
20145 (nds32_valid_stack_push_pop_p): ... this.
20146 * config/nds32/nds32-protos.h: Likewise.
20147 * config/nds32/predicates.md: Likewise.
20149 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20151 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20152 (nds32_emit_stack_v3push): ... this.
20153 (nds32_gen_stack_v3pop): Rename to ...
20154 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20157 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20159 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20160 (nds32_emit_stack_push_multiple): ... this.
20161 (nds32_gen_stack_pop_multiple): Rename to ...
20162 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20165 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20168 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20169 and add a second splitter to handle the remaining cases.
20171 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20173 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20175 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20177 * cfgexpand.c (label_rtx_for_bb): Change type to
20178 hash_map<basic_block, rtx_code_label *> *.
20179 (expand_gimple_basic_block): Adjust.
20180 (pass_expand::execute): Likewise.
20182 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20184 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20185 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20186 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20187 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20188 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20189 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20190 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20193 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20195 * alloc-pool.c: Include coretypes.h.
20196 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20197 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20198 hash_set instead of htab.
20199 * ggc-page.c (in_gc): New variable.
20200 (ggc_free): Do nothing if a collection is taking place.
20201 (ggc_collect): Set in_gc appropriately.
20202 * ggc.h (gt_ggc_mx(const char *)): New function.
20203 (gt_pch_nx(const char *)): Likewise.
20204 (gt_ggc_mx(int)): Likewise.
20205 (gt_pch_nx(int)): Likewise.
20206 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20207 (hash_map::hash_entry::pch_nx): Likewise.
20208 (hash_map::hash_entry::pch_nx_helper): Likewise.
20209 (hash_map::hash_map): Adjust.
20210 (hash_map::create_ggc): New function.
20211 (gt_ggc_mx): Likewise.
20212 (gt_pch_nx): Likewise.
20213 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20214 (default_hashset_traits::pch_nx): Likewise.
20215 (hash_set::hash_entry::ggc_mx): Likewise.
20216 (hash_set::hash_entry::pch_nx): Likewise.
20217 (hash_set::hash_entry::pch_nx_helper): Likewise.
20218 (hash_set::hash_set): Adjust.
20219 (hash_set::create_ggc): New function.
20220 (hash_set::elements): Likewise.
20221 (gt_ggc_mx): Likewise.
20222 (gt_pch_nx): Likewise.
20223 * hash-table.h (hash_table::hash_table): Adjust.
20224 (hash_table::m_ggc): New member.
20225 (hash_table::~hash_table): Adjust.
20226 (hash_table::expand): Likewise.
20227 (hash_table::empty): Likewise.
20228 (gt_ggc_mx): New function.
20229 (hashtab_entry_note_pointers): Likewise.
20230 (gt_pch_nx): Likewise.
20232 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20234 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20235 built-in definition.
20236 (XVCVUXDDP_SCALE): Likewise.
20237 (XVCVDPSXDS_SCALE): Likewise.
20238 (XVCVDPUXDS_SCALE): Likewise.
20239 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20240 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20241 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20242 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20243 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20245 * config/rs6000/rs6000.c (real.h): New include.
20246 (rs6000_scale_v2df): New function.
20247 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20248 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20249 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20250 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20251 (vsx_xvcvsxddp_scale): New define_expand.
20252 (vsx_xvcvsxddp): New define_insn.
20253 (vsx_xvcvuxddp_scale): New define_expand.
20254 (vsx_xvcvuxddp): New define_insn.
20255 (vsx_xvcvdpsxds_scale): New define_expand.
20256 (vsx_xvcvdpsxds): New define_insn.
20257 (vsx_xvcvdpuxds_scale): New define_expand.
20258 (vsx_xvcvdpuxds): New define_insn.
20259 * doc/extend.texi (vec_ctf): Add new prototypes.
20260 (vec_cts): Likewise.
20261 (vec_ctu): Likewise.
20262 (vec_splat): Likewise.
20263 (vec_div): Likewise.
20264 (vec_mul): Likewise.
20266 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20269 * config/arm/neon.md
20270 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20271 <v_cmp_result>): New pattern.
20272 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20273 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20274 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20275 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20276 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20277 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20279 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20282 * config/arm/iterators.md (FIXUORS): New code iterator.
20283 (VCVT): New int iterator.
20284 (su_optab): New code attribute.
20286 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20288 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20290 * config/aarch64/predicates.md (aarch64_comparison_operation):
20291 New special predicate.
20292 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20293 aarch64_comparison_operation instead of matching an operator.
20294 Update operand numbers.
20295 (csinc3<mode>_insn): Likewise.
20296 (*csinv3<mode>_insn): Likewise.
20297 (*csneg3<mode>_insn): Likewise.
20298 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20299 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20300 Return -1 instead of aborting on invalid condition codes.
20301 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20302 to assert that the returned condition code is valid.
20303 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20305 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20307 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20308 tree.def, and gimple.def
20310 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20311 Balaji V. Iyer <balaji.v.iyer@intel.com>
20312 Igor Zamyatin <igor.zamyatin@intel.com>
20314 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20315 (__cilkrts_cilk_for_64): Likewise.
20316 * cilk-common.c (declare_cilk_for_builtin): New function.
20317 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20318 __cilkrts_cilk_for_64 bultins.
20319 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20321 (cilk_for_32_fndecl): New define.
20322 (cilk_for_64_fndecl): Likewise.
20323 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20324 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20325 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20326 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20327 GF_OMP_FOR_COMBINED_INTO.
20328 * gimplify.c (gimplify_scan_omp_clauses): Added
20329 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20330 (gimplify_adjust_omp_clauses): Ditto.
20331 (gimplify_omp_for): Added CILK_FOR case.
20332 (gimplify_expr): Ditto.
20333 * omp-low.c: Include cilk.h.
20334 (extract_omp_for_data): Set appropriate kind for
20335 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20336 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20337 (create_omp_child_function_name): Added second argument to handle
20339 (cilk_for_check_loop_diff_type): New function.
20340 (expand_cilk_for_call): Likewise.
20341 (expand_cilk_for): Likewise.
20342 (create_omp_child_function): Set cilk_for_count; handle the cases when
20343 it is true; call create_omp_child_function_name with second argument.
20344 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20345 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20346 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20347 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20348 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20349 (convert_local_omp_clauses): Ditto.
20350 * tree-pretty-print.c (dump_omp_clause): Added
20351 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20352 (dump_generic_node): Added CILK_FOR case.
20353 * tree.c (omp_clause_num_ops): New element
20354 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20355 (omp_clause_code_name): New element _Cilk_for_count_.
20356 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20357 * tree.def: Add tree code for CILK_FOR.
20359 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20361 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20362 (ppc403-compare): Add "exts with dot" case.
20363 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20364 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20365 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20366 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20367 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20368 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20369 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20370 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20371 cell-cmp-microcoded): Similarly.
20372 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20373 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20374 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20375 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20376 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20377 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20378 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20379 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20380 (power6-compare): Add "exts with dot" case.
20381 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20382 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20383 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20385 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20386 if avoiding Cell microcode.
20387 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20388 (is_cracked_insn): Ditto.
20389 (insn_must_be_first_in_group): Ditto.
20390 * config/rs6000/rs6000.md (dot): Adjust comment.
20391 (cell_micro): Handle exts+dot.
20392 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20393 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20394 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20395 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20396 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20397 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20398 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20400 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20402 * config/rs6000/rs6000.md (QHSI): Delete.
20403 (EXTQI, EXTHI, EXTSI): New mode iterators.
20404 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20405 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20406 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20407 9 anonymous instructions, and 8 splitters): Delete.
20408 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20409 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20410 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20411 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20412 *zero_extendsi<mode>2_dot2): New.
20414 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20416 * config/rs6000/rs6000.md (any_extend): New code iterator.
20417 (u, su): New code attributes.
20418 (dmode, DMODE): New mode attributes.
20419 (<su>mul<mode>3_highpart): New.
20420 (*<su>mul<mode>3_highpart): New.
20421 (<su>mulsi3_highpart_le): New.
20422 (<su>muldi3_highpart_le): New.
20423 (<su>mulsi3_highpart_64): New.
20424 (<u>mul<mode><dmode>3): New.
20425 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20426 splitters): Delete.
20427 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20428 splitters): Delete.
20430 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20432 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20433 *mulsi3_internal2, and two splitters): Delete.
20434 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20436 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20438 2014-09-02 Richard Biener <rguenther@suse.de>
20440 PR tree-optimization/62695
20441 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20444 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20447 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20449 2014-09-01 Andi Kleen <ak@linux.intel.com>
20451 * file-find.c (add_prefix_begin): Add.
20452 (do_add_prefix): Rename from add_prefix with first argument.
20453 (add_prefix): Add new wrapper.
20454 * file-find.h (add_prefix_begin): Add.
20455 * gcc-ar.c (main): Support -B option.
20457 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20459 * genemit.c: Include dumpfile.h.
20460 (gen_split): Print name of splitter function to dump file.
20462 2014-09-01 Richard Biener <rguenther@suse.de>
20464 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20465 Use stack auto_vecs for constraint expressions.
20466 (find_func_aliases_for_call): Likewise.
20467 (find_func_aliases): Likewise.
20468 (find_func_clobbers): Likewise.
20470 2014-09-01 Richard Biener <rguenther@suse.de>
20472 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20473 operands vector in most cases. Remove redundant code.
20475 2014-09-01 Olivier Hainque <hainque@adacore.com>
20477 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20478 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20479 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20481 2014-09-01 Richard Biener <rguenther@suse.de>
20483 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20484 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20485 vn_reference_compute_hash, vn_reference_insert): Remove.
20486 (vn_reference_lookup_call): New function.
20487 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20488 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20489 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20490 (create_reference_ops_from_call): Remove.
20491 (vn_reference_lookup_3): Properly update shared_lookup_references.
20492 (vn_reference_lookup_pieces): Assert that we updated
20493 shared_lookup_references properly.
20494 (vn_reference_lookup): Likewise.
20495 (vn_reference_lookup_call): New function.
20496 (visit_reference_op_call): Use it. Avoid re-building the
20498 (visit_reference_op_load): Remove redundant lookup.
20499 (visit_reference_op_store): Perform special tail-merging work
20500 only when possibly doing tail-merging.
20501 (visit_use): Likewise.
20502 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20504 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20507 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20508 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20509 (find_inc): Revert 2014-08-13 change.
20511 2014-09-01 Marek Polacek <polacek@redhat.com>
20513 PR middle-end/61903
20514 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20515 Change the type of V to unsigned HOST_WIDE_INT.
20517 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20519 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20520 the size of byte markers.
20521 (do_shift_rotate): Fix confusion between host, target and marker byte
20523 (verify_symbolic_number_p): Likewise.
20524 (find_bswap_or_nop_1): Likewise.
20525 (find_bswap_or_nop): Likewise.
20527 2014-09-01 Olivier Hainque <hainque@adacore.com>
20529 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20530 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20532 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20534 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20535 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20536 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20538 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20542 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20543 (build_check_stmt): Likewise.
20544 (instrument_strlen_call): Likewise.
20545 (asan_expand_check_ifn): Likewise and fix types.
20546 (maybe_cast_to_ptrmode): New function.
20548 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20550 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20552 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20554 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20556 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20558 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20559 prefix to function labels when generating fast indirect calls.
20561 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20565 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20566 param back from rtx_insn * to rtx. Rename param from "label" to
20567 "label_or_return", reintroducing "label" as an rtx_insn * after
20568 we've ensured it's not a RETURN.
20569 (first_active_target_insn): Likewise for return type and param;
20570 add a checked cast to rtx_insn * once we've ensured "insn" is not
20572 (steal_delay_list_from_target): Convert param "pnew_thread" back
20573 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20575 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20576 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20577 cast once we've established we're not dealing with a RETURN,
20578 renaming subsequent uses of "thread" to "thread_insn".
20579 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20581 (follow_jumps): Convert return type and param "label" from
20582 rtx_insn * back to rtx. Move initialization of "value" to after
20583 the handling for ANY_RETURN_P, adding a checked cast there to
20584 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20585 rename to "this_label_or_return", reintroducing "this_label" as
20586 an rtx_insn * once we've handled the case where it could be an
20588 (fill_slots_from_thread): Rename param "thread" to
20589 "thread_or_return", converting from an rtx_insn * back to an rtx.
20590 Reintroduce name "thread" as an rtx_insn * local with a checked
20591 cast once we've handled the case of it being an ANY_RETURN_P.
20592 Convert local "new_thread" from an rtx_insn * back to an rtx.
20593 Add a checked cast when assigning to "trial" from "new_thread".
20594 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20595 checked cast to rtx_insn * from "new_thread" when invoking
20597 (fill_eager_delay_slots): Convert locals "target_label",
20598 "insn_at_target" from rtx_insn * back to rtx.
20599 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20600 (relax_delay_slots): Convert locals "trial", "target_label" from
20601 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20602 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20603 invoking update_block.
20604 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20605 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20607 * resource.h (mark_target_live_regs): Undo erroneous conversion
20608 of second param of r214693, converting it back from rtx_insn * to
20609 rtx, since it could be a RETURN.
20611 * resource.c (find_dead_or_set_registers): Similarly, convert
20612 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20613 could be writing back a RETURN. Rename local rtx_insn * "next" to
20614 "next_insn", and introduce "lab_or_return" as a local rtx,
20615 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20616 (mark_target_live_regs): Undo erroneous conversion
20617 of second param of r214693, converting it back from rtx_insn * to
20618 rtx, since it could be a RETURN. Rename it from "target" to
20619 "target_maybe_return", reintroducing the name "target" as a local
20620 rtx_insn * with a checked cast, after we've handled the case of
20623 2014-08-29 DJ Delorie <dj@redhat.com>
20625 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20626 pointer size up to a power of two.
20627 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20628 (POINTER_SIZE_UNITS): New, rounded up value.
20629 * dwarf2asm.c (size_of_encoded_value): Use it.
20630 (dw2_output_indirect_constant_1): Likewise.
20631 * expmed.c (init_expmed_one_conv): We now know the sizes of
20633 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20634 * optabs.c (expand_float): Use precision, not size.
20635 (expand_fix): Likewise.
20636 * simplify-rtx (simplify_unary_operation_1): Likewise.
20637 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20638 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20639 (default_assemble_integer) Likewise.
20640 (dump_tm_clone_pairs): Likewise.
20641 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20642 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20643 (prepare_call_arguments): Likewise.
20644 * stor-layout.c (finalize_type_size): Preserve precision.
20645 (layout_type): Use precision, not size.
20647 * expr.c (convert_move): If the target has an explicit converter,
20650 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20652 * gdbinit.in: Skip various inline functions in rtl.h when
20655 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20658 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20660 2014-08-29 Richard Biener <rguenther@suse.de>
20662 PR tree-optimization/62291
20663 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20664 exactly the vector size needed and use quick_push.
20665 (phi_translate_1): Adjust comment.
20666 (valid_in_sets): Remove block argument and remove pointless
20668 (dependent_clean): Adjust for removal of block argument.
20670 (compute_antic_aux): Likewise.
20671 (compute_partial_antic_aux): Likewise.
20673 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20675 Anna Tikhonova <anna.tikhonova@intel.com>
20676 Ilya Tocar <ilya.tocar@intel.com>
20677 Andrey Turetskiy <andrey.turetskiy@intel.com>
20678 Ilya Verbin <ilya.verbin@intel.com>
20679 Kirill Yukhin <kirill.yukhin@intel.com>
20680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20682 * config/i386/sse.md
20683 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20684 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20685 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20686 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20688 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20690 Anna Tikhonova <anna.tikhonova@intel.com>
20691 Ilya Tocar <ilya.tocar@intel.com>
20692 Andrey Turetskiy <andrey.turetskiy@intel.com>
20693 Ilya Verbin <ilya.verbin@intel.com>
20694 Kirill Yukhin <kirill.yukhin@intel.com>
20695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20697 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20698 * config/i386/sse.md
20699 (define_mode_iterator VI4_128_8_256): New.
20700 (define_mode_iterator VI2_128_4_256): Ditto.
20701 (define_mode_iterator PMOV_DST_MODE): Rename into
20702 (define_mode_iterator PMOV_DST_MODE_1): this.
20703 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20704 Use PMOV_DST_MODE_1 mode iterator.
20705 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20707 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20709 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20710 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20711 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20712 (define_mode_iterator PMOV_DST_MODE_2): New.
20713 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20714 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20715 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20717 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20718 (define_mode_attr pmov_dst_3): Ditto.
20719 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20720 (define_mode_attr pmov_suff_3): Ditto.
20721 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20722 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20723 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20724 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20725 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20726 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20727 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20728 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20729 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20730 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20731 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20732 (define_mode_attr pmov_dst_4): Ditto.
20733 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20734 (define_mode_attr pmov_suff_4): Ditto.
20735 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20736 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20737 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20738 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20739 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20740 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20741 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20742 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20743 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20744 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20745 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20747 2014-08-29 Richard Biener <rguenther@suse.de>
20749 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20750 NON_LVALUE_EXPR in gimple.
20752 2014-08-29 Richard Biener <rguenther@suse.de>
20754 PR middle-end/62292
20755 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20756 from previous refactoring.
20757 (gimple_fold_builtin_strncpy): Likewise.
20759 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20762 * function.c (assign_parm_setup_reg): Remove erroneous checked
20763 cast to rtx_insn * on result of gen_extend_insn in favor of
20764 introducing a new local rtx "pat".
20766 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20768 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20769 to silence warning.
20770 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20772 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20774 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20775 (next_insn): Likewise.
20776 * emit-rtl.c (next_insn): Likewise.
20777 (previous_insn): Likewise.
20778 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20779 "insn" and "next" from rtx to rtx_insn *.
20780 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20781 "insn", "insn1", "vliw_start", "prologue_end_note",
20782 "last_insn_in_packet".
20784 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20786 * shrink-wrap.h (active_insn_between): Strengthen both params from
20788 * function.c (active_insn_between): Likewise.
20790 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20792 * genattr.c (main): When writing out insn-attr.h, strengthen param
20793 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20794 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20795 writing out the definition of dfa_clear_single_insn_cache to the
20796 generated insn-automata.c
20798 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20800 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20802 (incr_ticks_for_insn): Likewise.
20803 (init_resource_info): Likewise.
20805 * resource.c (init_resource_info): Likewise.
20806 (clear_hashed_info_for_insn): Likewise.
20807 (incr_ticks_for_insn): Likewise.
20809 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20811 (steal_delay_list_from_target): Use methods of "seq".
20812 (try_merge_delay_insns): Use methods of "merged_insns".
20813 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20814 (reorg_redirect_jump): Likewise for param "jump".
20816 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20818 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20820 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20821 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20823 (s390_mainpool_finish): In three places, split out a local rtx
20824 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20825 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20826 and split another local rtx "insn" out into rtx "pat" and
20828 * config/sh/sh.c (output_branchy_insn): Rather than working
20829 directly on operands[9], introduce local rtx_code_label *
20830 variables named "lab" in two places, working on them, and then
20831 assigning them to operands[9], so that the intervening operations
20832 are known by the type system to be on insns.
20834 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20836 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20839 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20840 in invocation of INSN_HAS_LOCATION.
20842 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20844 * config/rs6000/altivec.h (vec_xl): New #define.
20845 (vec_xst): Likewise.
20846 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
20847 (XXSPLTD_V2DI): Likewise.
20848 (DIV_V2DI): Likewise.
20849 (UDIV_V2DI): Likewise.
20850 (MUL_V2DI): Likewise.
20851 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20852 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
20853 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
20854 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
20855 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
20856 (UNSPEC_VSX_DIVSD): Likewise.
20857 (UNSPEC_VSX_DIVUD): Likewise.
20858 (UNSPEC_VSX_MULSD): Likewise.
20859 (vsx_mul_v2di): New insn-and-split.
20860 (vsx_div_v2di): Likewise.
20861 (vsx_udiv_v2di): Likewise.
20862 (vsx_xxspltd_<mode>): New insn.
20864 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20866 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
20868 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
20869 (NEXT_INSN): Likewise.
20870 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
20871 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
20873 (no_labels_between_p): Likewise for both params.
20875 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
20876 cast when using NEXT_INSN on operands[2].
20877 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
20878 "insn" from rtx to rtx_insn *, adding a checked cast.
20879 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
20881 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
20883 (arc_text_label): Likewise for param "insn".
20884 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
20886 (arc_ccfsm_record_condition): Likewise for param "jump".
20887 (arc_text_label): Likewise for local "label".
20888 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
20889 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
20890 a method for typesafety. Add a checked cast.
20891 * config/arc/constraints.md (Clb): Add a checked cast when getting
20892 the CODE_LABEL from a LABEL_REF.
20893 * config/arm/arm.c (require_pic_register): Strengthen locals
20894 "seq", "insn" from rtx to rtx_insn *.
20895 (create_fix_barrier): Likewise for locals "selected", "next".
20896 (thumb1_reorg): Likewise for locals "prev", "insn".
20897 (arm_expand_prologue): Likewise for local "last".
20898 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
20900 (thumb2_output_casesi): Likewise for operands[2].
20901 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
20902 strengthen local "insn" from rtx to rtx_insn *.
20903 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
20904 type and param "insn".
20905 (find_prev_insn_start): Likewise.
20906 (hwloop_optimize): Likewise for locals "insn", "last_insn",
20908 (gen_one_bundle): Likewise for loal "t".
20909 (find_load): Likewise for param "insn".
20910 (workaround_speculation): Likewise for locals "insn", "next",
20911 "target", "next_tgt".
20912 * config/c6x/c6x.c (assign_reservations): Likewise for both params
20913 and for locals "insn", "within", "last".
20914 (count_unit_reqs): Likewise for params "head", "tail" and local
20916 (try_rename_operands): Likewise for params "head", "tail".
20917 (reshuffle_units): Likewise for locals "head", "tail", "insn".
20918 (struct c6x_sched_context): Likewise for fields
20919 "last_scheduled_insn", "last_scheduled_iter0".
20920 (init_sched_state): Replace NULL_RTX with NULL.
20921 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
20923 (undo_split_delayed_nonbranch): Likewise for param and for local
20925 (conditionalize_after_sched): Likewise for local "insn".
20926 (bb_earliest_end_cycle): Likewise.
20927 (filter_insns_above): Likewise for locals "insn", "next".
20928 (hwloop_optimize): Remove redundant checked cast.
20929 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
20930 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
20931 NULL_RTX with NULL.
20932 (cris_simple_epilogue): Likewise.
20933 (cris_expand_prologue): Likewise.
20934 (cris_expand_epilogue): Likewise.
20935 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
20936 local "insn" from rtx to rtx_insn *.
20937 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
20938 (struct frv_packet_group): Likewise for the elements within array
20939 fields "insns", "sorted", and for field "nop".
20940 (frv_packet): Likewise for the elements within array field
20942 (frv_add_insn_to_packet): Likewise for param "insn".
20943 (frv_insert_nop_in_packet): Likewise for param "insn" and local
20945 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
20946 (frv_sort_insn_group_1): Likewise for local "insn".
20947 (frv_optimize_membar_local): Likewise.
20948 (frv_align_label): Likewise for locals "x", "last", "barrier",
20950 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
20952 (ia64_sched_init): Likewise for local "insn".
20953 (scheduled_good_insn): Likewise for param "last".
20954 (struct _ia64_sched_context): Likewise for field
20955 "last_scheduled_insn".
20956 (ia64_init_sched_context): Replace NULL_RTX with NULL.
20957 (struct bundle_state): Likewise for field "insn".
20958 (issue_nops_and_insn): Likewise for param "insn".
20959 (get_next_important_insn): Likewise for return type and both
20961 (ia64_add_bundle_selector_before): Likewise for param "insn".
20962 (bundling): Likewise for params "prev_head_insn", "tail" and
20963 locals "insn", "next_insn", "b". Eliminate top-level local rtx
20964 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
20965 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
20966 Strengthen final param from rtx to rtx_insn *.
20967 (iq2000_move_1word): Likewise for second param.
20968 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
20969 param "cur_insn" and local "next_insn".
20970 (iq2000_move_1word): Likewise for param "insn".
20971 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
20972 casts when using NEXT_INSN on operands[1].
20973 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
20974 "insn" from rtx to rtx_insn *.
20975 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
20976 "x", introducing local rtx_insn * "insn" for when working with the
20977 CODE_LABEL of the LABEL_REF.
20978 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
20980 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
20982 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
20984 (conditionalize_block): Likewise for return type and param.
20985 (mcore_is_dead): Likewise for param "first" and local "insn".
20986 (emit_new_cond_insn): Likewise for return type.
20987 (conditionalize_block): Likewise for return type, param, and
20988 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
20990 (conditionalize_optimization): Likewise for local "insn".
20991 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
20993 * config/microblaze/microblaze.md: Add checked casts when using
20995 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
20996 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
20997 and rtx_insn * "insn".
20998 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
20999 checked cast when using NEXT_INSN on operands[2].
21000 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
21001 local "insn" from rtx to rtx_insn *.
21002 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
21004 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
21005 Add a checked cast when using NEXT_INSN on operands[1].
21006 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
21008 (pa_output_cbranch): Likewise for final param.
21009 (pa_output_lbranch): Likewise for second param.
21010 (pa_output_bb): Likewise for third param.
21011 (pa_output_bvb): Likewise.
21012 (pa_output_dbra): Likewise for second param.
21013 (pa_output_movb): Likewise.
21014 (pa_output_parallel_movb): Likewise.
21015 (pa_output_parallel_addb): Likewise.
21016 (pa_output_millicode_call): Likewise for first param.
21017 (pa_output_mul_insn): Likewise for second param.
21018 (pa_output_div_insn): Likewise for third param.
21019 (pa_output_mod_insn): Likewise for second param.
21020 (pa_jump_in_call_delay): Likewise for param.
21021 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
21022 (pa_output_div_insn): Likewise.
21023 (pa_output_mod_insn): Likewise.
21024 (pa_output_cbranch): Likewise.
21025 (pa_output_lbranch): Likewise.
21026 (pa_output_bb): Likewise.
21027 (pa_output_bvb): Likewise.
21028 (pa_output_dbra): Likewise.
21029 (pa_output_movb): Likewise.
21030 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
21031 to simplify and for typesafety.
21032 (pa_output_call): Use method of rtx_sequence *.
21033 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
21034 (pa_jump_in_call_delay): Likewise.
21035 (pa_output_parallel_movb): Likewise.
21036 (pa_output_parallel_addb): Likewise.
21037 (pa_following_call): Likewise.
21038 (pa_combine_instructions): Likewise for locals "anchor",
21040 (pa_can_combine_p): Likewise for params "anchor", "floater" and
21041 locals "start", "end".
21042 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
21043 param "insn" and local "local_insn".
21044 (picochip_final_prescan_insn): Likewise for local "local_insn".
21045 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
21047 (uses_TOC): Likewise.
21048 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
21049 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
21050 splitting out to more tightly-scoped locals, 3 as rtx and one as
21052 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
21054 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
21056 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
21058 (fixup_addr_diff_vecs): Likewise.
21059 (reg_unused_after): Likewise for param 2.
21060 (sh_can_redirect_branch): Likewise for both params.
21061 (check_use_sfunc_addr): Likewise for param 1.
21062 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
21063 (find_barrier): Likewise for local "last_got".
21064 (gen_block_redirect): Likewise for return type, param "jump" and
21065 locals "prev", "scan", "next", "insn".
21066 (struct far_branch): Likewise for fields "near_label",
21067 "insert_place", "far_label".
21068 (gen_far_branch): Likewise for local "jump".
21069 (fixup_addr_diff_vecs): Likewise for param "first" and locals
21071 (barrier_align): Likewise for param and for locals "prev", "x".
21072 Introduce local rtx_sequence * "prev_seq" and use insn method for
21073 typesafety and clarity.
21074 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
21075 (get_dest_uid): Likewise for local "dest".
21076 (split_branches): Likewise for locals "next", "beyond", "label",
21077 "block", "far_label". Add checked casts when assigning to
21078 bp->far_label and "far_label".
21079 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
21080 (sequence_insn_p): Likewise.
21081 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
21082 more loop-scoped rtx "insn" when walking LABEL_REFS.
21083 (sh_can_redirect_branch): Strengthen both params from rtx to
21085 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
21086 new local rtx_sequence * "seq" via a dyn_cast, and use a method
21087 for clarity and typesafety.
21088 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
21089 "insn" from rtx to rtx_insn *.
21090 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
21091 when using NEXT_INSN on the CODE_LABEL in operands[2].
21092 (define_insn "casesi_worker_2"): Likewise.
21093 (define_insn "casesi_shift_media"): Likewise.
21094 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
21096 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
21097 Strengthen field "insn" from rtx to rtx_insn *.
21098 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
21099 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
21100 param "start_insn" and local "start_insn".
21101 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
21103 (find_set_of_reg_bb): Likewise for param "insn".
21104 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
21105 (trace_reg_uses): Likewise for param "start_insn".
21106 (sh_treg_combine::cbranch_trace): Likewise for field
21108 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
21110 (sh_treg_combine::record_set_of_reg): Likewise for param
21111 "start_insn" and local "i".
21112 (sh_treg_combine::can_remove_cstore): Likewise for local
21114 (sh_treg_combine::try_optimize_cbranch): Likewise for param
21116 (sh_treg_combine::execute): Likewise for local "i".
21117 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
21119 (sparc_check_64): Likewise for second param.
21120 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
21121 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
21122 dyn_cast, using its insn method for typesafety and clarity.
21123 (empty_delay_slot): Strengthen param "insn" from rtx to
21125 (set_extends): Likewise.
21126 (sparc_check_64): Likewise.
21127 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
21128 for locals "seq", "last_insn".
21129 (combine_bnp): Likewise for param "insn".
21130 (xstormy16_reorg): Likewise for local "insn".
21131 * config/v850/v850.c (substitute_ep_register): Likewise for params
21132 "first_insn", "last_insn" and local "insn".
21133 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
21134 elements of "regs" array, and local "insn".
21135 * except.c (emit_note_eh_region_end): Likewise for param "insn".
21136 * final.c (final_sequence): Strengthen this global from rtx to
21138 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
21140 (final_scan_insn): Update assignment to "final_sequence" to be
21141 from "seq", the cast version of "body", for type-safety.
21142 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
21143 "insns" from rtx to rtx_insn *.
21144 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21145 * genattr.c (main): When writing out generated insn-attr.h,
21146 strengthen params 1 and 3 of eligible_for_delay,
21147 eligible_for_annul_true, eligible_for_annul_false from rtx to
21149 * genattrtab.c (write_eligible_delay): Likewise when writing out
21150 generated insn-attrtab.c; also local "insn" the generated
21152 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21154 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21155 "start_label" from rtx to rtx_insn *.
21156 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21157 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21158 "insns" and local "insn".
21159 (validate_equiv_mem): Likewise for param "start" and local "insn".
21160 (memref_used_between_p): Likewise for params "start", "end" and
21162 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21164 * loop-doloop.c (doloop_optimize): Within region guarded by
21165 INSN_P (doloop_pat), introduce a new local rtx_insn *
21166 "doloop_insn" via a checked cast, and use it for typesafety,
21167 eventually writing the value back into doloop_pat.
21168 * output.h (final_sequence): Strengthen this global from rtx to
21170 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21171 reintroducing "insn" as an rtx_insn * via a checked cast.
21172 Strengthen param "attempt" and local "new_insn"from rtx to
21174 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21176 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21177 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21178 "p" in favor of more tightly-scoped replacements, sometimes rtx
21179 and sometimes rtx_insn *, as appropriate.
21180 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21181 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21182 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21183 local "trial" from rtx to rtx_insn *.
21184 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21185 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21186 rtx_sequence * and use methods for clarity and typesafety.
21187 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21188 rtx to rtx_insn *. Strenghten local "li" from rtx to
21189 rtx_insn_list * and use its methods for clarity and typesafety.
21190 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21192 (steal_delay_list_from_fallthrough): Likewise.
21193 (try_merge_delay_insns): Likewise for param "thread" and locals
21194 "trial", "next_trial", "delay_insn".
21195 (redundant_insn): Likewise for param "target" and local "trial".
21196 (own_thread_p): Likewise for param "thread" and locals
21197 "active_insn", "insn".
21198 (get_label_before): Likewise for param "insn".
21199 (fill_simple_delay_slots): Likewise for local "new_label"; use
21200 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21201 (label_before_next_insn): Strengthen return type and local "insn"
21202 from rtx to rtx_insn *.
21203 (relax_delay_slots): Likewise for locals "other", "tmp".
21204 (make_return_insns): Likewise for param "first" and locals "insn",
21205 "jump_insn", "prev". Move declaration of "pat" to its assignment
21206 and strengthen from rtx to rtx_sequence *. Use its methods for
21207 clarity and typesafety.
21208 * rtlanal.c (no_labels_between_p): Strengthen params from
21209 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21211 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21212 from const_rtx to const rtx_insn *.
21213 (reg_set_between_p): Rename param "from_insn" to
21214 "uncast_from_insn", and reintroduce "from_insn" as a
21215 const rtx_insn * via a checked cast.
21216 (modified_between_p): Likewise for param "start" as "uncast_start".
21217 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21218 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21219 "tmp", head" from rtx to rtx_insn *.
21220 (recompute_rev_top_order): Likewise for local "insn".
21221 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21222 * store-motion.c (build_store_vectors): Likewise for local "insn".
21223 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21224 for clarity and typesafety.
21225 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21227 (computation_cost): Likewise for local "seq".
21228 (get_address_cost): Likewise.
21230 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21232 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21234 (label_is_jump_target_p): Likewise for second param.
21236 * rtlanal.c (tablejump_p): Likewise for param "insn".
21237 (label_is_jump_target_p): Likewise for param "jump_insn".
21239 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21241 * rtl.h (find_first_parameter_load): Strengthen return type and
21242 both params from rtx to rtx_insn *.
21243 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21244 both params and locals "before", "first_set" from rtx to
21245 rtx_insn *. Remove now-redundant cast.
21246 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21248 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21250 * rtl.h (find_last_value): Delete.
21251 * rtlanal.c (find_last_value): Delete.
21253 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21255 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21256 from rtx to rtx_insn *.
21257 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21258 rtx "note" with new local rtx_insn * "new_head" when calculating
21259 head insn of new basic block.
21260 * combine.c (combine_split_insns): Strengthen return type and local
21261 "ret" from rtx to rtx_insn *.
21262 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21263 (try_combine): Eliminate local "m_split", splitting into new
21264 locals "m_split_insn" and "m_split_pat".
21265 (find_split_point): Strengthen local "seq" from rtx into
21267 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21268 locals "label", "branch".
21269 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21271 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21272 * dse.c (note_add_store_info): Likewise for fields "first",
21274 (note_add_store): Likewise for local "insn".
21275 (emit_inc_dec_insn_before): Likewise for locals "insn",
21277 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21278 (replace_read): Likewise for locals "insns", "this_insn".
21279 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21280 (notice_eh_throw): Likewise for param "insn".
21281 (before_next_cfi_note): Likewise for return type, param, and local
21283 (connect_traces): Likewise for local "note".
21284 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21285 (verify_rtl_sharing): Likewise.
21286 (unshare_all_rtl_in_chain): Likewise for param "insn".
21287 (get_first_nonnote_insn): Likewise for local "insn".
21288 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21289 "seq" and use its methods to clarify things.
21290 (next_insn): Strengthen return type from rtx to rtx_insn *.
21291 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21292 local rtx_insn * using a checked cast, dropping a checked cast
21293 made redundant by this change. Use a cast to and method of
21294 rtx_sequence to clarify the code.
21295 (previous_insn): Rename param "insn" to "uncast_insn" and
21296 reintroduce "insn" as a local rtx_insn * using a checked cast,
21297 dropping a checked cast made redundant by this change. Use a cast
21298 to and method of rtx_sequence to clarify the code.
21299 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21300 reintroduce "insn" as a local rtx_insn * using a checked cast,
21301 dropping a checked cast made redundant by this change.
21302 (next_nonnote_insn_bb): Likewise.
21303 (prev_nonnote_insn): Likewise.
21304 (prev_nonnote_insn_bb): Likewise.
21305 (next_nondebug_insn): Likewise.
21306 (prev_nondebug_insn): Likewise.
21307 (next_nonnote_nondebug_insn): Likewise.
21308 (prev_nonnote_nondebug_insn): Likewise.
21309 (next_real_insn): Likewise.
21310 (prev_real_insn): Likewise.
21311 (next_active_insn): Likewise.
21312 (prev_active_insn): Likewise.
21313 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21315 (prev_cc0_setter): Likewise.
21316 (try_split): Rename param "trial" to "uncast_trial" and
21317 reintroduce "insn" as a local rtx_insn * using a checked cast,
21318 dropping checked casts made redundant by this change.
21319 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21321 (remove_insn): Rename param "insn" to "uncast_insn" and
21322 reintroduce "insn" as a local rtx_insn * using a checked cast.
21323 (emit_pattern_after_setloc): Likewise for param "after", as
21325 (emit_pattern_after): Likewise. Strengthen local "prev" from
21327 (emit_pattern_before_setloc): Rename param "before" to
21328 "uncast_before" and reintroduce "before" as a local rtx_insn *
21329 using a checked cast. Strengthen locals "first", "last" from
21331 (emit_pattern_before): Likewise rename/cast param "before" to
21332 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21333 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21334 "first" and local "insn" from rtx to rtx_insn *.
21335 (copy_reg_eh_region_note_backward): Likewise for param "last"
21337 * expr.c (fixup_args_size_notes): Rename param "last" to
21338 "uncast_last" and reintroduce "last" as a local rtx_insn *
21339 using a checked cast. Strengthen local "insn" from rtx to
21341 * function.c (set_insn_locations): Strengthen param "insn" from
21343 (record_insns): Likewise for param "insns" and local "tmp".
21344 (active_insn_between): Rename param "tail" to
21345 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21346 using a checked cast.
21347 (thread_prologue_and_epilogue_insns): Split out top-level local
21348 rtx "seq" into three different rtx_insn * locals. Strengthen
21349 local "prologue_seq" from rtx to rtx_insn *.
21350 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21351 from rtx to rtx_insn *.
21352 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21353 (priority): Likewise for locals "prev_first", "twin".
21354 (setup_insn_max_reg_pressure): Likewise for param "after".
21355 (sched_setup_bb_reg_pressure_info): Likewise.
21356 (no_real_insns_p): Strengthen params from const_rtx to
21358 (schedule_block): Strengthen local "next_tail" from rtx to
21360 * ifcvt.c (find_active_insn_before): Strengthen return type and
21361 param "insn" from rtx to rtx_insn *.
21362 (find_active_insn_after): Likewise.
21363 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21364 (cond_exec_process_if_block): Likewise for locals "then_start",
21365 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21366 (noce_process_if_block): Likewise for local "jump".
21367 (merge_if_block): Likewise for two locals named "end".
21368 (cond_exec_find_if_block): Likewise for local "last_insn".
21369 * jump.c (delete_related_insns): Rename param "insn" to
21370 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21371 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21372 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21374 (split_reg): Likewise.
21375 * lra.c (lra_process_new_insns): Likewise.
21376 * modulo-sched.c (permute_partial_schedule): Strengthen param
21377 "last" from rtx to rtx_insn *.
21378 * optabs.c (add_equal_note): Likewise for param "insns" and local
21380 (expand_binop_directly): Add checked casts to rtx_insn * within
21381 NEXT_INSN (pat) uses.
21382 (expand_unop_direct): Likewise.
21383 (maybe_emit_unop_insn): Likewise.
21384 * recog.c (peep2_attempt): Strengthen locals "last",
21385 "before_try", "x" from rtx to rtx_insn *.
21386 * reorg.c (optimize_skip): Strengthen return type and local
21387 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21388 and locals "trial", "next_trial" from rtx to rtx_insn *.
21389 * resource.c (next_insn_no_annul): Strengthen return type and
21390 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21391 rtx_sequence to clarify the code.
21392 (mark_referenced_resources): Add a checked cast to rtx_insn *
21393 within PREV_INSN (x).
21394 (find_dead_or_set_registers): Strengthen return type, param
21395 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21396 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21398 (mark_target_live_regs): Strengthen params "insns" and "target",
21399 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21400 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21402 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21403 from rtx to rtx_insn *.
21404 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21405 from rtx to rtx_insn *.
21406 (copy_reg_eh_region_note_backward): Likewise.
21407 (unshare_all_rtl_in_chain): Likewise for sole param.
21408 (dump_rtl_slim): Strengthen second and third params from const_rtx
21409 to const rtx_insn *.
21410 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21411 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21412 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21413 "next_tail" from rtx to rtx_insn *.
21414 (begin_move_insn): Likewise for local "next".
21415 * sched-int.h (sched_free_deps): Likewise for first and second
21417 (no_real_insns_p): Strengthen both params from const_rtx to
21419 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21421 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21423 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21424 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21425 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21427 (debug_rtl_slim): Strengthen params "first" and "last" from
21428 const_rtx to const rtx_insn *.
21429 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21430 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21431 (convert_to_simple_return): Likewise for param "returnjump".
21432 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21434 (convert_to_simple_return): Likewise for param "returnjump".
21435 * valtrack.c (propagate_for_debug): Likewise for params
21437 * valtrack.h (propagate_for_debug): Likewise for second param.
21439 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21441 * output.h (insn_current_reference_address): Strengthen param
21442 from rtx to rtx_insn *.
21443 * final.c (insn_current_reference_address): Likewise.
21445 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21447 * basic-block.h (inside_basic_block_p): Strengthen param from
21448 const_rtx to const rtx_insn *.
21449 * cfgbuild.c (inside_basic_block_p): Likewise.
21451 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21453 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21455 (get_trace_info): Likewise for param "insn".
21456 (save_point_p): Likewise.
21457 (maybe_record_trace_start): Likewise for both params.
21458 (maybe_record_trace_start_abnormal): Likewise.
21459 (create_trace_edges): Likewise for sole param and for three of the
21460 locals named "lab".
21461 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21462 to rtx_insn *, and update a call to pat->element to pat->insn.
21464 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21466 * function.h (struct expr_status): Convert field "x_forced_labels"
21467 from rtx_expr_list * to rtx_insn_list *.
21469 * cfgbuild.c (make_edges): Convert local "x" from an
21470 rtx_expr_list * to an rtx_insn_list *, replacing use of
21471 "element" method with "insn" method.
21472 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21473 * except.c (sjlj_emit_dispatch_table): Replace use of
21474 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21476 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21477 rtx_expr_list * to an rtx_insn_list *, replacing use of
21478 "element" method with "insn" method.
21479 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21480 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21481 rtx_insn *, adding a checked cast. Replace use of
21482 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21484 (expand_label): Likewise for local "label_r".
21486 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21488 * function.h (struct rtl_data): Convert field
21489 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21491 * rtl.h (remove_node_from_insn_list): New prototype.
21493 * builtins.c (expand_builtin): When prepending to
21494 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21496 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21497 to rtx_insn_list *, and use its "insn" method rather than
21499 * cfgrtl.c (delete_insn): Use new function
21500 remove_node_from_insn_list rather than
21501 remove_node_from_expr_list.
21502 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21503 to rtx_insn_list *, and use its "insn" method rather than
21505 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21506 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21507 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21508 from remove_node_from_expr_list.
21509 * stmt.c (expand_label): When prepending to
21510 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21513 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21515 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21516 and "x_naked_return_label" from rtx to rtx_code_label *.
21518 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21520 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21521 (SET_NEXT_INSN): Likewise.
21522 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21524 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21525 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21526 to split out the SEQUENCE from local "bundle", strengthening the
21527 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21528 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21529 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21530 and the type of the elements of the "slot" array from rtx to
21532 (reorg_split_calls): Likewise for locals "insn" and "next", and
21533 the type of the elements of the "slot" array.
21535 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21537 (frv_function_prologue): Likewise for locals "insn", "next",
21539 (frv_register_nop): Introduce a local "nop_insn" to be the
21540 rtx_insn * containing rtx "nop".
21542 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21543 used as an insn and sometimes as a pattern, so rename it to
21544 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21545 using it where dealing with the core insn.
21547 * config/picochip/picochip.c (reorder_var_tracking_notes):
21548 Strengthen locals "insn", "next", "last_insn", "queue",
21549 "next_queue", "prev" from rtx to rtx_insn *.
21551 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21552 the second param is an rtx_insn ** rather than an rtx **.
21553 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21554 from rtx to rtx_sequence *, and introduce local named "sequence",
21555 using methods of rtx_sequence to clarify the code.
21556 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21558 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21559 Rename param "after" to "uncast_after", reintroducing "after" as a
21560 local rtx_insn * with a checked cast.
21561 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21562 reintroducing "after" as a local rtx_insn * with a checked cast.
21563 Strengthen local "last" from rtx to rtx_insn * and remove the
21564 now-redundant checked casts.
21565 (copy_delay_slot_insn): Strengthen return type and param from rtx
21568 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21569 "last" from rtx to rtx_insn *.
21571 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21573 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21574 param from rtx to rtx_insn *.
21576 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21578 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21579 and local "insn" from rtx to rtx_insn *.
21580 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21581 (unfilled_slots_next): Likewise.
21582 (function_return_label): Strengthen from rtx to rtx_code_label *.
21583 (function_simple_return_label): Likewise.
21584 (first_active_target_insn): Strengthen return type and param from
21586 (find_end_label): Strengthen return type from rtx to
21587 rtx_code_label *; strengthen locals as appropriate.
21588 (emit_delay_sequence): Strengthen return type, param "insn" and
21589 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21590 and local "li" from rtx to rtx_insn_list *, using methods of
21591 rtx_insn_list for clarity and typesafety.
21592 (add_to_delay_list): Strengthen return type and param "insn" from
21593 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21594 rtx_insn_list * and use methods of rtx_insn_list.
21595 (delete_from_delay_slot): Strengthen return type, param "insn",
21596 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21597 Strengthen local "seq" from rtx to rtx_sequence *, and local
21598 "delay_list" from rtx to rtx_insn_list *, using methods of
21599 rtx_sequence for clarity and type-safety.
21600 (delete_scheduled_jump): Add checked cast when invoking
21601 delete_from_delay_slot. Strengthen local "trial" from rtx to
21603 (optimize_skip): Strengthen return type and local "delay_list"
21604 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21606 (steal_delay_list_from_target): Strengthen return type, param
21607 "delay_list" and local "new_delay_list" from rtx to
21608 rtx_insn_list *. Strengthen param "seq" from rtx to
21609 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21611 Split out local "temp" into multiple more-tightly scoped locals:
21612 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21613 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21614 Strengthen locals named "trial" from rtx to rtx_insn *.
21615 (steal_delay_list_from_fallthrough): Strengthen return type and
21616 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21617 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21618 Strengthen local "trial" from rtx to rtx_insn *.
21619 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21620 to rtx_insn_list * and use its methods. Strengthen local "pat"
21621 from rtx to rtx_sequence * and use its methods. Strengthen locals
21622 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21623 (get_label_before): Strengthen return type and local "label" from
21625 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21626 "next_trial", "next", prev". Strengthen local "delay_list" from
21627 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21629 (follow_jumps): Strengthen return type, param "label" and locals
21630 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21631 (fill_slots_from_thread): Strengthen return type, param
21632 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21633 "insn", "thread", "opposite_thread" and locals "new_thread",
21634 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21635 "sequence" from a checked cast to rtx_sequence so that we can call
21636 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21637 with an rtx_sequence *.
21638 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21639 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21640 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21641 (relax_delay_slots): Strengthen param "first" and locals "insn",
21642 "next", "trial", "delay_insn", "target_label" from rtx to
21643 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21644 Introduce a local "trial_seq" for PATTERN (trial) of type
21645 rtx_sequence *, in both cases using methods of rtx_sequence.
21646 (dbr_schedule): Strengthen param "first" and locals "insn",
21647 "next", "epilogue_insn" from rtx to rtx_insn *.
21649 2014-08-28 Richard Biener <rguenther@suse.de>
21651 PR tree-optimization/62283
21652 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21653 Do not peel loops for alignment where the vector loop likely
21654 doesn't run at least VF times.
21656 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21658 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21659 important_candidates. Consider all important candidates if
21660 IVS doesn't give any result. Remove check on ivs->upto.
21661 (try_add_cand_for): Call iv_ca_add_use only once.
21663 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21664 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21665 Anna Tikhonova <anna.tikhonova@intel.com>
21666 Ilya Tocar <ilya.tocar@intel.com>
21667 Andrey Turetskiy <andrey.turetskiy@intel.com>
21668 Ilya Verbin <ilya.verbin@intel.com>
21669 Kirill Yukhin <kirill.yukhin@intel.com>
21670 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21672 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21673 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21675 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21676 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21677 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21678 (define_insn "*mul<mode>3"): Add EVEX version.
21680 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21681 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21682 Anna Tikhonova <anna.tikhonova@intel.com>
21683 Ilya Tocar <ilya.tocar@intel.com>
21684 Andrey Turetskiy <andrey.turetskiy@intel.com>
21685 Ilya Verbin <ilya.verbin@intel.com>
21686 Kirill Yukhin <kirill.yukhin@intel.com>
21687 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21689 * config/i386/sse.md
21690 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21691 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21692 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21693 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21694 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21695 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21696 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21697 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21698 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21699 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21700 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21701 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21702 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21703 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21704 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21705 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21708 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21709 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21710 Anna Tikhonova <anna.tikhonova@intel.com>
21711 Ilya Tocar <ilya.tocar@intel.com>
21712 Andrey Turetskiy <andrey.turetskiy@intel.com>
21713 Ilya Verbin <ilya.verbin@intel.com>
21714 Kirill Yukhin <kirill.yukhin@intel.com>
21715 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21717 * config/i386/sse.md
21718 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21719 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21720 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21722 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21724 Anna Tikhonova <anna.tikhonova@intel.com>
21725 Ilya Tocar <ilya.tocar@intel.com>
21726 Andrey Turetskiy <andrey.turetskiy@intel.com>
21727 Ilya Verbin <ilya.verbin@intel.com>
21728 Kirill Yukhin <kirill.yukhin@intel.com>
21729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21731 * config/i386/sse.md
21732 (define_mode_iterator VI128_256): New.
21733 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21735 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21736 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21737 Anna Tikhonova <anna.tikhonova@intel.com>
21738 Ilya Tocar <ilya.tocar@intel.com>
21739 Andrey Turetskiy <andrey.turetskiy@intel.com>
21740 Ilya Verbin <ilya.verbin@intel.com>
21741 Kirill Yukhin <kirill.yukhin@intel.com>
21742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21744 * config/i386/sse.md
21745 (define_mode_iterator VI8_256_512): New.
21746 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21748 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21749 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21751 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21753 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21755 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21756 pointer to the cumulative reloc value and return the value for
21757 this reloc instead.
21758 (compute_reloc_for_rtx): Take a const_rtx. Call
21759 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21760 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21761 for_each_rtx for the CONST case.
21763 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21765 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21766 (mark_constants_in_pattern): ...this new function to iterate over
21768 (mark_constants): Update accordingly.
21770 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21772 * varasm.c: Include rtl-iter.h.
21773 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21774 Remove the pointer to the cumulative hashval_t and just return
21775 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21776 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21777 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21779 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21781 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21782 Give real type of data parameter. Remove return value.
21783 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21784 to iterate over subrtxes.
21786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21788 * var-tracking.c (use_narrower_mode_test): Turn from being a
21789 for_each_rtx callback to being a function that examines each
21791 (adjust_mems): Update accordingly.
21793 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21795 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21796 callback to being a function that examines each subrtx itself.
21797 Remove handling of null rtxes.
21798 (add_uses): Update accordingly.
21800 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21802 * var-tracking.c: Include rtl-iter.h.
21803 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21804 to being a function that examines each subrtx itself.
21805 (use_type): Update accordingly.
21807 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21809 * store-motion.c: Include rtl-iter.h.
21810 (extract_mentioned_regs_1): Delete.
21811 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21812 for_each_rtx to iterate over subrtxes.
21814 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21816 * sel-sched.c: Include rtl-iter.h
21817 (count_occurrences_1): Delete.
21818 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21819 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21821 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21823 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21824 * rtlanal.c (tls_referenced_p_1): Delete.
21825 (tls_referenced_p): Take a const_rtx rather than an rtx.
21826 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21828 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21830 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21831 (for_each_inc_dec): Take an rtx rather than an rtx *.
21832 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21833 (cselib_record_sets): Likewise.
21834 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21835 (check_for_inc_dec): Likewise.
21836 * rtlanal.c (for_each_inc_dec_ops): Delete.
21837 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21838 rather than a pointer to the memory address. Replace
21839 for_each_inc_dec_ops argument with separate function and data
21840 arguments. Abort on non-autoinc addresses.
21841 (for_each_inc_dec_find_mem): Delete.
21842 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21843 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
21845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21847 * rtl.h (find_all_hard_regs): Declare.
21848 * rtlanal.c (find_all_hard_regs): New function.
21849 (record_hard_reg_uses_1): Delete.
21850 (record_hard_reg_uses): Use find_all_hard_regs.
21852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21854 * rtl.h (replace_label_data): Delete.
21855 (replace_label): Take the old label, new label and update-nuses flag
21856 as direct arguments. Return void.
21857 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
21858 * rtlanal.c (replace_label): Update interface as above. Handle
21859 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
21860 iterator. Use FOR_EACH_SUBRTX_PTR.
21862 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21864 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
21865 with const_rtx parameters.
21866 * varasm.c (get_pool_constant): Likewise.
21867 * rtlanal.c (rtx_referenced_p_1): Delete.
21868 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21869 Assert that the rtx we're looking for is nonnull. Allow searches
21870 for constant pool SYMBOL_REFs.
21872 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21874 * reload1.c: Include rtl-iter.h.
21875 (note_reg_elim_costly): Turn from being a for_each_rtx callback
21876 to being a function that examines each subrtx itself.
21877 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
21879 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21881 * regcprop.c (cprop_find_used_regs_1): Delete.
21882 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21884 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21886 * regcprop.c: Include rtl-iter.h.
21887 (kill_value): Take a const_rtx.
21888 (kill_autoinc_value): Turn from being a for_each_rtx callback
21889 to being a function that examines each subrtx itself.
21890 (copyprop_hardreg_forward_1): Update accordingly.
21892 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21894 * reg-stack.c: Include rtl-iter.h.
21895 (subst_stack_regs_in_debug_insn): Delete.
21896 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
21897 instead of for_each_rtx.
21899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21901 * lower-subreg.c (find_decomposable_subregs): Turn from being
21902 a for_each_rtx callback to being a function that examines each
21903 subrtx itself. Remove handling of null rtxes.
21904 (decompose_multiword_subregs): Update accordingly.
21906 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21908 * lower-subreg.c (adjust_decomposed_uses): Delete.
21909 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
21910 Remove handling of null rtxes.
21912 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21914 * lower-subreg.c: Include rtl-iter.h.
21915 (resolve_subreg_use): Turn from being a for_each_rtx callback
21916 to being a function that examines each subrtx itself. Remove
21917 handling of null rtxes.
21918 (resolve_reg_notes, resolve_simple_move): Update accordingly.
21919 (decompose_multiword_subregs): Likewise.
21921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21923 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
21924 to being a function that examines each subrtx itself.
21925 (simplify_using_condition, simplify_using_initial_values): Update
21928 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21930 * loop-iv.c: Include rtl-iter.h.
21931 (find_single_def_src): New function.
21932 (replace_single_def_regs): Turn from being a for_each_rtx callback
21933 to being a function that examines each subrtx itself.
21934 (replace_in_expr, simplify_using_initial_values): Update accordingly.
21936 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21938 * jump.c (eh_returnjump_p_1): Delete.
21939 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21940 Remove handling of null rtxes.
21942 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21944 * jump.c: Include rtl-iter.h.
21945 (returnjump_p_1): Delete.
21946 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21947 Remove handling of null rtxes.
21949 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21951 * ira.c: Include rtl-iter.h.
21952 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
21953 to being a function that examines each subrtx itself. Remove
21954 handling of null rtxes.
21955 (update_equiv_regs): Update call accordingly.
21957 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21959 * fwprop.c: Include rtl-iter.h.
21960 (varying_mem_p): Turn from being a for_each_rtx callback to being
21961 a function that examines each subrtx itself.
21962 (propagate_rtx): Update accordingly.
21964 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21966 * function.c: Include rtl-iter.h
21967 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
21968 callback to being a function that examines each subrtx itself.
21969 Return the changed flag.
21970 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
21971 (instantiate_virtual_regs): Update calls accordingly.
21973 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21975 * final.c: Include rtl-iter.h.
21976 (mark_symbol_ref_as_used): Delete.
21977 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
21980 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21982 * emit-rtl.c: Include rtl-iter.h.
21983 (find_auto_inc): Turn from being a for_each_rtx callback to being
21984 a function that examines each subrtx itself. Assume the first operand
21985 to an RTX_AUTOINC is the automodified register.
21986 (try_split): Update call accordingly.
21988 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21990 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
21991 Return a bool, inverting the result so that 0/false means "not ok".
21992 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
21993 subrtxes of a CONST.
21994 (mem_loc_descriptor, add_const_value_attribute)
21995 (resolve_addr_in_expr): Update calls accordingly.
21997 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21999 * dwarf2out.c: Include rtl-iter.h.
22000 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
22001 Remove unused data parameter. Return a bool, inverting the result
22002 so that 0/false means "not ok".
22003 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
22004 instead of for_each_rtx.
22006 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22008 * dse.c: Include rtl-iter.h.
22009 (check_mem_read_rtx): Change void * parameter to real type.
22010 Remove return value.
22011 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
22012 for_each_rtx. Don't handle null rtxes.
22014 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22016 * df-problems.c: Include rtl-iter.h.
22017 (find_memory): Turn from being a for_each_rtx callback to being
22018 a function that examines each subrtx itself. Continue to look for
22019 volatile references even after a nonvolatile one has been found.
22020 (can_move_insns_across): Update calls accordingly.
22022 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22024 * ddg.c (walk_mems_2, walk_mems_1): Delete.
22025 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
22026 to iterate over subrtxes. Return a bool rather than an int.
22028 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22030 * ddg.c: Include rtl-iter.h.
22031 (mark_mem_use_1): Rename to...
22032 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
22033 instead of for_each_rtx.
22034 (mem_read_insn_p): Update accordingly.
22036 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22038 * cse.c (change_cc_mode_args): Delete.
22039 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
22040 a function that examines each subrtx itself. Take the fields of
22041 change_cc_mode_args as argument and return void.
22042 (cse_change_cc_mode_insn): Update calls accordingly.
22044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22046 * cse.c (is_dead_reg): Change argument to const_rtx.
22047 (dead_debug_insn_data): Delete.
22048 (is_dead_debug_insn): Expand commentary. Turn from being a
22049 for_each_rtx callback to being a function that examines
22050 each subrtx itself. Take the fields of dead_debug_insn_data
22052 (delete_trivially_dead_insns): Update call accordingly.
22054 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22056 * cse.c (check_for_label_ref): Move earlier in file. Turn from
22057 being a for_each_rtx callback to being a function that examines
22058 each subrtx itself.
22059 (cse_extended_basic_block): Update call accordingly.
22061 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22063 * cse.c (check_dependence_data): Delete.
22064 (check_dependence): Change from being a for_each_rtx callback to being
22065 a function that examines all subrtxes itself. Don't handle null rtxes.
22066 (invalidate): Update call accordingly.
22068 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22070 * cse.c: Include rtl-iter.h.
22071 (approx_reg_cost_1): Delete.
22072 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22073 Don't handle null rtxes.
22075 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22077 * cfgcleanup.c: Include rtl-iter.h.
22078 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
22079 to being a function that examines each subrtx itself.
22080 (thread_jump): Update accordingly.
22082 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22084 * combine-stack-adj.c: Include rtl-iter.h.
22085 (record_stack_refs_data): Delete.
22086 (record_stack_refs): Turn from being a for_each_rtx callback
22087 to being a function that examines each subrtx itself.
22088 Take a pointer to the reflist. Invert sense of return value
22089 so that true means success and false means failure. Don't
22091 (combine_stack_adjustments_for_block): Update accordingly.
22093 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22095 * combine.c (record_truncated_value): Turn from being a for_each_rtx
22096 callback to a function that takes an rtx and returns a bool
22097 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
22100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22102 * combine.c: Include rtl-iter.h.
22103 (unmentioned_reg_p_1): Delete.
22104 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22105 Don't handle null rtxes.
22107 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22109 * calls.c: Include rtl-iter.h.
22110 (internal_arg_pointer_based_exp_1): Delete.
22111 (internal_arg_pointer_based_exp): Take a const_rtx.
22112 Use FOR_EACH_SUBRTX to iterate over subrtxes.
22114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22116 * caller-save.c: Include rtl-iter.h.
22117 (add_used_regs_1): Delete.
22118 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
22119 to iterate over subrtxes. Assert that any remaining pseudos
22122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22124 * bt-load.c: Include rtl-iter.h.
22125 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
22126 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
22127 to iterate over subrtxes.
22128 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
22129 find_btr_use rather than btr_referenced_p.
22131 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22133 * alias.c: Include rtl-iter.h.
22134 (refs_newer_value_cb): Delete.
22135 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22139 * rtl-iter.h: New file.
22140 * rtlanal.c: Include it.
22141 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
22142 (generic_subrtx_iterator <T>::add_single_to_queue)
22143 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
22144 (generic_subrtx_iterator <T>::free_array): New functions.
22145 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22146 (generic_subrtx_iterator <const_rtx_accessor>)
22147 (generic_subrtx_iterator <rtx_var_accessor>
22148 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22149 (setup_reg_subrtx_bounds): New function.
22150 (init_rtlanal): Call it.
22152 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22155 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22157 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22159 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22161 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22163 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22165 * rtl.h (JUMP_LABEL_AS_INSN): New.
22167 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22169 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22171 (alloc_EXPR_LIST): Strengthen return type from rtx to
22173 (remove_free_EXPR_LIST_node): Likewise for param.
22174 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22175 from rtx to rtx_expr_list *.
22176 * sched-int.h (struct deps_desc): Strengthen fields
22177 "pending_read_mems" and "pending_write_mems" from rtx to
22180 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22181 rtx to rtx_expr_list *.
22182 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22183 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22185 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22186 from rtx to rtx_expr_list *.
22187 * loop-iv.c (simplify_using_initial_values): Strengthen local
22188 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22189 "pnote_next" from rtx * to rtx_expr_list **.
22190 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22191 param "exprp" from rtx * to rtx_expr_list **.
22192 (add_insn_mem_dependence): Strengthen local "mem_list" from
22193 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22194 to rtx_expr_list *.
22195 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22196 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22197 param "old_mems_p" from rtx * to rtx_expr_list **.
22198 * var-tracking.c (struct adjust_mem_data): Strengthen field
22199 "side_effects" from rtx to rtx_expr_list *.
22200 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22202 (prepare_call_arguments): Likewise.
22204 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22206 * function.h (struct rtl_data): Strengthen field
22207 "x_stack_slot_list" from rtx to rtx_expr_list *.
22209 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22210 when assigning to stack_slot_list.
22212 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22214 * function.h (struct rtl_data): Strengthen field
22215 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22216 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22217 rtx * to rtx_expr_list **.
22219 * cfgbuild.c (make_edges): In loop over
22220 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22221 rtx_expr_list *, and use methods of the latter class to clarify
22223 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22224 rtx_expr_list *, and use methods of the latter class to clarify
22226 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22227 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22228 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22229 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22230 to rtx_expr_list *. Use methods of the latter class to clarify
22233 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22235 * function.h (struct expr_status): Strengthen field
22236 "x_forced_labels" from rtx to rtx_expr_list *.
22238 * cfgbuild.c (make_edges): Split local "x" into two locals,
22239 strengthening one from rtx to rtx_expr_list *, and using methods
22241 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22242 loop over forced_labels, introduce strengthen it from rtx to
22243 rtx_expr_list *, using methods to clarify the code.
22244 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22245 to rtx_expr_list *, using methods of said class to clarify the
22247 * reload1.c (set_initial_label_offsets): Split local "x" into two
22248 per-loop variables, strengthening the first from rtx to
22249 rtx_expr_list * and using methods.
22251 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22253 * coretypes.h (class rtx_expr_list): Add forward declaration.
22254 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22255 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22256 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22257 invariant: GET_CODE (X) == EXPR_LIST.
22258 (is_a_helper <rtx_expr_list *>::test): New.
22259 (rtx_expr_list::next): New.
22260 (rtx_expr_list::element): New.
22261 (gen_rtx_EXPR_LIST): New.
22263 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22265 * varasm.c (mark_constants): Convert a GET_CODE check into a
22266 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22267 Use methods of rtx_sequence to clarify the code.
22269 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22271 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22272 local "seq" via a checked cast, and use methods of rtx_sequence
22273 to simplify the code.
22275 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22277 * resource.c (mark_referenced_resources): Strengthen local
22278 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22279 using methods of rtx_sequence to clarify the code.
22280 (find_dead_or_set_registers): Within the switch statement, convert
22281 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22282 the JUMP_P handling, introduce another local "seq", adding a
22283 checked cast to rtx_sequence *. In both cases, use methods of
22284 rtx_sequence to clarify the code.
22285 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22286 via a checked cast, and use methods of rtx_sequence to simplify
22289 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22291 * reorg.c (redundant_insn): In two places in the function, replace
22292 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22293 usings methods of rtx_sequence to clarify the code.
22295 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22297 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22298 local "seq" with a checked cast, and use methods of rtx_sequence
22299 to clarify the code.
22301 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22303 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22304 with a checked cast, in the region for where we know it's a
22305 SEQUENCE. Use methods of rtx_sequence.
22307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22309 * final.c (get_attr_length_1): Replace GET_CODE check with a
22310 dyn_cast, introducing local "seq" and the use of methods of
22312 (shorten_branches): Likewise, introducing local "body_seq".
22313 Strengthen local "inner_insn" from rtx to rtx_insn *.
22314 (reemit_insn_block_notes): Replace GET_CODE check with a
22315 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22316 Use methods of rtx_sequence.
22317 (final_scan_insn): Likewise, introducing local "seq" for when
22318 "body" is known to be a SEQUENCE, using its methods.
22320 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22322 * except.c (can_throw_external): Strengthen local "seq" from rtx
22323 to rtx_sequence *. Use methods of rtx_sequence.
22324 (insn_nothrow_p): Likewise.
22326 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22328 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22329 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22330 Use methods of rtx_sequence.
22331 (scan_trace): Likewise for local "pat".
22333 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22335 * coretypes.h (class rtx_sequence): Add forward declaration.
22336 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22337 invariant: GET_CODE (X) == SEQUENCE.
22338 (is_a_helper <rtx_sequence *>::test): New.
22339 (is_a_helper <const rtx_sequence *>::test): New.
22340 (rtx_sequence::len): New.
22341 (rtx_sequence::element): New.
22342 (rtx_sequence::insn): New.
22344 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22346 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22348 (alloc_INSN_LIST): Strengthen return type from rtx to
22350 (copy_INSN_LIST): Likewise for return type and param.
22351 (concat_INSN_LIST): Likewise for both params and return type.
22352 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22353 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22354 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22355 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22357 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22358 "implicit_sets", "control_uses", "clobbers" from rtx to
22360 (struct deps_desc): Likewise for fields "pending_read_insns",
22361 "pending_write_insns", "pending_jump_insns",
22362 "last_pending_memory_flush", "last_function_call",
22363 "last_function_call_may_noreturn", "sched_before_next_call",
22364 "sched_before_next_jump".
22365 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22366 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22368 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22369 from rtx to rtx_insn_list *.
22370 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22373 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22374 to rtx_insn_list **.
22375 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22377 (queue_insn): Likewise for local "link".
22378 (struct haifa_saved_data): Strengthen field "insn_queue" from
22379 rtx * to rtx_insn_list **.
22380 (save_backtrack_point): Update allocation of save->insn_queue to
22381 reflect the strengthening of elements from rtx to rtx_insn_list *.
22382 (queue_to_ready): Strengthen local "link" from rtx to
22383 rtx_insn_list *; use methods "next" and "insn" when traversing the
22385 (early_queue_to_ready): Likewise for locals "link", "next_link",
22387 (schedule_block): Update allocation of insn_queue to reflect the
22388 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22389 local "link" from rtx to rtx_insn_list *, and use methods when
22391 (add_to_speculative_block): Strengthen locals "twins" and
22392 "next_node" from rtx to rtx_insn_list *, and use methods when
22393 working with them. Strengthen local "twin" from rtx to
22394 rtx_insn *, eliminating a checked cast.
22395 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22396 from rtx to rtx_insn_list *, and use methods when working with
22399 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22400 from rtx to rtx_insn_list *, adding a checked cast.
22401 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22403 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22404 "newlink" from rtx to rtx_insn_list *. Strengthen local
22405 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22406 from rtx to rtx_insn *.
22407 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22408 from rtx to rtx_insn_list *. Use methods of the latter class.
22409 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22410 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22411 (remove_free_INSN_LIST_node): Strengthen return type and local
22412 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22413 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22414 rtx_insn_list *, using "insn" method.
22416 * sched-deps.c (add_dependence_list): Strengthen param "list"
22417 from rtx to rtx_insn_list *, and use methods when working with it.
22418 (add_dependence_list_and_free): Strengthen param "listp" from
22419 rtx * to rtx_insn_list **.
22420 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22421 to rtx_insn_list **, and use methods when working with *listp.
22422 (remove_from_both_dependence_lists): Strengthen param "listp" from
22423 rtx * to rtx_insn_list **
22424 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22425 to rtx_insn_list **. Eliminate local "link", in favor of two new
22426 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22428 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22429 by introducing local "cond_deps".
22430 (remove_from_deps): Strengthen param "insn" from rtx to
22433 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22434 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22435 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22436 Use methods of rtx_insn_list.
22438 * store-motion.c (struct st_expr): Strengthen fields
22439 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22440 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22442 (find_moveable_store): Split out "tmp" into multiple more-tightly
22443 scoped locals. Use methods of rtx_insn_list *.
22444 (compute_store_table): Strengthen local "tmp" from rtx to
22445 rtx_insn *. Use methods of rtx_insn_list *.
22447 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22449 * coretypes.h (class rtx_insn_list): Add forward declaration.
22450 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22451 (is_a_helper <rtx_insn_list *>::test): New.
22452 (rtx_insn_list::next): New.
22453 (rtx_insn_list::insn): New.
22454 (gen_rtx_INSN_LIST): Add prototype.
22455 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22456 * gengenrtl.c (special_rtx): Add INSN_LIST.
22458 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22460 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22461 "prev" from rtx to rtx_insn *.
22463 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22465 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22466 functions. Require merely an rtx for now, not an rtx_insn *.
22467 (BLOCK_FOR_INSN): Likewise.
22468 (INSN_LOCATION): Likewise.
22469 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22471 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22473 * rtl.h (PATTERN): Convert this macro into a pair of inline
22474 functions, for now, requiring const_rtx and rtx.
22476 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22478 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22480 (final_postscan_insn): Likewise.
22481 (adjust_cost): Likewise.
22482 (adjust_priority): Likewise.
22483 (variable_issue): Likewise.
22484 (macro_fusion_pair_p): Likewise.
22485 (dfa_post_cycle_insn): Likewise.
22486 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22487 (first_cycle_multipass_issue): Likewise.
22488 (dfa_new_cycle): Likewise.
22489 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22490 (speculate_insn): Likewise for param "insn".
22491 (gen_spec_check): Likewise for params "insn" and "label".
22492 (get_insn_spec_ds): Likewise for param "insn".
22493 (get_insn_checked_ds): Likewise.
22494 (dispatch_do): Likewise.
22495 (dispatch): Likewise.
22496 (cannot_copy_insn_p): Likewise.
22497 (invalid_within_doloop): Likewise.
22498 (legitimate_combined_insn): Likewise.
22499 (needed): Likewise.
22502 * doc/tm.texi: Automatically updated to reflect changes to
22505 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22507 (schedule_block): Likewise.
22508 (sched_init): Likewise.
22509 (sched_speculate_insn): Strengthen param "insn" from rtx to
22511 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22513 * hooks.c (hook_bool_rtx_true): Rename to...
22514 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22516 (hook_constcharptr_const_rtx_null): Rename to...
22517 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22518 first param from const_rtx to const rtx_insn *.
22519 (hook_bool_rtx_int_false): Rename to...
22520 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22521 param from rtx to rtx_insn *.
22522 (hook_void_rtx_int): Rename to...
22523 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22526 * hooks.h (hook_bool_rtx_true): Rename to...
22527 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22529 (hook_bool_rtx_int_false): Rename to...
22530 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22531 param from rtx to rtx_insn *.
22532 (hook_void_rtx_int): Rename to...
22533 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22535 (hook_constcharptr_const_rtx_null): Rename to...
22536 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22537 first param from const_rtx to const rtx_insn *.
22539 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22540 and local "prev" from rtx to rtx_insn *.
22542 * sched-int.h (sched_speculate_insn): Strengthen first param from
22545 * sel-sched.c (create_speculation_check): Likewise for local "label".
22546 * targhooks.c (default_invalid_within_doloop): Strengthen param
22547 "insn" from const_rtx to const rtx_insn *.
22548 * targhooks.h (default_invalid_within_doloop): Strengthen param
22549 from const_rtx to const rtx_insn *.
22551 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22552 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22554 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22556 (arc_invalid_within_doloop): Likewise, with const.
22558 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22559 (arm_cannot_copy_insn_p): Likewise for param "insn".
22560 (arm_unwind_emit): Likewise.
22562 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22565 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22566 (c6x_variable_issue): Likewise. Removed now-redundant checked
22568 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22570 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22571 Likewise for param "insn".
22572 (epiphany_mode_after): Likewise.
22573 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22574 params "insn", "dep_insn".
22575 (epiphany_mode_needed): Likewise for param "insn".
22576 (epiphany_mode_after): Likewise.
22578 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22579 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22580 (ix86_avx_u128_mode_needed): Likewise.
22581 (ix86_i387_mode_needed): Likewise.
22582 (ix86_mode_needed): Likewise.
22583 (ix86_avx_u128_mode_after): Likewise.
22584 (ix86_mode_after): Likewise.
22585 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22586 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22587 (ix86_adjust_priority): Likewise for param "insn".
22588 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22589 (do_dispatch): Likewise.
22590 (has_dispatch): Likewise.
22591 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22593 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22594 reflect renaming of default hook implementation from
22595 hook_constcharptr_const_rtx_null to
22596 hook_constcharptr_const_rtx_insn_null.
22597 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22599 (ia64_variable_issue): Likewise for param "insn".
22600 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22601 (ia64_dfa_new_cycle): Likewise.
22602 (ia64_get_insn_spec_ds): Likewise.
22603 (ia64_get_insn_checked_ds): Likewise.
22604 (ia64_speculate_insn): Likewise.
22605 (ia64_gen_spec_check): Likewise for params "insn", "label".
22606 (ia64_asm_unwind_emit): Likewise for param "insn".
22608 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22610 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22611 "insn", "def_insn".
22612 (m68k_sched_variable_issue): Likewise for param "insn".
22614 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22617 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22618 Likewise for params "insn", "dep".
22620 * config/mips/mips.c (mips_adjust_cost): Likewise.
22621 (mips_variable_issue): Likewise for param "insn".
22622 (mips_final_postscan_insn): Likewise.
22624 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22625 for params "insn", "dep".
22627 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22629 (pa_adjust_priority): Likewise for param "insn".
22631 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22632 Likewise for params "insn", "dep_insn".
22634 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22636 (rs6000_variable_issue): Likewise.
22637 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22638 (rs6000_debug_adjust_cost): Likewise.
22639 (rs6000_adjust_priority): Likewise for param "insn".
22640 (rs6000_use_sched_lookahead_guard): Likewise.
22641 (get_next_active_insn): Likewise for return type and both params.
22642 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22643 and locals "insn", "next_insn".
22644 (pad_groups): Likewise.
22646 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22648 (s390_cannot_copy_insn_p): Likewise.
22649 (s390_sched_variable_issue): Likewise for third param, eliminating
22651 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22652 default hook implementation from hook_constcharptr_const_rtx_null
22653 to hook_constcharptr_const_rtx_insn_null.
22655 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22656 from rtx to rtx_insn *.
22657 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22658 (sh_variable_issue): Likewise for param "insn".
22659 (sh_dfa_new_cycle): Likewise.
22660 (sh_mode_needed): Likewise.
22661 (sh_mode_after): Likewise.
22663 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22664 params "insn", "dep_insn".
22665 (hypersparc_adjust_cost): Likewise.
22666 (sparc_adjust_cost): Likewise.
22668 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22669 param, eliminated checked cast.
22670 (spu_sched_adjust_cost): Likewise for first and third params.
22672 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22673 params "insn" and "dep_insn" from rtx to rtx_insn *.
22675 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22677 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22679 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22680 (set_is_load_p): ...this, updating to work on a SET pattern rather
22682 (is_store_insn): Rename to...
22683 (set_is_store_p): ...this, updating to work on a SET pattern
22684 rather than an insn.
22685 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22686 top of function to where it is needed. Rewrite the bogus
22687 condition that checks for "insn" and "dep" being PARALLEL to
22688 instead use single_set, introducing locals "insn_set" and
22689 "dep_set". Given that we only ever returned "cost" for a non-pair
22690 of SETs, bail out early if we don't have a pair of SET.
22691 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22692 use the new locals "insn_set" and "dep_set", and update calls to
22693 is_load_insn and is_store_insn to be calls to set_is_load_p and
22696 2014-08-27 Guozhi Wei <carrot@google.com>
22699 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22700 amount before using it.
22702 2014-08-27 Richard Biener <rguenther@suse.de>
22704 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22705 get_maxval_strlen inside a more useful API.
22706 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22707 (gimple_fold_builtin): ... caller.
22708 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22709 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22710 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22711 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22712 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22713 gimple_fold_builtin_sprintf): Adjust to compute maxval
22716 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22719 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22721 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22722 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22723 Anna Tikhonova <anna.tikhonova@intel.com>
22724 Ilya Tocar <ilya.tocar@intel.com>
22725 Andrey Turetskiy <andrey.turetskiy@intel.com>
22726 Ilya Verbin <ilya.verbin@intel.com>
22727 Kirill Yukhin <kirill.yukhin@intel.com>
22728 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22730 * config/i386/sse.md
22731 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22732 Use `concat_tg_mode' attribute to determine asm register size.
22734 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22736 Anna Tikhonova <anna.tikhonova@intel.com>
22737 Ilya Tocar <ilya.tocar@intel.com>
22738 Andrey Turetskiy <andrey.turetskiy@intel.com>
22739 Ilya Verbin <ilya.verbin@intel.com>
22740 Kirill Yukhin <kirill.yukhin@intel.com>
22741 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22743 * config/i386/sse.md
22744 (define_mode_iterator VI48_AVX512VL): New.
22745 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22746 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22747 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22748 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22749 with VI1): Change mode iterator.
22750 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22751 with VI_ULOADSTORE_BW_AVX512VL): New.
22752 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22753 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22754 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22755 with VI1): Change mode iterator.
22756 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22757 with VI_ULOADSTORE_BW_AVX512VL): New.
22758 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22759 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22760 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22761 with VI1): Change mode iterator.
22762 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22763 with VI_ULOADSTORE_BW_AVX512VL): New.
22764 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22765 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22766 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22767 (define_insn "<avx512>_storedqu<mode>_mask" with
22768 VI48_AVX512VL): New.
22769 (define_insn "<avx512>_storedqu<mode>_mask" with
22770 VI12_AVX512VL): Ditto.
22772 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22774 Anna Tikhonova <anna.tikhonova@intel.com>
22775 Ilya Tocar <ilya.tocar@intel.com>
22776 Andrey Turetskiy <andrey.turetskiy@intel.com>
22777 Ilya Verbin <ilya.verbin@intel.com>
22778 Kirill Yukhin <kirill.yukhin@intel.com>
22779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22781 * config/i386/sse.md
22782 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22783 (define_mode_iterator VI48_AVX512BW): New.
22784 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22785 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22786 with VI48_AVX2_48_AVX512F): New.
22787 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22788 with VI2_AVX512VL): Ditto.
22790 2014-08-27 Richard Biener <rguenther@suse.de>
22792 PR middle-end/62239
22793 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22794 (fold_builtin_3): Do not fold strcat_chk here.
22795 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22797 (gimple_fold_builtin): Fold strcat_chk here.
22799 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22801 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22802 * dwarf2out.c (dwarf2out_decl): Make static.
22804 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22806 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22808 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22810 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22811 from rtx to rtx_insn *.
22812 (cselib_lookup_from_insn): Likewise for final param.
22813 (cselib_subst_to_values_from_insn): Likewise.
22814 (cselib_add_permanent_equiv): Likewise.
22816 * cselib.c (cselib_current_insn): Likewise for this variable.
22817 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22818 (cselib_lookup_from_insn): Likewise.
22819 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22820 "save_cselib_current_insn".
22821 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22823 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22824 from rtx to rtx_insn *.
22826 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22828 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22831 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22833 * df.h (df_dump_insn_problem_function): Strengthen first param of
22834 this callback from const_rtx to const rtx_insn *.
22835 (struct df_insn_info): Strengthen field "insn" from rtx to
22837 (DF_REF_INSN): Eliminate this function, reinstating the older
22839 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22840 (df_reg_defined): Likewise.
22841 (df_find_use): Likewise.
22842 (df_reg_used): Likewise.
22843 (df_dump_insn_top): Strengthen param 1 from const_rtx to
22845 (df_dump_insn_bottom): Likewise.
22846 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
22847 (df_insn_debug_regno): Likewise.
22848 (debug_df_insn): Likewise.
22849 (df_rd_simulate_one_insn): Likewise for param 2.
22850 (df_word_lr_simulate_defs): Likewise for param 1.
22851 (df_word_lr_simulate_uses): Likewise.
22852 (df_md_simulate_one_insn): Likewise for param 2.
22853 (df_simulate_find_noclobber_defs): Likewise for param 1.
22854 (df_simulate_find_defs): Likewise.
22855 (df_simulate_defs): Likewise.
22856 (df_simulate_uses): Likewise.
22857 (df_simulate_one_insn_backwards): Likewise for param 2.
22858 (df_simulate_one_insn_forwards): Likewise.
22859 (df_uses_create): Likewise for param 2.
22860 (df_insn_create_insn_record): Likewise for param 1.
22861 (df_insn_delete): Likewise.
22862 (df_insn_rescan): Likewise.
22863 (df_insn_rescan_debug_internal): Likewise.
22864 (df_insn_change_bb): Likewise.
22865 (df_notes_rescan): Likewise.
22866 * rtl.h (remove_death): Likewise for param 2.
22867 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
22869 * sched-int.h (reemit_notes): Strengthen param from rtx to
22871 * valtrack.h (propagate_for_debug): Likewise for param 1.
22873 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
22874 local "tmp_rtx" from const_rtx to const rtx_insn *.
22875 * combine.c (remove_death): Strengthen param "insn" from rtx to
22877 (move_deaths): Likewise for local "where_dead".
22878 * cse.c (delete_trivially_dead_insns): Introduce local
22879 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
22880 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
22882 (df_reg_defined): Likewise.
22883 (df_find_use): Likewise.
22884 (df_reg_used): Likewise.
22885 (df_dump_insn_problem_data): Strengthen param "insn" from
22886 const_rtx to const rtx_insn *.
22887 (df_dump_insn_top): Likewise.
22888 (df_dump_insn_bottom): Likewise.
22889 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
22890 (df_insn_debug_regno): Likewise.
22891 (debug_df_insn): Likewise.
22892 (DF_REF_INSN): Delete.
22893 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
22894 from rtx to rtx_insn *.
22895 (df_chain_insn_top_dump): Strengthen param "insn" from
22896 const_rtx to const rtx_insn *.
22897 (df_chain_insn_bottom_dump): Likewise.
22898 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
22900 (df_word_lr_simulate_uses): Likewise.
22901 (df_print_note): Likewise.
22902 (df_remove_dead_and_unused_notes): Likewise.
22903 (df_set_unused_notes_for_mw): Likewise.
22904 (df_set_dead_notes_for_mw): Likewise.
22905 (df_create_unused_note): Likewise.
22906 (df_simulate_find_defs): Likewise.
22907 (df_simulate_find_uses): Likewise.
22908 (df_simulate_find_noclobber_defs): Likewise.
22909 (df_simulate_defs): Likewise.
22910 (df_simulate_uses): Likewise.
22911 (df_simulate_one_insn_backwards): Likewise.
22912 (df_simulate_one_insn_forwards): Likewise.
22913 (df_md_simulate_one_insn): Likewise.
22914 * df-scan.c (df_uses_create): Likewise.
22915 (df_insn_create_insn_record): Likewise.
22916 (df_insn_delete): Likewise.
22917 (df_insn_rescan): Likewise.
22918 (df_insn_rescan_debug_internal): Likewise.
22919 (df_insn_change_bb): Likewise.
22920 (df_notes_rescan): Likewise.
22921 (df_refs_add_to_chains): Likewise.
22922 (df_insn_refs_verify): Likewise.
22923 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
22924 when invoking df_insn_delete.
22925 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
22926 (set_unique_reg_note): Add checked cast.
22927 * final.c (cleanup_subreg_operands): Likewise.
22928 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
22929 "insn" from rtx to rtx_insn *.
22930 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
22931 "last" from rtx to rtx_insn *.
22932 * ira-emit.c (change_regs_in_insn): New function.
22933 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
22934 Invoke change_regs_in_insn rather than change_regs.
22935 * ira.c (update_equiv_regs): Strengthen locals "insn",
22936 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
22937 for_each_rtx_in_insn rather than for_each_rtx.
22938 * recog.c (confirm_change_group): Add checked casts.
22939 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
22941 (peep2_fill_buffer): Add checked cast.
22942 * rtlanal.c (remove_note): Likewise.
22943 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
22944 locals "next" "end" from rtx to rtx_insn *.
22946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22948 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
22950 (struct reg_use_data): Likewise for field "insn".
22951 (insn_cost): Likewise for param.
22952 (real_insn_for_shadow): Likewise for return type and param.
22953 (increase_insn_priority): Likewise for param 1.
22954 (debug_dependencies): Likewise for both params.
22956 * haifa-sched.c (insn_delay): Likewise for param "insn".
22957 (real_insn_for_shadow): Likewise for return type and param "insn".
22958 (update_insn_after_change): Likewise for param "insn".
22959 (recompute_todo_spec): Likewise for param "next" and locals "pro",
22961 (insn_cost): Likewise for param "insn".
22962 (increase_insn_priority): Likewise.
22963 (calculate_reg_deaths): Likewise.
22964 (setup_insn_reg_pressure_info): Likewise.
22965 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
22966 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
22967 (model_recompute): Likewise.
22968 (must_restore_pattern_p): Likewise for param "next".
22969 (model_excess_cost): Likewise for param "insn".
22970 (queue_remove): Likewise.
22971 (adjust_priority): Likewise for param "prev".
22972 (update_register_pressure): Likewise for param "insn".
22973 (setup_insn_max_reg_pressure): Likewise for local "insn".
22974 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
22975 (model_add_to_schedule): Likewise.
22976 (model_reset_queue_indices): Likewise for local "insn".
22977 (unschedule_insns_until): Strengthen local "recompute_vec" from
22978 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
22979 "con" from rtx to rtx_insn *.
22980 (restore_last_backtrack_point): Likewise for both locals "x". Add
22982 (estimate_insn_tick): Likewise for param "insn".
22983 (commit_schedule): Likewise for params "prev_head", "tail" and
22985 (verify_shadows): Likewise for locals "i1", "i2".
22986 (dump_insn_stream): Likewise for params "head", "tail" and locals
22987 "next_tail", "insn".
22988 (schedule_block): Likewise for locals "insn", "x". Add a checked
22990 (fix_inter_tick): Likewise for params "head", "tail".
22991 (create_check_block_twin): Likewise for local "jump".
22992 (haifa_change_pattern): Likewise for param "insn".
22993 (haifa_speculate_insn): Likewise.
22994 (dump_new_block_header): Likewise for params "head", "tail".
22995 (fix_jump_move): Likewise for param "jump".
22996 (move_block_after_check): Likewise.
22997 (sched_init_insn_luid): Likewise for param "insn".
22998 (sched_init_luids): Likewise for local "insn".
22999 (insn_luid): Likewise for param "insn".
23000 (init_h_i_d): Likewise.
23001 (haifa_init_h_i_d): Likewise for local "insn".
23002 (haifa_init_insn): Likewise for param "insn".
23003 * sched-deps.c (add_dependence): Likewise for local "real_pro",
23005 (create_insn_reg_use): Likewise for param "insn".
23006 (setup_insn_reg_uses): Likewise. Add a checked cast.
23007 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
23008 "tail" from rtx to rtx_insn *.
23009 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
23010 "insn", "next_tail".
23012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23014 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
23015 from rtx to rtx_insn *.
23016 (model_add_to_schedule): Likewise for locals "start", "end",
23019 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23021 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
23023 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
23024 "to" and locals "insn", "next", "copy". Remove now-redundant
23027 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23029 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
23030 rtx_insn * and param 4 from rtx * to rtx_insn **.
23031 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
23032 param 2 from rtx * to rtx_insn **.
23034 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
23035 rtx_insn * and final param from rtx * to rtx_insn **.
23037 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
23038 from rtx to rtx_insn *.
23039 (try_head_merge_bb): Likewise for both locals named "move_upto".
23040 * df-problems.c (can_move_insns_across): Likewise for params
23041 "from", "to", "across_from", "across_to" and locals "insn",
23042 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
23044 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
23045 from rtx to rtx_insn *.
23046 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
23047 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23048 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
23050 (noce_try_abs): Likewise.
23051 (noce_get_condition): Likewise for param "jump". Strengthen param
23052 "earliest" from rtx * to rtx_insn **.
23053 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
23055 (find_cond_trap): Likewise.
23056 (dead_or_predicable): Likewise for local "earliest".
23057 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
23059 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
23060 and local "prev". Strengthen param "earliest" from rtx * to
23062 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
23063 Strengthen param "earliest" from rtx * to rtx_insn **.
23065 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23067 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
23068 "to" and local "insn" from rtx to rtx_insn *.
23070 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23072 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
23073 from rtx to rtx_insn *.
23074 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
23075 (code_motion_path_driver): Likewise for local "last_insn".
23076 (simplify_changed_insns): Likewise for local "insn".
23078 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23080 * rtl.h (push_to_sequence): Strengthen param from rtx to
23082 (push_to_sequence2): Likewise for both params.
23083 (delete_insns_since): Likewise for param.
23084 (reorder_insns_nobb): Likewise for all three params.
23085 (set_new_first_and_last_insn): Likewise for both params.
23087 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
23088 rtx_insn *. Remove now-redundant cast.
23089 (set_last_insn): Likewise.
23091 * builtins.c (expand_builtin_return): Strengthen local
23092 "call_fusage" from rtx to rtx_insn *.
23093 * cfgrtl.c (create_basic_block_structure): Likewise for local
23095 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
23096 "first", "last" and local "insn".
23097 (delete_insns_since): Likewise for param "from".
23098 (reorder_insns_nobb): Likewise for params "from", "to", "after"
23100 (push_to_sequence): Likewise for param "first" and local "last".
23101 (push_to_sequence2): Likewise for params "first" and "last".
23102 * lra.c (emit_add3_insn): Likewise for local "last".
23103 (lra_emit_add): Likewise.
23104 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
23106 (process_address_1): Likewise for locals "insn", last".
23107 * modulo-sched.c (ps_first_note): Likewise for return type.
23108 * optabs.c (expand_binop_directly): Likewise for param "last".
23110 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23112 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
23114 * emit-rtl.c (get_last_insn_anywhere): Likewise.
23116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23118 * function.h (struct sequence_stack): Strengthen fields "first"
23119 and "last" from rtx to rtx_insn *.
23120 (struct emit_status): Likewise for fields "x_first_insn" and
23123 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
23124 (set_first_insn): Add checked cast.
23125 (get_last_insn): Remove now-redundant checked cast.
23126 (set_last_insn): Add checked cast.
23128 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
23129 "saved_first" and "saved_last" from rtx to rtx_insn *.
23131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23133 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
23134 (unlink_insn_chain): Strengthen both params from rtx to
23137 * cfgrtl.c (cfg_layout_function_header): Likewise for this
23139 (unlink_insn_chain): Likewise for params "first" and "last".
23140 Remove now-redundant checked cast.
23141 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
23142 (fixup_reorder_chain): Strengthen local "insn" from rtx to
23144 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23146 (add_insn): Likewise for param "insn" and local "prev".
23147 (add_insn_after_nobb): Likewise for both params and local "next".
23148 (add_insn_before_nobb): Likewise for both params and local "prev".
23149 (add_insn_after): Rename param "after" to "uncast_after",
23150 introducing local "after" with another checked cast.
23151 (add_insn_before): Rename params "insn" and "before", giving them
23152 "uncast_" prefixes, adding the old names back using checked casts.
23153 (emit_note_after): Likewise for param "after".
23154 (emit_note_before): Likewise for param "before".
23155 (emit_label): Add a checked cast.
23157 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23159 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23160 "insn" from rtx to rtx_insn *.
23162 * cselib.c (cselib_record_sets_hook): Likewise.
23164 * var-tracking.c (add_with_sets): Likewise, renaming back from
23165 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23170 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23171 and "header_" from rtx to rtx_insn *.
23172 (struct basic_block_d): Likewise for field "head_" within "x"
23173 field of union basic_block_il_dependent.
23174 (BB_HEAD): Drop function...
23175 (SET_BB_HEAD): ...and this function in favor of...
23176 (BB_HEAD): ...reinstate macro.
23177 (BB_END): Drop function...
23178 (SET_BB_END): ...and this function in favor of...
23179 (BB_END): ...reinstate macro.
23180 (BB_HEADER): Drop function...
23181 (SET_BB_HEADER): ...and this function in favor of...
23182 (BB_HEADER): ...reinstate macro.
23184 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23185 (fix_crossing_unconditional_branches): Likewise.
23186 * caller-save.c (save_call_clobbered_regs): Likewise.
23187 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23188 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23189 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23190 (merge_blocks_move_successor_nojumps): Likewise.
23191 (outgoing_edges_match): Update use of for_each_rtx to
23192 for_each_rtx_in_insn.
23193 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23194 (expand_gimple_cond): Likewise.
23195 (expand_gimple_tailcall): Likewise.
23196 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23198 (construct_exit_block): Drop use of SET_BB_END.
23199 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23201 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23202 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23203 SET_BB_HEAD and SET_BB_END.
23204 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23206 (rtl_delete_block): Drop use of SET_BB_HEAD.
23207 (rtl_split_block): Drop use of SET_BB_END.
23208 (emit_nop_for_unique_locus_between): Likewise.
23209 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23210 (block_label): Drop use of SET_BB_HEAD.
23211 (fixup_abnormal_edges): Drop use of SET_BB_END.
23212 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23213 (relink_block_chain): Likewise.
23214 (fixup_reorder_chain): Drop use of SET_BB_END.
23215 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23216 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23217 rtx_insn **. Drop use of SET_BB_HEADER.
23218 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23220 (BB_HEAD): Delete this function.
23221 (SET_BB_HEAD): Likewise.
23222 (BB_END): Likewise.
23223 (SET_BB_END): Likewise.
23224 (BB_HEADER): Likewise.
23225 (SET_BB_HEADER): Likewise.
23226 * emit-rtl.c (add_insn_after): Rename param "insn" to
23227 "uncast_insn", adding a new local "insn" and a checked cast to
23228 rtx_insn *. Drop use of SET_BB_END.
23229 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23230 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23231 (reorder_insns): Drop use of SET_BB_END.
23232 (emit_insn_after_1): Strengthen param "first" and locals "last",
23233 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23234 (emit_pattern_after_noloc): Add checked cast.
23235 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23236 (restore_other_notes): Likewise.
23237 (move_insn): Likewise.
23238 (sched_extend_bb): Likewise.
23239 (fix_jump_move): Likewise.
23240 * ifcvt.c (noce_process_if_block): Likewise.
23241 (dead_or_predicable): Likewise.
23242 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23243 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23244 * sel-sched-ir.c (sel_move_insn): Likewise.
23245 * sel-sched.c (move_nop_to_previous_block): Likewise.
23247 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23249 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23251 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23253 * basic-block.h (create_basic_block_structure): Strengthen params
23254 1 "head" and 2 "end" from rtx to rtx_insn *.
23255 * cfgrtl.c (create_basic_block_structure): Likewise.
23256 (rtl_create_basic_block): Update casts from void * to rtx to
23257 rtx_insn *, so that we can pass them as rtx_insn * to
23258 create_basic_block_structure.
23259 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23261 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23263 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23265 (check_for_inc_dec): Strengthen param "insn" from rtx to
23268 * cselib.h (cselib_process_insn): Likewise.
23270 * cselib.c (cselib_record_sets): Likewise.
23271 (cselib_process_insn): Likewise.
23273 * dse.c (struct insn_info): Likewise for field "insn".
23274 (check_for_inc_dec_1): Likewise for local "insn".
23275 (check_for_inc_dec): Likewise for param "insn".
23276 (scan_insn): Likewise.
23277 (dse_step1): Likewise for local "insn".
23279 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23280 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23282 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23284 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23285 from rtx to rtx_insn *.
23286 (DEP_PRO): Delete this function and...
23287 (SET_DEP_PRO): ...this function in favor of...
23288 (DEP_PRO): ...reinstate this macro.
23289 (DEP_CON): Delete this function and...
23290 (SET_DEP_CON): ...this function in favor of...
23291 (DEP_CON): ...reinstate this old macro.
23292 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23293 (init_dep): Likewise.
23294 (set_priorities): Likewise for both params.
23295 (sd_copy_back_deps): Likewise for params 1 and 2.
23297 * haifa-sched.c (priority): Likewise for param "insn" and local
23299 (set_priorities): Likewise for params "head" and "tail" and local
23301 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23303 (add_to_speculative_block): Add a checked cast.
23304 (create_check_block_twin): Drop use of SET_DEP_CON.
23305 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23308 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23309 Drop use of SET_DEP_PRO
23310 (init_dep): Strengthen params "pro" and "con" from rtx to
23312 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23313 use of SET_DEP_CON.
23316 (SET_DEP_PRO): Delete.
23317 (SET_DEP_CON): Delete.
23319 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23321 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23322 from rtx to rtx_insn *.
23323 (VINSN_INSN_RTX): Eliminate rvalue function and...
23324 (SET_VINSN_INSN): ...lvalue function in favor of...
23325 (VINSN_INSN_RTX): reinstate this old macro.
23327 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23328 in favor of VINSN_INSN_RTX.
23329 (VINSN_INSN_RTX): Delete this function.
23330 (SET_VINSN_INSN_RTX): Likewise.
23332 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23334 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23335 (BND_TO): Delete this function and...
23336 (SET_BND_TO): ...this functions in favor of...
23337 (BND_TO): ...reinstating this macro.
23338 (struct _fence): Strengthen field "executing_insns" from
23339 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23340 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23341 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23342 and param "insn" from rtx to insn_t.
23343 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23346 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23348 (rtx_vec_t): Likewise.
23349 (struct sched_deps_info_def): Strengthen param of "start_insn"
23350 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23351 "note_mem_dep" callback and first param of "note_dep" callback.
23353 * haifa-sched.c (add_to_speculative_block): Strengthen param
23354 "insn" from rtx to rtx_insn *.
23355 (clear_priorities): Likewise.
23356 (calc_priorities): Likewise for local "insn".
23358 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23359 Remove redundant checked cast.
23360 (haifa_note_mem_dep): Likewise for param "pending_insn".
23361 (haifa_note_dep): Likewise for param "elem".
23362 (note_mem_dep): Likewise for param "e".
23363 (sched_analyze_1): Add checked casts.
23364 (sched_analyze_2): Likewise.
23366 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23367 from rtx to rtx_insn *.
23368 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23369 from vec<rtx> * to vec<rtx_insn *> *.
23371 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23373 (flist_add): Strengthen param "executing_insns" from
23374 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23375 (advance_deps_context): Remove now-redundant checked cast.
23376 (init_fences): Replace uses of NULL_RTX with NULL.
23377 (merge_fences): Strengthen params "last_scheduled_insn" and
23378 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23379 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23380 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23381 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23382 an instruction, rather than doing double-duty as a pattern.
23383 (return_nop_to_pool): Update for change of insn_t.
23384 (deps_init_id): Remove now-redundant checked cast.
23385 (struct sched_scan_info_def): Strengthen param of "init_insn"
23386 callback from rtx to insn_t.
23387 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23388 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23390 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23391 "end" from rtx to rtx_insn *.
23392 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23393 (rtx insn_rtx, bool force_unique_p)
23394 (BND_TO): Delete function.
23395 (SET_BND_TO): Delete function.
23397 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23399 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23400 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23402 (undo_transformations): Likewise for param "insn".
23403 (update_liveness_on_insn): Likewise.
23404 (compute_live_below_insn): Likewise for param "insn" and local
23406 (update_data_sets): Likewise for param "insn".
23407 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23408 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23409 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23411 (move_cond_jump): Likewise for param "insn".
23412 (move_cond_jump): Drop use of SET_BND_TO.
23413 (compute_av_set_on_boundaries): Likewise.
23414 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23415 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23416 from rtx to rtx_insn *.
23417 (maybe_emit_renaming_copy): Likewise for param "insn".
23418 (maybe_emit_speculative_check): Likewise.
23419 (handle_emitting_transformations): Likewise.
23420 (remove_insn_from_stream): Likewise.
23421 (code_motion_process_successors): Strengthen local "succ" from rtx
23424 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23426 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23427 ilist_t, not _xlist_t;
23428 (ILIST_INSN): Define in terms of new union field "insn".
23429 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23431 (struct _list_node): Add new field "insn" to the union, of type
23433 (ilist_add): Replace macro with an inline function, requiring an
23435 (ilist_remove): Define this macro directly in terms of
23436 _list_remove, rather than indirectly via _xlist_remove.
23437 (ilist_clear): Likewise, in terms of _list_clear rather than
23439 (ilist_is_in_p): Replace macro with an inline function, requiring
23441 (_list_iter_cond_insn): New function.
23442 (ilist_iter_remove): Define this macro directly in terms of
23443 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23444 (ilist_iterator): Define directly in terms of _list_iterator
23445 rather than indirectly through _xlist_iterator.
23446 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23447 than in terms of _FOR_EACH_X.
23448 (FOR_EACH_INSN_1): Likewise.
23450 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23454 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23455 DECL_HARD_REGISTER and return for invalid register specifications.
23456 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23457 DECL_HARD_REGISTER, call expand_one_error_var.
23458 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23459 CC_REGNUM with non-MODE_CC modes.
23460 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23462 2014-08-26 Marek Polacek <polacek@redhat.com>
23465 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23467 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23469 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23470 qi cost; add di cost.
23471 (cortexa57_addrcost_table): Likewise.
23473 2014-08-26 Marek Polacek <polacek@redhat.com>
23476 * expr.c (is_aligning_offset): Remove logical not.
23478 2014-08-26 Marek Polacek <polacek@redhat.com>
23481 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23482 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23484 2014-08-26 Richard Biener <rguenther@suse.de>
23486 PR tree-optimization/62175
23487 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23488 expand possibly trapping operations.
23490 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23492 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23493 "insn" from rtx to rtx_insn *.
23494 (permute_load): Likewise for param "insn".
23495 (permute_store): Likewise.
23496 (handle_special_swappables): Likewise for local "insn".
23497 (replace_swap_with_copy): Likewise for locals "insn" and
23499 (rs6000_analyze_swaps): Likewise for local "insn".
23501 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23503 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23508 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23509 "note_list" from rtx to rtx_insn *.
23510 (BB_NOTE_LIST): Replace this function and...
23511 (SET_BB_NOTE_LIST): ...this function with...
23512 (BB_NOTE_LIST): ...the former macro implementation.
23514 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23515 local "from_start" from rtx to rtx_insn *. Strengthen param
23516 "to_endp" from rtx * to rtx_insn **.
23518 * haifa-sched.c (concat_note_lists): Likewise.
23519 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23521 (sel_restore_notes): Likewise.
23522 (move_bb_info): Likewise.
23523 (BB_NOTE_LIST): Delete this function.
23524 (SET_BB_NOTE_LIST): Delete this function.
23525 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23526 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23530 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23531 from rtx * to rtx_insn **.
23532 (reorder2): Likewise.
23533 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23534 from rtx to rtx_insn *.
23536 * doc/tm.texi: Update mechanically for above change to target.def.
23538 * sched-int.h (note_list): Strengthen this variable from rtx to
23540 (remove_notes): Likewise for both params.
23541 (restore_other_notes): Likewise for return type and first param.
23542 (struct ready_list): Strengthen field "vec" from rtx * to
23544 (struct dep_replacement): Strenghten field "insn" from rtx to
23546 (struct deps_desc): Likewise for fields "last_debug_insn",
23548 (struct haifa_sched_info): Likewise for callback field
23549 "can_schedule_ready_p"'s param, for first param of "new_ready"
23550 callback field, for both params of "rank" callback field, for
23551 first field of "print_insn" callback field (with a const), for
23552 both params of "contributes_to_priority" callback, for param
23553 of "insn_finishes_block_p" callback, for fields "prev_head",
23554 "next_tail", "head", "tail", for first param of "add_remove_insn"
23555 callback, for first param of "begin_schedule_ready" callback, for
23556 both params of "begin_move_insn" callback, and for second param
23557 of "advance_target_bb" callback.
23558 (add_dependence): Likewise for params 1 and 2.
23559 (sched_analyze): Likewise for params 2 and 3.
23560 (deps_analyze_insn): Likewise for param 2.
23561 (ready_element): Likewise for return type.
23562 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23563 (try_ready): Strenghten param from rtx to rtx_insn *.
23564 (sched_emit_insn): Likewise for return type.
23565 (record_delay_slot_pair): Likewise for params 1 and 2.
23566 (add_delay_dependencies): Likewise for param.
23567 (contributes_to_priority): Likewise for both params.
23568 (find_modifiable_mems): Likewise.
23570 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23571 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23572 "first_older_only_insn" from rtx to rtx_insn *.
23573 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23576 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23577 "last_scheduled_iter0" from rtx to rtx_insn *.
23578 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23579 (c6x_sched_reorder_1): Strengthen param "ready" and locals
23580 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23581 "insn" from rtx to rtx_insn *.
23582 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
23584 (c6x_sched_reorder2): Strengthen param "ready" and locals
23585 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23586 "insn" from rtx to rtx_insn *.
23587 (c6x_variable_issue): Add a checked cast when assigning from insn
23588 to ss.last_scheduled_iter0.
23589 (split_delayed_branch): Strengthen param "insn" and local "i1"
23590 from rtx to rtx_insn *.
23591 (split_delayed_nonbranch): Likewise.
23592 (undo_split_delayed_nonbranch): Likewise for local "insn".
23593 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23594 "entry_after", "end_packet", "head_insn", "tail_insn",
23595 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23596 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23597 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23598 but add a checked cast on loop->start_label. Consolidate calls to
23599 avoid assigning result of gen_spkernel to "insn", now an
23602 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23603 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23605 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23606 rtx_insn **. Strengthen locals "top", "next" from rtx to
23608 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23609 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23610 (add_parameter_dependencies): Strengthen params "call", "head" and
23611 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23612 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23613 (add_dependee_for_func_arg): Likewise for param "arg" and local
23615 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23616 "tail" and locals "insn", "first_arg".
23618 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23619 for params "head", "tail" and locals "insn", "next", "next_tail".
23620 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23621 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23622 "insn", "lowest", "highest" from rtx to rtx_insn *.
23623 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23625 (ia64_sched_reorder2): Likewise.
23627 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23628 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23629 from rtx * to rtx_insn **.
23630 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23632 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23634 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23635 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23638 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23639 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23641 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23642 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23643 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23645 (vr4130_reorder): Likewise.
23646 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23648 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23650 (mips_sched_reorder): Likewise.
23651 (mips_sched_reorder2): Likewise.
23653 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23655 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23656 Strengthen local "tmp" from rtx to rtx_insn *.
23657 (rs6000_sched_reorder2): Likewise.
23659 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23660 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23661 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23662 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23664 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23665 "tmp2" from rtx to rtx_insn *.
23666 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23667 Strengthen local "insn" from rtx to rtx_insn *.
23668 (ready_reorder): Strengthen param "ready" from rtx * to
23669 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23670 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23671 (sh_reorder2): Likewise.
23673 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23674 local "insn" from rtx to rtx_insn *.
23676 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23678 (scheduled_insns): Strengthen this variable from vec<rtx> to
23680 (set_modulo_params): Likewise for locals "i1", "i2".
23681 (record_delay_slot_pair): Likewise for params "i1", "i2".
23682 (add_delay_dependencies): Likewise for param "insn".
23683 (cond_clobbered_p): Likewise.
23684 (recompute_todo_spec): Likewise for local "prev".
23685 (last_scheduled_insn): Likewise for this variable.
23686 (nonscheduled_insns_begin): Likewise.
23687 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23689 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23691 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23692 Strengthen local "insn" from rtx to rtx_insn *.
23693 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23694 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23695 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23696 (ready_remove_first): Likewise for return type and local "t".
23697 (ready_element): Likewise for return type.
23698 (ready_remove): Likewise for return type and local "t".
23699 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23700 (check_clobbered_conditions): Strengthen local "x" from rtx to
23701 rtx_insn *, adding a checked cast.
23702 (schedule_insn): Likewise for param "insn".
23703 (remove_notes): Likewise for params "head", "tail" and locals
23704 "next_tail", "insn", "next".
23705 (struct haifa_saved_data): Likewise for fields
23706 "last_scheduled_insn", "nonscheduled_insns_begin".
23707 (save_backtrack_point): Update for change to field "vec" of
23709 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23711 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23712 from rtx to rtx_insn *
23713 (resolve_dependencies): Strengthen param "insn" from rtx to
23715 (restore_other_notes): Likewise for return type, for param "head"
23716 and local "note_head".
23717 (undo_all_replacements): Likewise for local "insn".
23718 (first_nonscheduled_insn): Likewise for return type and local "insn".
23719 (queue_to_ready): Likewise for local "insn", adding checked casts.
23720 (early_queue_to_ready): Likewise for local "insn".
23721 (debug_ready_list_1): Strengthen local "p" from rtx * to
23723 (move_insn): Strengthen param "insn" and local "note" from rtx to
23725 (insn_finishes_cycle_p): Likewise for param "insn".
23726 (max_issue): Likewise for local "insn".
23727 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23729 (commit_schedule): Strengthen param "prev_head" and local "insn"
23730 from rtx to rtx_insn *
23731 (prune_ready_list): Likewise for local "insn".
23732 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23733 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23734 (set_priorities): Likewise for local "prev_head".
23735 (try_ready): Likewise for param "next".
23736 (fix_tick_ready): Likewise.
23737 (change_queue_index): Likewise.
23738 (sched_extend_ready_list): Update for change to field "vec" of
23740 (generate_recovery_code): Strengthen param "insn" from rtx to
23742 (begin_speculative_block): Likewise.
23743 (create_check_block_twin): Likewise for param "insn" and locals
23744 "label", "check", "twin". Introduce local "check_pat" to avoid
23745 "check" being used as a plain rtx before being used as an insn.
23746 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23747 extracting elements from ready_list.
23748 (sched_remove_insn): Strengthen param "insn" from rtx to
23750 (sched_emit_insn): Likewise for return type.
23751 (ready_remove_first_dispatch): Likewise for return type and local
23754 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23756 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23759 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23760 from rtx to rtx_insn *.
23761 (add_dependence_list): Likewise for param "insn". Add a checked
23763 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23764 to rtx_insn *. Strengthen param "list_p" from rtx * to
23766 (chain_to_prev_insn): Strengthen param "insn" and locals
23767 "prec_nonnote", "i" from rtx to rtx_insn *.
23768 (flush_pending_lists): Likewise for param "insn".
23769 (cur_insn): Likewise for this variable.
23770 (haifa_start_insn): Add a checked cast.
23771 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23772 (sched_analyze_reg): Likewise for param "insn".
23773 (sched_analyze_1): Likewise.
23774 (sched_analyze_2): Likewise. Add checked casts.
23775 (sched_analyze_insn): Likewise. Also for local "prev".
23776 (deps_analyze_insn): Likewise for param "insn".
23777 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23778 (add_dependence_1): Likewise for params "insn", "elem".
23779 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23780 (parse_add_or_inc): Likewise for param "insn".
23781 (find_inc): Likewise for local "inc_cand".
23782 (find_modifiable_mems): Likewise for params "head", "tail" and
23783 locals "insn", "next_tail".
23785 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23786 (begin_schedule_ready): Likewise for param "insn".
23787 (begin_move_insn): Likewise for params "insn" and "last".
23788 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23790 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23791 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23792 (ebb_add_remove_insn): Likewise for param "insn".
23793 (advance_target_bb): Likewise.
23795 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23797 (check_live): Likewise for param "insn".
23798 (init_ready_list): Likewise for local "insn".
23799 (can_schedule_ready_p): Likewise for param "insn".
23800 (begin_schedule_ready): Likewise.
23801 (new_ready): Likewise for param "next".
23802 (rgn_print_insn): Likewise for param "insn".
23803 (rgn_rank): Likewise for params "insn1", "insn2".
23804 (contributes_to_priority): Likewise for params "next", "insn".
23805 (rgn_insn_finishes_block_p): Likewise for param "insn".
23806 (add_branch_dependences): Likewise for params "head", "tail" and
23807 locals "insn", "last".
23808 (rgn_add_remove_insn): Likewise for param "insn".
23809 (advance_target_bb): Likewise.
23811 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23812 const_rtx to const rtx_insn *.
23814 * sel-sched-dump.h (sel_print_insn): Likewise.
23816 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23817 (deps_init_id): Likewise.
23819 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23820 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23825 * output.h (final_start_function): Strengthen param 1 from rtx to
23828 * final.c (final_start_function): Likewise, renaming back from
23829 "uncast_first" to "first", and dropping the checked cast from rtx
23832 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23834 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23835 * final.c (final): Likewise. Rename param back from
23836 "uncast_first" to "first" and eliminate the checked cast from rtx
23839 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23841 * output.h (shorten_branches): Strengthen param from rtx to
23844 * final.c (shorten_branches): Likewise, renaming param back from
23845 "uncast_first" to "first", and dropping the checked cast from rtx
23848 * genattr.c (gen_attr): Likewise when writing out the prototype of
23851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23853 * sched-int.h (struct haifa_sched_info): Strengthen fields
23854 "prev_head" and "next_tail" from rtx to rtx_insn *.
23856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23858 * rtl.h (rtx_jump_table_data::get_labels): New method.
23859 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
23860 with use of the new rtx_jump_table_data::get_labels method.
23861 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
23862 to rtx_jump_table_data *. Simplify by using get_labels method.
23863 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
23864 a dyn_cast, introducing local "table", using it to replace
23865 label-lookup logic with a get_labels method call.
23866 (patch_jump_insn): Simplify using get_labels method.
23867 * dwarf2cfi.c (create_trace_edges): Likewise.
23868 * rtlanal.c (label_is_jump_target_p): Likewise.
23870 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23872 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
23875 * emit-rtl.c (unshare_all_rtl_1): Likewise.
23876 (unshare_all_rtl_again): Likewise, also for local "p".
23878 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23880 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
23882 * cfgrtl.c (delete_insn_and_edges): Likewise.
23884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23886 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
23887 from rtx to rtx_insn *.
23889 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
23891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23893 * function.c (thread_prologue_and_epilogue_insns): Likewise for
23894 locals "returnjump", "epilogue_end", "insn", "next".
23896 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
23897 "returnjump" from rtx * to rtx_insn **.
23898 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
23900 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23902 * basic-block.h (struct edge_def). Strengthen "r" within
23903 union edge_def_insns from rtx to rtx_insn *.
23905 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
23906 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
23908 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
23909 from rtx to rtx_insn *.
23910 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
23912 * postreload-gcse.c (reg_killed_on_edge): Likewise.
23913 (reg_used_on_edge): Likewise.
23914 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
23915 (gt_pch_nx): New overload for rtx_insn *&.
23916 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
23917 from rtx to rtx_insn *.
23919 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23921 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
23922 from rtx to rtx_insn *.
23923 (BB_FOOTER): Replace function with access macro.
23924 (SET_BB_FOOTER): Delete.
23926 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
23928 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23929 (emit_barrier_after_bb): Likewise.
23930 (record_effective_endpoints): Likewise.
23931 (relink_block_chain): Likewise.
23932 (fixup_fallthru_exit_predecessor): Likewise.
23933 (cfg_layout_duplicate_bb): Likewise.
23934 (cfg_layout_split_block): Likewise.
23935 (cfg_layout_delete_block): Likewise.
23936 (cfg_layout_merge_blocks): Likewise.
23937 (BB_FOOTER): Delete function.
23938 (SET_BB_FOOTER): Delete function.
23939 * combine.c (update_cfg_for_uncondjump): Replace uses of
23940 SET_BB_FOOTER with BB_FOOTER.
23942 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23944 * except.h (struct eh_landing_pad_d): Strengthen field
23945 "landing_pad" from rtx to rtx_code_label *.
23947 * except.c (sjlj_emit_dispatch_table): Likewise for param
23949 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
23951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23953 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
23954 first param from rtx to rtx_insn *.
23955 * config/xtensa/xtensa.c (struct machine_function): Likewise for
23956 field "set_frame_ptr_insn".
23957 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
23958 "csend" from rtx to rtx_code_label *.
23959 (xtensa_expand_atomic): Likewise for local "csloop".
23960 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
23962 (xtensa_call_tls_desc): Likewise for return type and locals
23963 "call_insn", "insns".
23964 (xtensa_legitimize_tls_address): Likewise for local "insns".
23965 (xtensa_expand_prologue): Likewise for locals "insn", "first".
23967 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23969 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
23970 first param from rtx to rtx_insn *.
23971 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
23974 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23976 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
23977 Strengthen param 1 from rtx to rtx_insn *.
23978 (tilepro_output_cbranch): Likewise.
23979 (tilepro_adjust_insn_length): Likewise.
23980 (tilepro_final_prescan_insn): Likewise for sole param.
23982 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
23983 Likewise for local "last".
23984 (cbranch_predicted_p): Likewise for param "insn".
23985 (tilepro_output_simple_cbranch_with_opcode): Likewise.
23986 (tilepro_output_cbranch_with_opcode): Likewise.
23987 (tilepro_output_cbranch): Likewise.
23988 (frame_emit_load): Likewise for return type and locals "seq",
23990 (emit_sp_adjust): Likewise for return type and local "insn".
23991 (tilepro_expand_epilogue): Likewise for locals "last_insn",
23993 (tilepro_adjust_insn_length): Likewise for param "insn".
23994 (next_insn_to_bundle): Likewise for return type and params
23996 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
23997 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
23999 (match_addli_pcrel): Likewise for param "insn".
24000 (replace_addli_pcrel): Likewise.
24001 (match_auli_pcrel): Likewise.
24002 (replace_auli_pcrel): Likewise.
24003 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
24005 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24006 "queue", "next_queue", "prev".
24007 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
24008 (tilepro_final_prescan_insn): Likewise for param "insn".
24010 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24012 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
24013 Strengthen param 1 from rtx to rtx_insn *.
24014 (tilegx_output_cbranch): Likewise.
24015 (tilegx_adjust_insn_length): Likewise.
24016 (tilegx_final_prescan_insn): Likewise for sole param.
24018 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
24020 (cbranch_predicted_p): Likewise for param "insn".
24021 (tilegx_output_simple_cbranch_with_opcode): Likewise.
24022 (tilegx_output_cbranch_with_opcode): Likewise.
24023 (tilegx_output_cbranch): Likewise.
24024 (frame_emit_load): Likewise for return type.
24025 (set_frame_related_p): Likewise for locals "seq", "insn".
24026 (emit_sp_adjust): Likewise for return type, and for local "insn".
24027 Introduce local "pat" for use in place of "insn" where the latter
24028 isn't an instruction.
24029 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
24030 from rtx to rtx_insn *.
24031 (tilegx_adjust_insn_length): Likewise for param "insn".
24032 (next_insn_to_bundle): Likewise for return type and params "r" and
24034 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
24036 (replace_insns): Likewise for params "old_insn", "new_insns".
24037 (replace_mov_pcrel_step1): Likewise for param "insn" and local
24039 (replace_mov_pcrel_step2): Likewise.
24040 (replace_mov_pcrel_step3): Likewise.
24041 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
24043 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24044 "queue", "next_queue", "prev".
24045 (tilegx_output_mi_thunk): Likewise for local "insn".
24046 (tilegx_final_prescan_insn): Likewise for param "insn".
24048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24050 * config/spu/spu.c (frame_emit_store): Strengthen return type from
24052 (frame_emit_load): Likewise.
24053 (frame_emit_add_imm): Likewise, also for local "insn".
24054 (spu_expand_prologue): Likewise for local "insn".
24055 (struct spu_bb_info): Likewise for field "prop_jump".
24056 (emit_nop_for_insn): Likewise for param "insn" and local
24058 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
24060 (spu_emit_branch_hint): Likewise for params "before", "branch" and
24061 locals "hint", "insn".
24062 (get_branch_target): Likewise for param "branch".
24063 (insn_clobbers_hbr): Likewise for param "insn".
24064 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
24065 locals "insn", "before_4", "before_16".
24066 (insert_hbrp): Likewise for local "insn".
24067 (spu_machine_dependent_reorg): Likewise for locals "branch",
24068 "insn", "next", "bbend".
24069 (uses_ls_unit): Likewise for param "insn".
24070 (get_pipe): Likewise.
24071 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
24072 introducing a checked cast.
24073 (spu_sched_adjust_cost): Likewise for params "insn" and
24075 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
24076 (spu_sms_res_mii): Likewise.
24078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24080 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
24081 from rtx to rtx_insn *.
24082 (output_cbranch): Likewise for param 6.
24083 (output_return): Likewise for param 1.
24084 (output_sibcall): Likewise.
24085 (output_v8plus_shift): Likewise.
24086 (output_v8plus_mult): Likewise.
24087 (output_v9branch): Likewise for param 7.
24088 (output_cbcond): Likewise for param 3.
24090 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
24092 (sparc_legitimize_pic_address): Likewise.
24093 (sparc_emit_call_insn): Likewise.
24094 (emit_save_or_restore_regs): Likewise.
24095 (emit_window_save): Likewise for return type and local "insn".
24096 (sparc_expand_prologue): Likewise for local "insn".
24097 (sparc_flat_expand_prologue): Likewise.
24098 (output_return): Likewise for param "insn".
24099 (output_sibcall): Likewise for param "insn" and local "delay".
24100 (output_ubranch): Likewise for param "insn".
24101 (output_cbranch): Likewise.
24102 (output_cbcond): Likewise.
24103 (output_v9branch): Likewise.
24104 (output_v8plus_shift): Likewise.
24105 (sparc_output_mi_thunk): Likewise for local "insn".
24106 (get_some_local_dynamic_name): Likewise.
24107 (output_v8plus_mult): Likewise for param "insn".
24109 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24111 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
24112 from rtx to rtx_insn *.
24113 (output_branchy_insn): Likewise for param 3.
24114 (output_far_jump): Likewise for param 1.
24115 (final_prescan_insn): Likewise.
24116 (sh_insn_length_adjustment): Likewise for sole param.
24118 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
24119 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
24121 (sh_emit_compare_and_set): Likewise for local "lab".
24122 (output_far_jump): Strengthen param "insn" and local "prev" from
24124 (output_branchy_insn): Likewise for param "insn" and local
24126 (output_ieee_ccmpeq): Likewise for param "insn".
24127 (struct label_ref_list_d): Strengthen field "label" from rtx to
24129 (pool_node): Likewise.
24130 (pool_window_label): Likewise for this global.
24131 (add_constant): Likewise for return type and locals "lab", "new_rtx".
24132 (dump_table): Strengthen params "start", "barrier" and local
24133 "scan" from rtx to rtx_insn *.
24134 (broken_move): Likewise for param "insn".
24135 (untangle_mova): Likewise for params "first_mova" and "new_mova".
24136 Strengthen param "first_mova" from rtx * to rtx_insn **.
24137 (mova_p): Likewise for param "insn".
24138 (fixup_mova): Likewise for param "mova".
24139 (find_barrier): Likewise for return type, params "mova" and
24140 "from", and locals "barrier_before_mova", "found_barrier",
24141 "good_barrier", "orig", "last_symoff", "next". Strengthen local
24142 "label" from rtx to rtx_code_label *.
24143 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24145 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24146 (split_branches): Likewise for param "first" and local "insn".
24147 (final_prescan_insn): Likewise for param "insn".
24148 (sequence_insn_p): Likewise for locals "prev", "next".
24149 (sh_insn_length_adjustment): Likewise for param "insn".
24150 (sh_can_redirect_branch): Likewise for local "insn".
24151 (find_r0_life_regions): Likewise for locals "end", "insn".
24152 (sh_output_mi_thunk): Likewise for local "insns".
24154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24156 * config/score/score.c (score_output_mi_thunk): Strengthen local
24157 "insn" from rtx to rtx_insn *.
24158 (score_prologue): Likewise.
24160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24162 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24163 1 from rtx to rtx_insn *.
24164 (s390_emit_jump): Likewise for return type.
24165 (s390_emit_call): Likewise.
24166 (s390_load_got): Likewise.
24168 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24170 (s390_match_ccmode): Likewise for param "insn".
24171 (s390_emit_jump): Likewise for return type.
24172 (s390_split_branches): Likewise for local "label".
24173 (struct constant): Strengthen field "label" from rtx to
24175 (struct constant_pool): Likewise for field "label". Strengthen
24176 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24178 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24180 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24181 (s390_end_pool): Likewise.
24182 (s390_dump_pool): Likewise for local "insn".
24183 (s390_mainpool_start): Likewise.
24184 (s390_chunkify_start): Likewise.
24185 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24186 with insns. Strengthen locals "label", "jump", "barrier", "next",
24187 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24188 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24190 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24191 "jump", "label", "next_insn".
24192 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24193 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24195 (s390_load_got): Likewise for return type and local "insns".
24196 (s390_save_gprs_to_fprs): Likewise for local "insn".
24197 (s390_restore_gprs_from_fprs): Likewise.
24198 (pass_s390_early_mach::execute): Likewise.
24199 (s390_emit_prologue): Likewise for local "insns".
24200 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24202 (s390_emit_call): Strengthen return type and local "insn" from
24204 (s390_emit_tpf_eh_return): Likewise for local "insn".
24205 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24206 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24207 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24209 (s390_non_addr_reg_read_p): Likewise for param "insn".
24210 (find_cond_jump): Likewise for return type and param "insn".
24211 (s390_swap_cmp): Likewise for param "insn".
24212 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24213 "prev_insn", "next_insn".
24214 (s390_reorg): Likewise for locals "insn", "target".
24215 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24216 (s390_sched_variable_issue): For now, rename param "insn" to
24217 "uncast_insn", introducing a checked cast.
24218 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24220 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24221 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24225 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24226 param from rtx to rtx_insn *.
24227 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24231 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24232 4 from rtx to rtx_insn *.
24233 (rs6000_final_prescan_insn): Likewise for first param.
24234 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24236 (rs6000_get_some_local_dynamic_name): Likewise.
24237 (output_cbranch): Likewise for param "insn".
24238 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24239 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24240 (rs6000_emit_allocate_stack): Likewise for local "insn".
24241 (load_cr_save): Likewise.
24242 (restore_saved_cr): Likewise.
24243 (restore_saved_lr): Likewise.
24244 (emit_cfa_restores): Likewise.
24245 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24246 "deleted_debug_label".
24247 (rs6000_output_mi_thunk): Likewise for local "insn".
24248 (rs6000_final_prescan_insn): Likewise for param "insn".
24250 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24252 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24253 Strengthen param "insn" from rtx to rtx_insn *.
24254 * config/picochip/picochip.c (picochip_current_prescan_insn):
24255 Likewise for this variable.
24256 (picochip_final_prescan_insn): Likewise for param "insn".
24258 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24260 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24261 from rtx to rtx_insn *.
24262 (pa_output_indirect_call): Likewise.
24263 (pa_adjust_insn_length): Likewise.
24264 (pa_attr_length_millicode_call): Likewise.
24265 (pa_attr_length_call): Likewise.
24266 (pa_attr_length_indirect_call): Likewise.
24268 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24270 (pa_attr_length_millicode_call): Likewise.
24271 (pa_attr_length_call): Likewise.
24272 (pa_output_call): Likewise.
24273 (pa_attr_length_indirect_call): Likewise.
24274 (pa_output_indirect_call): Likewise.
24276 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24278 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24279 Strengthen first param from rtx to rtx_insn *.
24280 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24283 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24285 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24286 type from rtx to rtx_insn *.
24287 (mips_expand_call): Likewise.
24288 (mips_adjust_insn_length): Likewise for first param.
24289 (mips_output_conditional_branch): Likewise.
24290 (mips_output_order_conditional_branch): Likewise.
24291 (mips_final_prescan_insn): Likewise.
24293 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24294 rtx_insn * for the SEQUENCE case.
24295 (SEQ_END): Likewise.
24296 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24297 (mips_emit_call_insn): Likewise, also for local "insn".
24298 (mips16_gp_pseudo_reg): Likewise for local "scan".
24299 (mips16_build_call_stub): Likewise for return type and for local
24300 "insn". Introduce a new local "pattern" so that "insn" can indeed
24302 (mips_expand_call): Strengthen return type and local "insn" from
24304 (mips_block_move_loop): Strengthen local "label" from rtx to
24306 (mips_expand_synci_loop): Likewise for locals "label",
24308 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24310 (mips16e_collect_argument_saves): Likewise for locals "insn",
24312 (mips_find_gp_ref): Likewise for param of callback for "pred"
24313 param, and for local "insn".
24314 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24315 (mips_insn_has_flexible_gp_ref_p): Likewise.
24316 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24318 (mips_epilogue_set_cfa): Likewise for local "insn".
24319 (mips_expand_epilogue): Likewise.
24320 (mips_adjust_insn_length): Likewise for param "insn".
24321 (mips_output_conditional_branch): Likewise.
24322 (mips_output_order_conditional_branch): Likewise.
24323 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24324 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24325 "falu2_turn_enabled_insn".
24326 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24327 "done_label" from rtx to rtx_code_label *.
24328 (struct mips16_constant): Likewise for field "label".
24329 (mips16_add_constant): Likewise for return type.
24330 (mips16_emit_constants_1): Strengthen return type and param "insn"
24331 from rtx to rtx_insn *.
24332 (mips16_emit_constants): Likewise for param "insn".
24333 (mips16_insn_length): Likewise.
24334 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24335 to rtx_code_label *.
24336 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24337 from rtx to rtx_insn *.
24338 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24339 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24340 (r10k_simplify_address): Strengthen param "insn" and local
24341 "def_insn" from rtx to rtx_insn *.
24342 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24344 (r10k_needs_protection_p_1): Update target type of cast of data
24345 from to rtx to rtx_insn *.
24346 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24347 rtx * to rtx_insn **.
24348 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24350 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24351 (mips_call_expr_from_insn): Likewise for param "insn".
24352 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24353 (mips_find_pic_call_symbol): Likewise for param "insn".
24354 (mips_annotate_pic_calls): Likewise for local "insn".
24355 (mips_sim_insn): Likewise for this variable.
24356 (struct mips_sim): Likewise for field "insn" within elements of
24358 (mips_sim_wait_reg): Likewise for param "insn".
24359 (mips_sim_wait_regs): Likewise.
24360 (mips_sim_wait_units): Likewise.
24361 (mips_sim_wait_insn): Likewise.
24362 (mips_sim_issue_insn): Likewise.
24363 (mips_sim_finish_insn): Likewise.
24364 (mips_seq_time): Likewise for param "seq" and local "insn".
24365 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24366 locals "first", "second".
24367 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24368 "last", "last2", "next".
24369 (mips_avoid_hazard): Likewise for params "after", "insn".
24370 (mips_reorg_process_insns): Likewise for locals "insn",
24371 "last_insn", "subinsn", "next_insn".
24372 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24373 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24375 (mips_output_mi_thunk): Likewise for local "insn".
24376 (mips_final_prescan_insn): Likewise for param "insn".
24378 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24380 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24381 Strengthen return type and local "insns" from rtx to rtx_insn *.
24382 (microblaze_legitimize_tls_address): Likewise for local "insns".
24383 (microblaze_block_move_loop): Strengthen local "label" from rtx
24384 to rtx_code_label *.
24385 (microblaze_expand_prologue): Strengthen two locals named "insn"
24386 from rtx to rtx_insn *.
24387 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24388 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24389 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24390 to rtx_code_label *.
24392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24394 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24395 param from rtx to rtx_insn *.
24396 (mep_reuse_lo): Likewise for third param.
24397 (mep_use_post_modify_p): Likewise for first param.
24398 (mep_core_address_length): Likewise.
24399 (mep_cop_address_length): Likewise.
24400 (mep_final_prescan_insn): Likewise.
24401 (mep_store_data_bypass_p): Likewise for both params.
24402 (mep_mul_hilo_bypass_p): Likewise.
24403 (mep_ipipe_ldc_p): Likewise for param.
24405 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24406 (mep_rewrite_mult): Likewise.
24407 (mep_rewrite_mulsi3): Likewise.
24408 (mep_rewrite_maddsi3): Likewise.
24409 (mep_reuse_lo_p_1): Likewise.
24410 (mep_reuse_lo_p): Likewise.
24411 (mep_frame_expr): Likewise.
24412 (mep_make_parallel): Likewise for both params.
24413 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24415 (mep_use_post_modify_p): Likewise for param "insn".
24416 (mep_core_address_length): Likewise.
24417 (mep_cop_address_length): Likewise.
24418 (mep_reg_set_in_function): Likewise for local "insn".
24419 (mep_asm_without_operands_p): Likewise.
24420 (F): Likewise for return type and param "x".
24421 (add_constant): Likewise for local "insn".
24422 (maybe_dead_move): Likewise for return type and local "insn".
24423 (mep_expand_prologue): Likewise for local "insn".
24424 (mep_final_prescan_insn): Likewise for param "insn".
24425 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24426 "next", "follow", "x".
24427 (mep_insert_repeat_label_last): Likewise for return type, param
24428 "last_insn", and locals "next", "prev". Strengthen param "label"
24429 from rtx to rtx_code_label *.
24430 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24432 (struct mep_doloop_end): Likewise for fields "insn" and
24434 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24435 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24436 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24438 (mep_invert_branch): Likewise for params "insn" and "after".
24439 (mep_reorg_erepeat): Likewise for param "insns" and locals
24440 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24441 "l" from rtx to rtx_code_label *.
24442 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24443 from rtx to rtx_insn *.
24444 (mep_reorg_addcombine): Likewise for param "insns" and locals
24446 (add_sp_insn_p): Likewise for param "insn".
24447 (mep_reorg_noframe): Likewise for param "insns" and locals
24448 "start_frame_insn", "end_frame_insn", "next".
24449 (mep_reorg): Likewise for local "insns".
24450 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24452 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24453 (mep_mul_hilo_bypass_p): Likewise.
24454 (mep_ipipe_ldc_p): Likewise for param "insn".
24455 (mep_make_bundle): Likewise for return type, param "cop" and local
24456 "insn", splitting out the latter into a new local "seq" for when it
24457 is a SEQUENCE rather than an insn.
24458 (core_insn_p): Likewise for param "insn".
24459 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24460 "last", "first", "note", "prev", "core_insn".
24462 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24464 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24466 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24467 (m68k_final_prescan_insn): Likewise for first param.
24469 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24470 (m68k_set_frame_related): Likewise for param "insn".
24471 (output_btst): Likewise for param "insn".
24472 (m68k_final_prescan_insn): Likewise.
24473 (m68k_move_to_reg): Likewise for local "insn".
24474 (m68k_call_tls_get_addr): Likewise for local "insns".
24475 (m68k_call_m68k_read_tp): Likewise.
24476 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24477 (m68k_output_mi_thunk): Likewise for local "insn".
24479 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24481 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24482 first param from rtx to rtx_insn *.
24483 (iq2000_adjust_insn_length): Likewise.
24484 (iq2000_output_conditional_branch): Likewise.
24485 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24486 "insn" and local "nop_insn".
24487 (iq2000_annotate_frame_insn): Likewise for param "insn".
24488 (iq2000_expand_prologue): Likewise for both locals "insn".
24489 (iq2000_adjust_insn_length): Likewise for param "insn".
24490 (iq2000_output_conditional_branch): Likewise.
24492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24494 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24495 "insns" from rtx to rtx_insn *.
24496 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24497 (struct spill_fill_data): Likewise for field "init_after" and for
24498 elements of array field "prev_insn".
24499 (spill_restore_mem): Likewise for locals "insn", "first".
24500 (do_spill): Likewise for local "insn".
24501 (do_restore): Likewise.
24502 (ia64_expand_prologue): Likewise.
24503 (ia64_expand_epilogue): Likewise.
24504 (emit_insn_group_barriers): Likewise for locals "insn",
24506 (emit_all_insn_group_barriers): Likewise for locals "insn",
24508 (dfa_stop_insn): Likewise for this global.
24509 (dfa_pre_cycle_insn): Likewise.
24510 (ia64_nop): Likewise.
24511 (final_emit_insn_group_barriers): Likewise for locals "insn",
24513 (emit_predicate_relation_info): Likewise for locals "head", "n",
24515 (ia64_reorg): Likewise for local "insn".
24516 (ia64_output_mi_thunk): Likewise.
24517 (expand_vec_perm_interleave_2): Likewise for local "seq".
24519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24521 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24522 param 1 "insn" from rtx to rtx_insn *.
24523 (ix86_use_lea_for_mov): Likewise.
24524 (ix86_avoid_lea_for_addr): Likewise.
24525 (ix86_split_lea_for_addr): Likewise.
24526 (ix86_lea_for_add_ok): Likewise.
24527 (ix86_output_call_insn): Likewise.
24529 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24530 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24531 (ix86_output_function_epilogue): Likewise for locals "insn",
24532 "deleted_debug_label".
24533 (legitimize_tls_address): Likewise for local "insn".
24534 (get_some_local_dynamic_name): Likewise.
24535 (increase_distance): Likewise for params "prev", "next".
24536 (distance_non_agu_define_in_bb): Likewise for params "insn",
24537 "start" and locals "prev", "next".
24538 (distance_non_agu_define): Likewise for param "insn".
24539 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24540 locals "next", "prev".
24541 (distance_agu_use): Likewise for param "insn".
24542 (ix86_lea_outperforms): Likewise.
24543 (ix86_ok_to_clobber_flags): Likewise.
24544 (ix86_avoid_lea_for_add): Likewise.
24545 (ix86_use_lea_for_mov): Likewise.
24546 (ix86_avoid_lea_for_addr): Likewise.
24547 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24548 (ix86_split_lea_for_addr): Likewise for param "insn".
24549 (ix86_lea_for_add_ok): Likewise for param "insn".
24550 (ix86_expand_carry_flag_compare): Likewise for local
24552 (ix86_expand_int_movcc): Likewise.
24553 (ix86_output_call_insn): Likewise for param "insn".
24554 (ix86_output_call_insn): Likewise for local "i".
24555 (x86_output_mi_thunk): Introduce local "insn", using it in place
24556 of "tmp" when dealing with insns.
24557 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24559 (ix86_pad_returns): Likewise for locals "ret", "prev".
24560 (ix86_count_insn_bb): Likewise for local "insn".
24561 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24562 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24563 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24564 (expand_vec_perm_interleave2): Likewise for local "seq".
24565 (expand_vec_perm_vperm2f128_vblend): Likewise.
24566 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24567 call to for_each_rtx with for_each_rtx_in_insn.
24569 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24571 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24572 "label" from rtx to rtx_code_label *.
24573 (ix86_expand_prologue): Likewise.
24574 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24576 (ix86_split_idivmod): Likewise for locals "end_label" and
24578 (ix86_expand_branch): Likewise for local "label2".
24579 (ix86_expand_aligntest): Likewise for return type and local "label".
24580 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24582 (expand_movmem_epilogue): Likewise for the various locals named
24584 (expand_setmem_epilogue): Likewise.
24585 (expand_small_movmem_or_setmem): Likewise for local "label".
24586 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24587 Strengthen param "done_label" from rtx * to rtx_code_label **.
24588 Strengthen locals "loop_label" and "label" from rtx to
24590 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24591 Likewise for locals "loop_label", "label".
24592 (ix86_expand_set_or_movmem): Likewise for locals "label",
24593 "jump_around_label", "hot_label".
24594 (ix86_expand_strlensi_unroll_1): Likewise for locals
24595 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24597 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24598 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24599 "label2", "jump_label".
24600 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24602 (ix86_expand_lfloorceil): Likewise for local "label".
24603 (ix86_expand_rint): Likewise.
24604 (ix86_expand_floorceildf_32): Likewise.
24605 (ix86_expand_floorceil): Likewise.
24606 (ix86_expand_rounddf_32): Likewise.
24607 (ix86_expand_trunc): Likewise.
24608 (ix86_expand_truncdf_32): Likewise.
24609 (ix86_expand_round): Likewise.
24611 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24613 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24614 first param from rtx to rtx_insn *.
24615 (h8300_insn_length_from_table): Likewise.
24616 * config/h8300/h8300.c (F): Likewise for return type and param
24618 (Fpa): Add a checked cast to rtx_insn *.
24619 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24621 (final_prescan_insn): Likewise for param "insn".
24622 (h8300_binary_length): Likewise.
24623 (h8300_insn_length_from_table): Likewise.
24625 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24627 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24628 Strengthen first param "insn" from rtx to rtx_insn *.
24630 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24632 (frame_insn): Likewise for return type. Introduce local "insn"
24633 for use in place of local "x" for use as an rtx_insn *.
24634 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24635 (epiphany_expand_prologue): Likewise for local "insn".
24636 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24637 * config/epiphany/resolve-sw-modes.c
24638 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24641 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24643 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24644 param from rtx to rtx_insn *.
24645 (c6x_final_prescan_insn): Likewise for first param.
24647 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24648 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24649 (c6x_expand_compare): Strengthen local "insns" from rtx to
24651 (c6x_get_unit_specifier): Likewise for param "insn".
24652 (c6x_print_unit_specifier_field): Likewise.
24653 (c6x_final_prescan_insn): Likewise.
24654 (emit_add_sp_const): Likewise for local "insn".
24655 (c6x_expand_prologue): Likewise.
24657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24659 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24660 param 1 from rtx to rtx_insn *.
24661 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24662 the various locals named "insn".
24663 (expand_epilogue_reg_restore): Likewise.
24664 (frame_related_constant_load): Likewise.
24665 (add_to_reg): Likewise.
24666 (emit_link_insn): Likewise.
24667 (do_link): Likewise.
24668 (expand_interrupt_handler_prologue): Likewise.
24669 (branch_dest): Likewise for param "branch".
24670 (asm_conditional_branch): Likewise for param "insn".
24671 (gen_one_bundle): Likewise for elements of param "slot" and local
24673 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24674 elements of local "slot".
24675 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24676 "queue", "next_queue", "prev".
24677 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24678 (add_sched_insns_for_speculation): Likewise for local "insn".
24680 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24682 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24683 from rtx to rtx_insn *.
24684 (output_movhi): Likewise.
24685 (output_movsisf): Likewise.
24686 (avr_out_tstsi): Likewise.
24687 (avr_out_tsthi): Likewise.
24688 (avr_out_tstpsi): Likewise.
24689 (avr_out_compare): Likewise.
24690 (avr_out_compare64): Likewise.
24691 (avr_out_movpsi): Likewise.
24692 (ashlqi3_out): Likewise.
24693 (ashlhi3_out): Likewise.
24694 (ashlsi3_out): Likewise.
24695 (ashrqi3_out): Likewise.
24696 (ashrhi3_out): Likewise.
24697 (ashrsi3_out): Likewise.
24698 (lshrqi3_out): Likewise.
24699 (lshrhi3_out): Likewise.
24700 (lshrsi3_out): Likewise.
24701 (avr_out_ashlpsi3): Likewise.
24702 (avr_out_ashrpsi3): Likewise.
24703 (avr_out_lshrpsi3): Likewise.
24704 (avr_out_fract): Likewise.
24705 (avr_out_sbxx_branch): Likewise.
24706 (avr_out_round): Likewise.
24707 (avr_out_xload): Likewise.
24708 (avr_out_movmem): Likewise.
24709 (adjust_insn_length): Likewise.
24710 (avr_out_lpm): Likewise.
24711 (reg_unused_after): Likewise.
24712 (_reg_unused_after): Likewise.
24713 (avr_jump_mode): Likewise for second param.
24714 (jump_over_one_insn): Likewise for first param.
24715 (avr_final_prescan_insn): Likewise.
24716 (out_shift_with_cnt): Likewise for second param.
24718 * config/avr/avr.c (get_sequence_length): Likewise for param
24719 "insns" and local "insn".
24720 (emit_push_byte): Likewise for local "insn".
24721 (emit_push_sfr): Likewise.
24722 (avr_prologue_setup_frame): Likewise for locals "insn",
24723 "fp_plus_insns", "sp_plus_insns".
24724 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24726 (avr_jump_mode): Likewise for param "insn".
24727 (avr_final_prescan_insn): Likewise.
24728 (avr_find_unused_d_reg): Likewise.
24729 (avr_out_lpm_no_lpmx): Likewise.
24730 (avr_out_lpm): Likewise.
24731 (avr_out_xload): Likewise.
24732 (output_movqi): Likewise.
24733 (output_movhi): Likewise.
24734 (out_movqi_r_mr): Likewise.
24735 (out_movhi_r_mr): Likewise.
24736 (out_movsi_r_mr): Likewise.
24737 (out_movsi_mr_r): Likewise.
24738 (output_movsisf): Likewise.
24739 (avr_out_load_psi): Likewise.
24740 (avr_out_store_psi): Likewise.
24741 (avr_out_movpsi): Likewise.
24742 (out_movqi_mr_r): Likewise.
24743 (avr_out_movhi_mr_r_xmega): Likewise.
24744 (out_movhi_mr_r): Likewise.
24745 (compare_condition): Likewise for param "insn" and local "next".
24746 (compare_sign_p): Likewise for param "insn".
24747 (compare_diff_p): Likewise.
24748 (compare_eq_p): Likewise.
24749 (avr_out_compare): Likewise.
24750 (avr_out_compare64): Likewise.
24751 (avr_out_tsthi): Likewise.
24752 (avr_out_tstpsi): Likewise.
24753 (avr_out_tstsi): Likewise.
24754 (out_shift_with_cnt): Likewise.
24755 (ashlqi3_out): Likewise.
24756 (ashlhi3_out): Likewise.
24757 (avr_out_ashlpsi3): Likewise.
24758 (ashlsi3_out): Likewise.
24759 (ashrqi3_out): Likewise.
24760 (ashrhi3_out): Likewise.
24761 (avr_out_ashrpsi3): Likewise.
24762 (ashrsi3_out): Likewise.
24763 (lshrqi3_out): Likewise.
24764 (lshrhi3_out): Likewise.
24765 (avr_out_lshrpsi3): Likewise.
24766 (lshrsi3_out): Likewise.
24767 (avr_out_fract): Likewise.
24768 (avr_out_round): Likewise.
24769 (avr_adjust_insn_length): Likewise.
24770 (reg_unused_after): Likewise.
24771 (_reg_unused_after): Likewise.
24772 (avr_compare_pattern): Likewise.
24773 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24774 and locals "branch1", "branch2", "insn2", "jump".
24775 (avr_reorg): Likewise for local "insn".
24776 (avr_2word_insn_p): Likewise for param "insn".
24777 (jump_over_one_insn_p): Likewise.
24778 (avr_out_sbxx_branch): Likewise.
24779 (avr_out_movmem): Likewise.
24781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24783 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24784 param from rtx to rtx_insn *.
24785 (thumb1_final_prescan_insn): Likewise.
24786 (thumb2_final_prescan_insn): Likewise.
24788 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24790 (struct minipool_node): Likewise for field "insn".
24791 (dump_minipool): Likewise for param "scan".
24792 (create_fix_barrier): Likewise for local "from". Strengthen local
24793 "label" from rtx to rtx_code_label *.
24794 (push_minipool_barrier): Strengthen param "insn" from rtx to
24796 (push_minipool_fix): Likewise.
24797 (note_invalid_constants): Likewise.
24798 (thumb2_reorg): Likewise for local "insn".
24799 (arm_reorg): Likewise.
24800 (thumb2_final_prescan_insn): Likewise for param
24801 "insn" and local "first_insn".
24802 (arm_final_prescan_insn): Likewise for param "insn" and locals
24803 "start_insn", "this_insn".
24804 (arm_debugger_arg_offset): Likewise for param "insn".
24805 (thumb1_emit_multi_reg_push): Likewise for return type and local
24807 (thumb1_final_prescan_insn): Likewise for param "insn".
24808 (thumb_far_jump_used_p): Likewise for local "insn".
24809 (thumb1_expand_prologue): Likewise.
24810 (arm_expand_epilogue_apcs_frame): Likewise.
24811 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24812 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24813 from rtx to rtx_code_label *.
24814 (arm_split_atomic_op): Likewise for local "label".
24815 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24817 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24819 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24820 first param from rtx to rtx_insn *.
24821 (arc_verify_short): Likewise.
24822 (arc_short_long): Likewise.
24823 (arc_need_delay): Likewise.
24825 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24827 (arc_ccfsm_advance): Likewise for param "insn" and locals
24828 "start_insn", "this_insn".
24829 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24830 (arc_ccfsm_post_advance): Likewise for param "insn".
24831 (arc_next_active_insn): Likewise for return type and param "insn".
24832 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24833 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24834 (output_short_suffix): Likewise for local "insn".
24835 (arc_final_prescan_insn): Likewise for param "insn". Remove
24836 now-redundant checked cast.
24837 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24838 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24839 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24840 for use where lc_set became an insn.
24841 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24843 (arc_get_insn_variants): Likewise for local "prev".
24844 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
24846 (arc_predicate_delay_insns): Likewise for local "insn".
24847 (arc_pad_return): Likewise for local "prev". For now, add a
24848 checked cast when extracting the insn from "final_sequence".
24849 (arc_short_long): Likewise for param "insn".
24850 (arc_need_delay): Likewise for param "insn" and local "next".
24851 (arc_label_align): Likewise for locals "prev", "next".
24853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24855 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
24856 "insn" from rtx to rtx_insn *.
24857 (alpha_gp_save_rtx): Likewise for local "seq".
24858 (alpha_instantiate_decls): Likewise for local "top".
24859 (get_some_local_dynamic_name): Likewise for local "insn".
24860 (alpha_does_function_need_gp): Likewise.
24861 (set_frame_related_p): Likewise for return type and for locals
24863 (emit_frame_store_1): Likewise for local "insn".
24864 (alpha_expand_prologue): Likewise for locals "insn", "seq".
24865 (alpha_end_function): Likewise for local "insn".
24866 (alpha_output_mi_thunk_osf): Likewise.
24867 (alphaev4_insn_pipe): Likewise for param "insn".
24868 (alphaev5_insn_pipe): Likewise.
24869 (alphaev4_next_group): Likewise for return type and param 1
24871 (alphaev5_next_group): Likewise.
24872 (alpha_align_insns_1): Likewise for return type and param 1 of
24873 callback param "next_group", and for locals "i", "next", "prev",
24874 "where", "where2", "insn".
24876 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
24878 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
24879 rather than modifying the stmt.
24881 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24883 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
24884 cgraph_state conversion.
24886 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24888 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24889 Strengthen local "insns" from rtx to rtx_insn *.
24890 (aarch64_set_frame_expr): Likewise for local "insn".
24891 (aarch64_save_or_restore_fprs): Likewise.
24892 (aarch64_save_or_restore_callee_save_registers): Likewise.
24893 (aarch64_expand_prologue): Likewise.
24894 (aarch64_expand_epilogue): Likewise.
24895 (aarch64_output_mi_thunk): Likewise.
24896 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
24897 "label2" from rtx to rtx_code_label *.
24898 (aarch64_split_atomic_op): Likewise for local "label".
24900 2014-08-25 Martin Liska <mliska@suse.cz>
24902 * cgraph.h (symtab_node):
24903 (bool needed_p (void)): created from decide_is_symbol_needed
24904 (bool referred_to_p (void)): created from referred_to_p
24905 (static cgraph_node *get_for_asmname (tree asmname)):
24906 created from symtab_node_for_asm
24907 * cgraph.h (cgraph_node):
24908 (void assemble_thunks_and_aliases (void)):
24909 created from assemble_thunks_and_aliases
24910 (void expand (void)): created from expand_function
24911 (static void finalize_function (tree, bool)):
24912 created from cgraph_finalize_function
24913 (static cgraph_local_info *local_info (tree decl)):
24914 created from cgraph_local_info
24915 (static cgraph_global_info *global_info (tree)):
24916 created from cgraph_global_info
24917 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
24918 * cgraph.h (varpool_node):
24919 (static void add (tree decl): created from varpool_add_new_variable
24920 * cgraph.h (cgraph_edge):
24921 void remove (void);
24922 (void remove_caller (void)): created from cgraph_edge_remove_caller
24923 (void remove_callee (void)): created from cgraph_edge_remove_callee
24924 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
24925 created from cgraph_set_call_stmt
24926 (void redirect_callee (cgraph_node *n)): created from
24927 cgraph_redirect_edge_callee
24928 (cgraph_edge *make_direct (cgraph_node *callee)): created from
24929 cgraph_make_edge_direct
24930 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
24931 gimple redirect_call_stmt_to_callee (void)): created from
24932 cgraph_turn_edge_to_speculative
24933 (void speculative_call_info (cgraph_edge *&direct,
24934 cgraph_edge *&indirect, ipa_ref *&reference)): created from
24935 cgraph_speculative_call_info
24936 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
24937 unsigned stmt_uid, gcov_type count_scale,
24938 int freq_scale, bool update_original)): created from cgraph_clone_edge
24939 (cgraph_edge *resolve_speculation (tree callee_decl)):
24940 created from cgraph_resolve_speculation
24941 (bool cannot_lead_to_return_p (void)): created from
24942 cannot_lead_to_return_p
24943 (bool recursive_p (void)): created from cgraph_edge_recursive_p
24944 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
24945 (static unsigned int rebuild_edges (void)): created from
24946 rebuild_cgraph_edges
24947 (static void rebuild_references (void)): created from
24948 cgraph_rebuild_references
24949 * cgraph.h (symbol_table):
24950 (create_reference): renamed from add_reference
24951 (maybe_create_reference): renamed from maybe_add_reference
24952 (void register_symbol (symtab_node *node)): new function
24953 (void clear_asm_symbols (void)): new function
24954 (void unregister (symtab_node *node)): new function
24955 (void release_symbol (cgraph_node *node, int uid)): new function
24956 (cgraph_node * allocate_cgraph_symbol (void)): new function
24957 (void initialize (void)): created from cgraph_init
24958 (symtab_node *first_symbol (void)):new function
24959 (asm_node *first_asm_symbol (void)):new function
24960 (symtab_node *first_defined_symbol (void)):new function
24961 (varpool_node *first_variable (void)):new function
24962 (varpool_node *next_variable (varpool_node *node)):new function
24963 (varpool_node *first_static_initializer (void)):new function
24964 (varpool_node *next_static_initializer (varpool_node *node)):new
24966 (varpool_node *first_defined_variable (void)):new function
24967 (varpool_node *next_defined_variable (varpool_node *node)):new function
24968 (cgraph_node *first_defined_function (void)):new function
24969 (cgraph_node *next_defined_function (cgraph_node *node)):new function
24970 (cgraph_node *first_function (void)):new function
24971 (cgraph_node *next_function (cgraph_node *node)):new function
24972 (cgraph_node *first_function_with_gimple_body (void)):new function
24973 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
24975 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
24976 created from symtab_remove_unreachable_nodes
24977 (void remove_unreferenced_decls (void)): created from
24978 varpool_remove_unreferenced_decls
24979 (void process_new_functions (void)): created from
24980 cgraph_process_new_functions
24981 (void process_same_body_aliases (void)): created from
24982 cgraph_process_same_body_aliases
24983 (bool output_variables (void)): created from
24984 varpool_node::output_variables
24985 (void output_asm_statements (void)): created from output_asm_statements
24986 (void finalize_compilation_unit (void)): created from
24987 finalize_compilation_unit
24988 (void compile (void)): created from compile
24989 (void output_weakrefs (void)): created from output_weakrefs
24990 (cgraph_node *create_empty (void)): created from
24991 cgraph_node::create_empty
24992 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
24993 gimple call_stmt, gcov_type count, int freq,
24994 bool indir_unknown_callee)): created from cgraph_node::create_edge
24995 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
24996 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
24997 created from cgraph_next_function_with_gimple_body
24998 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
24999 created from cgraph_remove_edge_removal_hook
25000 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
25001 void *)): created from cgraph_add_node_removal_hook
25002 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
25003 created from cgraph_remove_node_removal_hook
25004 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
25005 void *)): created from varpool_add_node_removal_hook
25006 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
25007 created from varpool_remove_node_removal_hook
25008 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
25009 void *)): created from cgraph_add_function_insertion_hook
25010 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
25011 created from cgraph_remove_function_insertion_hook
25012 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
25013 void *)): created from varpool_add_variable_insertion_hook
25014 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
25015 created from varpool_remove_variable_insertion_hook
25016 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
25017 void *)): created from cgraph_add_edge_duplication_hook
25018 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
25019 created from cgraph_remove_edge_duplication_hook
25020 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
25021 void *)): created from cgraph_add_node_duplication_hook
25022 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
25023 created from cgraph_remove_node_duplication_hook
25024 (void call_edge_removal_hooks (cgraph_edge *e)):
25025 created from cgraph_call_edge_removal_hooks
25026 (void call_cgraph_insertion_hooks (cgraph_node *node)):
25027 created from call_function_insertion_hooks
25028 (void call_cgraph_removal_hooks (cgraph_node *node)):
25029 created from cgraph_call_node_removal_hooks
25030 (void call_cgraph_duplication_hooks (cgraph_node *node,
25031 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
25032 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
25033 created from cgraph_call_edge_duplication_hooks
25034 (void call_varpool_removal_hooks (varpool_node *node)):
25035 created from varpool_call_node_removal_hooks
25036 (void call_varpool_insertion_hooks (varpool_node *node)):
25037 created from varpool_call_variable_insertion_hooks
25038 (void insert_to_assembler_name_hash (symtab_node *node,
25039 bool with_clones)): created from insert_to_assembler_name_hash
25040 (void unlink_from_assembler_name_hash (symtab_node *node,
25041 bool with_clones)): created from unlink_from_assembler_name_hash
25042 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
25043 created from symtab_prevail_in_asm_name_hash
25044 (void symtab_initialize_asm_name_hash (void)):
25045 created from symtab_initialize_asm_name_hash
25046 (void change_decl_assembler_name (tree decl, tree name)):
25047 created from change_decl_assembler_name
25048 (void materialize_all_clones (void)): created from
25049 cgraph_materialize_all_clones
25050 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
25051 created from decl_assembler_name_hash
25052 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
25053 created from decl_assembler_name_equal
25054 (static hashval_t hash_node_by_assembler_name (const void *p)):
25055 created from hash_node_by_assembler_name
25056 (static int eq_assembler_name (const void *p1, const void *p2)):
25057 created from eq_assembler_name
25059 2014-08-25 Marek Polacek <polacek@redhat.com>
25061 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
25063 2014-08-25 Petr Murzin <petr.murzin@intel.com>
25065 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
25066 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
25067 SWI1248_AVX512BW mode iterator.
25069 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
25072 * config/sh/predicates.md (general_extend_operand): Disable
25073 TRUNCATE before reload completes.
25075 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
25077 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
25079 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
25082 * config/sh/sh.opt (musermode): Allow negative form.
25083 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
25084 targets that don't support it.
25085 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
25086 Document -mno-usermode option.
25088 2014-08-24 Kito Cheng <kito@0xlab.org>
25090 * system.h (CALLER_SAVE_PROFITABLE): Poison.
25091 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
25092 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
25093 * doc/tm.texi: Regenerate.
25095 2014-08-24 Kito Cheng <kito@0xlab.org>
25097 * ira.c: Fix typo in comment.
25099 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
25101 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
25102 Deprecate c++1y. Change language to reflect greater confidence in C++14.
25104 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
25107 * config/pa/pa.c (pa_output_function_epilogue): Don't set
25108 last_address when the current function is a thunk.
25109 (pa_asm_output_mi_thunk): When we don't have named sections or they
25110 are not being used, check that thunk can reach the stub table with a
25113 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25115 * web.c (union_match_dups): Strengthen param "insn" from rtx to
25117 (pass_web::execute): Likewise for local "insn".
25119 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25121 * var-tracking.c (struct micro_operation_def): Strengthen field
25122 "insn" from rtx to rtx_insn *.
25123 (struct emit_note_data_def): Likewise.
25124 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
25125 (vt_stack_adjustments): Likewise for local "insn".
25126 (adjust_insn): Likewise for param "insn".
25127 (val_store): Likewise.
25128 (val_resolve): Likewise.
25129 (struct count_use_info): Likewise for field "insn".
25130 (log_op_type): Likewise for param "insn".
25131 (reverse_op): Likewise.
25132 (prepare_call_arguments): Likewise.
25133 (add_with_sets): The initial param takes an insn, but we can't
25134 yet strengthen it from rtx to rtx_insn * since it's used as a
25135 cselib_record_sets_hook callback. For now rename initial param
25136 from "insn" to "uncast_insn", and introduce a local "insn" of
25137 the stronger rtx_insn * type, with a checked cast.
25138 (compute_bb_dataflow): Strengthen local "insn" from rtx to
25140 (emit_note_insn_var_location): Likewise.
25141 (emit_notes_for_changes): Likewise.
25142 (emit_notes_for_differences): Likewise.
25143 (next_non_note_insn_var_location): Likewise for return type and
25145 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25146 (vt_initialize): Likewise for local "insn".
25147 (delete_debug_insns): Likewise for locals "insn" and "next".
25149 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25151 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25153 (mark_constant_pool): Likewise for local "insn".
25155 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25157 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25159 (dead_debug_promote_uses): Likewise.
25160 (dead_debug_insert_temp): Likewise.
25162 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25164 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25165 from const_rtx to const rtx_insn *.
25166 (store_killed_after): Likewise. Strengthen locals "last", "act"
25167 from rtx to rtx_insn *.
25168 (store_killed_before): Strengthen param "insn" from const_rtx to
25169 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25170 (find_moveable_store): Strengthen param "insn" from rtx to
25172 (compute_store_table): Likewise for local "insn".
25173 (insert_insn_start_basic_block): Likewise for param "insn" and
25174 locals "prev", "before", "insn".
25175 (insert_store): For now, add a checked cast to rtx_insn * on the
25176 result of gen_move_insn.
25177 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25179 (replace_store_insn): Likewise. For now, add a checked cast to
25180 rtx_insn * on the result of gen_move_insn.
25182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25184 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25186 (expand_sjlj_dispatch_table): Likewise.
25188 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25190 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25191 "insn" from rtx to rtx_insn *.
25193 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25195 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25196 "insn" from rtx to rtx_insn *.
25197 (dup_block_and_redirect): Likewise for param 3 "before".
25199 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25200 from rtx to rtx_insn *.
25201 (move_insn_for_shrink_wrap): Likewise.
25202 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25203 (dup_block_and_redirect): Likewise for param "before" and local
25205 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25207 (convert_to_simple_return): Likewise for local "start".
25209 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25210 Strengthen local "insn" from rtx to rtx_insn *, for use when
25211 invoking requires_stack_frame_p.
25213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25215 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25217 (speculate_expr): Likewise for locals "orig_insn_rtx",
25219 (eq_transformed_insns): Likewise for locals "i1", "i2".
25220 (check_for_new_jump): Likewise for return type and local "end".
25221 (find_new_jump): Likewise for return type and local "jump".
25222 (sel_split_edge): Likewise for local "jump".
25223 (sel_create_recovery_block): Likewise.
25224 (sel_redirect_edge_and_branch_force): Likewise.
25225 (sel_redirect_edge_and_branch): Likewise.
25227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25229 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25230 "new_insn" from rtx to rtx_insn *.
25231 (create_insn_rtx_with_rhs): Likewise for return type and for local
25233 (create_insn_rtx_with_lhs): Likewise.
25234 (create_speculation_check): Likewise for local "insn_rtx".
25235 (implicit_clobber_conflict_p): Likewise for local "insn".
25236 (get_expr_cost): Likewise.
25237 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25238 (move_cond_jump): Likewise for locals "next", "prev", "link",
25239 "head", "from", "to".
25241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25243 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25244 "next" from rtx to rtx_insn *.
25245 (find_conditional_protection): Likewise for local "next".
25246 (is_conditionally_protected): Likewise for local "insn1".
25247 (is_pfree): Likewise for locals "insn1", "insn2".
25249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25251 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25252 from rtx to rtx_insn *.
25254 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25255 locals "insn1", "insn2" from rtx to rtx_insn *.
25256 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25257 locals "insn", "prev", "last_jump", "next_tail".
25258 (schedule_ebb): Likewise for params "head", "tail".
25259 (schedule_ebbs): Likewise for locals "tail", "head".
25261 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25262 to rtx_insn on "last_insn" in one of the invocations of
25265 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25267 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25268 "elem", "insn" from rtx to rtx_insn *.
25269 (change_spec_dep_to_hard): Likewise.
25270 (get_back_and_forw_lists): Likewise for local "con".
25271 (sd_add_dep): Likewise for locals "elem", "insn".
25272 (sd_resolve_dep): Likewise for locals "pro", "con".
25273 (sd_unresolve_dep): Likewise.
25274 (sd_delete_dep): Likewise.
25275 (chain_to_prev_insn): Likewise for local "pro".
25276 (find_inc): Likewise for locals "pro", "con".
25278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25280 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25282 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25284 (modified_between_p): Strengthen local "insn" from rtx to
25286 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25287 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25292 * resource.c (next_insn_no_annul): Strengthen local "next" from
25294 (mark_referenced_resources): Likewise for local "insn".
25296 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25298 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25300 (find_reloads): Likewise for param 1.
25301 (subst_reloads): Likewise for sole param.
25302 (find_equiv_reg): Likwise for param 2.
25303 (regno_clobbered_p): Likwise for param 2.
25304 (reload): Likewise for param 1.
25306 * caller-save.c (save_call_clobbered_regs): Strengthen local
25307 "insn" from rtx to rtx_insn *.
25308 (insert_one_insn): Likewise for local "insn".
25310 * reload.c (this_insn): Likewise for this global.
25311 (find_reloads): Likewise for param "insn".
25312 (find_reloads_toplev): Likewise.
25313 (find_reloads_address): Likewise.
25314 (subst_reg_equivs): Likewise.
25315 (update_auto_inc_notes): Likewise.
25316 (find_reloads_address_1): Likewise.
25317 (find_reloads_subreg_address): Likewise.
25318 (subst_reloads): Likewise.
25319 (find_equiv_reg): Likewise, also for local "p".
25320 (regno_clobbered_p): Likewise for param "insn".
25322 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25324 (spill_reg_store): Likewise for the elements of this array.
25325 (remove_init_insns): Likewise for local "equiv_insn".
25326 (will_delete_init_insn_p): Likewise for param "insn".
25327 (reload): Likewise for param ""first" and local "insn".
25328 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25330 (calculate_elim_costs_all_insns): Likewise.
25331 (delete_caller_save_insns): Likewise.
25332 (spill_failure): Likewise for param "insn".
25333 (delete_dead_insn): Likewise.
25334 (set_label_offsets): Likewise.
25335 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25337 (elimination_costs_in_insn): Likewise for param "insn".
25338 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25339 when referring to an insn.
25340 (set_initial_label_offsets): Likewise.
25341 (set_offsets_for_label): Strengthen param "insn" from rtx to
25343 (init_eliminable_invariants): Likewise for param "first" and local
25345 (fixup_eh_region_note): Likewise for param "insn".
25346 (reload_as_needed): Likewise for locals "prev", "insn",
25347 "old_next", "old_prev", "next".
25348 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25350 (reload_inheritance_insn): Strengthen elements of this array from
25352 (failed_reload): Likewise for param "insn".
25353 (choose_reload_regs): Likewise for local "insn". Replace use of
25354 NULL_RTX with NULL when referring to an insn.
25355 (input_reload_insns): Strengthen elements of this array from rtx
25357 (other_input_address_reload_insns): Likewise for this global.
25358 (other_input_reload_insns): Likewise for this global.
25359 (input_address_reload_insns): Likwise for the elements of this
25361 (inpaddr_address_reload_insns): Likwise for the elements of this
25363 (output_reload_insns): Likewise for the elements of this array.
25364 (output_address_reload_insns): Likewise for the elements of this
25366 (outaddr_address_reload_insns): Likewise for the elements of this
25368 (operand_reload_insns): Likewise for this global.
25369 (other_operand_reload_insns): Likewise for this global.
25370 (other_output_reload_insns): Likewise for the elements of this
25372 (new_spill_reg_store): Likewise for the elements of this
25374 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25375 Strengthen local "where" from rtx * to rtx_insn **.
25376 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25377 from rtx to rtx_insn *.
25378 (do_input_reload): Likewise for local "insn".
25379 (do_output_reload): Likewise for local "insn".
25380 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25381 (emit_insn_if_valid_for_reload): Likewise for return type and local
25382 "last". Add checked cast to rtx_insn when returning "insn" since
25383 this has been through emit_insn.
25384 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25385 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25386 returning "insn" since it's been through
25387 emit_insn_if_valid_for_reload at this point.
25388 (delete_output_reload): Strengthen param "insn" and locals
25389 "output_reload_insn", "i2" from rtx to rtx_insn *.
25390 (delete_address_reloads): Likewise for params "dead_insn",
25391 "current_insn" and locals "prev", "next".
25392 (delete_address_reloads_1): Likewise for params "dead_insn",
25393 "current_insn" and locals "prev", "i2".
25394 (inc_for_reload): Likewise for locals "last", "add_insn".
25395 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25398 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25399 param of this duplicate of the prototype from reload.h
25401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25403 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25405 (regstat_bb_compute_calls_crossed): Likewise.
25407 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25409 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25411 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25413 (regrename_analyze): Strengthen local "insn" from rtx to
25415 (scan_rtx_reg): Likewise for param "insn".
25416 (scan_rtx_address): Likewise.
25417 (scan_rtx): Likewise.
25418 (restore_operands): Likewise.
25419 (record_out_operands): Likewise.
25420 (build_def_use): Likewise for local "insn". Replace use of
25421 NULL_RTX with NULL when dealing with an insn.
25423 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25425 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25426 * reginfo.c (reg_scan): Likewise, also for local "insn".
25427 (reg_scan_mark_refs): Likewise for param "insn".
25428 (init_subregs_of_mode): Likewise for local "insn".
25430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25432 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25433 "insn" from rtx to rtx_insn *.
25434 (replace_oldest_value_reg): Likewise for param "insn".
25435 (replace_oldest_value_addr): Likewise.
25436 (replace_oldest_value_mem): Likewise.
25437 (apply_debug_insn_changes): Likewise for local "last_insn".
25438 (copyprop_hardreg_forward_1): Likewise for local "insn".
25440 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25442 * reg-stack.c (next_flags_user): Strengthen return type and param
25443 "insn" from rtx to rtx_insn *.
25444 (straighten_stack): Likewise for param "insn".
25445 (check_asm_stack_operands): Likewise.
25446 (remove_regno_note): Likewise.
25447 (emit_pop_insn): Likewise for return type, param "insn", local
25449 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25450 "limit" from rtx to rtx_insn *.
25451 (swap_to_top): Likewise for param "insn".
25452 (move_for_stack_reg): Likewise.
25453 (move_nan_for_stack_reg): Likewise.
25454 (swap_rtx_condition): Likewise.
25455 (compare_for_stack_reg): Likewise.
25456 (subst_all_stack_regs_in_debug_insn): Likewise.
25457 (subst_stack_regs_pat): Likewise, and local "insn2".
25458 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25460 (subst_stack_regs): Likewise.
25461 (change_stack): Likewise.
25462 (convert_regs_1): Likewise for locals "insn", "next".
25464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25466 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25468 (combine_set_extension): Likewise for param "curr_insn".
25469 (transform_ifelse): Likewise for param "def_insn".
25470 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25471 from vec<rtx> * to vec<rtx_insn *> *.
25472 (is_cond_copy_insn): Likewise for param "insn".
25473 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25474 to vec<rtx_insn *>.
25475 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25476 local "def_insn" from rtx to rtx_insn *.
25477 (get_sub_rtx): Likewise for param "def_insn".
25478 (merge_def_and_ext): Likewise.
25479 (combine_reaching_defs): Likewise.
25480 (add_removable_extension): Likewise for param "insn".
25481 (find_removable_extensions): Likewise for local "insn".
25482 (find_and_remove_re): Likewise for locals "curr_insn" and
25483 "def_insn". Strengthen locals "reinsn_del_list" and
25484 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25486 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25488 * recog.c (split_insn): Strengthen param "insn" and locals
25489 "first", "last" from rtx to rtx_insn *.
25490 (split_all_insns): Likewise for locals "insn", "next".
25491 (split_all_insns_noflow): Likewise.
25493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25495 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25497 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25498 (debug_rtx_find): Likewise for param 1 "x".
25500 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25501 const_rtx to const rtx_insn *. Likewise for local "insn".
25502 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25503 (debug_rtx_find): Likewise for param 1 "x".
25504 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25505 from const_rtx to const rtx_insn * within the appropriate cases of
25506 the switch statement.
25508 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25509 Strengthen local "insns" from rtx to rtx_insn * since this is
25510 passed to a call to debug_rtx_list.
25512 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25514 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25517 * function.c (stack_protect_epilogue): Add checked cast to
25518 rtx_insn for now when invoking predict_insn_def.
25520 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25522 (predict_insn_def): Likewise.
25523 (rtl_predict_edge): Likewise for local "last_insn".
25524 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25526 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25528 (bb_estimate_probability_locally): Likewise for local "last_insn".
25529 (expensive_function_p): Likewise for local "insn".
25531 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25532 local "jmp", since this is used when invoking predict_insn_def.
25534 2014-08-22 Marek Polacek <polacek@redhat.com>
25537 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25539 2014-08-22 Marek Polacek <polacek@redhat.com>
25542 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25543 a comparison in parens.
25544 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25549 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25552 * cprop.c (fis_get_condition): Likewise.
25554 * postreload.c (reload_cse_regs): Likewise for param "first".
25555 (reload_cse_simplify): Likewise for param "insn".
25556 (reload_cse_regs_1): Likewise for local "insn".
25557 (reload_cse_simplify_set): Likewise for param "insn".
25558 (reload_cse_simplify_operands): Likewise.
25559 (struct reg_use): Likewise for field "insn".
25560 (reload_combine_purge_insn_uses): Likewise for param "insn".
25561 (fixup_debug_insns): Likewise for params "from", "to" and local
25563 (try_replace_in_use): Likewise for local "use_insn".
25564 (reload_combine_recognize_const_pattern): Likewise for param
25565 "insn" and locals "add_moved_after_insn", "use_insn".
25566 (reload_combine_recognize_pattern): Likewise for param "insn" and
25568 (reload_combine): Likewise for locals "insn", "prev".
25569 (reload_combine_note_use): Likewise for param "insn".
25570 (move2add_use_add2_insn): Likewise.
25571 (move2add_use_add3_insn): Likewise.
25572 (reload_cse_move2add): Likewise, also for local "next".
25573 (move2add_note_store): Likewise for local "insn".
25575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25577 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25579 (struct unoccr): Likewise.
25580 (struct modifies_mem): Likewise.
25581 (alloc_mem): Likewise for local "insn".
25582 (insert_expr_in_table): Likewise for param "insn".
25583 (dump_expr_hash_table_entry): Likewise for local "insn".
25584 (oprs_unchanged_p): Likewise for param "insn".
25585 (load_killed_in_block_p): Likewise for local "setter".
25586 (record_last_reg_set_info): Likewise for param "insn".
25587 (record_last_reg_set_info_regno): Likewise.
25588 (record_last_mem_set_info): Likewise.
25589 (record_last_set_info): Likewise for local "last_set_insn".
25590 (record_opr_changes): Likewise for param "insn".
25591 (hash_scan_set): Likewise.
25592 (compute_hash_table): Likewise for local "insn".
25593 (get_avail_load_store_reg): Likewise for param "insn".
25594 (eliminate_partially_redundant_load): Likewise, also for locals
25595 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25597 (eliminate_partially_redundant_loads): Likewise for local "insn".
25599 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25601 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25603 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25604 (expand_twoval_unop): Likewise for locals entry_last", "last".
25605 (expand_twoval_binop): Likewise.
25606 (expand_twoval_binop_libfunc): Likewise for local "insns".
25607 (widen_leading): Likewise for local "last".
25608 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25609 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25610 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25611 (expand_parity): Likewise for locals "last" and "seq".
25612 (expand_ffs): Likewise for local "seq". Strengthen local
25613 "nonzero_label" from rtx to rtx_code_label *.
25614 (expand_absneg_bit): Strengthen local "insns" from rtx to
25616 (expand_unop_direct): Likewise for local "last".
25617 (expand_unop): Likewise for locals "last", "insns".
25618 (expand_abs_nojump): Likewise for local "last".
25619 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25620 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25622 (expand_copysign_absneg): Strengthen local "label" from rtx to
25624 (expand_copysign_bit): Strengthen local "insns" from rtx to
25626 (struct no_conflict_data): Likewise for fields "first", "insn".
25627 (emit_libcall_block_1): Likewise for param "insns" and locals
25628 "next", "last", "insn".
25629 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25630 on "insns" when invoking emit_libcall_block_1. Ultimately we
25631 want to strengthen insns itself.
25632 (prepare_cmp_insn): Strengthen local "last" from rtx to
25634 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25635 (prepare_float_lib_cmp): Likewise for local "insns".
25636 (emit_conditional_move): Likewise for local "last".
25637 (emit_conditional_add): Likewise.
25638 (have_sub2_insn): Likewise for local "seq".
25639 (expand_float): Likewise for local "insns". Strengthen locals
25640 "label", "neglabel" from rtx to rtx_code_label *.
25641 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25642 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25643 (expand_fixed_convert): Likewise for local "insns" (to
25645 (expand_sfix_optab): Likewise for local "last".
25646 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25647 to rtx_code_label *.
25648 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25649 from rtx to rtx_insn *.
25650 (expand_atomic_fetch_op): Likewise for local "insn".
25651 (maybe_legitimize_operand_same_code): Likewise for local "last".
25652 (maybe_legitimize_operands): Likewise.
25654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25656 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25657 "insn" from rtx to rtx_insn *.
25658 (ps_rtl_insn): Likewise for return type.
25659 (doloop_register_get): Likewise for params "head", "tail" and
25660 locals "insn", "first_insn_not_to_check".
25661 (schedule_reg_move): Likewise for local "this_insn".
25662 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25663 of gen_move_insn for now.
25664 (reset_sched_times): Strengthen local "insn" from rtx to
25666 (permute_partial_schedule): Likewise.
25667 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25668 (dump_insn_location): Likewise for param "insn".
25669 (loop_canon_p): Likewise for local "insn".
25670 (sms_schedule): Likewise.
25671 (print_partial_schedule): Likewise.
25672 (ps_has_conflicts): Likewise.
25674 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25676 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25677 "tailp" from rtx * to rtx_insn **.
25679 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25680 from rtx to rtx_insn *.
25681 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25682 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25683 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25685 * modulo-sched.c (const_iteration_count): Strengthen return type
25686 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25687 use of NULL_RTX with NULL when working with insns.
25688 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25690 (sms_schedule): Likewise.
25691 * sched-rgn.c (init_ready_list): Likewise, also for locals
25692 "src_head" and "src_next_tail".
25693 (compute_block_dependences): Likewise.
25694 (free_block_dependencies): Likewise.
25695 (debug_rgn_dependencies): Likewise.
25696 (free_rgn_deps): Likewise.
25697 (compute_priorities): Likewise.
25698 (schedule_region): Likewise.
25699 * sel-sched.c (find_ebb_boundaries): Likewise.
25701 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25702 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25704 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25706 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25707 from rtx to rtx_insn *.
25708 (new_seginfo): Likewise for param "insn".
25709 (create_pre_exit): Likewise for locals "last_insn",
25710 "before_return_copy", "return_copy".
25711 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25716 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25717 from rtx to rtx_insn *.
25718 (lra_push_insn): Likewise for 1st param.
25719 (lra_push_insn_and_update_insn_regno_info): Likewise.
25720 (lra_pop_insn): Likewise for return type.
25721 (lra_invalidate_insn_data): Likewise for 1st param.
25722 (lra_set_insn_deleted): Likewise.
25723 (lra_delete_dead_insn): Likewise.
25724 (lra_process_new_insns): Likewise for first 3 params.
25725 (lra_set_insn_recog_data): Likewise for 1st param.
25726 (lra_update_insn_recog_data): Likewise.
25727 (lra_set_used_insn_alternative): Likewise.
25728 (lra_invalidate_insn_regno_info): Likewise.
25729 (lra_update_insn_regno_info): Likewise.
25730 (lra_former_scratch_operand_p): Likewise.
25731 (lra_eliminate_regs_1): Likewise.
25732 (lra_get_insn_recog_data): Likewise.
25734 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25737 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25739 (substitute_within_insn): New.
25740 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25741 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25742 Replace call to "substitute" with call to substitute_within_insn.
25744 * lra-constraints.c (curr_insn): Strengthen from rtx to
25746 (get_equiv_with_elimination): Likewise for param "insn".
25747 (match_reload): Strengthen params "before" and "after" from rtx *
25749 (emit_spill_move): Likewise for return type. Add a checked cast
25750 to rtx_insn * on result of gen_move_insn for now.
25751 (check_and_process_move): Likewise for local "before". Replace
25752 NULL_RTX with NULL when referring to insns.
25753 (process_addr_reg): Strengthen params "before" and "after" from
25754 rtx * to rtx_insn **.
25755 (insert_move_for_subreg): Likewise.
25756 (simplify_operand_subreg): Strengthen locals "before" and "after"
25757 from rtx to rtx_insn *.
25758 (process_address_1): Strengthen params "before" and "after" from
25759 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25761 (process_address): Strengthen params "before" and "after" from
25762 rtx * to rtx_insn **.
25763 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25764 (curr_insn_transform): Strengthen locals "before" and "after"
25765 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25767 (loc_equivalence_callback): Update cast of "data", changing
25768 resulting type from rtx to rtx_insn *.
25769 (substitute_pseudo_within_insn): New.
25770 (inherit_reload_reg): Strengthen param "insn" from rtx to
25771 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25772 NULL when referring to insns. Add a checked cast to rtx_insn *
25773 when using usage_insn to invoke lra_update_insn_regno_info.
25774 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25775 likewise for locals "restore", "save". Add checked casts to
25776 rtx_insn * when using usage_insn to invoke
25777 lra_update_insn_regno_info and lra_process_new_insns. Replace
25778 NULL_RTX with NULL when referring to insns.
25779 (split_if_necessary): Strengthen param "insn" from rtx to
25781 (update_ebb_live_info): Likewise for params "head", "tail" and local
25783 (get_last_insertion_point): Likewise for return type and local "insn".
25784 (get_live_on_other_edges): Likewise for local "last".
25785 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25786 "prev_insn", "next_insn", "restore".
25787 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25788 (undo_optional_reloads): Likewise for local "insn".
25790 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25792 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25794 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25796 (spill_pseudos): Likewise for local "insn".
25797 (init_elimination): Likewise.
25798 (process_insn_for_elimination): Likewise for param "insn".
25800 * lra-lives.c (curr_insn): Likewise.;
25802 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25803 (remove_pseudos): Likewise for param "insn".
25804 (spill_pseudos): Likewise for local "insn".
25805 (lra_final_code_change): Likewise for locals "insn", "curr".
25807 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25808 (lra_set_insn_deleted): Likewise.
25809 (lra_delete_dead_insn): Likewise, and for local "prev".
25810 (new_insn_reg): Likewise for param "insn".
25811 (lra_set_insn_recog_data): Likewise.
25812 (lra_update_insn_recog_data): Likewise.
25813 (lra_set_used_insn_alternative): Likewise.
25814 (get_insn_freq): Likewise.
25815 (invalidate_insn_data_regno_info): Likewise.
25816 (lra_invalidate_insn_regno_info): Likewise.
25817 (lra_update_insn_regno_info): Likewise.
25818 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25820 (lra_push_insn_1): Strengthen param "insn" from rtx to
25822 (lra_push_insn): Likewise.
25823 (lra_push_insn_and_update_insn_regno_info): Likewise.
25824 (lra_pop_insn): Likewise for return type and local "insn".
25825 (push_insns): Likewise for params "from", "to", and local "insn".
25826 (setup_sp_offset): Likewise for params "from", "last" and locals
25828 (lra_process_new_insns): Likewise for params "insn", "before",
25829 "after" and local "last".
25830 (struct sloc): Likewise for field "insn".
25831 (lra_former_scratch_operand_p): Likewise for param "insn".
25832 (remove_scratches): Likewise for locals "insn", "last".
25833 (check_rtl): Likewise for local "insn".
25834 (add_auto_inc_notes): Likewise for param "insn".
25835 (update_inc_notes): Likewise for local "insn".
25836 (lra): Replace NULL_RTX with NULL when referring to insn.
25838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25840 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25842 (resolve_reg_notes): Likewise.
25843 (resolve_simple_move): Likewise for return type, param "insn", and
25844 locals "insns", "minsn".
25845 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
25846 (resolve_use): Likewise.
25847 (resolve_debug): Likewise.
25848 (find_decomposable_shift_zext): Likewise.
25849 (resolve_shift_zext): Likewise for return type, param "insn", and
25850 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
25851 (decompose_multiword_subregs): Likewise for local "insn",
25852 "orig_insn", "decomposed_shift", "end".
25854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25856 * basic-block.h (basic_block split_edge_and_insert): Strengthen
25857 param "insns" from rtx to rtx_insn *.
25859 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
25861 (struct iv_to_split): Likewise.
25862 (loop_exit_at_end_p): Likewise for local "insn".
25863 (split_edge_and_insert): Likewise for param "insns".
25864 (compare_and_jump_seq): Likewise for return type, param "cinsn",
25865 and locals "seq", "jump".
25866 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
25867 "branch_code"; update invocations of compare_and_jump_seq to
25868 eliminate NULL_RTX in favor of NULL.
25869 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
25871 (reset_debug_uses_in_loop): Likewise.
25872 (analyze_insn_to_expand_var): Likewise for param "insn".
25873 (analyze_iv_to_split_insn): Likewise.
25874 (analyze_insns_in_loop): Likewise for local "insn".
25875 (insert_base_initialization): Likewise for param
25876 "insn" and local "seq".
25877 (split_iv): Likewise for param "insn" and local "seq".
25878 (expand_var_during_unrolling): Likewise for param "insn".
25879 (insert_var_expansion_initialization): Likewise for local "seq".
25880 (combine_var_copies_in_loop_exit): Likewise.
25881 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
25883 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
25884 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
25887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25889 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
25891 (iv_analyze_result): Likewise.
25892 (iv_analyze_expr): Likewise.
25895 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
25896 local "def_insn" from rtx to rtx_insn *.
25897 (get_biv_step_1): Likewise for local "insn".
25898 (iv_analyze_expr): Likewise for param "insn".
25899 (iv_analyze_def): Likewise for local "insn".
25900 (iv_analyze_op): Likewise for param "insn".
25901 (iv_analyze): Likewise.
25902 (iv_analyze_result): Likewise.
25904 (suitable_set_for_replacement): Likewise.
25905 (simplify_using_initial_values): Likewise for local "insn".
25906 (iv_number_of_iterations): Likewise for param "insn".
25907 (check_simple_exit): Add checked cast to rtx_insn when invoking
25908 iv_number_of_iterations for now (until get_condition is
25911 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
25912 "insn" from rtx to rtx_insn *.
25913 (analyze_insns_in_loop): Likewise for local "insn".
25915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25917 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
25919 (struct invariant): Likewise.
25920 (hash_invariant_expr_1): Likewise for param "insn".
25921 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
25922 (find_exits): Likewise for local "insn".
25923 (create_new_invariant): Likewise for param "insn".
25924 (check_dependencies): Likewise.
25925 (find_invariant_insn): Likewise.
25926 (record_uses): Likewise.
25927 (find_invariants_insn): Likewise.
25928 (find_invariants_bb): Likewise for local "insn".
25929 (get_pressure_class_and_nregs): Likewise for param "insn".
25930 (calculate_loop_reg_pressure): Likewise for local "insn".
25932 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25934 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
25936 (add_test): Likewise for locals "seq", "jump".
25937 (doloop_modify): Likewise for locals "sequence", "jump_insn".
25939 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25941 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
25943 (rebuild_jump_labels_chain): Likewise for param "chain".
25945 * cfgexpand.c (pass_expand::execute): Add checked cast to
25946 rtx_insn * when calling rebuild_jump_labels_chain in region where
25947 we know e->insns.r is non-NULL.
25949 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
25951 (rebuild_jump_labels): Likewise.
25952 (rebuild_jump_labels_chain): Likewise for param "chain".
25953 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
25954 (init_label_info): Likewise for param "f".
25955 (maybe_propagate_label_ref): Likewise for params "jump_insn",
25956 "prev_nonjump_insn".
25957 (mark_all_labels): Likewise for param "f" and locals "insn",
25958 "prev_nonjump_insn".
25960 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25962 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
25963 from rtx to rtx_insn *insn.
25964 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
25965 (ira_add_allocno_copy): Likewise.
25966 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
25968 (ira_create_copy): Likewise.
25969 (ira_add_allocno_copy): Likewise.
25970 (create_bb_allocnos): Likewise for local "insn".
25971 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
25972 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
25973 process_regs_for_copy for rtx_insn * param.
25974 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
25975 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
25976 process_regs_for_copy for rtx_insn * param.
25977 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
25978 * ira-costs.c (record_reg_classes): Likewise for param "insn".
25979 (record_operand_costs): Likewise.
25980 (scan_one_insn): Likewise for return type, and for param "insn".
25981 (process_bb_for_costs): Likewise for local "insn".
25982 (process_bb_node_for_hard_reg_moves): Likewise.
25983 * ira-emit.c (struct move): Likewise for field "insn".
25984 (create_move): Eliminate use of NULL_RTX when dealing with an
25986 (emit_move_list): Strengthen return type and locals "result",
25987 "insn" from rtx to rtx_insn *insn.
25988 (emit_moves): Likewise for locals "insns", "tmp".
25989 (ira_emit): Likewise for local "insn".
25990 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
25992 (find_call_crossed_cheap_reg): Likewise.
25993 (process_bb_node_lives): Likewise for local "insn".
25994 * ira.c (decrease_live_ranges_number): Likewise.
25995 (compute_regs_asm_clobbered): Likewise.
25996 (build_insn_chain): Likewise.
25997 (find_moveable_pseudos): Likewise, also locals "def_insn",
25998 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
25999 to rtx_insn **. Add a checked cast when assigning from
26000 "closest_use" into closest_uses array in a region where we know
26001 it's a non-NULL insn.
26002 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
26004 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
26005 "last_interesting_insn", "uin".
26006 (move_unallocated_pseudos): Likewise for locals "def_insn",
26007 "move_insn", "newinsn".
26009 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26011 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
26012 Strengthen locals "done_label", "do_error" from rtx to
26014 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
26015 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
26017 (ubsan_expand_si_overflow_neg_check): Likewise for locals
26018 "done_label", "do_error" to rtx_code_label * and local "last" to
26020 (ubsan_expand_si_overflow_mul_check): Likewise for locals
26021 "done_label", "do_error", "large_op0", "small_op0_large_op1",
26022 "one_small_one_large", "both_ops_large", "after_hipart_neg",
26023 "after_lopart_neg", "do_overflow", "hipart_different" to
26024 rtx_code_label * and local "last" to rtx_insn *.
26026 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26028 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
26029 "insn" and "move_insn" from rtx to rtx_insn *.
26031 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26033 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
26035 (cheap_bb_rtx_cost_p): Likewise.
26036 (first_active_insn): Likewise for return type and local "insn".
26037 (last_active_insn): Likewise for return type and locals "insn",
26039 (struct noce_if_info): Likewise for fields "jump", "insn_a",
26041 (end_ifcvt_sequence): Likewise for return type and locals "insn",
26043 (noce_try_move): Likewise for local "seq".
26044 (noce_try_store_flag): Likewise.
26045 (noce_try_store_flag_constants): Likewise.
26046 (noce_try_addcc): Likewise.
26047 (noce_try_store_flag_mask): Likewise.
26048 (noce_try_cmove): Likewise.
26049 (noce_try_minmax): Likewise.
26050 (noce_try_abs): Likewise.
26051 (noce_try_sign_mask): Likewise.
26052 (noce_try_bitop): Likewise.
26053 (noce_can_store_speculate_p): Likewise for local "insn".
26054 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
26056 (check_cond_move_block): Likewise for local "insn".
26057 (cond_move_convert_if_block): Likewise.
26058 (cond_move_process_if_block): Likewise for locals "seq",
26060 (noce_find_if_block): Likewise for local "jump".
26061 (merge_if_block): Likewise for local "last".
26062 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
26063 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
26064 (block_has_only_trap): Likewise for return type and local "trap".
26065 (find_if_case_1): Likewise for local "jump".
26066 (dead_or_predicable): Likewise for locals "head", "end", "jump",
26069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26071 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
26072 "last_insn", "loop_end" from rtx to rtx_insn *.
26074 * hw-doloop.c (scan_loop): Likewise for local "insn".
26075 (discover_loop): Likewise for param "tail_insn".
26076 (discover_loops): Likewise for local "tail".
26078 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
26079 cast to rtx_insn * when assigning from an rtx local to a
26080 hwloop_info's "last_insn" field.
26082 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26084 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
26085 (add_delay_dependencies): Strengthen local "pro" from rtx to
26087 (recompute_todo_spec): Likewise.
26088 (dep_cost_1): Likewise for locals "insn", "used".
26089 (schedule_insn): Likewise for local "dbg".
26090 (schedule_insn): Likewise for locals "pro", "next".
26091 (unschedule_insns_until): Likewise for local "con".
26092 (restore_pattern): Likewise for local "next".
26093 (estimate_insn_tick): Likewise for local "pro".
26094 (resolve_dependencies): Likewise for local "next".
26095 (fix_inter_tick): Likewise.
26096 (fix_tick_ready): Likewise for local "pro".
26097 (add_to_speculative_block): Likewise for locals "check", "twin",
26099 (sched_extend_bb): Likewise for locals "end", "insn".
26100 (init_before_recovery): Likewise for local "x".
26101 (sched_create_recovery_block): Likewise for local "barrier".
26102 (create_check_block_twin): Likewise for local "pro".
26103 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
26105 (unlink_bb_notes): Update for change to type of bb_header.
26106 Strengthen locals "prev", "label", "note", "next" from rtx to
26108 (clear_priorities): Likewise for local "pro".
26110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26112 * gcse.c (struct occr): Strengthen field "insn" from rtx to
26114 (test_insn): Likewise for this global.
26115 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
26117 (oprs_anticipatable_p): Likewise.
26118 (oprs_available_p): Likewise.
26119 (insert_expr_in_table): Strengthen param "insn" from rtx to
26121 (hash_scan_set): Likewise.
26122 (hash_scan_clobber): Likewise.
26123 (hash_scan_call): Likewise.
26124 (hash_scan_insn): Likewise.
26125 (compute_hash_table_work): Likewise for local "insn".
26126 (process_insert_insn): Likewise for return type and local "pat".
26127 (insert_insn_end_basic_block): Likewise for locals "new_insn",
26128 "pat", "pat_end", "maybe_cc0_setter".
26129 (pre_edge_insert): Likewise for local "insn".
26130 (pre_insert_copy_insn): Likewise for param "insn".
26131 (pre_insert_copies): Likewise for local "insn".
26132 (struct set_data): Likewise for field "insn".
26133 (single_set_gcse): Likewise for param "insn".
26134 (gcse_emit_move_after): Likewise.
26135 (pre_delete): Likewise for local "insn".
26136 (update_bb_reg_pressure): Likewise for param "from" and local
26138 (should_hoist_expr_to_dom): Likewise for param "from".
26139 (hoist_code): Likewise for local "insn".
26140 (get_pressure_class_and_nregs): Likewise for param "insn".
26141 (calculate_bb_reg_pressure): Likewise for local "insn".
26142 (compute_ld_motion_mems): Likewise.
26144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26146 * genpeep.c (main): Rename param back from "uncast_ins1" to
26147 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26150 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26152 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26155 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26156 documentation to state it is only for VSX operations.
26158 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26159 constraint only active if VSX.
26161 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26162 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26163 (lfiwzx): Likewise.
26165 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26167 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26168 Strengthen local "insn" from rtx to rtx_insn *.
26169 (use_killed_between): Likewise for param "target_insn".
26170 (all_uses_available_at): Likewise for param "target_insn" and
26172 (update_df_init): Likewise for params "def_insn", "insn".
26173 (update_df): Likewise for param "insn".
26174 (try_fwprop_subst): Likewise for param "def_insn" and local
26176 (free_load_extend): Likewise for param "insn".
26177 (forward_propagate_subreg): Likewise for param "def_insn" and
26179 (forward_propagate_asm): Likewise for param "def_insn" and local
26181 (forward_propagate_and_simplify): Likewise for param "def_insn"
26182 and local "use_insn".
26183 (forward_propagate_into): Likewise for locals "def_insn" and
26186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26188 * function.c (emit_initial_value_sets): Strengthen local "seq"
26189 from rtx to rtx_insn *.
26190 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26192 (instantiate_virtual_regs): Likewise for local "insn".
26193 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26194 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26195 (expand_function_end): Likewise for locals "insn" and "seq".
26196 (epilogue_done): Likewise for local "insn".
26197 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26199 (reposition_prologue_and_epilogue_notes): Likewise for locals
26200 "insn", "last", "note", "first".
26201 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26202 (pass_match_asm_constraints::execute): Likewise for local "insn".
26204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26206 * output.h (final_scan_insn): Strengthen return type from rtx to
26208 (final_forward_branch_p): Likewise for param.
26209 (current_output_insn): Likewise for this global.
26211 * final.c (rtx debug_insn): Likewise for this variable.
26212 (current_output_insn): Likewise.
26213 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26214 adding "insn" back in as an rtx_insn * with a checked cast, so
26215 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26217 (compute_alignments): Strengthen local "label" from rtx to
26219 (shorten_branches): Rename param from "first" to "uncast_first",
26220 introducing a new local rtx_insn * "first" using a checked cast to
26221 effectively strengthen "first" from rtx to rtx_insn * without
26222 affecting the type signature. Strengthen locals "insn", "seq",
26223 "next", "label" from rtx to rtx_insn *.
26224 (change_scope): Strengthen param "orig_insn" and local "insn" from
26226 (final_start_function): Rename param from "first" to "uncast_first",
26227 introducing a new local rtx_insn * "first" using a checked cast to
26228 effectively strengthen "first" from rtx to rtx_insn * without
26229 affecting the type signature. Strengthen local "insn" from rtx to
26231 (dump_basic_block_info): Strengthen param "insn" from rtx to
26233 (final): Rename param from "first" to "uncast_first",
26234 introducing a new local rtx_insn * "first" using a checked cast to
26235 effectively strengthen "first" from rtx to rtx_insn * without
26236 affecting the type signature. Strengthen locals "insn", "next"
26237 from rtx to rtx_insn *.
26238 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26240 (call_from_call_insn): Strengthen param "insn" from rtx to
26242 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26243 introducing a new local rtx_insn * "insn" using a checked cast to
26244 effectively strengthen "insn" from rtx to rtx_insn * without
26245 affecting the type signature. Strengthen return type and locals
26246 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26247 now-redundant checked cast to rtx_insn * from both invocations of
26248 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26249 introducing a local "call_insn" for use when invoking
26250 call_from_call_insn.
26251 (notice_source_line): Strengthen param "insn" from rtx to
26253 (leaf_function_p): Likewise for local "insn".
26254 (final_forward_branch_p): Likewise.
26255 (leaf_renumber_regs): Likewise for param "first".
26256 (rest_of_clean_state): Likewise for locals "insn" and "next".
26257 (self_recursive_call_p): Likewise for param "insn".
26258 (collect_fn_hard_reg_usage): Likewise for local "insn".
26259 (get_call_fndecl): Likewise for param "insn".
26260 (get_call_cgraph_rtl_info): Likewise.
26261 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26262 introducing a new local rtx_insn * "insn" using a checked cast to
26263 effectively strengthen "insn" from rtx to rtx_insn * without
26264 affecting the type signature.
26266 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26267 cast when assigning from param "insn" to current_output_insn.
26268 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26269 so that we can assign it back to current_output_insn.
26271 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26273 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26274 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26275 atmxt540s and atmxt540sreva devices.
26276 * config/avr/avr-tables.opt: Regenerate.
26277 * config/avr/t-multilib: Regenerate.
26278 * doc/avr-mmcu.texi: Regenerate.
26280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26282 * expr.c (convert_move): Strengthen local "insns" from rtx to
26284 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26285 "top_label" from rtx to rtx_code_label *.
26286 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26288 (emit_single_push_insn): Likewise for locals "prev", "last".
26289 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26290 to rtx_code_label *.
26291 (store_constructor): Likewise for locals "loop_start", "loop_end".
26292 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26294 (expand_expr_real_2): Likewise.
26295 (expand_expr_real_1): Strengthen local "label" from rtx to
26298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26300 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26301 from rtx to rtx_insn *.
26302 (store_bit_field_1): Likewise.
26303 (extract_bit_field_1): Likewise.
26304 (expand_mult_const): Likewise for local "insns".
26305 (expmed_mult_highpart): Strengthen local "label" from rtx to
26307 (expand_smod_pow2): Likewise.
26308 (expand_sdiv_pow2): Likewise.
26309 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26310 rtx_insn *. Strengthen locals "label", "label1", "label2",
26311 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26312 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26313 (emit_store_flag): Likewise.
26314 (emit_store_flag_force): Strengthen local "label" from rtx to
26316 (do_cmp_and_jump): Likewise for param "label".
26318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26320 * explow.c (force_reg): Strengthen local "insn" from rtx to
26322 (adjust_stack_1): Likewise.
26323 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26324 "final_label", "available_label", "space_available" from rtx to
26326 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26327 (anti_adjust_stack_and_probe): Likewise.
26329 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26331 * except.h (sjlj_emit_function_exit_after): Strengthen param
26332 "after" from rtx to rtx_insn *. This is only called with
26333 result of get_last_insn (in function.c) so type-change should be
26336 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26337 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26338 to rtx_insn *. These fields are only used from except.c so this
26339 type-change should be self-contained to this patch.
26341 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26342 local "last" from rtx to rtx_insn *.
26343 (dw2_build_landing_pads): Likewise for local "seq".
26344 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26345 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26346 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26348 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26350 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26351 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26352 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26353 referring to an insn. Strengthen local "dispatch_label" from
26354 rtx to rtx_code_label *.
26355 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26357 (expand_eh_return): Strengthen local "around_label" from
26358 rtx to rtx_code_label *.
26359 (convert_to_eh_region_ranges): Strengthen locals "iter",
26360 "last_action_insn", "first_no_action_insn",
26361 "first_no_action_insn_before_switch",
26362 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26366 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26367 from rtx to rtx_insn *.
26368 (cached_next_real_insn): Likewise.
26369 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26370 working with insns.
26371 (dwarf2out_var_location): Strengthen locals "next_real",
26372 "next_note", "expected_next_loc_note", "last_start", "insn" from
26375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26377 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26378 from rtx to rtx_insn *.
26379 (create_pseudo_cfg): Likewise for local "insn".
26381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26383 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26384 from rtx to rtx_insn *.
26385 (df_bb_regno_last_def_find): Likewise.
26387 * df-problems.c (df_rd_bb_local_compute): Likewise.
26388 (df_lr_bb_local_compute): Likewise.
26389 (df_live_bb_local_compute): Likewise.
26390 (df_chain_remove_problem): Likewise.
26391 (df_chain_create_bb): Likewise.
26392 (df_word_lr_bb_local_compute): Likewise.
26393 (df_remove_dead_eq_notes): Likewise for param "insn".
26394 (df_note_bb_compute): Likewise for local "insn".
26395 (simulate_backwards_to_point): Likewise.
26396 (df_md_bb_local_compute): Likewise.
26398 * df-scan.c (df_scan_free_bb_info): Likewise.
26399 (df_scan_start_dump): Likewise.
26400 (df_scan_start_block): Likewise.
26401 (df_install_ref_incremental): Likewise for local "insn".
26402 (df_insn_rescan_all): Likewise.
26403 (df_reorganize_refs_by_reg_by_insn): Likewise.
26404 (df_reorganize_refs_by_insn_bb): Likewise.
26405 (df_recompute_luids): Likewise.
26406 (df_bb_refs_record): Likewise.
26407 (df_update_entry_exit_and_calls): Likewise.
26408 (df_bb_verify): Likewise.
26410 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26412 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26413 "first_note" from rtx to rtx_insn *.
26414 (get_node_of_insn): Likewise for param 2 "insn".
26415 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26417 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26419 (mem_write_insn_p): Likewise.
26420 (mem_access_insn_p): Likewise.
26421 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26422 (def_has_ccmode_p): Likewise for param "insn".
26423 (add_cross_iteration_register_deps): Likewise for locals
26424 "def_insn" and "use_insn".
26425 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26426 (build_intra_loop_deps): Likewise for local "src_insn".
26427 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26429 (get_node_of_insn): Likewise for param "insn".
26431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26433 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26434 (deletable_insn_p): Strengthen param "insn" from rtx to
26435 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26436 find_call_stack_args, since this is guarded by CALL_P (insn).
26437 (marked_insn_p): Strengthen param "insn" from rtx to
26439 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26440 invoking find_call_stack_args, since this is guarded by
26442 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26443 rtx_insn *; we know this is an insn since this was called by
26444 mark_nonreg_stores.
26445 (mark_nonreg_stores_2): Likewise.
26446 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26448 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26449 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26451 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26452 from rtx to rtx_insn *.
26453 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26454 "next", "ref_insn".
26455 (delete_unmarked_insns): Likewise for locals "insn", "next".
26456 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26457 (mark_reg_dependencies): Likewise for param "insn".
26458 (rest_of_handle_ud_dce): Likewise for local "insn".
26459 (word_dce_process_block): Likewise.
26460 (dce_process_block): Likewise.
26462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26464 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26465 from rtx to rtx_insn *.
26466 (struct change_cc_mode_args): Likewise for field "insn".
26467 (this_insn): Strengthen from rtx to rtx_insn *.
26468 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26470 (validate_canon_reg): Strengthen param "insn" from rtx to
26472 (canon_reg): Likewise.
26473 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26475 (record_jump_equiv): Strengthen param "insn" from rtx to
26477 (try_back_substitute_reg): Likewise, also for locals "prev",
26479 (find_sets_in_insn): Likewise for param "insn".
26480 (canonicalize_insn): Likewise.
26481 (cse_insn): Likewise. Add a checked cast.
26482 (invalidate_from_clobbers): Likewise for param "insn".
26483 (invalidate_from_sets_and_clobbers): Likewise.
26484 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26486 (cse_prescan_path): Strengthen local "insn" from rtx to
26488 (cse_extended_basic_block): Likewise for locals "insn" and
26490 (cse_main): Likewise for param "f".
26491 (check_for_label_ref): Likewise for local "insn".
26492 (set_live_p): Likewise for second param ("insn").
26493 (insn_live_p): Likewise for first param ("insn") and for local
26495 (cse_change_cc_mode_insn): Likewise for first param "insn".
26496 (cse_change_cc_mode_insns): Likewise for first and second params
26498 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26500 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26503 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26505 Anna Tikhonova <anna.tikhonova@intel.com>
26506 Ilya Tocar <ilya.tocar@intel.com>
26507 Andrey Turetskiy <andrey.turetskiy@intel.com>
26508 Ilya Verbin <ilya.verbin@intel.com>
26509 Kirill Yukhin <kirill.yukhin@intel.com>
26510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26512 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26514 * config/i386/sse.md
26515 (define_mode_iterator VI248_AVX2): Delete.
26516 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26517 (define_mode_iterator VI48_AVX2): Ditto.
26518 (define_insn <shift_insn><mode>3): Delete.
26519 (define_insn "<shift_insn><mode>3<mask_name>" with
26520 VI2_AVX2_AVX512BW): New.
26521 (define_insn "<shift_insn><mode>3<mask_name>" with
26524 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26526 Anna Tikhonova <anna.tikhonova@intel.com>
26527 Ilya Tocar <ilya.tocar@intel.com>
26528 Andrey Turetskiy <andrey.turetskiy@intel.com>
26529 Ilya Verbin <ilya.verbin@intel.com>
26530 Kirill Yukhin <kirill.yukhin@intel.com>
26531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26533 * config/i386/sse.md
26534 (define_mode_iterator VI4F_BRCST32x2): New.
26535 (define_mode_attr 64x2_mode): Ditto.
26536 (define_mode_attr 32x2mode): Ditto.
26537 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26538 with VI4F_BRCST32x2): Ditto.
26539 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26540 with V16FI mode iterator): Ditto.
26541 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26542 with V16FI): Ditto.
26543 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26544 with VI8F_BRCST64x2): Ditto.
26546 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26547 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26548 Anna Tikhonova <anna.tikhonova@intel.com>
26549 Ilya Tocar <ilya.tocar@intel.com>
26550 Andrey Turetskiy <andrey.turetskiy@intel.com>
26551 Ilya Verbin <ilya.verbin@intel.com>
26552 Kirill Yukhin <kirill.yukhin@intel.com>
26553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26555 * config/i386/sse.md
26556 (define_mode_iterator VI8_AVX512VL): New.
26557 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26559 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26561 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26562 (define_mode_iterator V48_AVX512VL): New.
26563 (define_mode_iterator V12_AVX512VL): Ditto.
26564 (define_insn <avx512>_load<mode>_mask): Split into two similar
26565 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26566 Refactor output template.
26567 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26569 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26571 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26573 (reg_available_p): Likewise for param "insn".
26574 (insert_set_in_table): Likewise.
26575 (hash_scan_set): Likewise.
26576 (hash_scan_insn): Likewise.
26577 (make_set_regs_unavailable): Likewise.
26578 (compute_hash_table_work): Likewise for local "insn".
26579 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26581 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26582 (try_replace_reg): Likewise.
26583 (find_avail_set): Likewise.
26584 (cprop_jump): Likewise for params "setcc", "jump".
26585 (constprop_register): Likewise for param "insn".
26586 (cprop_insn): Likewise.
26587 (do_local_cprop): Likewise.
26588 (local_cprop_pass): Likewise for local "insn".
26589 (bypass_block): Likewise for params "setcc" and "jump".
26590 (bypass_conditional_jumps): Likewise for locals "setcc" and
26592 (one_cprop_pass): Likewise for local "insn".
26594 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26596 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26597 from rtx to rtx_insn *.
26598 (struct comparison): Likewise, also for field "prev_clobber".
26599 (conforming_compare): Likewise for param "insn".
26600 (arithmetic_flags_clobber_p): Likewise.
26601 (find_flags_uses_in_insn): Likewise.
26602 (find_comparison_dom_walker::before_dom_children): Likewise for
26603 locals "insn", "next", "last_clobber".
26604 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26606 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26608 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26609 "insn" from rtx to rtx_insn *.
26610 (single_set_for_csa): Likewise for param "insn".
26611 (record_one_stack_ref): Likewise.
26612 (try_apply_stack_adjustment): Likewise.
26613 (struct record_stack_refs_data): Likewise for field "insn".
26614 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26615 (prev_active_insn_bb): Likewise for return type and param "insn".
26616 (next_active_insn_bb): Likewise.
26617 (force_move_args_size_note): Likewise for params "prev" and "last"
26618 and locals "test", "next_candidate", "prev_candidate".
26619 (combine_stack_adjustments_for_block): Strengthen locals
26620 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26623 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26625 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26626 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26627 (subst_insn): Likewise for this variable.
26628 (added_links_insn): Likewise.
26629 (struct insn_link): Likewise for field "insn".
26630 (alloc_insn_link): Likewise for param "insn".
26631 (struct undobuf): Likewise for field "other_insn".
26632 (find_single_use): Likewise for param "insn" and local "next".
26633 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26634 (delete_noop_moves): Likewise for locals "insn", "next".
26635 (create_log_links): Likewise for locals "insn", "use_insn".
26636 Strengthen local "next_use" from rtx * to rtx_insn **.
26637 (insn_a_feeds_b): Likewise for params "a", "b".
26638 (combine_instructions): Likewise for param "f" and locals "insn",
26639 "next", "prev", "first", "last_combined_insn", "link", "link1",
26640 "temp". Replace use of NULL_RTX with NULL when referring to
26642 (setup_incoming_promotions): Likewise for param "first"
26643 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26644 (can_combine_p): Likewise for params "insn", "i3", "pred",
26645 "pred2", "succ", "succ2" and for local "p".
26646 (combinable_i3pat): Likewise for param "i3".
26647 (cant_combine_insn_p): Likewise for param "insn".
26648 (likely_spilled_retval_p): Likewise.
26649 (adjust_for_new_dest): Likewise.
26650 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26651 (try_combine): Likewise for return type and for params "i3", "i2",
26652 "i1", "i0", "last_combined_insn", and for locals "insn",
26653 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26654 "i0_insn". Eliminate local "tem" in favor of new locals
26655 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26656 checked cast for now to rtx_insn * on the return type of
26657 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26659 (find_split_point): Strengthen param "insn" from rtx to
26661 (simplify_set): Likewise for local "other_insn".
26662 (recog_for_combine): Likewise for param "insn".
26663 (record_value_for_reg): Likewise.
26664 (record_dead_and_set_regs_1): Likewise for local
26665 "record_dead_insn".
26666 (record_dead_and_set_regs): Likewise for param "insn".
26667 (record_promoted_value): Likewise.
26668 (check_promoted_subreg): Likewise.
26669 (get_last_value_validate): Likewise.
26670 (reg_dead_at_p): Likewise.
26671 (move_deaths): Likewise for param "to_insn".
26672 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26673 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26674 in favor of new locals "tem_note" and "tem_insn", the latter being
26676 (distribute_links): Strengthen locals "place", "insn" from rtx to
26679 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26681 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26683 (can_delete_label_p): Require a const rtx_code_label * rather than
26685 (delete_insn): Add checked cast to rtx_code_label * when we know
26686 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26688 (delete_insn_chain): Strengthen locals "prev" and "current" from
26689 rtx to rtx_insn *. Add a checked cast when assigning from
26690 "finish" (strengthening the params will come later). Add a
26691 checked cast to rtx_note * in region where we know
26693 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26695 (compute_bb_for_insn): Likewise.
26696 (free_bb_for_insn): Likewise for local "insn".
26697 (compute_bb_for_insn): Likewise.
26698 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26699 local "insn" from rtx to rtx_insn *
26700 (flow_active_insn_p): Require a const rtx_insn * rather than a
26702 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26704 (can_fallthru): Likewise for locals "insn" and "insn2".
26705 (bb_note): Likewise for local "note".
26706 (first_insn_after_basic_block_note): Likewise for local "note" and
26708 (rtl_split_block): Likewise for locals "insn" and "next".
26709 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26711 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26712 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26714 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26715 them), "kill_from", "barrier", "new_insn".
26716 (patch_jump_insn): Likewise for params "insn", "old_label".
26717 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26718 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26719 "old_label", "new_label".
26720 (rtl_tidy_fallthru_edge): Likewise for local "q".
26721 (rtl_split_edge): Likewise for locals "before", "last".
26722 (commit_one_edge_insertion): Likewise for locals "before",
26723 "after", "insns", "tmp", "last", adding a checked cast where
26724 currently necessary.
26725 (commit_edge_insertions): Likewise.
26726 (rtl_dump_bb): Likewise for locals "insn", "last".
26727 (print_rtl_with_bb): Likewise for local "x".
26728 (rtl_verify_bb_insns): Likewise for local "x".
26729 (rtl_verify_bb_pointers): Likewise for local "insn".
26730 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26732 (rtl_verify_fallthru): Likewise for local "insn".
26733 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26734 (purge_dead_edges): Likewise for local "insn".
26735 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26736 (skip_insns_after_block): Likewise for return type and for locals
26737 "insn", "last_insn", "next_head", "prev".
26738 (record_effective_endpoints): Likewise for locals "next_insn",
26740 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26741 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26742 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26743 (duplicate_insn_chain): For now, add checked cast from rtx to
26744 rtx_insn * when returning insn.
26745 (cfg_layout_duplicate_bb): Likewise for local "insn".
26746 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26747 "prev", "remaints".
26748 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26749 (rtl_block_empty_p): Likewise.
26750 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26751 "split_point", "last".
26752 (rtl_block_ends_with_call_p): Likewise for local "insn".
26753 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26755 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26756 "split_at_insn" from rtx to rtx_insn *.
26757 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26758 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26759 to const rtx_insn *.
26760 (rtl_account_profile_record): Likewise.
26762 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26764 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26766 (average_num_loop_insns): Likewise.
26767 (init_set_costs): Likewise for local "seq".
26768 (seq_cost): Likewise for param "seq", from const_rtx to const
26771 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26773 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26776 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26778 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26779 "f1" and "f2" from rtx * to rtx_insn **.
26780 (flow_find_head_matching_sequence): Likewise.
26782 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26783 "cbranch_insn" from rtx to rtx_insn *.
26784 (thread_jump): Likewise for local "insn".
26785 (try_forward_edges): Likewise for local "last".
26786 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26787 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26789 (can_replace_by): Likewise for params "i1", "i2".
26790 (old_insns_match_p): Likewise.
26791 (merge_notes): Likewise.
26792 (walk_to_nondebug_insn): Likewise for param "i1".
26793 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26794 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26795 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26796 (flow_find_head_matching_sequence): Strengthen params "f1" and
26797 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26798 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26800 (outgoing_edges_match): Likewise for locals "last1", "last2".
26801 (try_crossjump_to_edge): Likewise for local "insn".
26802 Replace call to for_each_rtx with for_each_rtx_in_insn.
26804 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26805 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26806 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26807 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26808 (try_optimize_cfg): Strengthen local "last" from rtx to
26810 (delete_dead_jumptables): Likewise for locals "insn", "next",
26813 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26814 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26815 "rtx else_first_tail", to reflect the basic-block.h changes above.
26817 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26819 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26821 (purge_dead_tablejump_edges): Likewise.
26822 (find_bb_boundaries): Likewise for locals "insn", "end",
26823 "flow_transfer_insn".
26825 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26827 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26828 "ins" and "prev" from rtx to rtx_insn *.
26830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26832 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26834 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26835 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26837 (load_register_parameters): Likewise for local "before_arg".
26838 (check_sibcall_argument_overlap): Likewise for param "insn".
26839 (expand_call): Likewise for locals "normal_call_insns",
26840 "tail_call_insns", "insns", "before_call", "after_args",
26841 "before_arg", "last", "prev". Strengthen one of the "last" from
26842 rtx to rtx_call_insn *.
26843 (fixup_tail_calls): Strengthen local "insn" from rtx to
26845 (emit_library_call_value_1): Likewise for locals "before_call" and
26848 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26850 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
26851 and "last" from rtx to rtx_insn *.
26852 (expand_builtin_nonlocal_goto): Likewise for local "insn".
26853 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
26855 (expand_errno_check): Strengthen local "lab" from rtx to
26857 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
26859 (expand_builtin_mathfn_2): Likewise.
26860 (expand_builtin_mathfn_ternary): Likewise.
26861 (expand_builtin_mathfn_3): Likewise.
26862 (expand_builtin_interclass_mathfn): Likewise for local "last".
26863 (expand_builtin_int_roundingfn): Likewise for local "insns".
26864 (expand_builtin_int_roundingfn_2): Likewise.
26865 (expand_builtin_strlen): Likewise for local "before_strlen".
26866 (expand_builtin_strncmp): Likewise for local "seq".
26867 (expand_builtin_signbit): Likewise for local "last".
26868 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
26869 from rtx to rtx_code_label *.
26870 (expand_stack_restore): Strengthen local "prev" from rtx to
26873 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26875 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
26877 (struct btr_def_s): Likewise.
26878 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
26880 (add_btr_def): Likewise.
26881 (new_btr_user): Likewise.
26882 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
26884 (link_btr_uses): Likewise.
26885 (move_btr_def): Likewise for locals "insp", "old_insn",
26886 "new_insn". Add checked cast to rtx_insn * for now on result of
26888 (can_move_up): Strengthen param "insn" from const_rtx to
26891 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26893 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
26895 (get_uncond_jump_length): Likewise for locals "label", "jump".
26896 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
26898 (add_labels_and_missing_jumps): Likewise for local "new_jump".
26899 (fix_up_fall_thru_edges): Likewise for local "old_jump".
26900 (find_jump_block): Likewise for local "insn".
26901 (fix_crossing_conditional_branches): Likewise for locals
26902 "old_jump", "new_jump".
26903 (fix_crossing_unconditional_branches): Likewise for locals
26904 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
26905 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
26907 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26909 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
26911 (struct mem_insn): Likewise for field "insn".
26912 (reg_next_use): Strengthen from rtx * to rtx_insn **.
26913 (reg_next_inc_use): Likewise.
26914 (reg_next_def): Likewise.
26915 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
26916 from rtx to rtx_insn *.
26917 (move_insn_before): Likewise for param "next_insn" and local "insns".
26918 (attempt_change): Likewise for local "mov_insn".
26919 (try_merge): Likewise for param "last_insn".
26920 (get_next_ref): Likewise for return type and local "insn".
26921 Strengthen param "next_array" from rtx * to rtx_insn **.
26922 (parse_add_or_inc): Strengthen param "insn" from rtx to
26924 (find_inc): Likewise for locals "insn" and "other_insn" (three of
26926 (merge_in_block): Likewise for locals "insn", "curr",
26928 (pass_inc_dec::execute): Update allocations of the arrays to
26929 reflect the stronger types.
26931 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26933 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
26934 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
26935 from rtx to rtx_code_label *.
26937 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26939 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
26942 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26944 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
26945 generated a warning and prevented bootstrapping the compiler.
26947 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26949 * rtl.h (delete_related_insns): Strengthen return type from rtx to
26952 * jump.c (delete_related_insns): Likewise, also for locals "next"
26955 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26957 * genautomata.c (output_internal_insn_latency_func): When writing
26958 the function "internal_insn_latency" to insn-automata.c,
26959 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
26960 allowing the optional guard function of (define_bypass) clauses to
26961 expect a pair of rtx_insn *, rather than a pair of rtx.
26962 (output_insn_latency_func): When writing the function
26963 "insn_latency", add an "uncast_" prefix to params "insn" and
26964 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
26965 using checked casts from the params, thus enabling the above
26966 change to the generated "internal_insn_latency" function.
26968 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
26970 PR tree-optimization/62091
26971 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26972 handle correctly arrays.
26973 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
26974 inheritance binfos.
26975 (record_known_type): Walk into inner type.
26976 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
26977 condition on no type changes.
26979 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26981 * genattrtab.c (write_attr_get): Within the generated get_attr_
26982 functions, rename param "insn" to "uncast_insn" and reintroduce
26983 "insn" as an local rtx_insn * using a checked cast, so that "insn"
26984 is an rtx_insn * within insn-attrtab.c
26986 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26988 * output.h (peephole): Strengthen return type from rtx to
26990 * rtl.h (delete_for_peephole): Likewise for both params.
26991 * genpeep.c (main): In generated "peephole" function, strengthen
26992 return type and local "insn" from rtx to rtx_insn *. For now,
26993 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
26994 rtx_insn *, with a checked cast.
26995 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
26996 locals "insn", "next", "prev" from rtx to rtx_insn *.
26998 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
27000 PR tree-optimization/62112
27001 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
27002 * gimple-iterator.h (gsi_replace): Return bool.
27003 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
27004 moved from ref_may_alias_global_p.
27005 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
27007 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
27008 (stmt_kills_ref_p_1): Rename...
27009 (stmt_kills_ref_p): ... to this.
27010 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
27011 stmt_kills_ref_p): Declare.
27012 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
27013 Move the self-assignment case...
27014 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
27016 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27018 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
27020 * emit-rtl.c (try_split): Likewise, also for locals "before" and
27021 "after". For now, don't strengthen param "trial", which requires
27022 adding checked casts when returning it.
27024 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27026 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
27027 "label" from rtx to rtx_code_label *. Strengthen param 1 of
27028 "var_location" hook from rtx to rtx_insn *.
27029 (debug_nothing_rtx): Delete in favor of...
27030 (debug_nothing_rtx_code_label): New prototype.
27031 (debug_nothing_rtx_rtx): Delete unused prototype.
27032 (debug_nothing_rtx_insn): New prototype.
27034 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
27035 invoking debug_hooks->var_location (in two places, one in a NOTE
27036 case of a switch statement, the other guarded by a CALL_P
27037 conditional. Add checked cast to rtx_code_label * when invoking
27038 debug_hooks->label (within CODE_LABEL case of switch statement).
27040 * dbxout.c (dbx_debug_hooks): Update "label" hook from
27041 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27042 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
27043 (xcoff_debug_hooks): Likewise.
27044 * debug.c (do_nothing_debug_hooks): Likewise.
27045 (debug_nothing_rtx): Delete in favor of...
27046 (debug_nothing_rtx_insn): New function.
27047 (debug_nothing_rtx_rtx): Delete unused function.
27048 (debug_nothing_rtx_code_label): New function.
27049 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
27050 debug_nothing_rtx to debug_nothing_rtx_code_label.
27051 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
27053 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
27054 debug_nothing_rtx to debug_nothing_rtx_insn.
27055 (sdbout_label): Strengthen param "insn" from rtx to
27057 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
27058 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27059 "var_location" hook from debug_nothing_rtx to
27060 debug_nothing_rtx_insn.
27062 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27064 * recog.h (insn_output_fn): Update this function typedef to match
27065 the changes below to the generated output functions, strengthening
27066 the 2nd param from rtx to rtx_insn *.
27068 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
27069 insn when invoking an output function, to match the new signature
27070 of insn_output_fn with a stronger second param.
27072 * genconditions.c (write_header): In the generated code for
27073 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
27074 to match the other changes in this patch.
27076 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
27077 the generated "gen_" functions from rtx to rtx_insn * within their
27080 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
27081 the subfunctions within the generated "recog_", "split", "peephole2"
27082 function trees from rtx to rtx_insn *. For now, the top-level
27083 generated functions ("recog", "split", "peephole2") continue to
27084 take a plain rtx for "insn", to avoid introducing dependencies on
27085 other patches. Rename this 2nd param from "insn" to
27086 "uncast_insn", and reintroduce "insn" as a local variable of type
27087 rtx_insn *, initialized at the top of the generated function with
27088 a checked cast on "uncast_insn".
27089 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
27090 the generated "gen_" functions from rtx to rtx_insn * within their
27093 * genoutput.c (process_template): Strengthen the 2nd param within
27094 the generated "output_" functions "insn" from rtx to rtx_insn *.
27096 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27098 * tree-profile.c (tree_profiling): Skip external functions
27099 when doing coverage instrumentation.
27100 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
27102 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27104 * config/rs6000/altivec.h (vec_cpsgn): New #define.
27105 (vec_mergee): Likewise.
27106 (vec_mergeo): Likewise.
27107 (vec_cntlz): Likewise.
27108 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
27109 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
27110 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
27111 VMRGEW, and VMRGOW.
27112 * doc/extend.texi: Document various forms of vec_cpsgn,
27113 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
27114 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
27115 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
27116 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
27117 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
27119 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27121 * config/rs6000/rs6000.c (context.h): New include.
27122 (tree-pass.h): Likewise.
27123 (make_pass_analyze_swaps): New decl.
27124 (rs6000_option_override): Register pass_analyze_swaps.
27125 (swap_web_entry): New subsclass of web_entry_base (df.h).
27126 (special_handling_values): New enum.
27127 (union_defs): New function.
27128 (union_uses): Likewise.
27129 (insn_is_load_p): Likewise.
27130 (insn_is_store_p): Likewise.
27131 (insn_is_swap_p): Likewise.
27132 (rtx_is_swappable_p): Likewise.
27133 (insn_is_swappable_p): Likewise.
27134 (chain_purpose): New enum.
27135 (chain_contains_only_swaps): New function.
27136 (mark_swaps_for_removal): Likewise.
27137 (swap_const_vector_halves): Likewise.
27138 (adjust_subreg_index): Likewise.
27139 (permute_load): Likewise.
27140 (permute_store): Likewise.
27141 (handle_special_swappables): Likewise.
27142 (replace_swap_with_copy): Likewise.
27143 (dump_swap_insn_table): Likewise.
27144 (rs6000_analyze_swaps): Likewise.
27145 (pass_data_analyze_swaps): New pass_data.
27146 (pass_analyze_swaps): New rtl_opt_pass.
27147 (make_pass_analyze_swaps): New function.
27148 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27150 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27152 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27153 type from rtx to rtx_insn *.
27154 (create_copy_of_insn_rtx): Likewise.
27155 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27156 (create_copy_of_insn_rtx): Likewise, also for local "res".
27158 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27160 * rtl.h (find_first_parameter_load): Strengthen return type from
27162 * rtlanal.c (find_first_parameter_load): Strengthen return type
27163 from rtx to rtx_insn *. Add checked cast for now, to postpone
27164 strengthening the params.
27166 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27169 * diagnostic.c: Set default caret.
27170 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27172 * diagnostic.h (struct diagnostic_context):
27174 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27176 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27177 (sel_bb_head): Strengthen return type insn_t (currently just an
27178 rtx) to rtx_insn *.
27179 (sel_bb_end): Likewise.
27181 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27182 (sel_bb_head): Strengthen return type and local "head" from
27183 insn_t (currently just an rtx) to rtx_insn *.
27184 (sel_bb_end): Likewise for return type.
27185 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27188 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27190 * basic-block.h (get_last_bb_insn): Strengthen return type from
27192 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27195 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27198 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27200 (diagnostic_report_diagnostic): ... from here.
27201 * toplev.c (general_init): Move code to c-family.
27203 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27205 * df.h (web_entry_base): Replace existing struct web_entry with a
27206 new class web_entry_base with only the predecessor member.
27207 (unionfind_root): Remove declaration and move to class member.
27208 (unionfind_union): Remove declaration and move to friend
27210 (union_defs): Remove declaration.
27211 * web.c (web_entry_base::unionfind_root): Modify to be member
27212 function and adjust accessors.
27213 (unionfind_union): Modify to be friend function and adjust
27215 (web_entry): New subclass of web_entry_base containing the reg
27217 (union_match_dups): Modify for struct -> class changes.
27218 (union_defs): Likewise.
27219 (entry_register): Likewise.
27220 (pass_web::execute): Likewise.
27222 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27224 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27225 builtin define __VEC_ELEMENT_REG_ORDER__.
27227 2014-08-20 Martin Jambor <mjambor@suse.cz>
27228 Wei Mi <wmi@google.com>
27231 PR middle-end/61776
27232 * tree-ssa-operands.c (update_stmt_operands): Remove
27233 MODIFIED_NORETURN_CALLS.
27234 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27235 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27236 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27237 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27238 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27239 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27240 (gimple_call_set_ctrl_altering): New func.
27241 (gimple_call_ctrl_altering_p): Ditto.
27242 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27243 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27244 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27245 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27246 remove MODIFIED_NORETURN_CALLS.
27248 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27250 * coverage.c (coverage_compute_profile_id): Return non-0;
27251 also handle symbols with unique name.
27252 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27254 2014-08-20 Steve Ellcey <sellcey@mips.com>
27256 PR middle-end/49191
27257 * doc/sourcebuild.texi (non_strict_align): New.
27259 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27261 * cgraphunit.c (ipa_passes, compile): Reshedule
27262 symtab_remove_unreachable_nodes passes; update comments.
27263 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27264 TODO_remove_functions before the pass; the functions ought to be
27266 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27267 TODO_remove_functions.
27268 * passes.c (pass_data_early_local_passes): Do not schedule function
27270 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27272 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27275 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27276 before setting the option.
27277 * diagnostic.c (diagnostic_classify_diagnostic): Record
27278 command-line status.
27280 2014-08-20 Richard Biener <rguenther@suse.de>
27283 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27284 to build uint{16,32,64}_type_node.
27286 2014-08-20 Terry Guo <terry.guo@arm.com>
27288 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27289 with immediate_operand.
27291 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27293 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27294 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27297 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27299 PR preprocessor/51303
27300 * incpath.c (remove_duplicates): Use cpp_warning.
27302 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27306 * doc/options.texi (CPP): Document it.
27307 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27308 * optc-gen.awk: Handle CPP.
27309 * opth-gen.awk: Likewise.
27311 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27313 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27315 (duplicate_insn_chain): Likewise.
27316 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27317 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27318 checked cast for now (until we can strengthen the params in the
27320 (duplicate_insn_chain): Likewise.
27322 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27324 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27326 (prev_cc0_setter): Likewise.
27328 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27329 rtx_insn *, adding checked casts for now as necessary.
27330 (prev_cc0_setter): Likewise.
27332 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27334 * expr.h (emit_move_insn): Strengthen return type from rtx to
27336 (emit_move_insn_1): Likewise.
27337 (emit_move_complex_push): Likewise.
27338 (emit_move_complex_parts): Likewise.
27340 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27341 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27343 (emit_move_complex_push): Strengthen return type from rtx to
27345 (emit_move_complex): Likewise, also for local "ret".
27346 (emit_move_ccmode): Likewise.
27347 (emit_move_multi_word): Likewise for return type and locals
27348 "last_insn", "seq".
27349 (emit_move_insn_1): Likewise for return type and locals "result",
27351 (emit_move_insn): Likewise for return type and local "last_insn".
27352 (compress_float_constant): Likewise.
27354 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27356 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27357 from rtx to rtx_insn *.
27359 * rtl.h (emit_insn_before): Likewise.
27360 (emit_insn_before_noloc): Likewise.
27361 (emit_insn_before_setloc): Likewise.
27362 (emit_jump_insn_before): Likewise.
27363 (emit_jump_insn_before_noloc): Likewise.
27364 (emit_jump_insn_before_setloc): Likewise.
27365 (emit_call_insn_before): Likewise.
27366 (emit_call_insn_before_noloc): Likewise.
27367 (emit_call_insn_before_setloc): Likewise.
27368 (emit_debug_insn_before): Likewise.
27369 (emit_debug_insn_before_noloc): Likewise.
27370 (emit_debug_insn_before_setloc): Likewise.
27371 (emit_label_before): Likewise.
27372 (emit_insn_after): Likewise.
27373 (emit_insn_after_noloc): Likewise.
27374 (emit_insn_after_setloc): Likewise.
27375 (emit_jump_insn_after): Likewise.
27376 (emit_jump_insn_after_noloc): Likewise.
27377 (emit_jump_insn_after_setloc): Likewise.
27378 (emit_call_insn_after): Likewise.
27379 (emit_call_insn_after_noloc): Likewise.
27380 (emit_call_insn_after_setloc): Likewise.
27381 (emit_debug_insn_after): Likewise.
27382 (emit_debug_insn_after_noloc): Likewise.
27383 (emit_debug_insn_after_setloc): Likewise.
27384 (emit_label_after): Likewise.
27385 (emit_insn): Likewise.
27386 (emit_debug_insn): Likewise.
27387 (emit_jump_insn): Likewise.
27388 (emit_call_insn): Likewise.
27389 (emit_label): Likewise.
27390 (gen_clobber): Likewise.
27391 (emit_clobber): Likewise.
27392 (gen_use): Likewise.
27393 (emit_use): Likewise.
27396 (emit_barrier_before): Strengthen return type from rtx to
27398 (emit_barrier_after): Likewise.
27399 (emit_barrier): Likewise.
27401 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27402 from rtx to rtx_insn *. Add checked casts for now when converting
27403 "last" from rtx to rtx_insn *.
27404 (emit_insn_before_noloc): Likewise for return type.
27405 (emit_jump_insn_before_noloc): Likewise.
27406 (emit_call_insn_before_noloc): Likewise.
27407 (emit_debug_insn_before_noloc): Likewise.
27408 (emit_barrier_before): Strengthen return type and local "insn"
27409 from rtx to rtx_barrier *.
27410 (emit_label_before): Strengthen return type from rtx to
27411 rtx_insn *. Add checked cast for now when returning param
27412 (emit_pattern_after_noloc): Strengthen return type from rtx to
27413 rtx_insn *. Add checked casts for now when converting "last" from
27415 (emit_insn_after_noloc): Strengthen return type from rtx to
27417 (emit_jump_insn_after_noloc): Likewise.
27418 (emit_call_insn_after_noloc): Likewise.
27419 (emit_debug_insn_after_noloc): Likewise.
27420 (emit_barrier_after): Strengthen return type from rtx to
27422 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27423 Add checked cast for now when converting "label" from rtx to
27425 (emit_pattern_after_setloc): Strengthen return type from rtx to
27426 rtx_insn *. Add checked casts for now when converting "last" from
27428 (emit_pattern_after): Strengthen return type from rtx to
27430 (emit_insn_after_setloc): Likewise.
27431 (emit_insn_after): Likewise.
27432 (emit_jump_insn_after_setloc): Likewise.
27433 (emit_jump_insn_after): Likewise.
27434 (emit_call_insn_after_setloc): Likewise.
27435 (emit_call_insn_after): Likewise.
27436 (emit_debug_insn_after_setloc): Likewise.
27437 (emit_debug_insn_after): Likewise.
27438 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27439 when converting "last" from rtx to rtx_insn *.
27440 (emit_pattern_before): Strengthen return type from rtx to
27442 (emit_insn_before_setloc): Likewise.
27443 (emit_insn_before): Likewise.
27444 (emit_jump_insn_before_setloc): Likewise.
27445 (emit_jump_insn_before): Likewise.
27446 (emit_call_insn_before_setloc): Likewise.
27447 (emit_call_insn_before): Likewise.
27448 (emit_debug_insn_before_setloc): Likewise.
27449 (emit_debug_insn_before): Likewise.
27450 (emit_insn): Strengthen return type and locals "last", "insn",
27451 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27452 within cases where we know we have an insn.
27453 (emit_debug_insn): Likewise.
27454 (emit_jump_insn): Likewise.
27455 (emit_call_insn): Strengthen return type and local "insn" from rtx
27457 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27458 a checked cast to rtx_insn * for now on "label".
27459 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27460 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27461 (emit_use): Likewise.
27462 (gen_use): Likewise, also for local "seq".
27463 (emit): Likewise for return type and local "insn".
27464 (rtx_insn): Likewise for return type and local "new_rtx".
27466 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27467 from rtx to rtx_barrier *.
27469 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27470 changed return type from rtx to rtx_insn *, we must update
27471 "emit_fn" type, and this in turn means updating...
27472 (frame_insn): ...this. Strengthen return type from rtx to
27473 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27475 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27477 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27478 rtx to rtx_jump_table_data *. Also for local.
27479 * rtl.h (emit_jump_table_data): Likewise.
27481 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27483 * basic-block.h (create_basic_block_structure): Strengthen third
27484 param "bb_note" from rtx to rtx_note *.
27485 * rtl.h (emit_note_before): Strengthen return type from rtx to
27487 (emit_note_after): Likewise.
27488 (emit_note): Likewise.
27489 (emit_note_copy): Likewise. Also, strengthen param similarly.
27490 * function.h (struct rtl_data): Strengthen field
27491 "x_stack_check_probe_note" from rtx to rtx_note *.
27493 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27494 from rtx to rtx_note *.
27495 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27496 "bb_note" from rtx to rtx_note *.
27497 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27498 when calling emit_note_copy.
27499 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27501 (emit_note_after): Likewise.
27502 (emit_note_before): Likewise.
27503 (emit_note_copy): Likewise. Also, strengthen param similarly.
27504 (emit_note): Likewise.
27505 * except.c (emit_note_eh_region_end): Likewise for return type.
27506 Strengthen local "next" from rtx to rtx_insn *.
27507 (convert_to_eh_region_ranges): Strengthen local "note"
27508 from rtx to rtx_note *.
27509 * final.c (change_scope): Likewise.
27510 (reemit_insn_block_notes): Likewise, for both locals named "note".
27511 Also, strengthen local "insn" from rtx to rtx_insn *.
27512 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27514 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27515 strengthen local "seq" from rtx to rtx_insn *.
27516 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27518 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27520 (get_bb_note_from_pool): Strengthen return type from rtx to
27522 (sel_create_basic_block): Strengthen local "new_bb_note" from
27523 insn_t to rtx_note *.
27524 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27525 "note" from rtx to rtx_note *.
27526 (emit_notes_in_bb): Likewise.
27528 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27530 * function.h (struct rtl_data): Strengthen field
27531 "x_parm_birth_insn" from rtx to rtx_insn *.
27532 * function.c (struct assign_parm_data_all): Strengthen fields
27533 "first_conversion_insn" and "last_conversion_insn" from rtx to
27536 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27538 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27539 to rtx_insn *; also for local "var_end_seq".
27540 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27541 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27543 (expand_gimple_cond): Likewise for locals "last2" and "last".
27544 (mark_transaction_restart_calls): Likewise for local "insn".
27545 (expand_gimple_stmt): Likewise for return type and locals "last"
27547 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27548 (avoid_complex_debug_insns): Likewise for param "insn".
27549 (expand_debug_locations): Likewise for locals "insn", "last",
27550 "prev_insn" and "insn2".
27551 (expand_gimple_basic_block): Likewise for local "last".
27552 (construct_exit_block): Likewise for locals "head", "end",
27554 (pass_expand::execute): Likewise for locals "var_seq",
27555 "var_ret_seq", "next".
27557 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27559 * asan.h (asan_emit_stack_protection): Strengthen return type from
27561 * asan.c (asan_emit_stack_protection): Likewise. Add local
27562 "insns" to hold the return value.
27564 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27566 * basic-block.h (bb_note): Strengthen return type from rtx to
27568 * sched-int.h (bb_note): Likewise.
27569 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27573 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27576 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27577 "insn" from rtx to rtx_insn *.
27578 (make_debug_insn_raw): Strengthen return type from rtx to
27579 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27580 (make_jump_insn_raw): Strengthen return type from rtx to
27581 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27582 (make_call_insn_raw): Strengthen return type from rtx to
27583 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27584 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27585 callback from rtx to rtx_insn *; likewise for local "insn" and
27586 "next", adding a checked cast to rtx_insn in the relevant cases of
27587 the switch statement.
27588 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27589 callback from rtx to rtx_insn *.
27590 (emit_pattern_after_setloc): Likewise.
27591 (emit_pattern_after): Likewise.
27592 (emit_pattern_before_setloc): Likewise.
27593 (emit_pattern_before): Likewise.
27595 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27597 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27599 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27600 accepting an rtx_insn *.
27601 (last_call_insn): Strengthen return type from rtx to
27604 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27606 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27607 "insns" from rtx to rtx_insn *.
27608 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27609 locals "insn" and "prev".
27611 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27613 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27614 rtx_jump_table_data **.
27616 * cfgbuild.c (make_edges): Introduce local "table", using it in
27617 place of "tmp" for jump table data.
27618 (find_bb_boundaries): Strengthen local "table" from rtx to
27619 rtx_jump_table_data *.
27620 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27621 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27622 (try_crossjump_to_edge): Likewise.
27623 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27625 (patch_jump_insn): Introduce local "table", using it in place of
27626 "tmp" for jump table data.
27627 (force_nonfallthru_and_redirect): Introduce local "table", so that
27628 call to tablejump_p can receive an rtx_jump_table_data **. Update
27629 logic around the call to overwrite "note" appropriately if
27630 tablejump_p returns non-zero.
27631 (get_last_bb_insn): Introduce local "table", using it in place of
27632 "tmp" for jump table data.
27633 * dwarf2cfi.c (create_trace_edges): Likewise.
27635 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27636 from rtx to rtx_jump_table_data *.
27637 (create_fix_barrier): Strengthen local "tmp" from rtx to
27638 rtx_jump_table_data *.
27639 (arm_reorg): Likewise for local "table".
27641 * config/s390/s390.c (s390_chunkify_start): Likewise.
27643 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27645 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27646 rtx to rtx_jump_table_data *.
27648 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27649 rtx_jump_table_data **. Add a checked cast when writing through
27650 the pointer: we know there that local "table" is non-NULL and that
27651 JUMP_TABLE_DATA_P (table) holds.
27652 (label_is_jump_target_p): Introduce local "table", using it in
27653 place of "tmp" for jump table data.
27655 2014-08-19 Marek Polacek <polacek@redhat.com>
27658 * doc/invoke.texi: Document -Wbool-compare.
27660 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27662 * rtl.h (entry_of_function): Strengthen return type from rtx to
27664 * cfgrtl.c (entry_of_function): Likewise.
27666 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27668 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27669 rtx_insn *, adding a checked cast for now.
27670 (get_last_insn): Likewise.
27672 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27674 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27677 * emit-rtl.c (gen_label_rtx): Likewise.
27679 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27681 * rtl.h (previous_insn): Strengthen return type from rtx to
27683 (next_insn): Likewise.
27684 (prev_nonnote_insn): Likewise.
27685 (prev_nonnote_insn_bb): Likewise.
27686 (next_nonnote_insn): Likewise.
27687 (next_nonnote_insn_bb): Likewise.
27688 (prev_nondebug_insn): Likewise.
27689 (next_nondebug_insn): Likewise.
27690 (prev_nonnote_nondebug_insn): Likewise.
27691 (next_nonnote_nondebug_insn): Likewise.
27692 (prev_real_insn): Likewise.
27693 (next_real_insn): Likewise.
27694 (prev_active_insn): Likewise.
27695 (next_active_insn): Likewise.
27697 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27698 rtx_insn *, adding a checked cast.
27699 (previous_insn): Likewise.
27700 (next_nonnote_insn): Likewise.
27701 (next_nonnote_insn_bb): Likewise.
27702 (prev_nonnote_insn): Likewise.
27703 (prev_nonnote_insn_bb): Likewise.
27704 (next_nondebug_insn): Likewise.
27705 (prev_nondebug_insn): Likewise.
27706 (next_nonnote_nondebug_insn): Likewise.
27707 (prev_nonnote_nondebug_insn): Likewise.
27708 (next_real_insn): Likewise.
27709 (prev_real_insn): Likewise.
27710 (next_active_insn): Likewise.
27711 (prev_active_insn): Likewise.
27713 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27714 param "stepfunc" so that it returns an rtx_insn * rather than an
27715 rtx, to track the change to prev_nonnote_insn_bb, which is the
27716 only function this is called with.
27717 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27719 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27721 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27724 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27726 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27727 (class rtx_nonjump_insn): Likewise.
27728 (class rtx_jump_insn): Likewise.
27729 (class rtx_call_insn): Likewise.
27730 (class rtx_jump_table_data): Likewise.
27731 (class rtx_barrier): Likewise.
27732 (class rtx_code_label): Likewise.
27733 (class rtx_note): Likewise.
27735 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27736 adding the invariant DEBUG_INSN_P (X).
27737 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27738 the invariant NONJUMP_INSN_P (X).
27739 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27740 the invariant JUMP_P (X).
27741 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27742 the invariant CALL_P (X).
27743 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27744 invariant JUMP_TABLE_DATA_P (X).
27745 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27746 invariant BARRIER_P (X).
27747 (class rtx_code_label): New, a subclass of rtx_insn, adding
27748 the invariant LABEL_P (X).
27749 (class rtx_note): New, a subclass of rtx_insn, adding
27750 the invariant NOTE_P(X).
27751 (is_a_helper <rtx_debug_insn *>::test): New.
27752 (is_a_helper <rtx_nonjump_insn *>::test): New.
27753 (is_a_helper <rtx_jump_insn *>::test): New.
27754 (is_a_helper <rtx_call_insn *>::test): New.
27755 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27756 overloaded for both rtx and rtx_insn *.
27757 (is_a_helper <rtx_barrier *>::test): New.
27758 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27759 for both rtx and rtx_insn *.
27760 (is_a_helper <rtx_note *>::test): New.
27762 2014-08-19 Marek Polacek <polacek@redhat.com>
27764 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27765 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27766 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27767 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27769 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27771 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27772 rtx_insn *. To help with transition, for now, convert from an
27773 access macro into a pair of functions: BND_TO, returning an
27775 (SET_BND_TO): New function, for use where BND_TO is used as an
27778 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27780 (BND_TO): New function, adding a checked cast.
27781 (SET_BND_TO): New function.
27783 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27785 (compute_av_set_on_boundaries): Likewise.
27787 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27789 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27790 destination if it is used in source.
27791 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27792 (*popcount<mode>2_falsedep_1): Likewise.
27794 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27797 * configure.ac: Set install_gold_as_default to no first.
27798 * configure: Regenerated.
27800 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27802 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27803 "note_list" field will eventually be an rtx_insn *. To help with
27804 transition, for now, convert from an access macro into a pair of
27805 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27806 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27809 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27810 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27812 * sel-sched-ir.c (init_bb): Likewise.
27813 (sel_restore_notes): Likewise.
27814 (move_bb_info): Likewise.
27815 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27816 (SET_BB_NOTE_LIST): New function.
27818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27820 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27821 field will eventually be an rtx_insn *. To help with transition,
27822 for now, convert from an access macro into a pair of functions:
27823 VINSN_INSN_RTX, returning an rtx_insn *, and...
27824 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27825 is used as an lvalue.
27827 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27828 SET_VINSN_INSN_RTX where it's used as an lvalue.
27829 (VINSN_INSN_RTX): New function.
27830 (SET_VINSN_INSN_RTX): New function.
27832 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27834 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27835 eventually be rtx_insn *, but to help with transition, for now,
27836 convert from an access macro into a pair of functions: DEP_PRO
27837 returning an rtx_insn * and...
27838 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27839 lvalue, returning an rtx&.
27840 (DEP_CON): Analogous changes to DEP_PRO above.
27841 (SET_DEP_CON): Likewise.
27843 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
27844 an lvalue to SET_DEP_CON.
27845 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
27846 (sd_copy_back_deps): Likewise for DEP_CON.
27847 (DEP_PRO): New function, adding a checked cast for now.
27848 (DEP_CON): Likewise.
27849 (SET_DEP_PRO): New function.
27850 (SET_DEP_CON): Likewise.
27852 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27854 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
27855 (extra_options): Add i386/cygwin.opt.
27856 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
27857 (CPP_SPEC): Accept -pthread.
27858 (LINK_SPEC): Ditto.
27859 (GOMP_SELF_SPECS): Update comment.
27860 * config/i386/cygwin.opt: New file for -pthread flag.
27862 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27864 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
27865 * df.h (DF_REF_INSN): Convert from a macro to a function, so
27866 that we can return an rtx_insn *.
27868 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27870 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
27871 when building executables, not DLLs. Add --large-address-aware
27872 under the same conditions.
27873 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
27874 when building executables, not DLLs. Add --large-address-aware
27875 under the same conditions when using -m32.
27877 * config/i386/cygwin-stdint.h: Throughout, make type
27878 definitions dependent on target architecture, not host.
27880 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27882 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
27883 the return type from rtx to rtx_insn *, which will enable various
27884 conversions in followup patches. For now this is is done by a
27886 (NEXT_INSN): Likewise.
27887 (SET_PREV_INSN): Convert to an inline function. This is intended
27888 for use as an lvalue, and so returns an rtx& to allow in-place
27890 (SET_NEXT_INSN): Likewise.
27892 2014-07-08 Mark Wielaard <mjw@redhat.com>
27895 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
27897 2014-08-19 Marek Polacek <polacek@redhat.com>
27900 * cgraphunit.c (handle_alias_pairs): Fix condition.
27902 2014-08-19 Richard Biener <rguenther@suse.de>
27904 * gimple-fold.c (fold_gimple_assign): Properly build a
27905 null-pointer constant when devirtualizing addresses.
27907 2014-07-07 Mark Wielaard <mjw@redhat.com>
27909 * dwarf2out.c (decl_quals): New function.
27910 (modified_type_die): Take one cv_quals argument instead of two,
27911 one for const and one for volatile.
27912 (add_type_attribute): Likewise.
27913 (generic_parameter_die): Call add_type_attribute with one modifier
27915 (base_type_for_mode): Likewise.
27916 (add_bounds_info): Likewise.
27917 (add_subscript_info): Likewise.
27918 (gen_array_type_die): Likewise.
27919 (gen_descr_array_type_die): Likewise.
27920 (gen_entry_point_die): Likewise.
27921 (gen_enumeration_type_die): Likewise.
27922 (gen_formal_parameter_die): Likewise.
27923 (gen_subprogram_die): Likewise.
27924 (gen_variable_die): Likewise.
27925 (gen_const_die): Likewise.
27926 (gen_field_die): Likewise.
27927 (gen_pointer_type_die): Likewise.
27928 (gen_reference_type_die): Likewise.
27929 (gen_ptr_to_mbr_type_die): Likewise.
27930 (gen_inheritance_die): Likewise.
27931 (gen_subroutine_type_die): Likewise.
27932 (gen_typedef_die): Likewise.
27933 (force_type_die): Likewise.
27935 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27937 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
27939 * configure: Regenerate.
27941 2014-08-19 Richard Biener <rguenther@suse.de>
27943 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
27944 DECL_EXTERNALs in BLOCKs as non-references.
27945 * tree-streamer-out.c (streamer_write_chain): Likewise.
27947 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
27948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27949 Anna Tikhonova <anna.tikhonova@intel.com>
27950 Ilya Tocar <ilya.tocar@intel.com>
27951 Andrey Turetskiy <andrey.turetskiy@intel.com>
27952 Ilya Verbin <ilya.verbin@intel.com>
27953 Kirill Yukhin <kirill.yukhin@intel.com>
27954 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27956 * config/i386/sse.md
27957 (define_mode_iterator VI48_AVX512F): Delete.
27958 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
27959 (define_mode_iterator VI2_AVX512VL): Ditto.
27960 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
27963 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
27965 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
27966 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
27967 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27968 with VI48_AVX512F_AVX512VL): New.
27969 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27970 with VI2_AVX512VL): Ditto.
27972 2014-08-19 Marek Polacek <polacek@redhat.com>
27974 * doc/invoke.texi: Document -Wc99-c11-compat.
27976 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27978 * rtl.h (PREV_INSN): Split macro in two: the existing one,
27979 for rvalues, and...
27980 (SET_PREV_INSN): New macro, for use as an lvalue.
27981 (NEXT_INSN, SET_NEXT_INSN): Likewise.
27983 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
27984 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
27985 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
27986 (fixup_abnormal_edges): Likewise.
27987 (unlink_insn_chain): Likewise.
27988 (fixup_reorder_chain): Likewise.
27989 (cfg_layout_delete_block): Likewise.
27990 (cfg_layout_merge_blocks): Likewise.
27991 * combine.c (update_cfg_for_uncondjump): Likewise.
27992 * emit-rtl.c (link_insn_into_chain): Likewise.
27993 (remove_insn): Likewise.
27994 (delete_insns_since): Likewise.
27995 (reorder_insns_nobb): Likewise.
27996 (emit_insn_after_1): Likewise.
27997 * final.c (rest_of_clean_state): Likewise.
27998 (final_scan_insn): Likewise.
27999 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
28000 * haifa-sched.c (concat_note_lists): Likewise.
28001 (remove_notes): Likewise.
28002 (restore_other_notes): Likewise.
28003 (move_insn): Likewise.
28004 (unlink_bb_notes): Likewise.
28005 (restore_bb_notes): Likewise.
28006 * jump.c (delete_for_peephole): Likewise.
28007 * optabs.c (emit_libcall_block_1): Likewise.
28008 * reorg.c (emit_delay_sequence): Likewise.
28009 (fill_simple_delay_slots): Likewise.
28010 * sel-sched-ir.c (sel_move_insn): Likewise.
28011 (sel_remove_insn): Likewise.
28012 (get_bb_note_from_pool): Likewise.
28013 * sel-sched.c (move_nop_to_previous_block): Likewise.
28015 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
28016 * config/c6x/c6x.c (gen_one_bundle): Likewise.
28017 (c6x_gen_bundles): Likewise.
28018 (hwloop_optimize): Likewise.
28019 * config/frv/frv.c (frv_function_prologue): Likewise.
28020 (frv_register_nop): Likewise.
28021 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
28022 (ia64_reorg): Likewise.
28023 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
28024 (mep_make_bundle): Likewise.
28025 (mep_bundle_insns): Likewise.
28026 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
28027 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
28028 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
28030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28032 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
28033 return type from rtx to rtx_insn *.
28034 (BB_END): Likewise.
28035 (BB_HEADER): Likewise.
28036 (BB_FOOTER): Likewise.
28037 (SET_BB_HEAD): Convert to a function.
28038 (SET_BB_END): Likewise.
28039 (SET_BB_HEADER): Likewise.
28040 (SET_BB_FOOTER): Likewise.
28042 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
28043 Strengthen the return type from rtx to rtx_insn *. For now, this
28044 is done by adding a checked cast, but this will eventually
28045 become a field lookup.
28046 (BB_END): Likewise.
28047 (BB_HEADER): Likewise.
28048 (BB_FOOTER): Likewise.
28049 (SET_BB_HEAD): New function, from macro of same name. This is
28050 intended for use as an lvalue, and so returns an rtx& to allow
28051 in-place modification.
28052 (SET_BB_END): Likewise.
28053 (SET_BB_HEADER): Likewise.
28054 (SET_BB_FOOTER): Likewise.
28056 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28058 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
28059 for rvalues, and...
28060 (SET_BB_HEAD): New macro, for use as a lvalue.
28061 (BB_END, SET_BB_END): Likewise.
28062 (BB_HEADER, SET_BB_HEADER): Likewise.
28063 (BB_FOOTER, SET_BB_FOOTER): Likewise.
28065 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
28066 of BB_* macros into SET_BB_* macros.
28067 (fix_crossing_unconditional_branches): Likewise.
28068 * caller-save.c (save_call_clobbered_regs): Likewise.
28069 (insert_one_insn): Likewise.
28070 * cfgbuild.c (find_bb_boundaries): Likewise.
28071 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
28072 (outgoing_edges_match): Likewise.
28073 (try_optimize_cfg): Likewise.
28074 * cfgexpand.c (expand_gimple_cond): Likewise.
28075 (expand_gimple_tailcall): Likewise.
28076 (expand_gimple_basic_block): Likewise.
28077 (construct_exit_block): Likewise.
28078 * cfgrtl.c (delete_insn): Likewise.
28079 (create_basic_block_structure): Likewise.
28080 (rtl_delete_block): Likewise.
28081 (rtl_split_block): Likewise.
28082 (emit_nop_for_unique_locus_between): Likewise.
28083 (rtl_merge_blocks): Likewise.
28084 (block_label): Likewise.
28085 (try_redirect_by_replacing_jump): Likewise.
28086 (emit_barrier_after_bb): Likewise.
28087 (fixup_abnormal_edges): Likewise.
28088 (record_effective_endpoints): Likewise.
28089 (relink_block_chain): Likewise.
28090 (fixup_reorder_chain): Likewise.
28091 (fixup_fallthru_exit_predecessor): Likewise.
28092 (cfg_layout_duplicate_bb): Likewise.
28093 (cfg_layout_split_block): Likewise.
28094 (cfg_layout_delete_block): Likewise.
28095 (cfg_layout_merge_blocks): Likewise.
28096 * combine.c (update_cfg_for_uncondjump): Likewise.
28097 * emit-rtl.c (add_insn_after): Likewise.
28098 (remove_insn): Likewise.
28099 (reorder_insns): Likewise.
28100 (emit_insn_after_1): Likewise.
28101 * haifa-sched.c (get_ebb_head_tail): Likewise.
28102 (restore_other_notes): Likewise.
28103 (move_insn): Likewise.
28104 (sched_extend_bb): Likewise.
28105 (fix_jump_move): Likewise.
28106 * ifcvt.c (noce_process_if_block): Likewise.
28107 (dead_or_predicable): Likewise.
28108 * ira.c (update_equiv_regs): Likewise.
28109 * reg-stack.c (change_stack): Likewise.
28110 * sel-sched-ir.c (sel_move_insn): Likewise.
28111 * sel-sched.c (move_nop_to_previous_block): Likewise.
28113 * config/c6x/c6x.c (hwloop_optimize): Likewise.
28114 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
28116 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28118 * rtl.h (for_each_rtx_in_insn): New function.
28119 * rtlanal.c (for_each_rtx_in_insn): Likewise.
28121 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28123 * coretypes.h (class rtx_insn): Add forward declaration.
28125 * rtl.h: Include is-a.h.
28126 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
28127 workaround to ensure gengtype knows inheritance is occurring,
28128 whilst continuing to use the pre-existing special-casing for
28130 (class rtx_insn): New subclass of rtx_def, adding the
28131 invariant that we're dealing with something we can sanely use
28132 INSN_UID, NEXT_INSN, PREV_INSN on.
28133 (is_a_helper <rtx_insn *>::test): New.
28134 (is_a_helper <const rtx_insn *>::test): New.
28136 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28138 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
28140 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28142 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
28143 turn UNDEF comdats as extern.
28145 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28147 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28148 to BUILT_IN_UNREACHABLE.
28150 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28153 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28155 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28156 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28157 (ffs<mode>2): Do not expand with tzcnt for
28158 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28159 (ffssi2_no_cmove): Ditto.
28160 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28161 (ctz<mode>2): New expander.
28162 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28163 (*ctz<mode>2_falsedep): New insn.
28164 (*ctz<mode>2): Rename from ctz<mode>2.
28165 (clz<mode>2_lzcnt): New expander.
28166 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28167 (*clz<mode>2_lzcnt_falsedep): New insn.
28168 (*clz<mode>2): Rename from ctz<mode>2.
28169 (popcount<mode>2): New expander.
28170 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28171 (*popcount<mode>2_falsedep): New insn.
28172 (*popcount<mode>2): Rename from ctz<mode>2.
28173 (*popcount<mode>2_cmp): Remove.
28174 (*popcountsi2_cmp_zext): Ditto.
28176 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28178 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28179 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28180 * config/microblaze/microblaze.h
28181 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28183 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28186 * configure.ac: Set install_gold_as_default to no for
28188 * configure: Regenerated.
28190 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28192 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28193 * config.in: Add undef of HAVE_isl.
28194 * configure: Regenerate.
28195 * configure.ac: Add definition of HAVE_isl.
28196 * graphite-blocking.c: Add checking of HAVE_isl.
28197 * graphite-dependences.c: Likewise.
28198 * graphite-interchange.c: Likewise.
28199 * graphite-isl-ast-to-gimple.c: Likewise.
28200 * graphite-optimize-isl.c: Likewise.
28201 * graphite-poly.c: Likewise.
28202 * graphite-scop-detection.c: Likewise.
28203 * graphite-sese-to-poly.c: Likewise.
28204 * graphite.c: Likewise.
28205 * toplev.c: Replace the checking of HAVE_cloog with the checking
28208 2014-08-18 Richard Biener <rguenther@suse.de>
28210 PR tree-optimization/62090
28211 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28212 (fold_builtin_3): Do not fold snprintf.
28213 (fold_builtin_4): Likewise.
28214 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28215 moved from builtins.c.
28216 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28217 (gimple_fold_builtin): Do not fold sprintf here.
28219 2014-08-18 Richard Biener <rguenther@suse.de>
28221 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28223 (maybe_canonicalize_mem_ref_addr): ... this function.
28224 (fold_stmt_1): Apply it here before all simplification.
28226 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28229 * cgraph.h (cgraph_node::create_indirect_edge): Add
28230 compute_indirect_info param.
28231 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28232 indirect_info only when it is required.
28233 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28234 indirect_info fore cloned indirect edge.
28236 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28237 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28238 Anna Tikhonova <anna.tikhonova@intel.com>
28239 Ilya Tocar <ilya.tocar@intel.com>
28240 Andrey Turetskiy <andrey.turetskiy@intel.com>
28241 Ilya Verbin <ilya.verbin@intel.com>
28242 Kirill Yukhin <kirill.yukhin@intel.com>
28243 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28245 * config/i386/sse.md
28246 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28247 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28249 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28251 Anna Tikhonova <anna.tikhonova@intel.com>
28252 Ilya Tocar <ilya.tocar@intel.com>
28253 Andrey Turetskiy <andrey.turetskiy@intel.com>
28254 Ilya Verbin <ilya.verbin@intel.com>
28255 Kirill Yukhin <kirill.yukhin@intel.com>
28256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28258 * config/i386/sse.md
28259 (define_mode_iterator VF1_AVX512VL): New.
28260 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28261 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28264 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28265 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28266 Anna Tikhonova <anna.tikhonova@intel.com>
28267 Ilya Tocar <ilya.tocar@intel.com>
28268 Andrey Turetskiy <andrey.turetskiy@intel.com>
28269 Ilya Verbin <ilya.verbin@intel.com>
28270 Kirill Yukhin <kirill.yukhin@intel.com>
28271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28273 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28274 ufloatv8siv8df2_mask.
28275 * config/i386/i386.md
28276 (define_code_iterator any_float): New.
28277 (define_code_attr floatsuffix): New.
28278 * config/i386/sse.md
28279 (define_mode_iterator VF1_128_256VL): New.
28280 (define_mode_iterator VF2_512_256VL): New.
28281 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28282 unnecessary TARGET check.
28283 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28284 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28286 (define_mode_attr qq2pssuff): New.
28287 (define_mode_attr sselongvecmode): New.
28288 (define_mode_attr sselongvecmodelower): New.
28289 (define_mode_attr sseintvecmode3): New.
28290 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28292 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28293 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28294 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28295 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28297 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28298 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28299 Anna Tikhonova <anna.tikhonova@intel.com>
28300 Ilya Tocar <ilya.tocar@intel.com>
28301 Andrey Turetskiy <andrey.turetskiy@intel.com>
28302 Ilya Verbin <ilya.verbin@intel.com>
28303 Kirill Yukhin <kirill.yukhin@intel.com>
28304 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28306 * config/i386/sse.md
28307 (define_mode_iterator VF2_AVX512VL): New.
28308 (define_mode_attr sseintvecmode2): New.
28309 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28310 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28311 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28313 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28315 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28317 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28320 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28322 Anna Tikhonova <anna.tikhonova@intel.com>
28323 Ilya Tocar <ilya.tocar@intel.com>
28324 Andrey Turetskiy <andrey.turetskiy@intel.com>
28325 Ilya Verbin <ilya.verbin@intel.com>
28326 Kirill Yukhin <kirill.yukhin@intel.com>
28327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28329 * config/i386/i386.md
28330 (define_insn "*movoi_internal_avx"): Add evex version.
28331 (define_insn "*movti_internal"): Ditto.
28333 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28335 Anna Tikhonova <anna.tikhonova@intel.com>
28336 Ilya Tocar <ilya.tocar@intel.com>
28337 Andrey Turetskiy <andrey.turetskiy@intel.com>
28338 Ilya Verbin <ilya.verbin@intel.com>
28339 Kirill Yukhin <kirill.yukhin@intel.com>
28340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28342 * config/i386/i386.md
28343 (define_attr "isa"): Add avx512dq, noavx512dq.
28344 (define_attr "enabled"): Ditto.
28345 * config/i386/sse.md
28346 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28348 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28349 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28350 Anna Tikhonova <anna.tikhonova@intel.com>
28351 Ilya Tocar <ilya.tocar@intel.com>
28352 Andrey Turetskiy <andrey.turetskiy@intel.com>
28353 Ilya Verbin <ilya.verbin@intel.com>
28354 Kirill Yukhin <kirill.yukhin@intel.com>
28355 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28357 * config/i386/i386.c
28358 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28359 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28360 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28361 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28362 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28363 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28364 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28365 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28366 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28367 * config/i386/sse.md
28368 (define_mode_iterator VMOVE): Allow V4TI mode.
28369 (define_mode_iterator V_AVX512VL): New.
28370 (define_mode_iterator V): New handling for AVX512VL.
28371 (define_insn "avx512f_load<mode>_mask"): Delete.
28372 (define_insn "<avx512>_load<mode>_mask"): New.
28373 (define_insn "avx512f_store<mode>_mask"): Delete.
28374 (define_insn "<avx512>_store<mode>_mask"): New.
28377 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28380 * asan.c (instrument_derefs): Fix bitfield check.
28382 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28384 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28385 * config/rs6000/htm.md (ttest): Remove clobber.
28386 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28387 (and_operand): Reformat.
28388 (and_2rld_operand): New predicate.
28389 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28391 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28392 parameter. Handle AND directly.
28393 (rs6000_split_logical_di): Remove last parameter.
28394 (rs6000_split_logical): Remove last parameter. Remove obsolete
28396 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28397 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28398 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28399 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28400 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28401 and 5 anonymous splitters): Delete.
28402 (and<mode>3): New expander.
28403 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28404 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28405 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28406 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28407 (floatdisf2_internal1): Remove clobbers.
28408 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28409 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28410 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28411 (and<mode>3 for BOOL_128): Remove clobber.
28412 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28413 rs6000_split_logical.
28414 (*bool<mode>3_internal for BOOL_128): Adjust call of
28415 rs6000_split_logical.
28416 (*boolc<mode>3_internal1 for BOOL_128,
28417 *boolc<mode>3_internal2 for BOOL_128,
28418 *boolcc<mode>3_internal1 for BOOL_128,
28419 *boolcc<mode>3_internal2 for BOOL_128,
28420 *eqv<mode>3_internal1 for BOOL_128,
28421 *eqv<mode>3_internal2 for BOOL_128,
28422 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28423 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28425 (*vec_reload_and_reg_<mptrsize>): Delete.
28427 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28429 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28430 and split, *boolccsi3_internal3 and split): Delete.
28431 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28432 *boolccdi3_internal3 and split): Delete.
28433 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28434 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28436 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28438 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28439 and split, *boolcsi3_internal3 and split): Delete.
28440 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28441 *boolcdi3_internal3 and split): Delete.
28442 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28444 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28446 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28447 <'u'>: Also support printing the low-order 16 bits.
28448 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28449 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28450 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28451 *booldi3_internal3 and split): Delete.
28452 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28453 *bool<mode>3_dot2): New.
28454 (two anonymous define_splits for non_logical_cint_operand): Merge.
28456 2014-08-17 Marek Polacek <polacek@redhat.com>
28457 Manuel López-Ibáñez <manu@gcc.gnu.org>
28460 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28461 (diagnostic_show_locus): Don't print caret diagnostic
28462 if a column is larger than the line_width.
28464 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28466 * common.opt: Make the ISL AST generator to be the main code generator
28469 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28471 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28473 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28476 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28478 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28479 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28480 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28482 * config/pa/pa.md (begin_brtab): Delete insn.
28483 (end_brtab): Likewise.
28485 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28487 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28489 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28491 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28492 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28493 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28494 (get_dynamic_type): Remove.
28495 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28496 (clear_speculation): Bring to ipa-deivrt.h
28497 (get_class_context): Rename to ...
28498 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28499 (contains_type_p): Update.
28500 (get_dynamic_type): Rename to ...
28501 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28502 (possible_polymorphic_call_targets): UPdate.
28503 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28504 * ipa-prop.c (ipa_analyze_call_uses): Update.
28506 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28508 * doc/invoke.texi (SH options): Document missing processor variant
28509 options. Remove references to Hitachi. Undocument deprecated mspace
28512 2014-08-15 Jason Merrill <jason@redhat.com>
28514 * tree.c (type_hash_canon): Uncomment assert.
28516 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28518 * input.h (in_system_header_at): Add comment.
28520 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28523 * diagnostic.c (build_message_string): Make it extern.
28524 * diagnostic.h (build_message_string): Make it extern.
28526 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28528 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28529 load/store from/to non-floating class pseudo.
28531 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28533 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28535 2014-08-15 Richard Biener <rguenther@suse.de>
28537 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28538 (get_constraint_for_ssa_var): Remove dead code.
28539 (get_constraint_for_1): Adjust.
28540 (find_what_var_points_to): Likewise.
28541 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28543 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28546 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28547 (_mm512_mask_cmpge_epu32_mask): Ditto.
28548 (_mm512_cmpge_epu32_mask): Ditto.
28549 (_mm512_mask_cmpge_epi64_mask): Ditto.
28550 (_mm512_cmpge_epi64_mask): Ditto.
28551 (_mm512_mask_cmpge_epu64_mask): Ditto.
28552 (_mm512_cmpge_epu64_mask): Ditto.
28553 (_mm512_mask_cmple_epi32_mask): Ditto.
28554 (_mm512_cmple_epi32_mask): Ditto.
28555 (_mm512_mask_cmple_epu32_mask): Ditto.
28556 (_mm512_cmple_epu32_mask): Ditto.
28557 (_mm512_mask_cmple_epi64_mask): Ditto.
28558 (_mm512_cmple_epi64_mask): Ditto.
28559 (_mm512_mask_cmple_epu64_mask): Ditto.
28560 (_mm512_cmple_epu64_mask): Ditto.
28561 (_mm512_mask_cmplt_epi32_mask): Ditto.
28562 (_mm512_cmplt_epi32_mask): Ditto.
28563 (_mm512_mask_cmplt_epu32_mask): Ditto.
28564 (_mm512_cmplt_epu32_mask): Ditto.
28565 (_mm512_mask_cmplt_epi64_mask): Ditto.
28566 (_mm512_cmplt_epi64_mask): Ditto.
28567 (_mm512_mask_cmplt_epu64_mask): Ditto.
28568 (_mm512_cmplt_epu64_mask): Ditto.
28569 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28570 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28571 (_mm512_cmpneq_epu32_mask): Ditto.
28572 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28573 (_mm512_cmpneq_epi64_mask): Ditto.
28574 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28575 (_mm512_cmpneq_epu64_mask): Ditto.
28576 (_mm512_castpd_ps): Ditto.
28577 (_mm512_castpd_si512): Ditto.
28578 (_mm512_castps_pd): Ditto.
28579 (_mm512_castps_si512): Ditto.
28580 (_mm512_castsi512_ps): Ditto.
28581 (_mm512_castsi512_pd): Ditto.
28582 (_mm512_castpd512_pd128): Ditto.
28583 (_mm512_castps512_ps128): Ditto.
28584 (_mm512_castsi512_si128): Ditto.
28585 (_mm512_castpd512_pd256): Ditto.
28586 (_mm512_castps512_ps256): Ditto.
28587 (_mm512_castsi512_si256): Ditto.
28588 (_mm512_castpd128_pd512): Ditto.
28589 (_mm512_castps128_ps512): Ditto.
28590 (_mm512_castsi128_si512): Ditto.
28591 (_mm512_castpd256_pd512): Ditto.
28592 (_mm512_castps256_ps512): Ditto.
28593 (_mm512_castsi256_si512): Ditto.
28594 (_mm512_cmpeq_epu32_mask): Ditto.
28595 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28596 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28597 (_mm512_cmpeq_epu64_mask): Ditto.
28598 (_mm512_cmpgt_epu32_mask): Ditto.
28599 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28600 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28601 (_mm512_cmpgt_epu64_mask): Ditto.
28602 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28603 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28604 * config/i386/i386.c (enum ix86_builtins): Add
28605 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28606 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28607 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28608 (bdesc_args): Add __builtin_ia32_si512_256si,
28609 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28610 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28611 __builtin_ia32_pd512_pd.
28612 (ix86_expand_args_builtin): Handle new FTYPEs.
28613 * config/i386/sse.md (castmode): Add 512-bit modes.
28614 (AVX512MODE2P): New.
28615 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28616 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28618 2014-08-15 Richard Biener <rguenther@suse.de>
28620 * fold-const.c (tree_swap_operands_p): Put all constants
28621 last, also strip sign-changing NOPs when considering further
28622 canonicalization. Canonicalize also when optimizing for size.
28624 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28626 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28627 one_match > zero_match case to just before simple_sequence.
28629 2014-08-15 Richard Biener <rguenther@suse.de>
28631 * data-streamer.h (streamer_string_index, string_for_index):
28633 * data-streamer-out.c (streamer_string_index): Make static.
28634 * data-streamer-in.c (string_for_index): Likewise.
28635 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28636 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28638 2014-08-15 Richard Biener <rguenther@suse.de>
28640 PR tree-optimization/62031
28641 * tree-data-ref.c (dr_analyze_indices): Do not set
28642 DR_UNCONSTRAINED_BASE.
28643 (dr_may_alias_p): All indirect accesses have to go the
28644 formerly DR_UNCONSTRAINED_BASE path.
28645 * tree-data-ref.h (struct indices): Remove
28646 unconstrained_base member.
28647 (DR_UNCONSTRAINED_BASE): Remove.
28649 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28651 PR middle-end/62092
28652 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28653 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28654 in OMP_CLAUSE_MAP in some outer target region.
28656 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28658 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28659 name_expansion_cache.
28660 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28661 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28662 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28663 (difference_cannot_overflow_p): New parameter. Use affine
28664 expansion for equality check.
28665 (iv_elimination_compare_lt): Pass new argument.
28667 2014-08-14 DJ Delorie <dj@redhat.com>
28669 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28670 variables to the accumulator.
28672 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28673 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28674 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28675 with far-far moves.
28677 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28678 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28679 (umulqihi3_virt): Likewise.
28680 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28681 (umulqihi3_real): Likewise.
28683 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28685 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28687 PR tree-optimization/62091
28688 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28689 function_entry_reached.
28690 (walk_aliased_vdefs): Clear it here.
28691 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28693 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28695 * ipa-utils.h (compare_virtual_tables): Declare.
28696 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28698 2014-08-14 Marek Polacek <polacek@redhat.com>
28701 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28702 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28704 2014-08-14 Tom de Vries <tom@codesourcery.com>
28706 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28708 2014-08-14 Tom de Vries <tom@codesourcery.com>
28710 PR rtl-optimization/62004
28711 PR rtl-optimization/62030
28712 * ifcvt.c (rtx_interchangeable_p): New function.
28713 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28714 * emit-rtl.h (mem_attrs_eq_p): Declare.
28716 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28718 * graphite-scop-detection.c:
28719 Add inclusion of cp-tree.h.
28720 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28721 in case they are pointers to object types
28723 2014-08-14 Richard Biener <rguenther@suse.de>
28725 * BASE-VER: Change to 5.0.0
28727 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28729 Anna Tikhonova <anna.tikhonova@intel.com>
28730 Ilya Tocar <ilya.tocar@intel.com>
28731 Andrey Turetskiy <andrey.turetskiy@intel.com>
28732 Ilya Verbin <ilya.verbin@intel.com>
28733 Kirill Yukhin <kirill.yukhin@intel.com>
28734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28736 * config/i386/sse.md (define_mode_attr avx512): New.
28737 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28739 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28740 (define_mode_attr ssse3_avx2): Ditto.
28741 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28742 (define_mode_attr avx2_avx512bw): New.
28743 (define_mode_attr ssedoublemodelower): New.
28744 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28745 V32HI, V64QI modes.
28746 (define_mode_attr ssebytemode): Allow V8DI modes.
28747 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28748 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28749 (define_mode_attr ssePSmode2): New.
28750 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28751 V16HI, V32HI modes.
28752 (define_mode_attr dbpsadbwmode): New.
28753 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28754 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28755 (vi8_sse4_1_avx2_avx512): New.
28756 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28758 (define_mode_attr blendbits): Move before its immediate use.
28760 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28761 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28762 Anna Tikhonova <anna.tikhonova@intel.com>
28763 Ilya Tocar <ilya.tocar@intel.com>
28764 Andrey Turetskiy <andrey.turetskiy@intel.com>
28765 Ilya Verbin <ilya.verbin@intel.com>
28766 Kirill Yukhin <kirill.yukhin@intel.com>
28767 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28769 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28770 * config/i386/subst.md
28771 (define_mode_iterator SUBST_V): Update.
28772 (define_mode_iterator SUBST_A): Ditto.
28773 (define_subst_attr "mask_operand7"): New.
28774 (define_subst_attr "mask_operand10"): New.
28775 (define_subst_attr "mask_operand_arg34") : New.
28776 (define_subst_attr "mask_expand_op3"): New.
28777 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28778 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28779 (define_subst_attr "mask_avx512vl_condition"): New.
28780 (define_subst_attr "round_mask_operand4"): Ditto.
28781 (define_subst_attr "round_mask_scalar_op3"): Delete.
28782 (define_subst_attr "round_mask_op4"): New.
28783 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28785 (define_subst_attr "round_modev8sf_condition"): New.
28786 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28788 (define_subst_attr "round_saeonly_mask_operand4"): New.
28789 (define_subst_attr "round_saeonly_mask_op4"): New.
28790 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28791 V8DImode, V16SImode.
28792 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28793 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28794 (define_subst_attr "mask_expand4_args"): New.
28795 (define_subst "mask_expand4"): New.
28797 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28798 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28799 Anna Tikhonova <anna.tikhonova@intel.com>
28800 Ilya Tocar <ilya.tocar@intel.com>
28801 Andrey Turetskiy <andrey.turetskiy@intel.com>
28802 Ilya Verbin <ilya.verbin@intel.com>
28803 Kirill Yukhin <kirill.yukhin@intel.com>
28804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28806 * config/i386/i386.md
28807 (define_attr "isa"): Add avx512bw,noavx512bw.
28808 (define_attr "enabled"): Ditto.
28809 (define_split): Add 32/64-bit mask logic.
28810 (define_insn "*k<logic>qi"): New.
28811 (define_insn "*k<logic>hi"): New.
28812 (define_insn "*anddi_1"): Add mask version.
28813 (define_insn "*andsi_1"): Ditto.
28814 (define_insn "*<code><mode>_1"): Ditto.
28815 (define_insn "*<code>hi_1"): Ditto.
28816 (define_insn "kxnor<mode>"): New.
28817 (define_insn "kunpcksi"): New.
28818 (define_insn "kunpckdi"): New.
28819 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28820 (define_insn "*one_cmplhi2_1"): Ditto.
28822 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28823 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28824 Anna Tikhonova <anna.tikhonova@intel.com>
28825 Ilya Tocar <ilya.tocar@intel.com>
28826 Andrey Turetskiy <andrey.turetskiy@intel.com>
28827 Ilya Verbin <ilya.verbin@intel.com>
28828 Kirill Yukhin <kirill.yukhin@intel.com>
28829 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28831 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28834 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28835 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28836 Anna Tikhonova <anna.tikhonova@intel.com>
28837 Ilya Tocar <ilya.tocar@intel.com>
28838 Andrey Turetskiy <andrey.turetskiy@intel.com>
28839 Ilya Verbin <ilya.verbin@intel.com>
28840 Kirill Yukhin <kirill.yukhin@intel.com>
28841 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28843 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
28845 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
28846 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
28847 xmm/ymm16+ when availble.
28848 * config/i386/i386.h
28849 (HARD_REGNO_NREGS): Add mask regs.
28850 (VALID_AVX512F_REG_MODE): Ditto.
28851 (VALID_AVX512F_REG_MODE) : Define.
28852 (VALID_MASK_AVX512BW_MODE): Ditto.
28853 (reg_class) (MASK_REG_P(X)): Define.
28854 * config/i386/i386.md: Do not split long moves with mask register,
28855 use kmovb if avx512bw is availible.
28856 (movdi_internal): Handle mask registers.
28858 2014-08-14 Richard Biener <rguenther@suse.de>
28860 PR tree-optimization/62081
28861 * tree-ssa-loop.c (pass_fix_loops): New pass.
28862 (pass_tree_loop::gate): Do not fixup loops here.
28863 * tree-pass.h (make_pass_fix_loops): Declare.
28864 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
28866 2014-08-14 Richard Biener <rguenther@suse.de>
28868 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
28869 (type_hash_canon): ... this and avoid 2nd lookup for the add.
28871 2014-08-14 Richard Biener <rguenther@suse.de>
28873 PR tree-optimization/62090
28874 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
28875 (fold_builtin_2): Do not fold sprintf.
28876 (fold_builtin_3): Likewise.
28877 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
28878 moved from builtins.c.
28879 (gimple_fold_builtin): Fold sprintf.
28881 2014-08-14 Richard Biener <rguenther@suse.de>
28883 PR rtl-optimization/62079
28884 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
28887 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28889 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
28890 current_function_decl.
28892 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28894 * cgraph.c (cgraph_node::function_symbol): Fix wrong
28895 cgraph_function_node to cgraph_node::function_symbol
28898 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
28900 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
28901 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
28903 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
28905 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
28908 2014-08-13 Roman Gareev <gareevroman@gmail.com>
28910 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
28913 2014-08-12 Jakub Jelinek <jakub@redhat.com>
28916 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
28917 any registers that are used in mem_insn.
28919 2014-08-12 Steve Ellcey <sellcey@mips.com>
28921 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
28923 2014-08-12 Steve Ellcey <sellcey@mips.com>
28925 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
28926 (MULTILIB_DIRNAMES): Ditto.
28927 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
28928 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
28929 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
28930 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
28931 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
28932 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
28934 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28937 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
28938 of __ARM_SIZEOF_WCHAR_T.
28940 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28943 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
28944 Remove unnecessary attributes.
28946 2014-08-12 Yury Gribov <y.gribov@samsung.com>
28948 * internal-fn.c (init_internal_fns): Fix off-by-one.
28950 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
28951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28952 Anna Tikhonova <anna.tikhonova@intel.com>
28953 Ilya Tocar <ilya.tocar@intel.com>
28954 Andrey Turetskiy <andrey.turetskiy@intel.com>
28955 Ilya Verbin <ilya.verbin@intel.com>
28956 Kirill Yukhin <kirill.yukhin@intel.com>
28957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28959 * config/i386/i386.c (standard_sse_constant_opcode): Use
28960 vpxord/vpternlog if avx512 is availible.
28962 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28964 PR middle-end/62103
28965 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
28966 bitfields, that is when size doesn't match the size of type or the
28967 size of the constructor.
28969 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28971 * config/rs6000/constraints.md (wh constraint): New constraint,
28972 for FP registers if direct move is available.
28973 (wi constraint): New constraint, for VSX/FP registers that can
28974 handle 64-bit integers.
28975 (wj constraint): New constraint for VSX/FP registers that can
28976 handle 64-bit integers for direct moves.
28977 (wk constraint): New constraint for VSX/FP registers that can
28978 handle 64-bit doubles for direct moves.
28979 (wy constraint): Make documentation match implementation.
28981 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
28982 scalar_in_vmx_p field to simplify tests of whether SFmode or
28983 DFmode can go in the Altivec registers.
28984 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
28985 (rs6000_setup_reg_addr_masks): Likewise.
28986 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
28987 field, and wh/wi/wj/wk constraints.
28988 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28989 the wh/wi/wj/wk constraints.
28990 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
28991 upper registers, prefer VSX registers unless the operation is a
28992 memory operation with REG+OFFSET addressing.
28994 * config/rs6000/vsx.md (VSr mode attribute): Add support for
28995 DImode. Change SFmode to use ww constraint instead of d to allow
28996 SF registers in the upper registers.
28999 (VSr5): Fix thinko in comment.
29000 (VSa): New mode attribute that is an alternative to wa, that
29001 returns the VSX register class that a mode can go in, but may not
29002 be the preferred register class.
29003 (VS_64dm): New mode attribute for appropriate register classes for
29004 referencing 64-bit elements of vectors for direct moves and normal
29006 (VS_64reg): Likewise.
29007 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
29008 register allocator to only registers the data type can handle.
29009 (vsx_le_perm_load_<mode>): Likewise.
29010 (vsx_le_perm_store_<mode>): Likewise.
29011 (vsx_xxpermdi2_le_<mode>): Likewise.
29012 (vsx_xxpermdi4_le_<mode>): Likewise.
29013 (vsx_lxvd2x2_le_<mode>): Likewise.
29014 (vsx_lxvd2x4_le_<mode>): Likewise.
29015 (vsx_stxvd2x2_le_<mode>): Likewise.
29016 (vsx_add<mode>3): Likewise.
29017 (vsx_sub<mode>3): Likewise.
29018 (vsx_mul<mode>3): Likewise.
29019 (vsx_div<mode>3): Likewise.
29020 (vsx_tdiv<mode>3_internal): Likewise.
29021 (vsx_fre<mode>2): Likewise.
29022 (vsx_neg<mode>2): Likewise.
29023 (vsx_abs<mode>2): Likewise.
29024 (vsx_nabs<mode>2): Likewise.
29025 (vsx_smax<mode>3): Likewise.
29026 (vsx_smin<mode>3): Likewise.
29027 (vsx_sqrt<mode>2): Likewise.
29028 (vsx_rsqrte<mode>2): Likewise.
29029 (vsx_tsqrt<mode>2_internal): Likewise.
29030 (vsx_fms<mode>4): Likewise.
29031 (vsx_nfma<mode>4): Likewise.
29032 (vsx_eq<mode>): Likewise.
29033 (vsx_gt<mode>): Likewise.
29034 (vsx_ge<mode>): Likewise.
29035 (vsx_eq<mode>_p): Likewise.
29036 (vsx_gt<mode>_p): Likewise.
29037 (vsx_ge<mode>_p): Likewise.
29038 (vsx_xxsel<mode>): Likewise.
29039 (vsx_xxsel<mode>_uns): Likewise.
29040 (vsx_copysign<mode>3): Likewise.
29041 (vsx_float<VSi><mode>2): Likewise.
29042 (vsx_floatuns<VSi><mode>2): Likewise.
29043 (vsx_fix_trunc<mode><VSi>2): Likewise.
29044 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
29045 (vsx_x<VSv>r<VSs>i): Likewise.
29046 (vsx_x<VSv>r<VSs>ic): Likewise.
29047 (vsx_btrunc<mode>2): Likewise.
29048 (vsx_b2trunc<mode>2): Likewise.
29049 (vsx_floor<mode>2): Likewise.
29050 (vsx_ceil<mode>2): Likewise.
29051 (vsx_<VS_spdp_insn>): Likewise.
29052 (vsx_xscvspdp): Likewise.
29053 (vsx_xvcvspuxds): Likewise.
29054 (vsx_float_fix_<mode>2): Likewise.
29055 (vsx_set_<mode>): Likewise.
29056 (vsx_extract_<mode>_internal1): Likewise.
29057 (vsx_extract_<mode>_internal2): Likewise.
29058 (vsx_extract_<mode>_load): Likewise.
29059 (vsx_extract_<mode>_store): Likewise.
29060 (vsx_splat_<mode>): Likewise.
29061 (vsx_xxspltw_<mode>): Likewise.
29062 (vsx_xxspltw_<mode>_direct): Likewise.
29063 (vsx_xxmrghw_<mode>): Likewise.
29064 (vsx_xxmrglw_<mode>): Likewise.
29065 (vsx_xxsldwi_<mode>): Likewise.
29066 (vsx_xscvdpspn): Tighten constraints to only use register classes
29068 (vsx_xscvspdpn): Likewise.
29069 (vsx_xscvdpspn_scalar): Likewise.
29071 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
29072 wj, and wk constraints.
29073 (GPR_REG_CLASS_P): New helper macro for register classes targeting
29074 general purpose registers.
29076 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
29078 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
29079 DImode instead of wm. Use wk constraint for direct move of DFmode
29081 (extendsidi2_lfiwax): Likewise.
29082 (lfiwax): Likewise.
29083 (lfiwzx): Likewise.
29084 (movdi_internal64): Likewise.
29086 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
29087 wk constraints. Make the wy constraint documentation match them
29090 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
29092 Replacement of isl_int by isl_val
29093 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
29094 (compute_bounds_for_param): use isl_val instead of isl_int
29095 (compute_bounds_for_loop): likewise
29096 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
29097 (build_linearized_memory_access): use isl_val instead of isl_int
29098 (pdr_stride_in_loop): likewise
29099 * graphite-optimize-isl.c:
29100 (getPrevectorMap): use isl_val instead of isl_int
29102 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
29103 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
29104 (extern the_isl_ctx): declare
29105 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
29106 (extract_affine_gmp): likewise
29108 (build_loop_iteration_domains): likewise
29109 (add_param_constraints): likewise
29111 2014-08-11 Richard Biener <rguenther@suse.de>
29113 PR tree-optimization/62075
29114 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
29115 handle uses in patterns.
29117 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29118 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29119 Anna Tikhonova <anna.tikhonova@intel.com>
29120 Ilya Tocar <ilya.tocar@intel.com>
29121 Andrey Turetskiy <andrey.turetskiy@intel.com>
29122 Ilya Verbin <ilya.verbin@intel.com>
29123 Kirill Yukhin <kirill.yukhin@intel.com>
29124 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29126 * common/config/i386/i386-common.c
29127 (OPTION_MASK_ISA_AVX512VL_SET): Define.
29128 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
29129 (ix86_handle_option): Handle OPT_mavx512vl.
29130 * config/i386/cpuid.h (bit_AVX512VL): Define.
29131 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
29132 set -mavx512vl accordingly.
29133 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29134 OPTION_MASK_ISA_AVX512VL.
29135 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
29136 (ix86_option_override_internal): Define PTA_AVX512VL, handle
29137 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
29138 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
29139 * config/i386/i386.h (TARGET_AVX512VL): Define.
29140 (TARGET_AVX512VL_P(x)): Ditto.
29141 * config/i386/i386.opt: Add mavx512vl.
29143 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29145 PR tree-optimization/62073
29146 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29149 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29150 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29151 Anna Tikhonova <anna.tikhonova@intel.com>
29152 Ilya Tocar <ilya.tocar@intel.com>
29153 Andrey Turetskiy <andrey.turetskiy@intel.com>
29154 Ilya Verbin <ilya.verbin@intel.com>
29155 Kirill Yukhin <kirill.yukhin@intel.com>
29156 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29158 * common/config/i386/i386-common.c
29159 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29160 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29161 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29162 (ix86_handle_option): Handle OPT_mavx512bw.
29163 * config/i386/cpuid.h (bit_AVX512BW): Define.
29164 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29165 set -mavx512bw accordingly.
29166 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29167 OPTION_MASK_ISA_AVX512BW.
29168 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29169 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29170 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29171 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29172 * config/i386/i386.h (TARGET_AVX512BW): Define.
29173 (TARGET_AVX512BW_P(x)): Ditto.
29174 * config/i386/i386.opt: Add mavx512bw.
29176 2014-08-11 Richard Biener <rguenther@suse.de>
29178 PR tree-optimization/62070
29179 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29180 Remove SSA checking.
29182 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29184 * asan.c (asan_check_flags): New enum.
29185 (build_check_stmt_with_calls): Removed function.
29186 (build_check_stmt): Split inlining logic to
29187 asan_expand_check_ifn.
29188 (instrument_derefs): Rename parameter.
29189 (instrument_mem_region_access): Rename parameter.
29190 (instrument_strlen_call): Likewise.
29191 (asan_expand_check_ifn): New function.
29192 (asan_instrument): Remove old code.
29193 (pass_sanopt::execute): Change handling of
29194 asan-instrumentation-with-call-threshold.
29195 (asan_clear_shadow): Fix formatting.
29196 (asan_function_start): Likewise.
29197 (asan_emit_stack_protection): Likewise.
29198 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29199 Update description.
29200 * internal-fn.c (expand_ASAN_CHECK): New function.
29201 * internal-fn.def (ASAN_CHECK): New internal function.
29202 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29203 Update description.
29204 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29205 * tree.c: Small comment fix.
29207 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29209 * gimple.c (gimple_call_fnspec): Support internal functions.
29210 (gimple_call_return_flags): Use const.
29211 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29212 * internal-fn.def: Add fnspec information.
29213 * internal-fn.h (internal_fn_fnspec): New function.
29214 (init_internal_fns): Declare new function.
29215 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29216 (init_internal_fns): New function.
29217 * tree-core.h: Update macro call.
29218 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29220 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29222 * lto-streamer.h (struct output_block::symbol): Change from
29223 struct symtab_node to plain symtab_node.
29224 (referenced_from_this_partition_p): Change first parameter
29225 from struct symtab_node to plain symtab_node.
29227 2014-08-10 Marek Polacek <polacek@redhat.com>
29230 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29232 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29234 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29235 DECL correctly; do not give up on types in static storage.
29237 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29239 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29241 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29243 * graphite-isl-ast-to-gimple.c:
29244 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29246 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29248 2014-08-08 Guozhi Wei <carrot@google.com>
29250 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29252 2014-08-08 Cary Coutant <ccoutant@google.com>
29254 * dwarf2out.c (get_skeleton_type_unit): Remove.
29255 (output_skeleton_debug_sections): Remove skeleton type units.
29256 (output_comdat_type_unit): Likewise.
29257 (dwarf2out_finish): Likewise.
29259 2014-08-07 Yi Yang <ahyangyi@google.com>
29261 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29263 2014-08-08 Richard Biener <rguenther@suse.de>
29265 * lto-streamer.h (struct lto_input_block): Make it a class
29266 with a constructor.
29267 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29268 (struct lto_function_header, struct lto_simple_header,
29269 struct lto_simple_header_with_strings,
29270 struct lto_decl_header, struct lto_function_header): Make
29271 a simple inheritance hieararchy. Remove unused fields.
29272 (struct lto_asm_header): Remove.
29273 * lto-streamer-out.c (produce_asm): Adjust.
29274 (lto_output_toplevel_asms): Likewise.
29275 (produce_asm_for_decls): Likewise.
29276 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29277 * data-streamer-in.c (string_for_index): Likewise.
29278 * ipa-inline-analysis.c (inline_read_section): Likewise.
29279 * ipa-prop.c (ipa_prop_read_section): Likewise.
29280 (read_replacements_section): Likewise.
29281 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29282 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29283 (lto_destroy_simple_input_block): Likewise.
29284 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29285 (lto_input_toplevel_asms): Likewise.
29287 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29288 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29289 Anna Tikhonova <anna.tikhonova@intel.com>
29290 Ilya Tocar <ilya.tocar@intel.com>
29291 Andrey Turetskiy <andrey.turetskiy@intel.com>
29292 Ilya Verbin <ilya.verbin@intel.com>
29293 Kirill Yukhin <kirill.yukhin@intel.com>
29294 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29296 * common/config/i386/i386-common.c
29297 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29298 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29299 (ix86_handle_option): Handle OPT_mavx512dq.
29300 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29301 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29302 set -mavx512dq accordingly.
29303 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29304 OPTION_MASK_ISA_AVX512DQ.
29305 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29306 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29307 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29308 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29309 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29310 (TARGET_AVX512DQ_P(x)): Ditto.
29311 * config/i386/i386.opt: Add mavx512dq.
29313 2014-08-08 Richard Biener <rguenther@suse.de>
29315 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29316 target_percent, target_percent_s): Export.
29317 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29318 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29319 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29320 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29321 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29322 Move to gimple-fold.c.
29323 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29325 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29326 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29327 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29328 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29329 (rewrite_call_expr_array): Remove.
29330 (fold_builtin_sprintf_chk): Likewise.
29331 (fold_builtin_snprintf_chk): Likewise.
29332 (fold_builtin_varargs): Remove handling of sprintf_chk,
29333 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29334 (gimple_fold_builtin_sprintf_chk): Remove.
29335 (gimple_fold_builtin_snprintf_chk): Likewise.
29336 (gimple_fold_builtin_varargs): Likewise.
29337 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29338 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29339 * gimple.c (gimple_seq_add_seq_without_update): New function.
29340 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29341 * gimple-fold.c: Include output.h.
29342 (gsi_replace_with_seq_vops): New function, split out from ...
29343 (gimplify_and_update_call_from_tree): ... here.
29344 (replace_call_with_value): New function.
29345 (replace_call_with_call_and_fold): Likewise.
29346 (var_decl_component_p): Moved from builtins.c.
29347 (gimple_fold_builtin_memory_op): Moved from builtins.c
29348 fold_builtin_memory_op and rewritten to GIMPLE.
29349 (gimple_fold_builtin_memset): Likewise.
29350 (gimple_fold_builtin_strcpy): Likewise.
29351 (gimple_fold_builtin_strncpy): Likewise.
29352 (gimple_fold_builtin_strcat): Likewise.
29353 (gimple_fold_builtin_fputs): Likewise.
29354 (gimple_fold_builtin_memory_chk): Likewise.
29355 (gimple_fold_builtin_stxcpy_chk): Likewise.
29356 (gimple_fold_builtin_stxncpy_chk): Likewise.
29357 (gimple_fold_builtin_snprintf_chk): Likewise.
29358 (gimple_fold_builtin_sprintf_chk): Likewise.
29359 (gimple_fold_builtin_strlen): New function.
29360 (gimple_fold_builtin_with_strlen): New function split out from
29361 gimple_fold_builtin.
29362 (gimple_fold_builtin): Change signature and handle
29363 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29364 here. Call gimple_fold_builtin_with_strlen.
29365 (gimple_fold_call): Adjust.
29367 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29369 * calls.c (precompute_arguments): Check
29370 promoted_for_signed_and_unsigned_p and set the promoted mode.
29371 (promoted_for_signed_and_unsigned_p): New function.
29372 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29373 and set the promoted mode.
29374 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29375 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29376 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29379 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29381 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29382 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29383 (expand_call): Likewise.
29384 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29385 to get promoted mode.
29386 * combine.c (record_promoted_value): Skip > 0 comparison with
29387 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29388 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29389 of SUBREG_PROMOTED_UNSIGNED_P.
29390 (convert_modes): Likewise.
29391 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29392 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29393 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29394 SUBREG_PROMOTED_UNSIGNED_SET.
29395 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29396 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29397 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29398 SUBREG_PROMOTED_SET.
29399 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29400 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29401 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29402 of SUBREG_PROMOTED_UNSIGNED_P.
29403 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29404 (SUBREG_PROMOTED_SET): New define.
29405 (SUBREG_PROMOTED_GET): Likewise.
29406 (SUBREG_PROMOTED_SIGN): Likewise.
29407 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29408 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29409 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29410 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29411 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29412 (nonzero_bits1): Skip > 0 comparison with the results as
29413 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29414 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29415 of !SUBREG_PROMOTED_UNSIGNED_P.
29416 * simplify-rtx.c (simplify_unary_operation_1): Use new
29417 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29418 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29419 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29420 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29422 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29424 * ipa-devirt.c: Include gimple-pretty-print.h
29425 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29427 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29428 (get_polymorphic_call_info): Fix return value
29429 (type_change_info): New sturcture based on ipa-prop
29431 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29432 based on ipa-prop variant.
29433 (extr_type_from_vtbl_ptr_store): New function
29434 based on ipa-prop variant.
29435 (record_known_type): New function.
29436 (check_stmt_for_type_change): New function.
29437 (get_dynamic_type): New function.
29438 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29439 * tree-ssa-pre.c: ipa-utils.h
29440 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29441 machinery; sanity check with ipa-prop devirtualization.
29442 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29445 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29447 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29448 * alias.c, cfgexpand.c, cgraphbuild.c,
29449 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29450 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29451 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29452 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29453 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29454 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29455 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29456 dse.c, except.c, gengtype.c, gimple-expr.c,
29457 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29458 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29459 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29460 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29461 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29462 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29464 * pointer-set.c: Remove file.
29465 * pointer-set.h: Remove file.
29467 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29469 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29470 * config/arm/types.md (f_sels, f_seld): Delete.
29472 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29474 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29475 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29476 (aarch64_movdi_<mode>high): Likewise.
29477 (aarch64_mov<mode>high_di): Likewise.
29478 (aarch64_movdi_<mode>low): Likewise.
29479 (aarch64_mov<mode>low_di): Likewise.
29480 (aarch64_movtilow_tilow): Likewise.
29481 Add comment explaining usage of fp,simd attributes and of
29482 TARGET_FLOAT and TARGET_SIMD.
29484 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29485 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29487 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29488 Use MOVN when one of the half-words is 0xffff.
29490 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29492 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29494 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29496 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29497 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29498 (rfs_str): String corresponding to RFS_* constants.
29499 (rank_for_schedule_stats_t): New typedef.
29500 (rank_for_schedule_stats): New static variable.
29501 (rfs_result): New static function.
29502 (rank_for_schedule): Track statistics for deciding heuristics.
29503 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29505 (ready_sort): Use them for debug printouts.
29506 (schedule_block): Init statistics state. Print statistics on
29507 rank_for_schedule decisions.
29509 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29511 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29513 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29515 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29518 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29520 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29521 function to not conflict.
29522 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29523 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29524 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29525 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29526 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29529 2014-08-07 Marek Polacek <polacek@redhat.com>
29531 * fold-const.c (fold_binary_loc): Add folding of
29532 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29534 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29536 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29537 instead of type size.
29538 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29540 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29542 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29543 (*thumb1_movqi_insn): Likewise.
29544 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29546 2014-08-07 Tom de Vries <tom@codesourcery.com>
29548 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29549 (glibc_2_11_or_earlier): Remove effective-target keywords.
29551 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29553 * config/arm/arm.c (bdesc_2arg): Fix typo.
29554 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29556 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29558 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29560 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29563 * haifa-sched.c (advance_one_cycle): Fix dump.
29564 (schedule_block): Don't advance cycle if we are already at the
29565 beginning of the cycle.
29567 2014-08-06 Martin Jambor <mjambor@suse.cz>
29570 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29572 2014-08-06 Richard Biener <rguenther@suse.de>
29575 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29577 (lto_input_tree): Pop SCCs here.
29579 2014-08-06 Richard Biener <rguenther@suse.de>
29581 PR tree-optimization/61320
29582 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29583 handle misaligned loads.
29585 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29587 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29588 (aarch64_expand_vec_perm_const): Check for dup before zip.
29590 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29592 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29593 CONST_INT_P instead of GET_CODE and compare.
29594 (aarch64_select_cc_mode): Likewise.
29595 (aarch64_print_operand): Likewise.
29596 (aarch64_rtx_costs): Likewise.
29597 (aarch64_simd_valid_immediate): Likewise.
29598 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29599 (aarch64_simd_emit_pair_result_insn): Likewise.
29601 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29603 * gdbhooks.py (find_gcc_source_dir): New helper function.
29604 (class PassNames): New class, locating and parsing passes.def.
29605 (class BreakOnPass): New command "break-on-pass".
29607 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29609 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29612 2014-08-05 Richard Biener <rguenther@suse.de>
29614 PR rtl-optimization/61672
29615 * emit-rtl.h (mem_attrs_eq_p): Declare.
29616 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29617 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29618 * cfgcleanup.c (merge_memattrs): Likewise.
29619 Include emit-rtl.h.
29621 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29623 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29624 rather than singleton vectors.
29625 (vqdmlsls_lane_s32): Likewise.
29627 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29629 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29630 Use VSDQ_HSI mode iterator.
29631 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29632 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29633 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29634 Use BUILTIN_VDQHS macro.
29635 (sqrdmulh_laneq): Likewise.
29636 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29637 (vqdmlals_laneq_s32): Likewise.
29638 (vqdmlslh_laneq_s16): Likewise.
29639 (vqdmlsls_laneq_s32): Likewise.
29640 (vqdmulhh_laneq_s16): Likewise.
29641 (vqdmulhs_laneq_s32): Likewise.
29642 (vqrdmulhh_laneq_s16): Likewise.
29643 (vqrdmulhs_laneq_s32): Likewise.
29645 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29647 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29648 (vmuld_laneq_f64): Likewise.
29649 (vmuls_laneq_f32): Likewise.
29650 (vmul_n_f64): Likewise.
29651 (vmuld_lane_f64): Reimplement in C.
29652 (vmuls_lane_f32): Likewise.
29654 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29656 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29658 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29660 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29662 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29663 (rbitsi2): Likewise.
29664 (*arm_rev): Set predicable and predicable_short_it attributes.
29666 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29668 * convert.c (convert_to_integer): Guard transformation to lrint by
29671 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29673 * config/aarch64/aarch64-builtins.c
29674 (aarch64_simd_builtin_type_mode): Delete.
29675 (v8qi_UP): Remap to V8QImode.
29676 (v4hi_UP): Remap to V4HImode.
29677 (v2si_UP): Remap to V2SImode.
29678 (v2sf_UP): Remap to V2SFmode.
29679 (v1df_UP): Remap to V1DFmode.
29680 (di_UP): Remap to DImode.
29681 (df_UP): Remap to DFmode.
29682 (v16qi_UP):V16QImode.
29683 (v8hi_UP): Remap to V8HImode.
29684 (v4si_UP): Remap to V4SImode.
29685 (v4sf_UP): Remap to V4SFmode.
29686 (v2di_UP): Remap to V2DImode.
29687 (v2df_UP): Remap to V2DFmode.
29688 (ti_UP): Remap to TImode.
29689 (ei_UP): Remap to EImode.
29690 (oi_UP): Remap to OImode.
29691 (ci_UP): Map to CImode.
29692 (xi_UP): Remap to XImode.
29693 (si_UP): Remap to SImode.
29694 (sf_UP): Remap to SFmode.
29695 (hi_UP): Remap to HImode.
29696 (qi_UP): Remap to QImode.
29697 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29698 (VAR1): Build builtin name.
29699 (aarch64_init_simd_builtins): Remove dead code.
29701 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29703 * graphite-isl-ast-to-gimple.c:
29704 (set_options): New function.
29705 (scop_to_isl_ast): Add calling of set_options.
29707 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29709 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29710 (analyze_iv_to_split_insn): Don't initialize them.
29711 (get_ivts_expr): Removed.
29712 (allocate_basic_variable, insert_base_initialization): Use
29713 SET_SRC instead of *get_ivts_expr.
29714 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29716 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29718 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29719 (translate_isl_ast_for_loop): Add checking of the
29720 flag_loop_parallelize_all.
29721 (ast_build_before_for): New function.
29722 (scop_to_isl_ast): Add checking of the
29723 flag_loop_parallelize_all.
29724 * graphite-dependences.c: Move the defenition of the
29725 scop_get_dependences from graphite-optimize-isl.c to this file.
29726 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29727 (carries_deps): Add checking of the x's value.
29728 * graphite-optimize-isl.c: Move the defenition of the
29729 scop_get_dependences to graphite-dependences.c.
29730 * graphite-poly.h: Add declarations of scop_get_dependences
29733 2014-08-04 Rohit <rohitarulraj@freescale.com>
29736 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29738 (alt_reg_names): Likewise.
29739 (rs6000_dwarf_register_span): For SPE high registers, replace
29740 dwarf register numbers with GCC hard register numbers.
29741 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29742 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29743 register number for the corresponding GCC hard register number.
29744 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29745 newly added GCC hard register numbers for SPE high registers.
29746 (DWARF_FRAME_REGISTERS): Likewise.
29747 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29748 (DWARF_FRAME_REGNUM): Likewise.
29749 (FIXED_REGISTERS): Likewise.
29750 (CALL_USED_REGISTERS): Likewise.
29751 (CALL_REALLY_USED_REGISTERS): Likewise.
29752 (REG_ALLOC_ORDER): Likewise.
29753 (enum reg_class): Likewise.
29754 (REG_CLASS_NAMES): Likewise.
29755 (REG_CLASS_CONTENTS): Likewise.
29756 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29758 2014-08-04 Richard Biener <rguenther@suse.de>
29760 * gimple-fold.h (gimple_fold_builtin): Remove.
29761 * gimple-fold.c (gimple_fold_builtin): Make static.
29762 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29763 fold_stmt, not gimple_fold_builtin.
29765 2014-08-04 Martin Liska <mliska@suse.cz>
29767 * cgraph.h (csi_end_p): Removed.
29768 (csi_next): Likewise.
29769 (csi_node): Likewise.
29770 (csi_start): Likewise.
29771 (cgraph_node_in_set_p): Likewise.
29772 (cgraph_node_set_size): Likewise.
29773 (vsi_end_p): Likewise.
29774 (vsi_next): Likewise.
29775 (vsi_node): Likewise.
29776 (vsi_start): Likewise.
29777 (varpool_node_set_size): Likewise.
29778 (cgraph_node_set_nonempty_p): Likewise.
29779 (varpool_node_set_nonempty_p): Likewise.
29780 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29782 * ipa-inline-transform.c: Likewise.
29783 * ipa-utils.c (cgraph_node_set_new): Removed.
29784 (cgraph_node_set_add): Likewise.
29785 (cgraph_node_set_remove): Likewise.
29786 (cgraph_node_set_find): Likewise.
29787 (dump_cgraph_node_set): Likewise.
29788 (debug_cgraph_node_set): Likewise.
29789 (free_cgraph_node_set): Likewise.
29790 (varpool_node_set_new): Likewise.
29791 (varpool_node_set_add): Likewise.
29792 (varpool_node_set_remove): Likewise.
29793 (varpool_node_set_find): Likewise.
29794 (dump_varpool_node_set): Likewise.
29795 (free_varpool_node_set): Likewise.
29796 (debug_varpool_node_set): Likewise.
29797 * tree-emutls.c (struct tls_var_data):
29798 (emutls_index): Removed.
29799 (emutls_decl): Likewise.
29800 (gen_emutls_addr): Function implementation uses newly added
29801 hash_map<varpool_node *, tls_var_data>.
29802 (clear_access_vars): Likewise.
29803 (create_emultls_var): Likewise.
29804 (ipa_lower_emutls): Likewise.
29805 (reset_access): New function.
29807 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29809 * config/i386/i386.c (ix86_option_override_internal): Add
29810 PTA_RDRND and PTA_MOVBE for bdver4.
29812 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29813 James Greenhalgh <james.greenhalgh@arm.com>
29815 * doc/md.texi (clrsb): Document.
29816 (clz): Change reference to x into operand 1.
29818 (popcount): Likewise.
29820 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29823 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29824 move to subtarget in serial version if result is ignored.
29826 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29827 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29829 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29830 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29831 (sched_analyze_insn): Update use of try_group_insn to
29832 sched_macro_fuse_insns.
29833 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29834 arguments that are not conditional jumps.
29836 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29838 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29839 extended family information. Handle BTVER2 cpu with cpuid family value.
29841 2014-08-04 Tom de Vries <tom@codesourcery.com>
29843 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29844 (glibc_2_11_or_earlier): Document effective-target keywords.
29846 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29848 * ipa-devirt.c (odr_type_warn_count): Add type.
29849 (possible_polymorphic_call_targets): Set it.
29850 (ipa_devirt): Use it.
29852 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29854 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
29856 * ipa-devirt.c: Include hash-map.h
29857 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
29858 (clear_speculation): Break out of ...
29859 (get_class_context): ... here; speed up handling obviously useless
29861 (odr_type_warn_count, decl_warn_count): New structures.
29862 (final_warning_record): New structure.
29863 (final_warning_records): New static variable.
29864 (possible_polymorphic_call_targets): Cleanup handling of
29865 speculative info; do not build speculation when user do not care;
29866 record info about warnings when asked for.
29867 (add_decl_warning): New function.
29868 (type_warning_cmp): New function.
29869 (decl_warning_cmp): New function.
29870 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
29871 (gate): Enable pass when warnings are requested.
29872 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
29875 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29877 * hash-map.h (default_hashmap_traits::mark_key_deleted):
29879 (hash_map::remove): New method.
29880 (hash_map::traverse): New method.
29881 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
29882 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
29883 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
29884 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
29885 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
29886 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
29889 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29891 * hash-set.h: new File.
29892 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
29893 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
29894 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
29895 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
29896 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
29897 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
29898 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
29899 varpool.c: Use hash_set instead of pointer_set.
29901 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
29903 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
29905 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29907 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
29908 for frame access when strict_p is false.
29910 2014-08-01 Renlin Li <renlin.li@arm.com>
29911 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29913 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
29914 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
29915 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
29917 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
29919 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
29920 aarch64_mem_pair_offset.
29922 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29924 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
29926 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
29927 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
29929 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
29931 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
29933 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
29935 PR regression/61510
29936 * cgraphunit.c (analyze_functions): Use get_create rather than get
29937 for decls which are clones of abstract functions.
29939 2014-08-01 Martin Liska <mliska@suse.cz>
29941 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
29942 * ipa-prop.h (count_formal_params): Global function created from static.
29943 * ipa-prop.c (count_formal_params): Likewise.
29944 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
29945 profiles for semantically equivalent functions.
29946 * passes.c (do_per_function): If we load body of a function
29947 during WPA, this condition should behave same.
29948 * varpool.c (ctor_for_folding): More tolerant assert for variable
29949 aliases created during WPA.
29951 2014-08-01 Martin Liska <mliska@suse.cz>
29953 * doc/invoke.texi (Options That Control Optimization): Documentation
29954 for -foptimize-strlen introduced. Optimization levels default options
29957 2014-08-01 Jakub Jelinek <jakub@redhat.com>
29959 * opts.c (common_handle_option): Handle -fsanitize=alignment.
29960 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
29961 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
29963 * stor-layout.h (min_align_of_type): New prototype.
29964 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
29965 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
29967 * ubsan.c: Include builtins.h.
29968 (ubsan_expand_bounds_ifn): Change return type to bool,
29969 always return true.
29970 (ubsan_expand_null_ifn): Change return type to bool, change
29971 argument to gimple_stmt_iterator *. Handle both null and alignment
29972 sanitization, take type from ckind argument's type rather than
29974 (instrument_member_call): Removed.
29975 (instrument_mem_ref): Remove t argument, add mem and base arguments.
29976 Handle both null and alignment sanitization, don't say whole
29977 struct access is member access. Build 3 argument IFN_UBSAN_NULL
29978 call instead of 2 argument.
29979 (instrument_null): Adjust instrument_mem_ref caller. Don't
29980 instrument calls here.
29981 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
29982 like SANITIZE_NULL.
29983 * stor-layout.c (min_align_of_type): New function.
29984 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
29985 Or it into SANITIZE_UNDEFINED.
29986 * doc/invoke.texi (-fsanitize=alignment): Document.
29988 2014-07-31 Andi Kleen <ak@linux.intel.com>
29990 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
29992 2014-07-31 Andi Kleen <ak@linux.intel.com>
29994 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
29996 (vn_reference_compute_hash): Dito.
29997 (vn_nary_op_compute_hash): Dito.
29998 (vn_phi_compute_hash): Dito.
29999 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
30001 2014-07-31 Andi Kleen <ak@linux.intel.com>
30003 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
30004 Rename to inchash:add_expr_commutative. Convert to inchash.
30005 (iterative_hash_hashable_expr): Rename to
30006 inchash:add_hashable_expr. Convert to inchash.
30007 (avail_expr_hash): Dito.
30009 2014-07-31 Andi Kleen <ak@linux.intel.com>
30011 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
30012 Convert to inchash.
30014 2014-07-31 Andi Kleen <ak@linux.intel.com>
30016 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
30018 2014-07-31 Andi Kleen <ak@linux.intel.com>
30020 * Makefile.in (OBJS): Add rtlhash.o
30021 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
30022 (loc_checksum): Dito.
30023 (loc_checksum_ordered): Dito.
30024 (hash_loc_operands): Dito.
30026 (hash_loc_list): Dito.
30027 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
30028 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
30029 * rtlhash.c: New file.
30030 * rtlhash.h: New file.
30032 2014-07-31 Andi Kleen <ak@linux.intel.com>
30034 * inchash.h (inchash): Change inchash class to namespace.
30035 (class hash): ... Rename from inchash.
30036 (add_object): Move from macro to class template.
30037 * lto-streamer-out.c (hash_tree): Change inchash
30039 * tree.c (build_type_attribute_qual_variant): Dito.
30040 (type_hash_list): Dito.
30041 (attribute_hash_list): Dito.
30042 (iterative_hstate_expr): Rename to inchash::add_expr
30043 (build_range_type_1): Change inchash to inchash::hash
30044 and use hash::add_expr.
30045 (build_array_type_1): Dito.
30046 (build_function_type): Dito
30047 (build_method_type_directly): Dito.
30048 (build_offset_type): Dito.
30049 (build_complex_type): Dito.
30050 (make_vector_type): Dito.
30051 * tree.h (iterative_hash_expr): Dito.
30053 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
30055 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
30057 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30059 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
30060 correct alphabetical position.
30061 (vpaddd_f64): Rewrite using builtins.
30062 (vpaddd_s64): Move to correct alphabetical position.
30065 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
30068 * config/sh/sh.c (sh_legitimate_address_p,
30069 sh_legitimize_reload_address): Handle reg+reg address modes when
30070 ALLOW_INDEXED_ADDRESS is false.
30071 * config/sh/predicates.md (general_movsrc_operand,
30072 general_movdst_operand): Likewise.
30074 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30076 * config/aarch64/aarch64-builtins.c
30077 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
30080 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30082 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
30083 the generated mask based on BYTES_BIG_ENDIAN.
30084 (aarch64_simd_check_vect_par_cnst_half): New.
30085 * config/aarch64/aarch64-protos.h
30086 (aarch64_simd_check_vect_par_cnst_half): New.
30087 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
30088 the check out to aarch64_simd_check_vect_par_cnst_half.
30089 (vect_par_cnst_lo_half): Likewise.
30090 * config/aarch64/aarch64-simd.md
30091 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
30092 (move_hi_quad_<mode>): Always generate a low mask.
30094 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30096 * doc/invoke.texi (AVR Options): Add documentation about
30097 __AVR_DEVICE_NAME__ built-in macro.
30099 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
30102 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
30103 constraints are satisfied.
30104 (<shift>di3_neon): Likewise.
30106 2014-07-31 Richard Biener <rguenther@suse.de>
30108 PR tree-optimization/61964
30109 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
30110 by structural equality.
30112 2014-07-31 Yury Gribov <y.gribov@samsung.com>
30114 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
30115 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
30116 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
30118 * gcc.c (sanitize_spec_function): Support new option.
30119 (SANITIZER_SPEC): Remove now redundant check.
30120 * opts.c (common_handle_option): Support new option.
30121 (finish_options): Check for incompatibilities.
30122 * toplev.c (process_options): Split userspace-specific checks.
30124 2014-07-31 Richard Biener <rguenther@suse.de>
30126 * lto-streamer.h (struct output_block): Remove global.
30127 (struct data_in): Remove labels, num_named_labels and
30128 num_unnamed_labels.
30129 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
30130 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
30132 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
30135 * common.opt (-Wreturn-local-addr): Moved from c.opt.
30136 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
30137 (isolate_path): New argument to avoid inserting a trap.
30138 (find_implicit_erroneous_behaviour): Handle returning the address
30139 of a local variable.
30140 (find_explicit_erroneous_behaviour): Likewise.
30142 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30145 * toplev.c (init_random_seed): Move piece of code never called to
30147 (set_random_seed): see above.
30149 2014-07-31 Tom de Vries <tom@codesourcery.com>
30151 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30153 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30155 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30156 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30158 2014-07-31 Richard Biener <rguenther@suse.de>
30160 * data-streamer.h (streamer_write_data_stream): Declare here,
30162 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30163 * lto-cgraph.c (lto_output_node): Adjust.
30164 (lto_output_varpool_node): Likewise.
30165 * data-streamer-out.c (streamer_string_index): Likewise.
30166 (streamer_write_data_stream, lto_append_block): Move from ...
30167 * lto-section-out.c (lto_output_data_stream,
30168 lto_append_block): ... here.
30170 2014-07-30 Mike Stump <mikestump@comcast.net>
30172 * configure.ac: Also check for popen.
30173 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30174 * configure: Regenerate.
30175 * config.in: Regenerate.
30177 2014-07-30 Martin Jambor <mjambor@suse.cz>
30179 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30180 parameter to gimple.
30182 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30184 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30185 address as second parameter to __tpf_eh_return routine.
30187 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30189 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30192 2014-07-30 Tom Tromey <tromey@redhat.com>
30195 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30196 * doc/extend.texi (Type Attributes): Document designated_init
30199 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30201 * graphite-isl-ast-to-gimple.c:
30202 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30203 (gcc_expression_from_isl_expression): Pass type to
30204 gcc_expression_from_isl_ast_expr_id.
30206 2014-07-30 Richard Biener <rguenther@suse.de>
30208 * lto-streamer.h (lto_write_data): New function.
30209 * langhooks.c (lhd_append_data): Do not free block.
30210 * lto-section-out.c (lto_write_data): New function writing
30211 raw data to the current section.
30212 (lto_write_stream): Adjust for langhook semantic change.
30213 (lto_destroy_simple_output_block): Write header directly.
30214 * lto-opts.c (lto_write_options): Write options directly.
30215 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30216 (lto_output_toplevel_asms): Likewise.
30217 (copy_function_or_variable): Copy data directly.
30218 (write_global_references): Output index table directly.
30219 (lto_output_decl_state_refs): Likewise.
30220 (write_symbol): Write data directly.
30221 (produce_symtab): Adjust.
30222 (produce_asm_for_decls): Output header and refs directly.
30224 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30226 * ipa-devirt.c (polymorphic_call_target_d): Rename
30227 nonconstruction_targets to speculative_targets
30228 (get_class_context): Fix handling of contextes without outer type;
30229 avoid matching non-polymorphic types in LTO.
30230 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30231 parameter to speculative_targetsp; handle speculation.
30232 (dump_possible_polymorphic_call_targets): Update dumping.
30234 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30236 * common.opt (Wodr): Enable by default.
30238 2014-07-29 Olivier Hainque <hainque@adacore.com>
30240 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30242 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30245 * gengtype.c (strtoken): New function.
30246 (create_user_defined_type): Replace strtok with strtoken.
30248 2014-07-29 Nathan Sidwell <nathan@acm.org>
30250 * gcov-io.c (gcov_var): Make hidden.
30251 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30252 (gcov_do_dump): Declare.
30253 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30255 2014-07-29 Martin Jambor <mjambor@suse.cz>
30257 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30258 parameter to gimple.
30259 (sra_modify_assign): Likewise.
30261 2014-07-29 Richard Biener <rguenther@suse.de>
30263 PR middle-end/52478
30264 * expr.c (expand_expr_real_2): Revert last change.
30266 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30268 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30269 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30270 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30272 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30273 (contains_type_p): Forward declare.
30274 (polymorphic_call_target_hasher::hash): Hash speculative info.
30275 (polymorphic_call_target_hasher::equal): Compare speculative info.
30276 (get_class_context): Handle speuclation.
30277 (contains_type_p): Update.
30278 (get_polymorphic_call_info_for_decl): Update.
30279 (walk_ssa_copies): Break out from ...
30280 (get_polymorphic_call_info): ... here; set speculative context
30282 * ipa-prop.c (ipa_write_indirect_edge_info,
30283 ipa_read_indirect_edge_info): Stream speculative context.
30284 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30285 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30286 SPECULATIVE_MAYBE_DERIVED_TYPE).
30287 (possible_polymorphic_call_targets overriders): Update.
30288 (dump_possible_polymorphic_call_targets overriders): Update.
30289 (dump_possible_polymorphic_call_target_p overriders): Update.
30291 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30293 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30294 ipa-devirt path; fix thinko there.
30296 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30298 * config/i386/i386.c (ix86_return_in_memory): Replace one
30299 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30301 2014-07-28 Marek Polacek <polacek@redhat.com>
30303 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30305 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30307 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30308 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30309 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30310 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30311 (USE_LD_AS_NEEDED): Likewise.
30312 (ASM_APP_ON): Likewise.
30313 (ASM_APP_OFF): Likewise.
30314 (TARGET_POSIX_IO): Likewise.
30315 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30316 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30317 (USE_LD_AS_NEEDED): Likewise.
30318 (ASM_APP_ON): Likewise.
30319 (ASM_APP_OFF): Likewise.
30320 (TARGET_POSIX_IO): Likewise.
30322 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30324 PR middle-end/61734
30325 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30326 operators other than the equality operators.
30328 2014-07-28 Richard Biener <rguenther@suse.de>
30330 PR middle-end/52478
30331 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30332 sure to register SImode ones, not only >= word_mode ones.
30333 * expr.c (expand_expr_real_2): When expanding -ftrapv
30334 binops do not use OPTAB_LIB_WIDEN.
30336 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30338 PR middle-end/61919
30339 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30340 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30341 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30342 inserting them in the insn stream.
30344 2014-07-28 Marek Polacek <polacek@redhat.com>
30346 PR middle-end/61913
30347 * common.opt (Wodr): Add Var.
30349 2014-07-28 Richard Biener <rguenther@suse.de>
30351 PR tree-optimization/61921
30352 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30353 if there is a varpool node before dereferencing it.
30355 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30357 * graphite-sese-to-poly.c:
30358 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30359 id of the pbb), which contains pointer to the pbb1.
30361 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30363 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30365 * graphite-isl-ast-to-gimple.c:
30366 (graphite_create_new_guard): New function.
30367 (translate_isl_ast_node_if): New function.
30368 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30370 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30372 2014-07-27 Anthony Green <green@moxielogic.com>
30374 * config.gcc: Add moxie-*-moxiebox* configuration.
30375 * config/moxie/moxiebox.h: New file.
30377 2014-07-26 Andrew Pinski <apinski@cavium.com>
30379 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30380 from the read only register.
30382 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30384 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30385 as the allocation class if it isn't likely to be spilled.
30387 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30389 * rtl.h (tls_referenced_p): Declare.
30390 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30391 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30392 (mips_cannot_force_const_mem): Use tls_referenced_p.
30393 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30394 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30395 instead of pa_tls_referenced_p.
30396 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30397 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30398 (pa_legitimate_constant_p): Likewise.
30399 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30400 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30401 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30402 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30403 rs6000_tls_referenced_p.
30404 (rs6000_tls_symbol_ref_1): Delete.
30406 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30409 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30410 Optimize inverse of a VEC_CONCAT.
30412 2014-07-25 Xinliang David Li <davidxl@google.com>
30414 * params.def: New parameter.
30415 * coverage.c (get_coverage_counts): Check new flag.
30416 (coverage_compute_profile_id): Check new flag.
30417 (coverage_begin_function): Check new flag.
30418 (coverage_end_function): Check new flag.
30419 * value-prof.c (coverage_node_map_initialized_p): New function.
30420 (init_node_map): Populate map with all functions.
30421 * doc/invoke.texi: Document new parameter.
30423 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30424 Richard Biener <rguenther@suse.de>
30426 * lto-streamer-out.c (struct sccs): Turn to ...
30427 (class DFS): ... this one; refactor the DFS walk so it can
30428 be re-done on per-SCC basis.
30429 (DFS::DFS): New constructor.
30430 (DFS::~DFS): New destructor.
30431 (hash_tree): Add new MAP argument holding in-SCC hash values;
30432 remove POINTER_TYPE hashing hack.
30433 (scc_entry_compare): Rename to ...
30434 (DFS::scc_entry_compare): ... this one.
30435 (hash_scc): Rename to ...
30436 (DFS::hash_scc): ... this one; pass output_block instead
30437 of streamer_cache; work harder to get unique and stable SCC
30439 (DFS_write_tree): Rename to ...
30440 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30441 (lto_output_tree): Update.
30443 2014-07-25 Andi Kleen <ak@linux.intel.com>
30445 * lto-streamer-out.c (hash_tree): Convert to inchash.
30447 2014-07-25 Andi Kleen <ak@linux.intel.com>
30449 * tree.c (build_type_attribute_qual_variant): Use inchash.
30450 (type_hash_list): Dito.
30451 (attribute_hash_list): Dito
30452 (iterative_hstate_expr): Dito.
30453 (iterative_hash_expr): Dito.
30454 (build_range_type_1): Dito.
30455 (build_array_type_1): Dito.
30456 (build_function_type): Dito.
30457 (build_method_type_directly): Dito.
30458 (build_offset_type): Dito.
30459 (build_complex_type): Dito.
30460 (make_vector_type): Dito.
30461 * tree.h (iterative_hash_expr): Add compat wrapper.
30462 (iterative_hstate_expr): Add.
30464 2014-07-25 Andi Kleen <ak@linux.intel.com>
30466 * Makefile.in (OBJS): Add inchash.o.
30467 (PLUGIN_HEADERS): Add inchash.h.
30468 * ipa-devirt.c: Include inchash.h.
30469 * lto-streamer-out.c: Dito.
30470 * tree-ssa-dom.c: Dito.
30471 * tree-ssa-pre.c: Dito.
30472 * tree-ssa-sccvn.c: Dito.
30473 * tree-ssa-tail-merge.c: Dito.
30475 * tree.c (iterative_hash_hashval_t): Move to ...
30476 (iterative_hash_host_wide_int): Move to ...
30477 * inchash.c: Here. New file.
30478 * tree.h (iterative_hash_hashval_t): Move to ...
30479 (iterative_hash_host_wide_int): Move to ...
30480 * inchash.h: Here. New file.
30482 2014-07-25 Richard Biener <rguenther@suse.de>
30484 PR middle-end/61762
30485 PR middle-end/61894
30486 * fold-const.c (native_encode_int): Add and handle offset
30487 parameter to do partial encodings of expr.
30488 (native_encode_fixed): Likewise.
30489 (native_encode_real): Likewise.
30490 (native_encode_complex): Likewise.
30491 (native_encode_vector): Likewise.
30492 (native_encode_string): Likewise.
30493 (native_encode_expr): Likewise.
30494 * fold-const.c (native_encode_expr): Add offset parameter
30496 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30497 (fold_ctor_reference): Handle all reads from tcc_constant
30500 2014-07-25 Richard Biener <rguenther@suse.de>
30502 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30503 as possibly unused.
30505 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30507 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30509 2014-07-24 Kyle McMartin <kyle@redhat.com>
30511 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30513 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30515 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30517 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30519 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30520 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30521 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30523 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30525 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30526 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30527 aggregate types. Instead, *all* aggregate types, except for single-
30528 element or homogeneous float/vector aggregates, are quadword-aligned
30529 if required by their type alignment. Issue -Wpsabi note when a type
30530 is now treated differently than before.
30532 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30534 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30535 does not fit fully into floating-point registers, and there is still
30536 space in the register parameter area, use GPRs to pass those parts
30537 of the argument. Issue -Wpsabi note if any parameter is now treated
30538 differently than before.
30539 (rs6000_arg_partial_bytes): Update.
30541 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30543 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30545 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30547 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30548 * toplev.c (initialize_rtl): Don't use it. Move previously
30549 "language-dependent" calls to...
30550 (backend_init): ...here.
30551 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30552 Assert that RTL initialization hasn't happend yet.
30554 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30556 PR rtl-optimization/61629
30557 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30558 they have already been initialized.
30560 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30562 PR middle-end/61268
30563 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30564 DECL_INCOMING_RTL and entry_parm.
30565 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30566 * calls.c (load_register_parameters): Likewise argument values.
30567 (emit_library_call_value_1, store_one_arg): Likewise argument
30569 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30571 * explow.c (validize_mem): Modify the argument in-place.
30573 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30575 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30576 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30578 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30580 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30581 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30583 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30585 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30586 (aarch64_save_callee_saves): New parameter "skip_wb".
30587 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30589 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30591 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30593 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30595 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30597 * graphite-isl-ast-to-gimple.c:
30598 (graphite_create_new_loop): Add calling of isl_id_free to properly
30599 decrement reference counts.
30601 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30603 2014-07-24 Martin Liska <mliska@suse.cz>
30604 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30606 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30607 (rs6000_code_end): Likewise.
30609 2014-07-24 Martin Liska <mliska@suse.cz>
30611 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30612 symtab_node funtion used.
30613 (rs6000_xcoff_declare_object_name): Likewise.
30615 2014-07-24 Martin Liska <mliska@suse.cz>
30617 * cgraphunit.c (compile): Correct function used.
30619 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30621 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30624 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30627 * varasm.c (bss_initializer_p): Handle offlined ctors.
30628 (align_variable, get_variable_align): Likewise.
30629 (make_decl_one_only): Likewise.
30630 (default_binds_local_p_1): Likewise.
30631 (decl_binds_to_current_def_p): Likewise.
30632 (get_variable_section): Get constructor if it is offlined.
30633 (assemble_variable_contents): Sanity check that the caller
30634 streamed in the ctor in LTO.
30636 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30638 * graphite-isl-ast-to-gimple.c:
30639 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30640 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30641 isl_ast_op_pdiv_r to the different case.
30643 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30645 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30647 PR middle-end/61876
30648 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30649 when flag_errno_math is on.
30651 2014-07-24 Martin Liska <mliska@suse.cz>
30653 * cgraph.h (varpool_node):
30654 (availability get_availability (void)):
30655 created from cgraph_variable_initializer_availability
30656 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30657 created from: cgraph_variable_initializer_availability
30658 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30659 (void finalize_named_section_flags (void)):
30660 created from varpool_finalize_named_section_flags
30661 (bool assemble_decl (void)): created from varpool_assemble_decl
30662 (void analyze (void)): created from varpool_analyze_node
30663 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30664 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30665 (void remove_initializer (void)): created from varpool_remove_initializer
30666 (tree get_constructor (void)): created from varpool_get_constructor
30667 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30668 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30669 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30670 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30671 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30672 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30673 (static bool output_variables (void)): created from varpool_output_variables
30674 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30675 created from varpool_extra_name_alias
30676 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30677 (static void dump_varpool (FILE *f)): created from dump_varpool
30678 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30679 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30680 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30681 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30682 (void assemble_aliases (void)): created from assemble_aliases
30684 2014-07-24 Martin Liska <mliska@suse.cz>
30686 * cgraph.h (symtab_node):
30687 (void register_symbol (void)): created from symtab_register_node
30688 (void remove (void)): created from symtab_remove_node
30689 (void dump (FILE *f)): created from dump_symtab_node
30690 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30691 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30692 (struct ipa_ref *add_reference (symtab_node *referred_node,
30693 enum ipa_ref_use use_type)): created from add_reference
30694 (struct ipa_ref *add_reference (symtab_node *referred_node,
30695 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30696 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30697 gimple stmt)): created from maybe_add_reference
30698 (bool semantically_equivalent_p (symtab_node *target)): created from
30699 symtab_semantically_equivalent_p
30700 (void remove_from_same_comdat_group (void)): created from
30701 remove_from_same_comdat_group
30702 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30703 symtab_add_to_same_comdat_group
30704 (void dissolve_same_comdat_group_list (void)): created from
30705 symtab_dissolve_same_comdat_group_list
30706 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30707 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30708 created from symtab_alias_ultimate_target
30709 (inline symtab_node *next_defined_symbol (void)): created from
30710 symtab_next_defined_symbol
30711 (bool resolve_alias (symtab_node *target)): created from
30712 symtab_resolve_alias
30713 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30714 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30715 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30716 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30717 (void set_section (const char *section)): created from set_section_1
30718 (enum availability get_availability (void)): created from symtab_node_availability
30719 (void make_decl_local (void)): created from symtab_make_decl_local
30720 (bool real_symbol_p (void)): created from symtab_read_node
30721 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30722 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30723 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30724 symtab_in_same_comdat_p;
30725 (bool address_taken_from_non_vtable_p (void)): created from
30726 address_taken_from_non_vtable_p
30727 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30728 (static void dump_table (FILE *)): created from dump_symtab
30729 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30730 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30731 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30732 symtab_used_from_object_file_p
30733 (void dump_base (FILE *)): created from dump_symtab_base
30734 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30735 (void unregister (void)): created from symtab_unregister_node
30736 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30737 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30738 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30739 symtab_nonoverwritable_alias_1
30740 * cgraph.h (cgraph_node):
30741 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30742 created from cgraph_remove_node_and_inline_clones
30743 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30744 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30745 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30746 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30747 created from cgraph_function_node
30748 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30749 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30750 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30751 created from cgraph_create_clone
30752 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30753 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30754 created from cgraph_create_virtual_clone
30755 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30756 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30757 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30758 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30759 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30760 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30761 created from cgraph_function_version_info
30762 (struct cgraph_function_version_info *insert_new_function_version (void)):
30763 created from insert_new_cgraph_node_version
30764 (struct cgraph_function_version_info *function_version (void)): created from
30765 get_cgraph_node_version
30766 (void analyze (void)): created from analyze_function
30767 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30768 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30769 tree real_alias) cgraph_add_thunk
30770 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30771 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30772 created from cgraph_function_or_thunk_node
30773 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30774 created from expand_thunk
30775 (void reset (void)): created from cgraph_reset_node
30776 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30777 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30778 (void remove (void)): created from cgraph_remove_node
30779 (void dump (FILE *f)): created from dump_cgraph_node
30780 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30781 (bool get_body (void)): created from cgraph_get_body
30782 (void release_body (void)): created from cgraph_release_function_body
30783 (void unnest (void)): created from cgraph_unnest_node
30784 (void make_local (void)): created from cgraph_make_node_local
30785 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30786 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30787 gcov_type count, int freq)): created from cgraph_create_edge
30788 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30789 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30790 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30791 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30792 created from cgraph_create_edge_including_clones
30793 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30794 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30795 (void remove_callers (void)): created from cgraph_node_remove_callers
30796 (void remove_callees (void)): created from cgraph_node_remove_callees
30797 (enum availability get_availability (void)): created from cgraph_function_body_availability
30798 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30799 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30800 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30801 (void call_duplication_hooks (cgraph_node *node2)): created from
30802 cgraph_call_node_duplication_hooks
30803 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30804 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30805 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30806 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30807 (void call_function_insertion_hooks (void)):
30808 created from cgraph_call_function_insertion_hooks
30809 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30810 (bool local_p (void)): created from cgraph_local_node
30811 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30812 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30813 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30814 (inline bool only_called_directly_or_aliased_p (void)):
30815 created from cgraph_only_called_directly_or_aliased_p
30816 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30817 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30818 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30819 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30820 (bool can_remove_if_no_direct_calls_p (void)):
30821 created from cgraph_can_remove_if_no_direct_calls_p
30822 (inline bool has_gimple_body_p (void)):
30823 created from cgraph_function_with_gimple_body_p
30824 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30825 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30826 (static inline void debug_cgraph (void)): created from debug_cgraph
30827 (static void record_function_versions (tree decl1, tree decl2)):
30828 created from record_function_versions
30829 (static void delete_function_version (tree decl)):
30830 created from delete_function_version
30831 (static void add_new_function (tree fndecl, bool lowered)):
30832 created from cgraph_add_new_function
30833 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30834 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30835 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30836 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30837 (static cgraph_node *get_for_asmname (tree asmname)):
30838 created from cgraph_node_for_asm
30839 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30840 created from cgraph_same_body_alias
30841 (static bool used_from_object_file_p_worker (cgraph_node *node,
30842 void *): new function
30843 (static bool non_local_p (cgraph_node *node, void *)):
30844 created from cgraph_non_local_node_p_1
30845 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
30846 created from verify_cgraph
30847 (static bool make_local (cgraph_node *node, void *)):
30848 created from cgraph_make_node_local
30849 (static cgraph_node *create_alias (tree alias, tree target)):
30850 created from cgraph_create_function_alias
30851 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
30852 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
30853 created from cgraph_create_edge_1
30854 * cgraph.h (varpool_node):
30855 (void remove (void)): created from varpool_remove_node
30856 (void dump (FILE *f)): created from dump_varpool_node
30858 2014-07-24 Richard Biener <rguenther@suse.de>
30861 * tree-ssa-structalias.c (create_variable_info_for_1):
30862 Use varpool_get_constructor.
30863 (create_variable_info_for): Likewise.
30865 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30867 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
30868 subtract outgoing area size when restoring stack_pointer_rtx.
30870 2014-07-24 Nick Clifton <nickc@redhat.com>
30872 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
30873 that operations are taking place in parallel.
30874 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
30876 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
30878 * omp-low.c (extract_omp_for_data): Add missing break statement.
30880 2014-07-24 Richard Biener <rguenther@suse.de>
30882 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
30883 * tree-inline.c (estimate_move_cost): Add speed_p parameter
30884 and adjust MOVE_RATIO query accordingly.
30885 (estimate_num_insns): Adjust callers.
30886 * ipa-prop.c (ipa_populate_param_decls): Likewise.
30887 * ipa-cp.c (gather_context_independent_values,
30888 estimate_local_effects): Likewise.
30889 * ipa-split.c (consider_split): Likewise.
30891 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
30893 * config/i386/driver-i386.c: Remove names of unused arguments and
30894 unnecessary unused attributes.
30895 * config/i386/host-mingw32.c: Likewise.
30896 * config/i386/i386.c: Likewise.
30897 * config/i386/winnt-stubs.c: Likewise.
30898 * config/i386/winnt.c: Likewise.
30900 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30902 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
30903 (aarch64_gen_loadwb_pair): New helper function.
30904 (aarch64_expand_epilogue): Simplify code using new helper functions.
30905 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
30907 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30909 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
30910 (aarch64_gen_storewb_pair): New helper function.
30911 (aarch64_expand_prologue): Simplify code using new helper functions.
30912 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
30914 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30916 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
30917 Rename to aarch64_save_callee_saves, remove restore code.
30918 (aarch64_restore_callee_saves): New function.
30920 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30922 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
30923 (aarch64_save_callee_saves): New function to handle reg save
30924 for both core and vectore regs.
30926 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30928 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
30929 (aarch64_gen_store_pair): New helper function.
30930 (aarch64_save_or_restore_callee_save_registers)
30931 (aarch64_save_or_restore_fprs): Use new helper functions.
30933 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30935 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
30936 (aarch64_save_or_restore_callee_save_registers)
30937 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
30939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30941 * config/aarch64/aarch64.c
30942 (aarch64_save_or_restore_callee_save_registers)
30943 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
30945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30947 * config/aarch64/aarch64.c
30948 (aarch64_save_or_restore_callee_save_registers)
30949 (aarch64_save_or_restore_fprs): Remove 'increment'.
30951 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30953 * config/aarch64/aarch64.c
30954 (aarch64_save_or_restore_callee_save_registers)
30955 (aarch64_save_or_restore_fprs): Use register offset in
30956 cfun->machine->frame.reg_offset.
30958 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30960 * config/aarch64/aarch64.c
30961 (aarch64_save_or_restore_callee_save_registers)
30962 (aarch64_save_or_restore_fprs): Remove base_rtx.
30964 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30966 * config/aarch64/aarch64.c
30967 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
30968 to 'start_offset'. Remove local variable 'start_offset'.
30970 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30972 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
30973 type to HOST_WIDE_INT.
30975 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30977 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30978 (aarch64_save_or_restore_fprs)
30979 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
30981 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30983 * config/arm/t-rtems-eabi: Add
30984 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
30985 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
30986 mbig-endian/mthumb/march=armv7-r, and
30987 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
30990 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30991 Chris Johns <chrisj@rtems.org>
30992 Joel Sherrill <joel.sherrill@oarcorp.com>
30994 * config.gcc: Add nios2-*-rtems*.
30995 * config/nios2/rtems.h: New file.
30996 * gcc/config/nios2/t-rtems: New file.
30998 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
31001 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
31002 constant numbers, not general constants.
31003 (rs6000_expand_vector_init): Ditto.
31005 2014-07-23 Nathan Sidwell <nathan@acm.org>
31007 * gcov-tool.c (gcov_list): Declare here.
31008 (set_gcov_list): Remove.
31009 (gcov_output_files): Set gcov_list directly.
31011 2014-07-23 Host Schirmeier <horst@schirmeier.com>
31013 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
31015 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31017 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
31018 callee-saved registers are available for padding purpose
31019 and r3 is not mandatory, then prefer use those callee-saved
31022 2014-07-23 Richard Biener <rguenther@suse.de>
31024 * params.def (PARAM_MAX_COMBINE_INSNS): New.
31025 * combine.c: Include statistics.h and params.h.
31026 (combine_instructions): Guard three and four insn combines
31027 with max-combine-insns value. Record statistics for combines
31029 * doc/invoke.texi (max-combine-insns): Document new param.
31031 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31033 * graphite-isl-ast-to-gimple.c:
31034 (translate_isl_ast_node_block): New function.
31035 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
31037 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
31038 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
31040 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31042 * graphite-isl-ast-to-gimple.c:
31043 (get_max_schedule_dimensions): New function.
31044 (extend_schedule): Likewise.
31045 (generate_isl_schedule): Add calling of extend_schedule and
31046 get_max_schedule_dimensions.
31048 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31050 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
31051 (case UNSPEC): Handle UNSPEC_RBIT.
31053 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31055 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
31056 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
31058 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31060 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
31062 2014-07-22 Roman Gareev <gareevroman@gmail.com>
31064 * graphite-isl-ast-to-gimple.c:
31065 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
31066 (ivs_params_clear):
31067 (build_iv_mapping): New function.
31068 (translate_isl_ast_node_user): Likewise.
31069 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
31071 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
31072 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
31073 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
31075 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31078 * config/arm/arm.md (setmem): New pattern.
31079 * config/arm/arm-protos.h (struct tune_params): New fields.
31080 (arm_gen_setmem): New prototype.
31081 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
31082 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31083 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31084 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
31085 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
31086 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
31087 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
31088 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31089 (arm_const_inline_cost): New function.
31090 (arm_block_set_max_insns): New function.
31091 (arm_block_set_non_vect_profit_p): New function.
31092 (arm_block_set_vect_profit_p): New function.
31093 (arm_block_set_unaligned_vect): New function.
31094 (arm_block_set_aligned_vect): New function.
31095 (arm_block_set_unaligned_non_vect): New function.
31096 (arm_block_set_aligned_non_vect): New function.
31097 (arm_block_set_vect, arm_gen_setmem): New functions.
31099 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31101 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
31103 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
31106 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
31107 out of #ifdef __OPTIMIZE__.
31109 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31111 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
31112 different trapping status if -fnon-call-exceptions is enabled.
31114 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31116 * expr.c (store_field): Handle VOIDmode for calls that return values
31117 in multiple locations.
31119 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31121 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
31122 (altivec_vsldoi_<mode>): Likewise.
31124 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31126 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
31127 to the number of characters in the line.
31129 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31131 * graphite-isl-ast-to-gimple.c: Add using of
31132 build_nonstandard_integer_type instead of int128_integer_type_node.
31134 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
31136 * toplev.c (output_stack_usage): Adjust the location of the warning.
31138 2014-07-19 Daniel Cederman <cederman@gaisler.com>
31140 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
31141 (*membar_storeload): Disable for LEON3.
31143 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31145 PR rtl-optimization/61461
31146 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31148 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31151 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31152 Fix instruction constraint.
31153 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31155 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31157 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31159 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31161 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31162 GNU coding standards.
31163 (nds32_register_move_cost): Likewise.
31164 (nds32_memory_move_cost): Likewise.
31165 (nds32_address_cost): Likewise.
31167 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31169 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31171 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31173 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31174 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31175 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31176 (HAVE_sync_compare_and_swapqi): Define.
31177 (HAVE_sync_compare_and_swaphi): Likewise.
31178 (HAVE_sync_compare_and_swapsi): Likewise.
31180 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31182 * config/mips/p5600.md: Add missing cpu tests.
31184 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31186 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31187 (vmla_f64): Likewise.
31188 (vfms_f64): Likewise.
31189 (vmls_f64): Likewise.
31191 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31193 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31194 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31196 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31198 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31199 (vmlal_high_lane_s32): Likewise.
31200 (vmlal_high_lane_u16): Likewise.
31201 (vmlal_high_lane_u32): Likewise.
31202 (vmlsl_high_lane_s16): Likewise.
31203 (vmlsl_high_lane_s32): Likewise.
31204 (vmlsl_high_lane_u16): Likewise.
31205 (vmlsl_high_lane_u32): Likewise.
31207 2014-07-17 Terry Guo <terry.guo@arm.com>
31209 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31210 (alus_reg): Renamed to alus_sreg.
31211 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31212 from alu_reg to alu_sreg. Change type of dsp instructions from
31213 alu_reg to alu_dsp_reg.
31214 * config/arm/thumb1.md: Likewise.
31215 * config/arm/thumb2.md: Likewise.
31216 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31217 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31218 with alu_sreg and alus_sreg.
31219 * config/arm/arm1026ejs.md (alu_op): Likewise.
31220 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31221 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31222 * config/arm/fa526.md (526_alu_op): Likewise.
31223 * config/arm/fa606te.md (606te_alu_op): Likewise.
31224 * config/arm/fa626te.md (626te_alu_op): Likewise.
31225 * config/arm/fa726te.md (726te_alu_op): Likewise.
31226 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31227 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31228 alu_sreg, alu_dsp_reg and alus_sreg.
31229 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31230 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31231 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31232 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31233 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31234 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31235 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31236 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31237 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31238 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31239 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31240 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31241 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31242 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31243 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31244 alus_reg to alus_sreg.
31246 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31248 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31251 2014-07-17 Richard Biener <rguenther@suse.de>
31253 PR rtl-optimization/61801
31254 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31255 don't set reg_pending_barrier if it appears in a debug-insn.
31257 2014-07-16 DJ Delorie <dj@redhat.com>
31259 * config/rx/rx.c (rx_option_override): Fix alignment values.
31260 (rx_align_for_label): Likewise.
31262 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31265 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31266 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31267 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31269 (cris_print_index, cris_print_operand, cris_constant_index_p)
31270 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31271 (cris_address_cost): Ditto last CONSTANT_P.
31272 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31273 callers changed. Yield cris_offsettable_symbol for non-PIC
31274 constant symbolic expressions including labels. Yield cris_unspec
31276 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31277 target to pic_offset_table_rtx for calls that will likely go
31278 through PLT, const0_rtx when they can't. All callers changed.
31279 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31280 symbolic expressions to be PICified. Remove second, redundant,
31281 assert on can_create_pseudo_p returning non-zero. Use
31282 replace_equiv_address_nv, not replace_equiv_address, for final
31284 * config/cris/cris.md ("movsi"): Move variable t to pattern
31285 toplevel. Adjust assert for new cris_symbol_type member. Use
31286 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31287 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31289 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31290 ("call", "call_value"): Use second incoming operand as a marker
31291 for pic-offset-table-register being used.
31292 ("*expanded_call_non_v32", "*expanded_call_v32")
31293 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31294 second incoming operand to CALL, match cris_call_type_marker.
31295 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31296 ("*expanded_call_side"): Ditto. Fix typo in comment.
31297 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31299 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31300 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31301 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31302 users changed. Add members cris_offsettable_symbol and cris_unspec.
31303 (cris_symbol_type): Rename from cris_pic_symbol_type.
31304 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31306 * config/cris/cris-protos.h (cris_symbol_type_of,
31307 cris_expand_pic_call_address): Adjust prototypes.
31308 (cris_legitimate_constant_p): New prototype.
31310 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31311 an existing tmake_file. Don't add t-slibgcc and t-linux.
31313 2014-07-17 Jason Merrill <jason@redhat.com>
31316 * symtab.c (symtab_remove_from_same_comdat_group): Also
31317 set_comdat_group to NULL_TREE.
31318 (verify_symtab): Fix diagnostic.
31320 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31323 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31325 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31327 Support location tracking for built-in macro tokens
31328 * input.h (is_location_from_builtin_token): New function declaration.
31329 * input.c (is_location_from_builtin_token): New function definition.
31330 * toplev.c (general_init): Tell libcpp what the pre-defined
31331 spelling location for built-in tokens is.
31333 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31335 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31336 on the FUNCTION_DECL.
31338 2014-07-16 Richard Biener <rguenther@suse.de>
31341 * doc/extend.texi (always_inline): Clarify.
31343 2014-07-15 Eric Christopher <echristo@gmail.com>
31345 * doc/invoke.texi (Link Options): Document -z option.
31347 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31349 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31350 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31352 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31354 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31356 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31358 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31359 varpool_assemble_decl.
31360 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31363 2014-07-15 Michael Matz <matz@suse.de>
31365 PR rtl-optimization/61772
31366 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31368 2014-07-15 Richard Biener <rguenther@suse.de>
31370 * opts.c (default_options_table): Disable bit-ccp at -Og.
31372 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31374 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31376 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31378 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31379 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31380 call langhook for unknown declaration.
31381 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31382 * tree.h (DECL_ARGUMENTS): Update.
31383 * print-tree.c (print_node): Update.
31384 * tree-core.h (tree_decl_non_common): Remove arguments.
31385 (tree_function_decl): Add arguments.
31387 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31389 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31391 2014-07-14 Richard Biener <rguenther@suse.de>
31393 PR tree-optimization/61779
31394 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31395 simplifying a condition.
31397 2014-07-14 Richard Biener <rguenther@suse.de>
31399 * builtins.c (c_strlen): Make only_value == 2 really only
31400 affect warning generation.
31402 2014-07-14 Richard Biener <rguenther@suse.de>
31404 PR tree-optimization/61757
31405 PR tree-optimization/61783
31406 PR tree-optimization/61787
31407 * tree-ssa-dom.c (record_equality): Revert canonicalization
31408 change and add comment.
31409 (propagate_rhs_into_lhs): Revert previous fix, removing
31410 loop depth restriction again.
31412 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31414 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31415 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31416 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31417 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31418 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31419 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31420 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31422 2014-07-14 Richard Biener <rguenther@suse.de>
31424 * cgraph.h (decl_in_symtab_p): Make inline.
31426 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31428 PR middle-end/61294
31429 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31432 * config/i386/i386.c (classify_argument): Don't merge classes above
31435 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31437 * cgraph.h (symtab_node): Add nonzero_address.
31438 (decl_in_symtab_p): Break out from ...
31439 (symtab_get_node): ... here.
31440 * fold-const.c: Include cgraph.h
31441 (tree_single_nonzero_warnv_p): Use symtab to determine
31442 if symbol is non-zero.
31443 * symtab.c (symtab_node::nonzero_address): New method.
31445 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31447 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31448 forgotten in previous commit.
31450 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31452 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31454 * ipa-devirt.c: Include stor-layout.h and intl.h
31455 (odr_subtypes_equivalent_p): New function.
31456 (warn_odr): New function.
31457 (warn_type_mismatch): New function.
31458 (odr_types_equivalent_p): New function.
31459 (add_type_duplicate): Use it.
31460 * common.opt (Wodr): New flag.
31461 * doc/invoke.texi (Wodr): Document new warning.
31463 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31465 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31466 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31467 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31468 (varpool_get_constructor): Push CTORS_IN timevar.
31469 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31471 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31473 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31474 Remove VOID_FTYPE_PUSHORT.
31475 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31476 Change code to USHORT_FTYPE_VOID.
31477 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31478 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31479 (ix86_atomic_assign_expand_fenv): Update for
31480 __builtin_ia32_fnstsw changes.
31481 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31482 (fnstsw): Change operand 0 to nonimmediate operand.
31484 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31486 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31487 (varpool_get_constructor): New function.
31488 (varpool_ctor_useable_for_folding_p): Break out from ...
31489 (ctor_for_folding): ... here; use varpool_get_constructor.
31490 (varpool_assemble_decl): Likewise.
31491 * lto-streamer.h (struct output_block): Turn cgraph_node
31493 (lto_input_variable_constructor): Declare.
31494 * ipa-visibility.c (function_and_variable_visibility): Use
31495 varpool_get_constructor.
31496 * cgraph.h (varpool_get_constructor): Declare.
31497 (varpool_ctor_useable_for_folding_p): New function.
31498 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31499 parameter; return error_mark_node for non-trivial constructors.
31500 (lto_write_tree_1, DFS_write_tree): Update use of
31501 get_symbol_initial_value.
31502 (output_function): Update initialization of symbol.
31503 (output_constructor): New function.
31504 (copy_function): Rename to ..
31505 (copy_function_or_variable): ... this one; handle vars too.
31506 (lto_output): Output variable sections.
31507 * lto-streamer-in.c (input_constructor): New function.
31508 (lto_read_body): Rename from ...
31509 (lto_read_body_or_constructor): ... this one; handle vars too.
31510 (lto_input_variable_constructor): New function.
31511 * ipa-prop.c (ipa_prop_write_jump_functions,
31512 ipa_prop_write_all_agg_replacement): Update.
31513 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31514 (output_cgraph_opt_summary): Set symbol to NULL.
31516 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31518 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31519 non-polymorphic types.
31520 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31521 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31522 of types is not polymorphic.
31524 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31526 * lra-constraints.c (remove_inheritance_pseudos): Process
31527 destination pseudo too.
31529 2014-07-11 Rong Xu <xur@google.com>
31531 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31534 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31536 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31537 * config/avr/avr-devices.c (AVR_MCU): Same.
31538 (avr_mcu_types): add text start value to end of device list.
31539 * config/avr/avr-mcus.def: Add text section start for all devices.
31540 (ata5782): Add new avr5 device.
31542 * config/avr/avr-tables.opt: Regenerate.
31543 * config/avr/avr.h: Add declaration for text section start handler.
31544 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31546 (LINK_SPEC): Include text section start handler to linker spec.
31547 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31548 pass -Ttext option to linker if the text section start for the device
31550 * config/avr/t-multilib: Regenerate.
31551 * doc/avr-mmcu.texi: Regenerate.
31553 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31555 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31556 * config/rs6000/aix52.h (LINK_SPEC): Same.
31557 * config/rs6000/aix53.h (LINK_SPEC): Same.
31558 * config/rs6000/aix61.h (LINK_SPEC): Same.
31559 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31561 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31563 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31564 (graphite_verify): New function.
31565 (ivs_params_clear): New function.
31566 (gcc_expression_from_isl_ast_expr_id): New function.
31567 (gcc_expression_from_isl_expr_int): New function.
31568 (binary_op_to_tree): New function.
31569 (ternary_op_to_tree): New function.
31570 (unary_op_to_tree): New function.
31571 (nary_op_to_tree): New function.
31572 (gcc_expression_from_isl_expr_op): New function.
31573 (gcc_expression_from_isl_expression): New function.
31574 (graphite_create_new_loop): New function.
31575 (translate_isl_ast_for_loop): New function.
31576 (get_upper_bound): New function.
31577 (graphite_create_new_loop_guard): New function.
31578 (translate_isl_ast_node_for): New function.
31579 (translate_isl_ast): New function.
31580 (add_parameters_to_ivs_params): New function.
31581 (scop_to_isl_ast): New parameter ip.
31582 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31584 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31586 * config/xtensa/predicates.md (call expander): Update for
31587 DECL_SECTION_NAME being string.
31589 2014-07-11 Richard Biener <rguenther@suse.de>
31591 PR middle-end/61473
31592 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31593 can be implemented with a single load followed by a single store.
31594 (c_strlen): Only warn when only_value is not 2.
31596 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31598 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31600 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31603 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31604 (*movhi_bytes): Likewise.
31605 (*arm_movqi_insn): Likewise.
31607 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31610 * config/alpha/alpha.c: Include tree-pass.h, context.h
31611 and pass_manager.h.
31612 (pass_data_handle_trap_shadows): New pass.
31613 (pass_handle_trap_shadows::gate): New pass gate function.
31614 (make_pass_handle_trap_shadows): New function.
31615 (rest_of_handle_trap_shadows): Ditto.
31617 (alpha_align_insns_1): Rename from alpha_align_insns.
31618 (pass_data_align_insns): New pass.
31619 (pass_align_insns::gate): New pass gate function.
31620 (make_pass_aling_insns): New function.
31621 (rest_of_align_insns): Ditto.
31622 (alpha_align_insns): Ditto.
31624 (alpha_option_override): Declare handle_trap_shadows info
31625 and align_insns_info. Register handle_trap_shadows and align_insns
31627 (alpha_reorg): Do not call alpha_trap_shadows and
31628 alpha_align_insn from here.
31630 (alpha_pad_function_end): Do not skip BARRIERs.
31632 2014-07-10 Rong Xu <xur@google.com>
31634 Add gcov-tool: an offline gcda profile processing tool support.
31635 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31636 (gcov_is_error): Ditto.
31637 (gcov_read_string): Ditto.
31638 (gcov_read_sync): Ditto.
31639 * gcov-io.h: Move counter defines to gcov-counter.def.
31640 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31641 * coverage.c: Ditto.
31642 * gcov-tool.c: Offline gcda profile processing tool.
31643 (unlink_gcda_file): Remove one gcda file.
31644 (unlink_profile_dir): Remove gcda files from the profile path.
31645 (gcov_output_files): Output gcda files to an output dir.
31646 (profile_merge): Merge two profiles in directory.
31647 (print_merge_usage_message): Print merge usage.
31648 (merge_usage): Print merge usage and exit.
31649 (do_merge): Driver for profile merge sub-command.
31650 (profile_rewrite): Rewrite profile.
31651 (print_rewrite_usage_message): Print rewrite usage.
31652 (rewrite_usage): Print rewrite usage and exit.
31653 (do_rewrite): Driver for profile rewrite sub-command.
31654 (print_usage): Print gcov-info usage and exit.
31655 (print_version): Print gcov-info version.
31656 (process_args): Process arguments.
31657 (main): Main routine for gcov-tool.
31658 * Makefile.in: Build and install gcov-tool.
31659 * gcov-counter.def: New file split from gcov-io.h.
31660 * doc/gcc.texi: Include gcov-tool.texi.
31661 * doc/gcov-tool.texi: Document for gcov-tool.
31663 2014-07-10 Richard Biener <rguenther@suse.de>
31665 PR tree-optimization/61757
31666 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31667 (propagate_rhs_into_lhs): Revert part of last change.
31669 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31671 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31674 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31676 PR middle-end/53590
31677 * function.c (allocate_struct_function): Revert r188667 change.
31679 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31681 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31683 * doc/install.texi: Remove links to defunct package providers for
31686 2014-07-09 Tom de Vries <tom@codesourcery.com>
31688 * final.c (get_call_fndecl): Declare.
31689 (self_recursive_call_p): New function.
31690 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31692 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31694 * ipa-devirt.c (record_node): Walk through aliases.
31696 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31698 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31700 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31703 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31705 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31707 * ipa-visibility.c (function_and_variable_visibility): Remove
31708 temporary hack disabling local aliases on AIX.
31710 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31712 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31713 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31715 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31717 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31718 * rs6000/rs6000.c: Inline output of .set instruction.
31719 (declare_alias_data): New struct.
31720 (rs6000_declare_alias): New function.
31721 (rs6000_xcoff_declare_function_name): Use it.
31722 (rs6000_xcoff_declare_object_name): New function.
31723 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31724 (ASM_OUTPUT_DEF): Turn to empty definition.
31726 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31729 * hash-table.h: use hash_table::value_type instead of
31730 Descriptor::value_type in the return types of several methods.
31732 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31734 * tree-pass.h (pass_data): Remove has_execute member.
31735 * passes.c (execute_one_pass): Don't check pass->has_execute.
31736 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31737 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31738 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31739 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31740 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31741 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31742 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31743 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31744 gimple-low.c, gimple-ssa-isolate-paths.c,
31745 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31746 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31747 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31748 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31749 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31750 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31751 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31752 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31753 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31754 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31755 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31756 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31757 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31758 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31759 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31760 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31761 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31762 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31763 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31764 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31765 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31766 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31767 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31768 web.c: Remove initializer for pass_data::has_execute.
31770 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31772 * graphite-htab.h: Use hash_map instead of hash_table.
31773 * graphite-clast-to-gimple.c: Adjust.
31774 * passes.c: Use hash_map instead of hash_table.
31775 * sese.c: Likewise.
31776 * sese.h: Remove now unused code.
31778 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31781 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31784 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31786 PR rtl-optimization/61673
31787 * combine.c (simplify_comparison): Test just mode's sign bit
31788 in tmode rather than the sign bit and any bits above it.
31790 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31792 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31793 Add __isl_give to the declaration.
31794 (generate_isl_schedule): Likewise.
31795 (scop_to_isl_ast): Likewise.
31797 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31799 * config/arm/arm.c (cortexa5_extra_costs): New table.
31800 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31802 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31804 PR tree-optimization/61725
31805 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31806 range, use range_includes_zerop_p instead of integer_zerop on
31807 vr0->min, only use log2 of max if min is not negative.
31809 2014-07-08 Richard Biener <rguenther@suse.de>
31811 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31812 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31813 restriction on loop depth difference.
31814 (record_equality): Likewise.
31815 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31816 (loop_depth_of_name): Remove.
31817 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31818 restriction on loop depth difference.
31819 (init_copy_prop): Likewise.
31821 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31823 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31825 (walk_aliased_vdefs): Likewise.
31826 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31827 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31828 (detect_type_change_from_memory_writes): Check if entry was reached.
31830 2014-07-08 Richard Biener <rguenther@suse.de>
31832 PR tree-optimization/61681
31833 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31834 NONLOCAL inside ESCAPED.
31836 2014-07-08 Richard Biener <rguenther@suse.de>
31838 PR tree-optimization/61680
31839 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31840 Handle properly all read-write dependences with group accesses.
31842 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
31844 PR tree-optimization/61576
31845 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
31846 block containing reduction statement is predecessor of phi basi block.
31848 2014-07-08 Marek Polacek <polacek@redhat.com>
31851 * fold-const.c (round_up_loc): Change the parameter type.
31853 * fold-const.h (round_up_loc): Adjust declaration.
31854 * stor-layout.c (finalize_record_size): Check for too large types.
31856 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
31858 * symtab.c: Include calls.h.
31859 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
31861 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
31863 * config/rs6000/rs6000.c (output_vec_const_move): Handle
31864 little-endian code generation.
31865 * config/rs6000/spe.md (spe_evmergehi): Rename to...
31866 (vec_perm00_v2si): ... this. Handle little-endian code generation.
31867 (spe_evmergehilo): Rename to...
31868 (vec_perm01_v2si): ... this. Handle little-endian code generation.
31869 (spe_evmergelo): Rename to...
31870 (vec_perm11_v2si): ... this. Handle little-endian code generation.
31871 (spe_evmergelohi): Rename to...
31872 (vec_perm10_v2si): ... this. Handle little-endian code generation.
31873 (spe_evmergehi, spe_evmergehilo): New expanders.
31874 (spe_evmergelo, spe_evmergelohi): Likewise.
31875 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
31876 (*frob_tf_ti): Likewise.
31877 (*frob_<mode>_di_2): Likewise.
31878 (*frob_tf_di_8_2): Likewise.
31879 (*frob_di_<mode>): Likewise.
31880 (*frob_ti_tf): Likewise.
31881 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
31882 (*frob_ti_<mode>_8_2): Likewise.
31883 (*frob_ti_tf_2): Likewise.
31884 (mov_si<mode>_e500_subreg0): Rename to...
31885 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
31887 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
31888 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
31889 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
31890 the big endianness only.
31891 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
31892 (*mov_si<mode>_e500_subreg0_2): Rename to...
31893 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
31894 big big endianness only.
31895 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
31896 (*mov_si<mode>_e500_subreg4): Rename to...
31897 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
31899 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
31900 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
31901 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
31902 the big endianness only.
31903 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
31905 (*mov_si<mode>_e500_subreg4_2): Rename to...
31906 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
31908 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
31909 (*mov_sitf_e500_subreg8): Rename to...
31910 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
31912 (*mov_sitf_e500_subreg8_le): New instruction pattern.
31913 (*mov_sitf_e500_subreg8_2): Rename to...
31914 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
31916 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
31917 (*mov_sitf_e500_subreg12): Rename to...
31918 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
31920 (*mov_sitf_e500_subreg12_le): New instruction pattern.
31921 (*mov_sitf_e500_subreg12_2): Rename to...
31922 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
31924 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
31926 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
31928 * asan.c (instrument_strlen_call): Do not instrument first byte
31929 in strlen if already instrumented.
31931 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31933 * config/arm/arm.opt (mwords-little-endian): Delete.
31934 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
31935 of TARGET_LITTLE_WORDS.
31936 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
31937 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
31939 * doc/invoke.texi: Remove references to -mwords-little-endian.
31941 2014-07-07 Jakub Jelinek <jakub@redhat.com>
31943 * expmed.c (struct init_expmed_rtl): Change all fields but
31944 pow2 and cint from struct rtx_def to rtx.
31945 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
31946 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
31949 2014-07-06 Marek Polacek <polacek@redhat.com>
31952 * doc/invoke.texi: Document -Wsizeof-array-argument.
31954 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
31956 * wide-int.h (wide_int_storage): Change declaration from struct
31959 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
31961 * cgraph.c (cgraph_create_indirect_edge): Update call of
31962 get_polymorphic_call_info.
31963 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
31964 (possible_polymorphic_call_targets): Add parameter call.
31965 (decl_maybe_in_construction_p): New predicate.
31966 (get_polymorphic_call_info): Add parameter call;
31967 use decl_maybe_in_construction_p.
31968 * gimple-fold.c (fold_gimple_assign): Update use of
31969 possible_polymorphic_call_targets.
31970 (gimple_fold_call): Likewise.
31971 * ipa-prop.c: Inlcude calls.h
31972 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
31973 (param_type_may_change_p): New predicate.
31974 (detect_type_change_from_memory_writes): Break out from ...
31975 (detect_type_change): ... this one; use param_type_may_change_p.
31976 (detect_type_change_ssa): Use param_type_may_change_p.
31977 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
31979 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
31982 * config/arm/arm-protos.h (arm_legitimate_address_p,
31983 arm_is_constant_pool_ref): Add prototypes.
31984 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
31985 (arm_is_constant_pool_ref) New function.
31986 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
31987 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
31988 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
31989 operand. Remove pool_range and neg_pool_range attributes.
31990 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
31991 pool_range and neg_pool_range attributes.
31992 * config/arm/constraints.md (Uh): New constraint.
31993 (Uq): Don't allow constant pool references.
31995 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
31997 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
31998 (move_lo_quad_internal_be_<mode>): Likewise.
31999 (move_lo_quad_<mode>): Convert to define_expand.
32000 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
32001 (aarch64_simd_move_hi_quad_be_<mode>): New.
32002 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
32003 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
32004 (aarch64_combinez_be<mode>): New.
32005 (aarch64_combine<mode>): Convert to define_expand.
32006 (aarch64_combine_internal<mode>): New.
32007 (aarch64_simd_combine<mode>): Remove bogus RTL description.
32009 2014-07-04 Tom de Vries <tom@codesourcery.com>
32011 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
32012 combination of earlyclobber and read/write modifiers.
32014 2014-07-04 Tom de Vries <tom@codesourcery.com>
32016 * config/aarch64/aarch64-simd.md
32017 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
32019 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
32022 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
32024 2014-07-04 Jakub Jelinek <jakub@redhat.com>
32026 PR middle-end/61654
32027 * cgraphunit.c (expand_thunk): Call free_dominance_info.
32029 PR tree-optimization/61684
32030 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
32031 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
32033 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32034 Kito Cheng <kito@0xlab.org>
32035 Monk Chiang <sh.chiang04@gmail.com>
32037 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
32038 (nds32_symbol_load_store_p): Move to ...
32039 (nds32_fp_as_gp_check_available): Move to ...
32040 * config/nds32/nds32-fp-as-gp.c: ... here.
32041 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
32042 extern declaration.
32044 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32045 Kito Cheng <kito@0xlab.org>
32046 Monk Chiang <sh.chiang04@gmail.com>
32048 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
32049 (nds32_expand_store_multiple): Move to ...
32050 (nds32_expand_movmemqi): Move to ...
32051 * config/nds32/nds32-memory-manipulation.c: ... here.
32053 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32054 Kito Cheng <kito@0xlab.org>
32055 Monk Chiang <sh.chiang04@gmail.com>
32057 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
32058 (nds32_output_casesi_pc_relative): Move to ...
32059 (nds32_output_casesi): Move to ...
32060 (nds32_mem_format): Move to ...
32061 (nds32_output_16bit_store): Move to ...
32062 (nds32_output_16bit_load): Move to ...
32063 (nds32_output_32bit_store): Move to ...
32064 (nds32_output_32bit_load): Move to ...
32065 (nds32_output_32bit_load_s): Move to ...
32066 (nds32_output_stack_push): Move to ...
32067 (nds32_output_stack_pop): Move to ...
32068 * config/nds32/nds32-md-auxiliary.c: ... here.
32070 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32071 Ling-Hua Tseng <uranus@tinlans.org>
32073 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
32074 the purpose of this file.
32076 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32077 Kito Cheng <kito@0xlab.org>
32078 Monk Chiang <sh.chiang04@gmail.com>
32080 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
32081 (nds32_address_cost): Move implementation to ...
32082 * config/nds32/nds32-cost.c: ... here.
32083 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
32084 (nds32_address_cost_impl): Declare.
32086 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32087 Kito Cheng <kito@0xlab.org>
32088 Monk Chiang <sh.chiang04@gmail.com>
32090 * config/nds32/nds32.c
32091 (nds32_consecutive_registers_load_store_p): Move to ...
32092 (nds32_valid_multiple_load_store): Move to ...
32093 (nds32_valid_stack_push_pop): Move to ...
32094 (nds32_can_use_bclr_p): Move to ...
32095 (nds32_can_use_bset_p): Move to ...
32096 (nds32_can_use_btgl_p): Move to ...
32097 (nds32_can_use_bitci_p): Move to ...
32098 * config/nds32/nds32-predicates.c: ... here.
32100 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32101 Kito Cheng <kito@0xlab.org>
32102 Monk Chiang <sh.chiang04@gmail.com>
32104 * config/nds32/nds32.c
32105 (nds32_expand_builtin_null_ftype_reg): Move to ...
32106 (nds32_expand_builtin_reg_ftype_imm): Move to ...
32107 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
32108 (nds32_init_builtins): Move implementation to ...
32109 (nds32_expand_builtin): Move implementation to ...
32110 * config/nds32/nds32-intrinsic.c: ... here.
32111 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
32112 (nds32_expand_builtin_impl): Declare.
32114 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32115 Kito Cheng <kito@0xlab.org>
32116 Monk Chiang <sh.chiang04@gmail.com>
32118 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
32119 (nds32_emit_section_tail_template): Move to ...
32120 (nds32_emit_isr_jmptbl_section): Move to ...
32121 (nds32_emit_isr_vector_section): Move to ...
32122 (nds32_emit_isr_reset_conten): Move to ...
32123 (nds32_check_isr_attrs_conflict): Move to ...
32124 (nds32_construct_isr_vectors_information): Move to ...
32125 (nds32_asm_file_start): Move implementation to ...
32126 (nds32_asm_file_end): Move implementation to ...
32127 * config/nds32/nds32-isr.c: ... here.
32128 * config/nds32/nds32-protos.h
32129 (nds32_check_isr_attrs_conflict): Declare.
32130 (nds32_construct_isr_vectors_information): Declare.
32131 (nds32_asm_file_start_for_isr): Declare.
32132 (nds32_asm_file_end_for_isr): Declare.
32134 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32135 Kito Cheng <kito@0xlab.org>
32136 Monk Chiang <sh.chiang04@gmail.com>
32138 * config.gcc (nds32*): Add new modules to extra_objs.
32139 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
32140 (nds32be-*-*): Likewise.
32141 * config/nds32/nds32-cost.c: New file.
32142 * config/nds32/nds32-fp-as-gp.c: New file.
32143 * config/nds32/nds32-intrinsic.c: New file.
32144 * config/nds32/nds32-isr.c: New file.
32145 * config/nds32/nds32-md-auxiliary.c: New file.
32146 * config/nds32/nds32-memory-manipulation.c: New file.
32147 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32148 * config/nds32/nds32-predicates.c: New file.
32149 * config/nds32/t-nds32: New file.
32151 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32153 PR tree-optimization/61682
32154 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32155 using cases and when one of the operands is equal to 1.
32157 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32159 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32160 ashr<mode>3): Correct mode of operands[2].
32161 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32162 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32163 Correct mode of operands[2]. Fix split condition.
32165 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32167 * arm.md (arch): Add armv6_or_vfpv3.
32168 (arch_enabled): Add test for the above.
32169 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32171 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32173 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32175 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32176 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32177 HWI 1 and negate the unsigned value.
32178 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32179 use AND instead of shift.
32180 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32182 2014-07-03 Marek Polacek <polacek@redhat.com>
32184 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32185 (-fsanitize=float-divide-by-zero): Move to the table with
32186 -fsanitize=undefined suboptions.
32187 (-fsanitize=float-cast-overflow): Likewise.
32189 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32191 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32192 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32195 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32197 * loop-invariant.c (struct invariant): Add a new member: eqno;
32198 (find_identical_invariants): Update eqno;
32199 (create_new_invariant): Init eqno;
32200 (get_inv_cost): Compute comp_cost with eqno;
32202 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32204 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32205 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32206 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32207 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32208 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32210 2014-07-02 Christian Bruel <christian.bruel@st.com>
32214 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32215 (make_preds_opaque): Delete.
32216 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32217 (commit_mode_sets): New function.
32218 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32219 Process all modes at once.
32220 * basic-block.h (pre_edge_lcm_avs): Declare.
32221 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32222 Call clear_aux_for_edges. Fix comments.
32223 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32224 (pre_edge_rev_lcm): Idem.
32225 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32227 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32228 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32230 * config/i386/i386.c (x96_emit_mode_set): Idem.
32231 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32232 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32233 (fpscr_toggle) Disallow from delay slot.
32234 * target.def (emit_mode_set): Add prev_mode parameter.
32235 * doc/tm.texi: Regenerate.
32237 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32239 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32242 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32244 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32245 vtable_pointer_value_to_vtable): Constify.
32246 (contains_polymorphic_type_p): Declare.
32247 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32248 vtable_pointer_value_to_vtable): Constify.
32249 (contains_polymorphic_type_p): New predicate.
32250 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32252 (ipa_set_ancestor_jf): Likewise.
32253 (detect_type_change): Return false in easy cases.
32254 (compute_complex_assign_jump_func): Require type to contain
32256 (compute_known_type_jump_func): Likewise.
32258 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32260 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32262 (type_in_anonymous_namespace_p): Constify argument.
32263 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32264 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32265 (main_odr_variant): New function.
32266 (hash_type_name): Make static; update assert; do not ICE on
32268 (types_same_for_odr): Bring here from tree.c; simplify and remove
32269 old structural comparing code that doesn't work for templates.
32270 (odr_hasher::equal): Update assert.
32271 (add_type_duplicate): Return true when bases should be computed;
32272 replace incomplete loader by complete; do not output duplicated
32273 warnings; do not ICE on non-records; set odr_violated flag.
32274 (get_odr_type): Be ready to replace incomplete type by complete
32275 one; work on ODR variants instead of main variants; reorder item
32276 in array so bases have still smaller indexes.
32277 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32278 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32280 2014-07-01 Cary Coutant <ccoutant@google.com>
32282 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32284 (resolve_addr_in_expr): When replacing the rtx in a location list
32285 entry, get a new address table entry.
32286 (dwarf2out_finish): Call index_location_lists even if there are no
32287 addr_index_table entries yet.
32289 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32291 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32292 change for not being obvious.
32294 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32296 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32299 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32301 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32302 (vcagt_f64): Likewise.
32303 (vcale_f64): Likewise.
32304 (vcaled_f64): Likewise.
32305 (vcales_f32): Likewise.
32306 (vcalt_f64): Likewise.
32307 (vcaltd_f64): Likewise.
32308 (vcalts_f32): Likewise.
32310 2014-07-01 Marek Polacek <polacek@redhat.com>
32312 * doc/invoke.texi: Document -Wint-conversion.
32314 2014-07-01 Marek Polacek <polacek@redhat.com>
32317 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32319 2014-07-01 Martin Liska <mliska@suse.cz>
32321 IPA REF alias refactoring
32322 * cgraph.h (iterate_direct_aliases): New function.
32323 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32324 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32325 FOR_EACH_ALIAS added.
32326 (cgraph_for_node_and_aliases): Likewise.
32327 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32328 * ipa-inline.c (reset_edge_caches): Likewise.
32329 (update_caller_keys): Likewise.
32330 * trans-mem.c (ipa_tm_execute): Likewise.
32331 *varpool.c (varpool_analyze_node): Likewise.
32332 (varpool_for_node_and_aliases): Likewise.
32333 * ipa-ref.h (first_alias): New function.
32334 (last_alias): Likewise.
32335 (has_aliases_p): Likewise.
32336 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32337 is sensitive to IPA_REF_ALIASes.
32338 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32339 are put at the beginning of the list.
32340 (symtab_node::iterate_direct_aliases): New function.
32342 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32345 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32347 (write_ts_type_common_tree_pointers): Do not stream fields not set
32348 for incomplete types; do not stream duplicated fields for variants;
32349 sanity check that variant and type match.
32350 (write_ts_type_non_common_tree_pointers): Likewise.
32351 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32352 TYPE_SIZE whether type is complete.
32353 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32354 write_ts_type_common_tree_pointers
32355 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32357 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32359 * var-tracking.c (add_stores): Return instead of asserting if old
32360 and new values for conditional store are the same.
32362 2014-06-30 Richard Henderson <rth@redhat.com>
32366 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32367 the cfg if there were any changes.
32368 * passes.def: Revert move of peephole2 after reorder_blocks;
32369 move duplicate_computed_gotos before peephole2.
32371 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32373 * except.c (emit_note_eh_region_end): New helper function.
32374 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32375 emit EH_REGION_END note.
32376 * jump.c (cleanup_barriers): Do not split a call and its
32377 corresponding CALL_ARG_LOCATION note.
32379 2014-06-30 Jeff Law <law@redhat.com>
32381 PR tree-optimization/61607
32382 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32383 deeper into the SSA_NAME_VALUE chain.
32385 2014-06-30 Marek Polacek <polacek@redhat.com>
32387 * convert.c (convert_to_integer): Don't instrument conversions if the
32388 function has no_sanitize_undefined attribute.
32389 * ubsan.c: Don't run the ubsan pass if the function has
32390 no_sanitize_undefined attribute.
32392 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32394 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32395 -fsanitize=undefined suboptions.
32397 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32399 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32400 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32401 against bigendian and adjust indices.
32403 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32405 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32407 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32410 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32411 Add alternative; make early clobber. Adjust both split patterns
32412 to use operand 0 as the working register.
32414 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32416 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32417 as ira_object_id_map might be NULL, or 1.
32419 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32421 * loop-invariant.c (get_inv_cost): Handle register class.
32422 (gain_for_invariant): Check the register pressure of the inv
32423 and its overlapped register class, other than all.
32425 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32427 * doc/invoke.texi (Optimize Options): Fix descriptions of
32428 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32430 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32432 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32435 2014-06-29 Tobias Grosser <tobias@grosser.es>
32438 * graphite-isl-ast-to-gimple.c: Add missing guards.
32440 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32442 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32443 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32444 * flag-types.h: Add new enum fgraphite_generator.
32445 * graphite-isl-ast-to-gimple.c: New.
32446 * graphite-isl-ast-to-gimple.h: New.
32447 * graphite.c (graphite_transform_loops): Add choice of Graphite
32448 code generator, which depends on flag_graphite_code_gen.
32450 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32452 * graphite-dependences.c (subtract_commutative_associative_deps):
32453 Add NULL checking of the following variables: must_raw_no_source,
32454 may_raw_no_source, must_war_no_source, may_war_no_source,
32455 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32456 must_war, may_war, must_waw, may_waw.
32458 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32460 * graphite-clast-to-gimple.c: gloog is renamed to
32461 graphite_regenerate_ast_cloog. gloog_error is renamed to
32462 graphite_regenerate_error.
32463 * graphite-clast-to-gimple.h: The definition of the struct
32464 bb_pbb_def is moved to graphite-htab.h.
32465 Add inclusion of the hash-table.h.
32466 * graphite-htab.h: The declaration of the function gloog is moved
32467 to graphite-clast-to-gimple.h and renamed to
32468 graphite_regenerate_ast_cloog.
32469 * graphite.c (graphite_transform_loops): gloog is renamed
32470 to graphite_regenerate_ast_cloog.
32472 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32474 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32476 (write_ts_type_common_tree_pointers): Do not stream fields not set
32477 for incomplete types; do not stream duplicated fields for variants;
32478 sanity check that variant and type match.
32479 (write_ts_type_non_common_tree_pointers): Likewise.
32480 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32481 TYPE_SIZE whether type is complete.
32482 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32483 write_ts_type_common_tree_pointers
32484 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32486 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32488 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32490 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32492 * tree-inline.c (remap_type_1): Do not duplicate fields
32493 that are shared in between type and its main variant.
32495 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32497 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32499 (ipa_set_ancestor_jf) Likewise.
32500 (check_stmt_for_type_change): Check that we work on main variant.
32501 (detect_type_change): Look into main variant.
32502 (compute_known_type_jump_func): Check that main variant has BINFO.
32504 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32506 * ipa-devirt.c (set_type_binfo): New function.
32507 (add_type_duplicate): Use it.
32508 (get_odr_type): Sanity check that binfos points to main variants.
32509 (get_class_context): Be sure the context's outer_type is main variant.
32510 (contains_type_p): Walk main variant.
32511 (get_polymorphic_call_info_for_decl): Set outer_type to be
32513 (get_polymorphic_call_info): Likewise.
32514 (possible_polymorphic_call_targets): Sanity check that we operate
32517 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32519 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32521 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32523 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32524 accidental change due to wide-int branch merge.
32526 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32528 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32529 compressed debug support.
32530 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32531 * configure: Regenerate.
32532 * config.in: Regenerate.
32533 * common.opt (compressed_debug_sections): New enum.
32534 (gz, gz=): New options.
32535 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32536 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32537 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32538 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32539 LINK_COMPRESS_DEBUG_SPEC.
32540 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32541 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32542 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32543 (Debugging Options): Document -gz[=type].
32545 2014-06-27 Martin Jambor <mjambor@suse.cz>
32548 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32549 args_to_skip, use those from node instead. Copy args_to_skip and
32550 combined_args_to_skip from node to the new thunk.
32551 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32552 (cgraph_create_virtual_clone): Moved computation of
32553 combined_args_to_skip...
32554 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32556 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32558 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32559 redundant diagnostic machinary.
32561 2014-06-27 Richard Biener <rguenther@suse.de>
32563 * tree-ssa-math-opts.c (bswap_replace): Fix
32564 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32566 2014-06-27 Martin Liska <mliska@suse.cz>
32568 * gimple.h (gimple_location_safe): New function introduced.
32569 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32570 of gimple_location_safe replaces gimple_location.
32571 (gimple_fold_call): Likewise.
32572 * ipa-devirt.c (ipa_devirt): Likewise.
32573 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32574 * ipa.c (walk_polymorphic_call_targets): Likewise.
32575 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32577 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32579 PR tree-optimization/57233
32580 PR tree-optimization/61299
32581 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32583 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32584 would be lowered to scalar shifts, check if corresponding
32585 shifts and vector BIT_IOR_EXPR are supported and don't lower
32586 or lower just to narrower vector type in that case.
32587 * expmed.c (expand_shift_1): Fix up handling of vector
32588 shifts and rotates.
32590 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32593 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32595 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32597 * doc/invoke.texi (-fsemantic-interposition): Document.
32598 * common.opt (fsemantic-interposition): New flag.
32599 * varasm.c (decl_replaceable_p): Use it.
32601 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32604 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32605 extraction other than index 3.
32607 2014-06-26 Teresa Johnson <tejohnson@google.com>
32609 * doc/invoke.texi: Fix typo.
32610 * dumpfile.c: Add support for documented -fdump-* options
32611 optimized/missed/note/optall.
32613 2014-06-26 Martin Jambor <mjambor@suse.cz>
32615 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32616 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32617 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32618 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32619 * opts.c (default_options_optimization): Set
32620 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32621 * doc/invoke.texi (allow-load-data-races)
32622 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32623 (allow-store-data-races): Document the new default.
32625 2014-06-26 Martin Jambor <mjambor@suse.cz>
32627 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32628 renamed to ipa_impossible_devirt_target. Fix typo.
32629 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32630 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32631 ipa_impossible_devirt_target.
32633 2014-06-26 Richard Biener <rguenther@suse.de>
32635 PR tree-optimization/61607
32636 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32637 explaining why we restrict copies on loop depth.
32638 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32640 (record_equivalences_from_phis): Instead add it here.
32642 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32644 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32645 (LTO_WRAPPER_OBJS): New variable.
32646 (lto-wrapper$(exeext)): Use it.
32647 * collect2.c: Include "collect-utils.h".
32648 (verbose, debug): Remove variables.
32649 (at_file_supplied): No longer static.
32650 (tool_name): New variable.
32651 (do_wait, fork_execute, maybe_unlink): Don't declare.
32652 (tool_cleanup): No longer static.
32653 (notice): Remove function.
32654 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32655 fork_execute calls.
32656 (collect_wait, do_wait, collect_execute): Remove functions.
32657 (maybe_unlink): No longer static.
32658 * collect2.h (verbose, debug): Don't declare.
32659 (at_file_supplied): Declare.
32660 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32662 (collect_execute): Replace with implementation from collect2, plus a
32663 new arg use_atfile. All callers changed.
32664 (collect_wait): Replace with implementation from collect2.
32665 (maybe_unlink_file): Remove function.
32666 (fork_execute): Replace with implementation from collect2, plus a
32667 new arg use_atfile. All callers changed.
32668 (do_wait): Add call to utils_cleanup to the error path.
32669 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32670 (tool_cleanup): Adjust declarations.
32671 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32672 * tlink.c: Include "collect-utils.h".
32673 (tlink_execute): New arg use_atfile. All callers changed.
32674 (tlink_init, tlink_execute): Remove declarations.
32676 * collect-utils.c (save_temps): New variable.
32677 (do_wait): Use it instead of debug. Use fatal_error.
32678 * collect-utils.h (save_temps): Declare.
32679 * collect2.c (verbose): Rename from vflag. All uses changed.
32680 (tool_cleanup): New function, copied from collect_atexit.
32681 (collect_atexit, handler): Just call it.
32682 * collect2.h (verbose): Declaration renamed from vflag.
32683 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32686 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32687 (lto-wrapper$(exeext)): Link with collect-utils.o.
32688 * collect-utils.c: New file.
32689 * collect-utils.h: New file.
32690 * lto-wrapper.c: Include "collect-utils.h".
32691 (args_name): Delete variable.
32692 (tool_name): New variable.
32693 (tool_cleanup): New function.
32694 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32695 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32696 (fork_execute): Remove functions.
32698 2014-06-26 Nick Clifton <nickc@redhat.com>
32700 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32702 * doc/extend.texi (Function Attributes): Fix typo in description
32703 of RX vector attribute.
32705 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32707 * config.gcc (supported_defaults): Error when passing either
32708 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32710 2014-06-26 Richard Biener <rguenther@suse.de>
32712 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32713 propagating volatile pointers.
32715 2014-06-26 Richard Biener <rguenther@suse.de>
32717 PR tree-optimization/61607
32718 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32719 loop if we redirected its latch edge.
32720 (thread_block_1): Do not cancel loops prematurely.
32722 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32724 * toplev.c (backend_init_target): Move init_emit_regs and
32726 (backend_init) ... here; skip ira_init_once and backend_init_target.
32727 (target_reinit) ... and here; clear
32728 this_target_rtl->lang_dependent_initialized.
32729 (lang_dependent_init_target): Clear
32730 this_target_rtl->lang_dependent_initialized;
32731 break out rtl initialization to ...
32732 (initialize_rtl): ... here; call also backend_init_target
32734 * toplev.h (initialize_rtl): New function.
32735 * function.c: Include toplev.h
32736 (init_function_start): Call initialize_rtl.
32737 * rtl.h (target_rtl): Add target_specific_initialized,
32738 lang_dependent_initialized.
32740 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32741 Jakub Jelinek <jakub@redhat.com>
32743 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32745 2014-06-25 Tom de Vries <tom@codesourcery.com>
32747 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32749 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32751 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32752 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32753 Issue a strict overflow warning if appropriate.
32755 2014-06-25 Martin Liska <mliska@suse.cz>
32757 IPA REF refactoring
32758 * Makefile.in: Removed header file (ipa-ref-inline.h).
32759 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32761 (cgraph_speculative_call_info): Likewise.
32762 (cgraph_for_node_thunks_and_aliases): Likewise.
32763 (cgraph_for_node_and_aliases): Likewise.
32764 (verify_cgraph_node): Likewise.
32765 * cgraph.h: Batch of IPA REF functions become member functions of
32766 symtab_node: add_reference, maybe_add_reference, clone_references,
32767 clone_referring, clone_reference, find_reference,
32768 remove_stmt_references, remove_all_references,
32769 remove_all_referring, dump_references, dump_referring,
32770 has_alias_p, iterate_reference, iterate_referring.
32771 * cgraphbuild.c (record_reference): New IPA REF function used.
32772 (record_type_list): Likewise.
32773 (record_eh_tables): Likewise.
32774 (mark_address): Likewise.
32775 (mark_load): Likewise.
32776 (mark_store): Likewise.
32777 (pass_build_cgraph_edges): Likewise.
32778 (rebuild_cgraph_edge): Likewise.
32779 (cgraph_rebuild_references): Likewise.
32780 (pass_remove_cgraph_callee_edges): Likewise.
32781 * cgraphclones.c (cgraph_clone_node): Likewise.
32782 (cgraph_create_virtual_clone): Likewise.
32783 (cgraph_materialize_clone): Likewise.
32784 (cgraph_materialize_all_clones): Likewise.
32785 * cgraphunit.c (cgraph_reset_node): Likewise.
32786 (cgraph_reset_node): Likewise.
32787 (analyze_function): Likewise.
32788 (assemble_thunks_and_aliases): Likewise.
32789 (expand_function): Likewise.
32790 * ipa-comdats.c (propagate_comdat_group): Likewise.
32791 (enqueue_references): Likewise.
32792 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32793 (create_specialized_node): Likewise.
32794 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32795 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32796 * ipa-inline.c (reset_edge_caches): Likewise.
32797 (update_caller_keys): Likewise.
32798 (execute): Likewise.
32799 * ipa-prop.c (remove_described_reference): Likewise.
32800 (propagate_controlled_uses): Likewise.
32801 (ipa_edge_duplication_hook): Likewise.
32802 (ipa_modify_call_arguments): Likewise.
32803 * ipa-pure-const.c (propagate_pure_const): Likewise.
32804 * ipa-ref-inline.h: Header file removed, functions moved
32805 to symtab_node class.
32806 * ipa-ref.c (remove_reference): New class member function.
32807 (cannot_lead_to_return): New class member function.
32808 (referring_ref_list): Likewise.
32809 (referred_ref_list): Likewise.
32810 Rest of functions moved to symtab_node class.
32811 * ipa-ref.h: New member functions remove_reference,
32812 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32814 ipa_ref_list class has new member functions: first_reference,
32815 first_referring, clear, nreferences.
32816 * ipa-reference.c (analyze_function): New IPA REF function used.
32817 (write_node_summary_p): Likewise.
32818 (ipa_reference_write_optimization_summary): Likewise.
32819 * ipa-split.c (split_function): Likewise.
32820 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32821 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32822 (function_and_variable_visibility): Likewise.
32823 * ipa.c (has_addr_references_p): Likewise.
32824 (process_references): Argument type changed.
32825 (symtab_remove_unreachable_nodes): New IPA REF function used.
32826 (process_references): Likewise.
32827 (set_writeonly_bit): Likewise.
32828 * lto-cgraph.c: Implementation of new symtab_node member functions
32829 that uses new IPA REF functions.
32830 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32832 * lto-streamer-out.c (output_symbol_p): Likewise.
32833 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32835 * symtab.c: Implementation of new IPA REF API.
32836 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32837 (ipa_tm_create_version): Likewise.
32838 (ipa_tm_execute): Likewise.
32839 * tree-emutls.c (gen_emutls_addr): Likewise.
32840 * tree-inline.c (copy_bb): Likewise.
32841 (delete_unreachable_blocks_update_callgraph): Likewise.
32842 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32843 (varpool_for_node_and_aliases): Likewise.
32845 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32847 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
32849 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32852 * fold-const.c (fold_checksum_tree): Use a hash_table of const
32853 tree_node * instead of tree_node *.
32855 (print_fold_checksum): Likewise.
32856 (fold_check_failed): Likewise.
32857 (debug_fold_checksum): Likewise.
32858 (fold_build1_stat_loc): Likewise.
32859 (fold_build2_stat_loc): Likewise.
32860 (fold_build3_stat_loc): Likewise.
32861 (fold_build_call_array_loc): Likewise.
32863 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
32865 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
32866 implementation with call to...
32867 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
32869 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
32872 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
32874 PR tree-optimization/57742
32875 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
32876 after replacing the statement.
32878 2014-06-25 Nick Clifton <nickc@redhat.com>
32880 * config/v850/v850.c (GHS_default_section_names): Change to const
32882 (GHS_current_section_names): Likewise.
32883 (v850_insert_attributes): Do not build strings, just assign the
32884 names directly. Change the type of 'chosen_section' to const
32886 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
32887 directly to the array entry.
32888 * config/v850/v850.h (GHS_default_section_names): Change to const
32890 (GHS_current_section_names): Likewise.
32892 2014-06-25 Jakub Jelinek <jakub@redhat.com>
32894 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
32895 (LANG_HOOKS_DECLS): Add it.
32896 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
32898 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
32899 * langhooks.h (struct lang_hooks_for_decls): Add
32900 omp_clause_linear_ctor hook.
32901 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
32902 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
32903 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
32904 combined simd loop use omp_clause_linear_ctor hook.
32906 2014-06-24 Cong Hou <congh@google.com>
32908 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
32909 pattern recognition.
32910 (type_conversion_p): PROMOTION is true if it's a type promotion
32911 conversion, and false otherwise. Return true if the given expression
32912 is a type conversion one.
32913 * tree-vectorizer.h: Adjust the number of patterns.
32914 * tree.def: Add SAD_EXPR.
32915 * optabs.def: Add sad_optab.
32916 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
32917 * expr.c (expand_expr_real_2): Likewise.
32918 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
32919 * gimple.c (get_gimple_rhs_num_ops): Likewise.
32920 * optabs.c (optab_for_tree_code): Likewise.
32921 * tree-cfg.c (estimate_operator_cost): Likewise.
32922 * tree-ssa-operands.c (get_expr_operands): Likewise.
32923 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
32924 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
32925 * doc/generic.texi: Add document for SAD_EXPR.
32926 * doc/md.texi: Add document for ssad and usad.
32928 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32930 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
32931 qualification in cast.
32933 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
32935 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
32936 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
32937 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
32938 (tree_function_decl): ... here.
32939 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
32940 streaming of vindex to ...
32941 (write_ts_function_decl_tree_pointers): ... here.
32942 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
32943 Do not stream DECL_VINDEX.
32944 (lto_input_ts_function_decl_tree_pointers): Stream it here.
32946 2014-06-24 Catherine Moore <clm@codesourcery.com>
32947 Sandra Loosemore <sandra@codesourcery.com>
32949 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
32950 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
32951 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
32953 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32955 * doc/invoke.texi (Warning Options): Remove duplicated
32956 -Wmaybe-uninitialized.
32958 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32960 PR tree-optimization/57742
32961 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
32962 (handle_builtin_malloc, handle_builtin_memset): New functions.
32963 (strlen_optimize_stmt): Call them.
32964 * passes.def: Move strlen after loop+dom but before vrp.
32966 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32969 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
32970 model family 6 CPU with has_longmode never use a CPU without
32973 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
32976 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
32979 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32981 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
32982 * dominance.c (iterate_fix_dominators): Use hash_map instead of
32984 * hash-map.h: New file.
32985 * ipa-comdats.c: Use hash_map instead of pointer_map.
32987 * lto-section-out.c: Adjust.
32988 * lto-streamer.h: Replace pointer_map with hash_map.
32989 * symtab.c (verify_symtab): Likewise.
32990 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
32991 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
32992 * tree-streamer.h: Likewise.
32993 * tree-streamer.c: Adjust.
32994 * pointer-set.h: Remove pointer_map.
32996 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32998 * hash-table.h: Add a template arg to choose between storing values
32999 and storing pointers to values, and then provide partial
33000 specializations for both.
33001 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
33002 should store, not the type values should point to.
33003 * tree-into-ssa.c (var_info_hasher): Likewise.
33004 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
33005 * tree-complex.c: Adjust.
33006 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
33007 table instead of int_tree_map *.
33008 * tree-parloops.c: Adjust.
33009 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
33010 type is being stored.
33011 * tree-vectorizer.c: Adjust.
33013 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
33015 * hash-table.h: Remove a layer of indirection from hash_table so that
33016 it contains the hash table's data instead of a pointer to the data.
33017 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
33018 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
33019 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
33020 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
33021 fold-const.c, gcse.c, ggc-common.c,
33022 gimple-ssa-strength-reduction.c, gimplify.c,
33023 graphite-clast-to-gimple.c, graphite-dependences.c,
33024 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
33025 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33026 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
33027 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
33028 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
33029 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
33030 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
33031 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
33032 tree-ssa-live.c, tree-ssa-loop-im.c,
33033 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
33034 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
33035 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33036 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
33037 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
33038 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
33039 vtable-verify.c, vtable-verify.h: Adjust.
33041 2014-06-24 Richard Biener <rguenther@suse.de>
33043 PR tree-optimization/61572
33044 * tree-ssa-sink.c (statement_sink_location): Do not sink
33045 loads from hard registers.
33047 2014-06-24 Jakub Jelinek <jakub@redhat.com>
33049 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
33050 not mentioned in clauses use private clause if the iterator is
33051 declared in #pragma omp for simd, and when adding lastprivate
33052 instead, add it to the outer #pragma omp for too. Diagnose
33053 if the variable is private in outer context. For simd collapse > 1
33054 loops, replace all iterators with temporaries.
33055 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
33056 same even in collapse > 1 loops.
33058 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
33059 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
33061 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
33062 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
33064 (gimplify_adjust_omp_clauses): Likewise.
33065 * omp-low.c (lower_rec_simd_input_clauses,
33066 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
33067 safelen the same as safelen(1).
33068 * tree-nested.c (convert_nonlocal_omp_clauses,
33069 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
33070 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
33071 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
33072 Fixup handling of GIMPLE_OMP_TARGET.
33073 (convert_tramp_reference_stmt, convert_gimple_call): Handle
33076 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
33078 PR tree-optimization/61554
33079 * tree-ssa-propagate.c: Include "bitmap.h".
33080 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
33081 properly update constructor/destructor.
33082 (substitute_and_fold_dom_walker::before_dom_children):
33083 Remove call to gimple_purge_dead_eh_edges, add bb->index to
33084 need_eh_cleaup instead.
33085 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
33088 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33090 * varpool.c (dump_varpool_node): Dump used_by_single_function.
33091 * tree-pass.h (make_pass_ipa_single_use): New pass.
33092 * cgraph.h (used_by_single_function): New flag.
33093 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
33095 * passes.def (pass_ipa_single_use): Scedule.
33096 * ipa.c (BOTTOM): New macro.
33097 (meet): New function
33098 (propagate_single_user): New function.
33099 (ipa_single_use): New function.
33100 (pass_data_ipa_single_use): New pass.
33101 (pass_ipa_single_use): New pass.
33102 (pass_ipa_single_use::gate): New gate.
33103 (make_pass_ipa_single_use): New function.
33105 2014-06-23 Kai Tietz <ktietz@redhat.com>
33108 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
33109 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
33111 2014-06-23 Richard Biener <rguenther@suse.de>
33113 * tree-ssa-loop.c (gate_loop): New function.
33114 (pass_tree_loop::gate): Call it.
33115 (pass_data_tree_no_loop, pass_tree_no_loop,
33116 make_pass_tree_no_loop): New.
33117 * tree-vectorizer.c: Include tree-scalar-evolution.c
33118 (pass_slp_vectorize::execute): Initialize loops and SCEV if
33120 (pass_slp_vectorize::clone): New method.
33121 * timevar.def (TV_TREE_NOLOOP): New.
33122 * tree-pass.h (make_pass_tree_no_loop): Declare.
33123 * passes.def (pass_tree_no_loop): New pass group with
33126 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
33129 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
33130 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
33132 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33134 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
33135 "yes" where needed.
33137 2014-06-23 Alan Modra <amodra@gmail.com>
33140 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
33141 to zero on debug statements.
33143 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33146 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33147 Ignore third operand if present by marking qualifier_internal.
33149 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33151 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33153 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33154 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33155 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33156 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33157 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33158 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33159 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33160 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33161 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33162 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33163 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33164 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33165 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33166 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33167 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33168 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33169 logic in GCC vector extensions
33171 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33172 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33173 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33174 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33175 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33176 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33177 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33178 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33179 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33180 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33182 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33184 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33187 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33188 (vget_low_s64): Use __GET_LOW macro.
33189 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33190 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33191 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33192 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33193 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33195 (vcombine_s64): Use GCC vector extensions; remove cast.
33196 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33197 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33198 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33199 Fix type signature; remove cast.
33201 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33204 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33206 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33208 (BUILTIN_VD1): New.
33209 (BUILTIN_VD_RE): Remove.
33210 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33211 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33212 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33213 variant but not df.
33214 (vreinterpretv1df*, vreinterpret*v1df): New.
33215 (vreinterpretdf*, vreinterpret*df): Remove.
33216 * config/aarch64/aarch64-simd.md (aarch64_create,
33217 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33218 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33220 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33221 (vcreate_f64): Remove cast, use v1df builtin.
33222 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33223 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33224 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33225 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33226 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33227 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33228 add range check using __builtin_aarch64_im_lane_boundsi.
33229 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33230 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33231 type signature, use gcc vector extensions.
33232 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33233 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33234 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33235 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33236 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33237 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33238 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33239 vreinterpret_u64_f64): Use v1df builtin not df.
33241 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33243 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33246 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33248 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33251 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33253 * loop-invariant.c (pre_check_invariant_p): New function.
33254 (find_invariant_insn): Call pre_check_invariant_p.
33256 2014-06-22 Richard Henderson <rth@redhat.com>
33259 * compare-elim.c (struct comparison): Add eh_note.
33260 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33261 a redundant comparison in a different EH region. Purge EH edges if
33264 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33266 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33267 (var_shift): Use it.
33268 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33269 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33270 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33271 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33272 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33273 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33274 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33275 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33276 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33277 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33278 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33279 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33280 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33281 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33282 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33283 *rotldi3_internal15be): Use the new attribute. Merge register and
33284 integer alternatives.
33286 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33288 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33289 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33290 split, *ashrdi3_internal3 and split): Delete, merge into...
33291 (ashr<mode>3): New expander.
33292 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33293 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33295 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33297 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33298 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33299 *rotldi3_internal3 and split): Delete, merge into...
33300 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33301 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33302 Use "rotlw" extended mnemonic.
33304 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33306 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33307 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33308 and split, *ashldi3_internal3 and split): Delete, merge into...
33309 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33310 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33312 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33314 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33315 (lshrsi3, two anonymous define_insns and define_splits,
33316 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33317 *lshrdi3_internal3 and split): Delete, merge into...
33318 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33319 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33321 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33323 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33324 Remove "O" alternative.
33326 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33328 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33329 (mips_move_from_gpr_cost): Likewise.
33330 (mips_register_move_cost): Update accordingly.
33331 (mips_secondary_reload_class): Remove name of in_p.
33333 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33336 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33337 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33339 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33341 * config/nios2/nios2.c: Include "builtins.h".
33343 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33345 * cgraph.h (tls_model_names): New variable.
33346 * print-tree.c (print_node): Simplify.
33347 * varpool.c (tls_model_names): New variable.
33348 (dump_varpool_node): Output tls model.
33350 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33352 * ipa-visibility.c (function_and_variable_visibility): Disable
33353 temporarily local aliases for some targets.
33355 2014-06-20 Marek Polacek <polacek@redhat.com>
33357 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33358 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33359 into SANITIZE_UNDEFINED.
33360 * doc/invoke.texi: Describe -fsanitize=bounds.
33361 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33362 functions created in the FEs.
33363 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33364 (expand_UBSAN_BOUNDS): New function.
33365 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33366 * internal-fn.h: Don't define internal functions here.
33367 * opts.c (common_handle_option): Add -fsanitize=bounds.
33368 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33369 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33370 * tree-core.h: Define internal functions here.
33371 (struct tree_base): Add ifn field.
33372 * tree-pretty-print.c: Include "internal-fn.h".
33373 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33374 * tree.c (get_callee_fndecl): Likewise.
33375 (build_call_expr_internal_loc): New function.
33376 * tree.def (CALL_EXPR): Update description.
33377 * tree.h (CALL_EXPR_IFN): Define.
33378 (build_call_expr_internal_loc): Declare.
33379 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33381 (ubsan_type_descriptor): Change bool parameter to enum
33382 ubsan_print_style. Adjust the code. Add handling of
33384 (ubsan_expand_bounds_ifn): New function.
33385 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33386 (ubsan_build_overflow_builtin): Likewise.
33387 (instrument_bool_enum_load): Likewise.
33388 (ubsan_instrument_float_cast): Likewise.
33389 * ubsan.h (enum ubsan_print_style): New enum.
33390 (ubsan_expand_bounds_ifn): Declare.
33391 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33393 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33395 * config/rs6000/rs6000.md: Append `DONE' to preparation
33396 statements of `bswap' pattern splitters.
33398 2014-06-20 Tom de Vries <tom@codesourcery.com>
33400 * target.def (call_fusage_contains_non_callee_clobbers): Update
33402 * doc/tm.texi: Regenerate.
33404 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33405 Max Ostapenko <m.ostapenko@partner.samsung.com>
33408 * asan.c (instrument_strlen_call): Fixed instrumentation of
33411 2014-06-20 Martin Jambor <mjambor@suse.cz>
33414 * ipa-prop.c (impossible_devirt_target): New function.
33415 (try_make_edge_direct_virtual_call): Use it, also instead of
33418 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33419 Max Ostapenko <m.ostapenko@partner.samsung.com>
33422 * asan.c (build_check_stmt): Add condition.
33424 2014-06-20 Martin Jambor <mjambor@suse.cz>
33427 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33430 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33432 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33434 (VCONQ): Make comment more helpful.
33436 * config/aarch64/aarch64-simd.md
33437 (aarch64_sqdmulh_lane<mode>):
33438 Use VCOND for operands 2. Update lane checking and flipping logic.
33439 (aarch64_sqrdmulh_lane<mode>): Likewise.
33440 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33441 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33442 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33443 attribute of operand 3 to VCOND.
33444 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33445 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33446 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33447 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33448 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33449 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33451 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33452 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33453 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33454 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33455 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33456 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33457 operand to VCOND. Update lane flipping and bounds checking logic.
33458 (aarch64_sqdmlal2_lane<mode>): Likewise.
33459 (aarch64_sqdmlsl_lane<mode>): Likewise.
33460 (aarch64_sqdmull_lane<mode>): Likewise.
33461 (aarch64_sqdmull2_lane<mode>): Likewise.
33462 (aarch64_sqdmlal_laneq<mode>):
33463 Replace VCON usage with VCONQ.
33464 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33465 (aarch64_sqdmlal2_laneq<mode>): Emit
33466 aarch64_sqdmlal2_laneq<mode>_internal insn.
33467 Replace VCON with VCONQ.
33468 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33469 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33470 (aarch64_sqdmull_laneq<mode>): Emit
33471 aarch64_sqdmull_laneq<mode>_internal insn.
33472 Replace VCON with VCONQ.
33473 (aarch64_sqdmull2_laneq<mode>): Emit
33474 aarch64_sqdmull2_laneq<mode>_internal insn.
33475 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33476 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33477 of 3rd argument to int16x4_t.
33478 (vqdmlalh_lane_s16): Likewise.
33479 (vqdmlslh_lane_s16): Likewise.
33480 (vqdmull_high_lane_s16): Likewise.
33481 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33482 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33483 (vqdmlsl_lane_s16): Likewise.
33484 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33485 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33486 (vqdmlals_lane_s32): Likewise.
33487 (vqdmlsls_lane_s32): Likewise.
33488 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33489 (vqdmulls_lane_s32): Likewise.
33490 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33491 (vqdmlsl_lane_s32): Likewise.
33492 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33493 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33494 (vqrdmulhh_lane_s16): Likewise.
33495 (vqdmlsl_high_lane_s16): Likewise.
33496 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33497 (vqdmlsl_high_lane_s32): Likewise.
33498 (vqrdmulhs_lane_s32): Likewise.
33500 2014-06-20 Tom de Vries <tom@codesourcery.com>
33502 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33503 get_call_reg_set_usage.
33505 2014-06-20 Tom de Vries <tom@codesourcery.com>
33507 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33508 it contains all call_used_regs.
33510 2014-06-20 Tom de Vries <tom@codesourcery.com>
33512 * final.c (collect_fn_hard_reg_usage): Add and use variable
33513 function_used_regs.
33515 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33517 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33518 (set_init_priority, get_init_priority, set_fini_priority,
33519 get_fini_priority): New methods.
33520 * tree.c (init_priority_for_decl): Remove.
33521 (init_ttree): Do not initialize init priority.
33522 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33523 (decl_priority_info): Remove.
33524 (decl_init_priority_insert): Rewrite.
33525 (decl_fini_priority_insert): Rewrite.
33526 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33527 tree_priority_map_marked_p): Remove.
33528 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33529 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33530 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33531 not output priorities.
33532 (pack_ts_function_decl_value_fields): Likewise.
33533 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33534 not input priorities.
33535 (unpack_ts_function_decl_value_fields): Likewise.
33536 * symtab.c (symbol_priority_map): Declare.
33537 (init_priority_hash): Declare.
33538 (symtab_unregister_node): Unregister from priority hash, too.
33539 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33541 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33542 (symbol_priority_info): New function.
33543 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33545 * tree-core.h (tree_priority_map): Remove.
33547 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33549 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33550 0xff to uint64_t before shifting it up.
33552 2014-06-20 Julian Brown <julian@codesourcery.com>
33553 Chung-Lin Tang <cltang@codesourcery.com>
33555 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33556 TARGET_THUMB1_ONLY. Add comments.
33558 2014-06-19 Tom de Vries <tom@codesourcery.com>
33560 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33561 return type to void.
33562 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33564 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33566 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33567 as "move", from depends_on.
33569 2014-06-19 Terry Guo <terry.guo@arm.com>
33571 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33574 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33576 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33578 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33580 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33583 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33584 addresses here if reload in progress or completed.
33586 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33588 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33589 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33590 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33591 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33592 (mips_register_priority): New function that implements the target
33593 hook TARGET_REGISTER_PRIORITY.
33594 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33595 (mips_lra_p): Likewise for TARGET_LRA_P.
33596 (TARGET_REGISTER_PRIORITY): Define macro.
33597 (TARGET_SPILL_CLASS): Likewise.
33598 (TARGET_LRA_P): Likewise.
33599 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33601 (REG_CLASS_NAMES): Likewise.
33602 (REG_CLASS_CONTENTS): Likewise.
33603 (BASE_REG_CLASS): Use M16_SP_REGS.
33604 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33605 New set attribute to enable alternatives depending on the register
33607 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33608 (*lea64): Disable pattern for MIPS16.
33609 * config/mips/mips.opt (mlra): New option.
33611 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33613 * lra-constraints.c (base_to_reg): New function.
33614 (process_address): Use new function.
33616 2014-06-18 Tom de Vries <tom@codesourcery.com>
33618 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33619 * config/aarch64/aarch64.c
33620 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33621 (aarch64_emit_call_insn): New function.
33622 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33624 * config/aarch64/aarch64.md (define_expand "call_internal")
33625 (define_expand "call_value_internal", define_expand "sibcall_internal")
33626 (define_expand "sibcall_value_internal"): New.
33627 (define_expand "call", define_expand "call_value")
33628 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33629 expand variant and aarch64_emit_call_insn.
33631 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33632 Tom de Vries <tom@codesourcery.com>
33634 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33635 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33637 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33638 clobbers to CALL_INSN_FUNCTION_USAGE.
33639 (define_expand "sibcall_internal")
33640 (define_expand "sibcall_value_internal"): New.
33641 (define_expand "call", define_expand "call_value"): Add argument to
33642 arm_emit_call_insn.
33643 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33644 (define_expand "sibcall_value"): Use sibcall_value_internal and
33645 arm_emit_call_insn.
33647 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33649 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33651 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33653 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33656 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33658 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33659 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33660 annotations. Fix DWARF information.
33662 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33664 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33665 __udivmoddi4, and fixups for negative operands.
33667 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33669 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33671 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33673 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33676 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33678 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33681 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33683 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33684 describing register usage on function entry and exit.
33686 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33688 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33689 (__aeabi_ldivmod): Fix whitespace.
33691 2014-06-18 Andreas Schwab <schwab@suse.de>
33693 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33694 Remove blank line after @item.
33696 2014-06-18 Richard Henderson <rth@redhat.com>
33699 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33701 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33703 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33704 POST_MODIFY for neon loads and stores.
33705 (arm_print_operand): Output post-index register for neon loads and
33708 2014-06-18 Richard Biener <rguenther@suse.de>
33710 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33712 2014-06-18 Richard Biener <rguenther@suse.de>
33714 * tree-pass.h (make_pass_dce_loop): Remove.
33715 * passes.def: Replace pass_dce_loop with pass_dce.
33716 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33717 changed free niter estimates and reset the scev cache.
33718 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33719 make_pass_dce_loop): Remove.
33720 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33721 (fini_copy_prop): Return whether something changed. Always
33722 let substitute_and_fold perform DCE and free niter estimates
33723 and reset the scev cache if so.
33724 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33725 (pass_data_copy_prop): Do not unconditionally schedule
33726 cleanup-cfg or update-ssa.
33728 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33730 PR tree-optimization/61518
33731 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33732 reduction var is used in reduction stmt or phi-function only.
33734 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33736 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33738 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33740 PR tree-optimization/61517
33741 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33742 whose rhs's first tree is the source expression instead of the
33744 (find_bswap_or_nop): Likewise.
33745 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33746 gimple stmt whose rhs's first tree is the source. In the memory source
33747 case, move the stmt to be replaced close to one of the original load to
33748 avoid the problem of a store between the load and the stmt's original
33750 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33753 2014-06-18 Andreas Schwab <schwab@suse.de>
33755 PR rtl-optimization/54555
33756 * postreload.c (move2add_use_add2_insn): Substitute
33757 STRICT_LOW_PART only if it is cheaper.
33759 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33761 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33762 Do not use unspec as call operand. Use memory_operand instead of
33763 memory_nox32_operand and add "m" operand constraint. Disable
33764 pattern for TARGET_X32.
33765 (*sibcall_pop_memory): Ditto.
33766 (*sibcall_value_memory): Ditto.
33767 (*sibcall_value_pop_memory): Ditto.
33768 (sibcall peepholes): Merge SImode and DImode patterns using
33769 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33770 Disable pattern for TARGET_X32. Check if eliminated register is
33771 really dead after call insn. Generate call RTX without unspec operand.
33772 (sibcall_value peepholes): Ditto.
33773 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33774 instead of memory_nox32_operand. Check if eliminated register is
33775 really dead after call insn. Generate call RTX without unspec operand.
33776 (sibcall_value_pop peepholes): Ditto.
33777 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33779 2014-06-18 Terry Guo <terry.guo@arm.com>
33782 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33785 2014-06-18 Olivier Hainque <hainque@adacore.com>
33787 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33788 memorization of the end of block source location.
33789 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33790 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33791 end source location info we have on the block entry/exit code we
33794 2014-06-18 Richard Biener <rguenther@suse.de>
33796 * common.opt (fssa-phiopt): New option.
33797 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33799 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33800 * doc/invoke.texi (-fssa-phiopt): Document.
33802 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33804 * genattrtab.c (n_bypassed): New variable.
33805 (process_bypasses): Initialise n_bypassed.
33806 Count number of bypassed reservations.
33807 (make_automaton_attrs): Allocate space for bypassed reservations
33808 rather than number of bypasses.
33810 2014-06-18 Richard Biener <rguenther@suse.de>
33812 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33813 we propagated anything.
33814 (substitute_and_fold_dom_walker::before_dom_children): Something
33815 changed if we propagated into PHI arguments.
33816 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33819 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33821 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33823 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33824 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33825 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33826 Introduces alternative way of loads group permutaions.
33827 (vect_transform_grouped_load): Try alternative way of permutations.
33829 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33831 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33832 changed in ORT_TARGET region, don't jump to do_outer.
33833 (struct gimplify_adjust_omp_clauses_data): New type.
33834 (gimplify_adjust_omp_clauses_1): Adjust for data being
33835 a struct gimplify_adjust_omp_clauses_data pointer instead
33836 of tree *. Pass pre_p as a new argument to
33837 lang_hooks.decls.omp_finish_clause hook.
33838 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33839 splay_tree_foreach to pass both list_p and pre_p.
33840 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33841 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33842 gimplify_adjust_omp_clauses callers.
33843 * langhooks.c (lhd_omp_finish_clause): New function.
33844 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
33845 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
33846 * langhooks.h (struct lang_hooks_for_decls): Add a new
33847 gimple_seq * argument to omp_finish_clause hook.
33848 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
33849 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
33850 (scan_omp_parallel, lower_omp_for): When adding
33851 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
33852 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
33853 * tree-nested.c (convert_nonlocal_omp_clauses,
33854 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
33855 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
33857 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
33859 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
33860 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
33862 2014-06-17 Xinliang David Li <davidxl@google.com>
33864 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
33865 * passes.c (pass_init_dump_file): Do not set initialize
33866 flag to false unconditionally.
33868 2014-06-17 Richard Biener <rguenther@suse.de>
33870 * genopinit.c (main): Use vec<>::qsort method.
33871 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
33873 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
33875 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
33877 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
33878 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
33879 (mips_move_to_gpr_cost): Remove ST_REGS case.
33880 (mips_move_from_gpr_cost): Likewise.
33881 (mips_register_move_cost): Likewise.
33882 (mips_secondary_reload_class): Likewise.
33884 2014-06-17 Richard Biener <rguenther@suse.de>
33886 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
33887 (pass_all_optimizations): Move 3rd copy-prop pass from after
33888 fre to before ifcombine/phiopt.
33890 2014-06-17 Richard Biener <rguenther@suse.de>
33892 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
33893 and allow all blocks to be forwarders.
33895 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
33898 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
33899 variable 'size'; calculate 'size' right in the front; use
33900 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
33901 pcum->aapcs_stack_words.
33903 2014-06-17 Nick Clifton <nickc@redhat.com>
33905 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
33906 (umulhi3, mulsidi3, umulsidi3): Likewise.
33908 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
33910 PR middle-end/61508
33911 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
33912 check for section name.
33914 2014-06-17 Richard Biener <rguenther@suse.de>
33916 * tree-ssa-propagate.c: Include domwalk.h.
33917 (substitute_and_fold): Outline main worker into a domwalker ...
33918 (substitute_and_fold_dom_walker::before_dom_children): ... here.
33919 Schedule stmts we can fully propagate for removal. Remove
33921 (substitute_and_fold): Apply a dominator walk to perform
33922 substitution. Process stmts scheduled for removal here.
33924 2014-06-17 Richard Biener <rguenther@suse.de>
33926 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
33927 of PHI node moving.
33929 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
33931 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
33932 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
33933 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33934 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
33935 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
33937 (get_fpscr) : Likewise.
33939 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33941 PR rtl-optimization/61325
33942 * lra-constraints.c (valid_address_p): Add forward declaration.
33943 (simplify_operand_subreg): Check address validity before and after
33944 alter_reg of memory subreg.
33946 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
33948 * config/i386/i386.c (decide_alg): Correctly handle
33949 maximum size of stringop algorithm.
33951 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33953 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
33955 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33957 PR rtl-optimization/61522
33958 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
33960 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
33963 * symtab.c (symtab_node::reset_section): New method.
33964 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33966 * cgraph.h (reset_section): Declare.
33967 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33968 do not consider comdat locals.
33969 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33971 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33972 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33973 reset sections of symbols dragged out of the comdats.
33974 (function_and_variable_visibility): Reset sections of
33977 2014-06-16 Richard Biener <rguenther@suse.de>
33979 PR tree-optimization/61482
33980 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
33981 [-INF(OVF), +INF(OVF)] range.
33983 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
33985 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
33986 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
33987 handling 32-bit multiplication.
33989 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
33991 PR middle-end/61430
33992 * lra-lives.c (process_bb_lives): Skip creating copy during
33993 insn scan when src/dest has constrained to same regno.
33995 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33997 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
33998 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
34000 2014-06-16 Yury Gribov <y.gribov@samsung.com>
34002 * asan.c (check_func): New function.
34003 (maybe_create_ssa_name): Likewise.
34004 (build_check_stmt_with_calls): Likewise.
34005 (use_calls_p): Likewise.
34006 (report_error_func): Change interface.
34007 (build_check_stmt): Allow non-integer lengths; add support
34009 (asan_instrument): Likewise.
34010 (instrument_mem_region_access): Moved code to build_check_stmt.
34011 (instrument_derefs): Likewise.
34012 (instrument_strlen_call): Likewise.
34013 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
34014 * doc/invoke.texi: Describe new parameter.
34015 * params.def: Define new parameter.
34016 * params.h: Likewise.
34017 * sanitizer.def: Describe new builtins.
34019 2014-06-16 Richard Biener <rguenther@suse.de>
34021 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34022 Make all defs available at the end.
34023 (eliminate): If we remove a PHI node schedule cfg-cleanup.
34025 2014-06-18 Jakub Jelinek <jakub@redhat.com>
34028 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
34030 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
34033 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
34034 initialization. Replace remaining use of uid.
34036 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
34038 * c-family/c-common.c (handle_tls_model_attribute): Use
34039 set_decl_tls_model.
34040 * c-family/c-common.c (handle_tls_model_attribute): Use
34041 set_decl_tls_model.
34042 * cgraph.h (struct varpool_node): Add tls_model.
34043 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
34044 * tree.h (DECL_TLS_MODEL): Update.
34045 (DECL_THREAD_LOCAL_P): Check that variable is static.
34046 (decl_tls_model): Declare.
34047 (set_decl_tls_model): Declare.
34048 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
34049 set symbol prorperties.
34050 (get_emutls_init_templ_addr): Cleanup.
34051 (new_emutls_decl): Update.
34052 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
34053 (lto_input_varpool_node): Likewise.
34054 * lto-streamer-out.c (hash_tree): Likewise.
34055 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
34056 not stream DECL_TLS_MODEL.
34057 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
34058 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
34060 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34062 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
34064 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34066 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
34067 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
34069 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
34070 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
34071 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
34072 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
34073 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
34074 (df_get_artificial_defs, df_get_artificial_uses)
34075 (df_single_def, df_single_use): Update accordingly.
34076 (df_refs_chain_dump): Take the first element in a linked list as
34077 parameter, rather than a pointer to an array of pointers.
34078 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
34079 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
34080 (df_chain_create_bb_process_use): Likewise.
34081 (df_md_bb_local_compute_process_def): Likewise.
34082 * fwprop.c (process_defs, process_uses): Likewise.
34083 (register_active_defs, update_uses): Likewise.
34084 (forward_propagate_asm): Update for new df_ref linking.
34085 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
34086 (df_null_ref_rec, df_null_mw_rec): Likewise.
34087 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
34089 (df_scan_free_bb_info): Remove check for null artificial_defs.
34090 (df_install_ref_incremental): Adjust for new df_ref linking.
34091 Use a single-element insertion rather than a full sort.
34092 (df_ref_chain_delete_du_chain): Take the first element
34093 in a linked list as parameter, rather than a pointer to an array of
34095 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
34096 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
34097 (df_insn_info_delete): Remove check for null defs and call to
34098 df_scan_free_mws_vec.
34099 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
34100 null rather than df_null_*_rec.
34101 (df_insn_rescan_debug_internal): Likewise, and update null
34102 checks in the same way. Remove check for null defs.
34103 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
34104 Move a single element rather doing a full sort.
34105 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
34107 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
34108 Initialize df_ref and df_mw_hardreg lists to null rather than
34110 (df_ref_compare): Take df_refs as parameter, transferring the
34111 old interface to...
34112 (df_ref_ptr_compare): ...this new function.
34113 (df_sort_and_compress_refs): Update accordingly.
34114 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
34115 old interface to...
34116 (df_mw_ptr_compare): ...this new function.
34117 (df_sort_and_compress_mws): Update accordingly.
34118 (df_install_refs, df_install_mws): Return a linked list rather than
34119 an array of pointers.
34120 (df_refs_add_to_chains): Assert that old lists are empty rather
34122 (df_insn_refs_verify): Don't handle null defs speciailly.
34123 * web.c (union_match_dups): Update for new df_ref linking.
34125 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34127 * df.h (df_ref_create, df_ref_remove): Delete.
34128 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
34129 (df_ref_remove): Likewise.
34131 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34133 * df.h (df_single_def, df_single_use): New functions.
34134 * ira.c (find_moveable_pseudos): Use them.
34136 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34138 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
34139 * df-problems.c (df_note_bb_compute): Use it.
34140 * regstat.c (regstat_bb_compute_ri): Likewise.
34142 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34144 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34145 * cse.c (cse_extended_basic_block): Use them.
34146 * dce.c (mark_artificial_use): Likewise.
34147 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34148 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34149 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34150 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34151 (df_simulate_initialize_backwards): Likewise.
34152 (df_simulate_finalize_backwards): Likewise.
34153 (df_simulate_initialize_forwards): Likewise.
34154 (df_md_simulate_artificial_defs_at_top): Likewise.
34155 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34156 * regrename.c (init_rename_info): Likewise.
34157 * regstat.c (regstat_bb_compute_ri): Likewise.
34158 (regstat_bb_compute_calls_crossed): Likewise.
34160 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34162 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34163 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34164 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34165 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34166 * combine.c (create_log_links): Likewise.
34167 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34168 (try_eliminate_compare): Likewise.
34169 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34170 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34171 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34172 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34173 (word_dce_process_block, dce_process_block): Likewise.
34174 * ddg.c (def_has_ccmode_p): Likewise.
34175 * df-core.c (df_bb_regno_first_def_find): Likewise.
34176 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34177 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34178 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34179 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34180 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34181 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34182 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34183 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34184 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34185 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34186 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34187 * fwprop.c (local_ref_killed_between_p): Likewise.
34188 (all_uses_available_at, free_load_extend): Likewise.
34189 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34190 * hw-doloop.c (scan_loop): Likewise.
34191 * ifcvt.c (dead_or_predicable): Likewise.
34192 * init-regs.c (initialize_uninitialized_regs): Likewise.
34193 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34194 (process_bb_node_lives): Likewise.
34195 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34196 (find_moveable_pseudos): Likewise.
34197 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34198 * recog.c (peep2_find_free_register): Likewise.
34199 * ree.c (get_defs): Likewise.
34200 * regstat.c (regstat_bb_compute_ri): Likewise.
34201 (regstat_bb_compute_calls_crossed): Likewise.
34202 * sched-deps.c (find_inc, find_mem): Likewise.
34203 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34204 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34205 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34206 (prepare_shrink_wrap): Likewise.
34207 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34208 * web.c (union_defs, pass_web::execute): Likewise.
34209 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34210 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34212 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34214 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34215 to inheritance pseudos.
34216 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34218 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34221 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34222 (BU_MISC_2): Rename to ...
34223 (BU_LDBL128_2): ... this.
34224 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34225 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34226 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34227 RS6000_BTM_LDBL128.
34228 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34229 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34230 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34231 (unpacktf_1): Likewise.
34232 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34233 (__builtin_longdouble_dw1): Likewise.
34234 * doc/sourcebuild.texi (longdouble128): Document.
34236 2014-06-13 Jeff Law <law@redhat.com>
34238 PR rtl-optimization/61094
34239 PR rtl-optimization/61446
34240 * ree.c (combine_reaching_defs): Get the mode for the copy from
34241 the extension insn rather than the defining insn.
34243 2014-06-13 Dehao Chen <dehao@google.com>
34245 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34247 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34249 * doc/install.texi (--enable-linker-plugin-configure-flags)
34250 (--enable-linker-plugin-flags): Document new flags.
34252 2014-06-13 Martin Jambor <mjambor@suse.cz>
34255 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34256 cache_token if returning early.
34258 2014-06-13 Nick Clifton <nickc@redhat.com>
34260 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34261 requested alignment is active.
34262 (LABEL_ALIGN): Likewise.
34263 (LOOP_ALIGN): Likewise.
34265 2014-06-13 Richard Biener <rguenther@suse.de>
34267 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34268 Rewrite to propagate the VN result into all uses where
34269 possible and to remove stmts becoming dead because of that.
34270 (eliminate): Generalize stmt removal handling, remove in
34271 reverse dominator order to support proper debug stmt
34272 generation. Update stmts before removing stmts.
34273 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34275 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34277 PR tree-optimization/61375
34278 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34279 symbolic number cannot be represented in an uint64_t.
34280 (find_bswap_or_nop_1): Likewise.
34282 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34284 * symtab.c (symtab_node::reset_section): New method.
34285 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34287 * cgraph.h (reset_section): Declare.
34288 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34289 do not consider comdat locals.
34290 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34292 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34293 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34294 reset sections of symbols dragged out of the comdats.
34295 (function_and_variable_visibility): Reset sections of
34298 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34300 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34301 to use symtab and decl_binds_to_current_def_p
34302 * tree-vectorizer.c (increase_alignment): Increase alignment
34303 of alias target, too.
34305 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34307 PR middle-end/61486
34308 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34309 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34310 if outer combined construct is distribute.
34311 (gimplify_omp_for): For OMP_DISTRIBUTE set
34312 gimplify_omp_ctxp->distribute.
34313 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34314 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34315 mapping into decl map.
34317 2014-06-12 Jason Merrill <jason@redhat.com>
34319 * common.opt (fabi-version): Change default to 0.
34321 2014-06-12 Jason Merrill <jason@redhat.com>
34323 * toplev.c (process_options): Reject -fabi-version=1.
34325 2014-06-12 Jeff Law <law@redhat.com>
34327 PR tree-optimization/61009
34328 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34329 value when we stop processing a block due to problematic PHIs.
34331 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34333 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34334 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34335 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34336 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34337 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34338 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34339 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34340 are not in the spec.
34342 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34345 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34346 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34349 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34351 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34353 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34356 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34357 loading from address spaces.
34359 2014-06-12 Martin Liska <mliska@suse.cz>
34362 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34363 statement is reachable.
34365 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34367 * symtab.c (section_hash): New hash.
34368 (symtab_unregister_node): Clear section before freeing.
34369 (hash_section_hash_entry): New haser.
34370 (eq_sections): New function.
34371 (symtab_node::set_section_for_node): New method.
34372 (set_section_1): Update.
34373 (symtab_node::set_section): Take string instead of tree as parameter.
34374 (symtab_resolve_alias): Update.
34375 * cgraph.h (section_hash_entry_d): New structure.
34376 (section_hash_entry): New typedef.
34377 (cgraph_node): Change comdat_group_ to x_comdat_group,
34378 change section_ to x_section and turn into section_hash_entry;
34379 update accestors; put set_section_for_node offline.
34380 * tree.c (decl_section_name): Turn into string.
34381 (set_decl_section_name): Change parameter to be string.
34382 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34383 * sdbout.c (sdbout_one_type): Update.
34384 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34385 * varasm.c (IN_NAMED_SECTION, get_named_section,
34386 resolve_unique_section, hot_function_section, get_named_text_section,
34387 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34388 make_decl_rtl, default_unique_section): Update.
34389 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34390 (c6x_elf_unique_section): Update.
34391 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34392 * config/pa/pa.c (pa_function_section): Update.
34393 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34394 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34395 * config/arc/arc.c (arc_in_small_data_p): Update.
34396 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34397 * config/mcore/mcore.c (mcore_unique_section): Update.
34398 * config/mips/mips.c (mips16_build_function_stub): Update.
34399 (mips16_build_call_stub): Update.
34400 (mips_function_rodata_section): Update.
34401 (mips_in_small_data_p): Update.
34402 * config/score/score.c (score_in_small_data_p): Update.
34403 * config/rx/rx.c (rx_in_small_data): Update.
34404 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34405 (rs6000_xcoff_asm_named_section): Update.
34406 (rs6000_xcoff_unique_section): Update.
34407 * config/frv/frv.c (frv_string_begins_with): Update.
34408 (frv_in_small_data_p): Update.
34409 * config/v850/v850.c (v850_encode_data_area): Update.
34410 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34411 (bfin_handle_l1_data_attribute): Update.
34412 (bfin_handle_l2_attribute): Update.
34413 * config/mep/mep.c (mep_unique_section): Update.
34414 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34416 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34417 (h8300_handle_tiny_data_attribute): Update.
34418 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34419 (m32r_in_small_data_p): Update.
34420 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34421 * config/i386/i386.c (ix86_in_large_data_p): Update.
34422 * config/i386/winnt.c (i386_pe_unique_section): Update.
34423 * config/darwin.c (darwin_function_section): Update.
34424 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34425 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34426 (new_emutls_decl): Update.
34427 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34428 input_varpool_node): Update.
34429 (ead_string_cst): Turn to ...
34430 (read_string): ... this one.
34431 * dwarf2out.c (secname_for_decl): Update.
34432 * asan.c (asan_protect_global): Update.
34434 2014-06-11 DJ Delorie <dj@redhat.com>
34436 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34438 * config/rx/rx.c (rx_option_override): Likewise.
34439 (rx_align_for_label): Likewise.
34441 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34443 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34445 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34448 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34450 * common.md: New file.
34451 * doc/md.texi: Update description of generic, machine-independent
34453 * config/s390/constraints.md (e): Delete.
34454 * Makefile.in (md_file): Include common.md.
34455 * config/m32c/t-m32c (md_file): Likewise.
34456 * genpreds.c (general_mem): New array.
34457 (generic_constraint_letters): Remove constraints now defined by
34459 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34460 Allow the first character to be '<' or '>' as well.
34461 * genoutput.c (general_mem): New array.
34462 (indep_constraints): Remove constraints now defined by common.md.
34463 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34464 Remove special handling of 'm'.
34465 * ira-costs.c (record_reg_classes): Remove special handling of
34466 constraints now defined by common.md.
34467 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34468 * ira-lives.c (single_reg_class): Likewise.
34469 (ira_implicitly_set_insn_hard_regs): Likewise.
34470 * lra-constraints.c (reg_class_from_constraints): Likewise.
34471 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34472 * postreload.c (reload_cse_simplify_operands): Likewise.
34473 * reload.c (push_secondary_reload, scratch_reload_class)
34474 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34475 * reload1.c (maybe_fix_stack_asms): Likewise.
34476 * targhooks.c (default_secondary_reload): Likewise.
34477 * stmt.c (parse_output_constraint): Likewise.
34478 * recog.c (preprocess_constraints): Likewise.
34479 (constrain_operands, peep2_find_free_register): Likewise.
34480 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34481 must be handled specially.
34483 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34485 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34486 * genpreds.c (have_const_dbl_constraints): Delete.
34487 (add_constraint): Don't set it.
34488 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34489 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34490 constraints using the lookup_constraint logic.
34491 * ira-lives.c (single_reg_class): Likewise.
34492 * ira.c (ira_setup_alts): Likewise.
34493 * lra-constraints.c (process_alt_operands): Likewise.
34494 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34495 * reload.c (find_reloads): Likewise.
34497 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34499 * genpreds.c (const_int_start, const_int_end): New variables.
34500 (choose_enum_order): Output CONST_INT constraints before memory
34502 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34504 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34505 * ira.c (ira_setup_alts): Likewise.
34506 * lra-constraints.c (process_alt_operands): Likewise.
34507 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34508 * reload.c (find_reloads): Likewise.
34510 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34512 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34513 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34514 * recog.c (preprocess_constraints): Update accordingly.
34516 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34518 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34519 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34520 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34521 * genpreds.c (print_type_tree): New function.
34522 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34523 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34524 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34525 Write out enum constraint_type and get_constraint_type.
34526 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34527 constraint_num rather than a constraint string.
34528 (satisfies_address_constraint_p): Likewise.
34529 (reg_class_from_constraints): Avoid old constraint macros.
34530 (process_alt_operands, process_address_1): Likewise.
34531 (curr_insn_transform): Likewise.
34532 * ira-costs.c (record_reg_classes): Likewise.
34533 (record_operand_costs): Likewise.
34534 * ira-lives.c (single_reg_class): Likewise.
34535 (ira_implicitly_set_insn_hard_regs): Likewise.
34536 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34537 * postreload.c (reload_cse_simplify_operands): Likewise.
34538 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34539 (constrain_operands, peep2_find_free_register): Likewise.
34540 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34541 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34542 * reload1.c (maybe_fix_stack_asms): Likewise.
34543 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34544 * targhooks.c (default_secondary_reload): Likewise.
34545 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34546 to EXTRA_CONSTRAINT_STR.
34547 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34549 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34551 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34552 (write_constraint_satisfied_p_array): ...this new function.
34553 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34555 (write_insn_preds_c): Update accordingly.
34557 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34559 * genpreds.c (write_lookup_constraint): Rename to...
34560 (write_lookup_constraint_1): ...this.
34561 (write_lookup_constraint_array): New function.
34562 (write_tm_preds_h): Define lookup_constraint as an inline function
34563 that uses write_lookup_constraint_array where possible.
34564 (write_insn_preds_c): Update for the changes above.
34566 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34568 * doc/md.texi (regclass_for_constraint): Rename to...
34569 (reg_class_for_constraint): ...this.
34570 * genpreds.c (num_constraints, enum_order, register_start)
34571 (register_end, satisfied_start, memory_start, memory_end)
34572 (address_start, address_end): New variables.
34573 (add_constraint): Count the number of constraints.
34574 (choose_enum_order): New function.
34575 (write_enum_constraint_num): Iterate over enum_order.
34576 (write_regclass_for_constraint): Rename to...
34577 (write_reg_class_for_constraint_1): ...this and update output
34579 (write_constraint_satisfied_p): Rename to...
34580 (write_constraint_satisfied_p_1): ...this and update output
34581 accordingly. Do nothing if all extra constraints are register
34583 (write_insn_extra_memory_constraint): Delete.
34584 (write_insn_extra_address_constraint): Delete.
34585 (write_range_function): New function.
34586 (write_tm_preds_h): Define constraint_satisfied_p and
34587 reg_class_for_constraint as inline functions that do a range check
34588 before calling the out-of-line function. Use write_range_function
34589 to implement insn_extra_{register,memory,address}_constraint,
34590 the first of which is new.
34591 (write_insn_preds_c): Update after above changes to write_* functions.
34592 (main): Call choose_enum_order.
34594 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34596 PR tree-optimization/61306
34597 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34598 expression instead of its size.
34599 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34600 false to prevent optimization when the result is unpredictable due to
34601 arithmetic right shift of signed type with highest byte is set.
34602 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34603 (init_symbolic_number): Likewise.
34604 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34605 when the result is unpredictable due to sign extension.
34607 2014-06-11 Terry Guo <terry.guo@arm.com>
34609 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34610 (*thumb1_addsi3): Ditto.
34611 (*thumb_subdi3): Ditto.
34612 (thumb1_subsi3_insn): Ditto.
34613 (*thumb_mulsi3): Ditto.
34614 (*thumb_mulsi3_v6): Ditto.
34615 (*thumb1_andsi3_insn): Ditto.
34616 (thumb1_bicsi3): Ditto.
34617 (*thumb1_iorsi3_insn): Ditto.
34618 (*thumb1_xorsi3_insn): Ditto.
34619 (*thumb1_ashlsi3): Ditto.
34620 (*thumb1_ashrsi3): Ditto.
34621 (*thumb1_lshrsi3): Ditto.
34622 (*thumb1_rotrsi3): Ditto.
34623 (*thumb1_negdi2): Ditto.
34624 (*thumb1_negsi2): Ditto.
34625 (*thumb1_abssi2): Ditto.
34626 (*thumb1_neg_abssi2): Ditto.
34627 (*thumb1_one_cmplsi2): Ditto.
34628 (*thumb1_zero_extendhisi2): Ditto.
34629 (*thumb1_zero_extendqisi2): Ditto.
34630 (*thumb1_zero_extendqisi2_v6): Ditto.
34631 (thumb1_extendhisi2): Ditto.
34632 (thumb1_extendqisi2): Ditto.
34633 (*thumb1_movdi_insn): Ditto.
34634 (*thumb1_movsi_insn): Ditto.
34635 (*thumb1_movhi_insn): Ditto.
34636 (thumb_movhi_clobber): Ditto.
34637 (*thumb1_movqi_insn): Ditto.
34638 (*thumb1_movhf): Ditto.
34639 (*thumb1_movsf_insn): Ditto.
34640 (*thumb_movdf_insn): Ditto.
34641 (movmem12b): Ditto.
34643 (cbranchqi4): Ditto.
34644 (cbranchsi4_insn): Ditto.
34645 (cbranchsi4_scratch): Ditto.
34646 (*negated_cbranchsi4): Ditto.
34647 (*tbit_cbranch): Ditto.
34648 (*tlobits_cbranch): Ditto.
34649 (*tstsi3_cbranch): Ditto.
34650 (*cbranchne_decr1): Ditto.
34651 (*addsi3_cbranch): Ditto.
34652 (*addsi3_cbranch_scratch): Ditto.
34653 (*thumb_cmpdi_zero): Ditto.
34654 (cstoresi_eq0_thumb1): Ditto.
34655 (cstoresi_ne0_thumb1): Ditto.
34656 (*cstoresi_eq0_thumb1_insn): Ditto.
34657 (*cstoresi_ne0_thumb1_insn): Ditto.
34658 (cstoresi_nltu_thumb1): Ditto.
34659 (cstoresi_ltu_thumb1): Ditto.
34660 (thumb1_addsi3_addgeu): Ditto.
34661 (*thumb_jump): Ditto.
34662 (*call_reg_thumb1_v5): Ditto.
34663 (*call_reg_thumb1): Ditto.
34664 (*call_value_reg_thumb1_v5): Ditto.
34665 (*call_value_reg_thumb1): Ditto.
34666 (*call_insn): Ditto.
34667 (*call_value_insn): Ditto.
34668 (thumb1_casesi_internal_pic): Ditto.
34669 (thumb1_casesi_dispatch): Ditto.
34670 (*thumb1_indirect_jump): Ditto.
34671 (prologue_thumb1_interwork): Ditto.
34672 (*epilogue_insns): Ditto.
34673 (consttable_1): Ditto.
34674 (consttable_2): Ditto.
34675 (tablejump): Ditto.
34676 (*thumb1_tablejump): Ditto.
34677 (thumb_eh_return): Ditto.
34678 (define_peephole2): Two of them are thumb1 only and got moved into
34679 new file thumb1.md.
34680 (define_split): Six of them are thumb1 only and got moved into new
34682 * config/arm/thumb1.md: New file comprised of above thumb1 only
34685 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34687 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34688 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34690 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34691 (aarch64_crc_builtin_datum): New struct.
34692 (aarch64_crc_builtin_data): New.
34693 (aarch64_init_crc32_builtins): New function.
34694 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34695 (aarch64_crc32_expand_builtin): New.
34696 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34697 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34698 __ARM_FEATURE_CRC32 when appropriate.
34699 (TARGET_CRC32): Define.
34700 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34701 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34702 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34703 (aarch64_<crc_variant>): New pattern.
34704 * config/aarch64/arm_acle.h: New file.
34705 * config/aarch64/iterators.md (CRC): New int iterator.
34706 (crc_variant, crc_mode): New int attributes.
34707 * doc/aarch64-acle-intrinsics.texi: New file.
34708 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34709 Include aarch64-acle-intrinsics.texi.
34711 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34713 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34714 check for stores group of length 3.
34715 (vect_permute_store_chain): New permutations for stores group of
34717 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34718 of vec_perm_shuffle for the new permutations.
34720 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34722 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34723 table rewriting temporarily on targets not supporting ONE_ONLY.
34725 2014-06-11 Richard Biener <rguenther@suse.de>
34727 PR middle-end/61437
34729 2014-06-04 Richard Biener <rguenther@suse.de>
34731 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34732 TREE_PUBLIC and DECL_EXTERNAL decls.
34734 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34736 * varasm.c (set_implicit_section): New function.
34737 (resolve_unique_section): Use it to set implicit section
34739 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34740 (default_function_section): Likewise.
34741 (decl_binds_to_current_def_p): Constify argument.
34742 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34743 * asan.c (asan_protect_global): Use
34744 symtab_get_node (decl)->implicit_section.
34745 * symtab.c (dump_symtab_base): Dump implicit sections.
34746 (verify_symtab_base): Verify sanity of sectoins and comdats.
34747 (symtab_resolve_alias): Alias share the section of its target.
34748 (set_section_1): New function.
34749 (symtab_node::set_section): Move here, recurse to aliases.
34750 (verify_symtab): Check for duplicated symtab lists.
34751 * tree-core.h (implicit_section_name_p): Remove.
34752 * tree-vect-data-refs.c: Include varasm.h.
34753 (vect_can_force_dr_alignment_p): Fix conditional on when
34754 decl bints to current definition; use
34755 symtab_get_node (decl)->implicit_section.
34756 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34757 * cgraph.h (struct symtab_node): Add implicit_section.
34758 (set_section): Rename to ...
34759 (set_section_for_node): ... this one.
34760 (set_section): Declare.
34761 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34762 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34763 input_overwrite_node, input_varpool_node): Stream implicit_section.
34764 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34765 removal; it will fail in LTO.
34767 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34769 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34770 Change second alternative type to f_mcr.
34771 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34772 and 12th alternatives' types to f_mcr and f_mrc.
34773 (*movdi_aarch64): Same for 12th and 13th alternatives.
34774 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34775 (aarch64_movtilow_tilow): Change type to fmov.
34777 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34779 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34780 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34782 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34784 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34786 (aarch64_sqrdmulh_lane<mode>): Likewise.
34787 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34788 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34789 (aarch64_sqdmulh_laneq<mode>): New expander.
34790 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34791 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34792 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34793 (aarch64_sqdmulh_lane<mode>): New expander.
34794 (aarch64_sqrdmulh_lane<mode>): Likewise.
34795 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34796 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34797 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
34798 (aarch64_sqdmlal_laneq<mode>): Likewise.
34799 (aarch64_sqdmlsl_lane<mode>): Likewise.
34800 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34801 (aarch64_sqdmlal2_lane<mode>): Likewise.
34802 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34803 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34804 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34805 (aarch64_sqdmull_lane<mode>): Likewise.
34806 (aarch64_sqdmull_laneq<mode>): Likewise.
34807 (aarch64_sqdmull2_lane<mode>): Likewise.
34808 (aarch64_sqdmull2_laneq<mode>): Likewise.
34810 2014-06-10 Richard Biener <rguenther@suse.de>
34812 PR tree-optimization/61438
34813 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34814 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34815 insertion of IVs if running PRE.
34816 (eliminate): Adjust.
34817 (pass_pre::execute): Likewise.
34818 (pass_fre::execute): Likewise.
34820 2014-06-10 Richard Biener <rguenther@suse.de>
34822 PR middle-end/61456
34823 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34824 Do not use the main variant for the type comparison.
34825 (ncr_compar): Likewise.
34826 (nonoverlapping_component_refs_p): Likewise.
34828 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34830 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34831 REG_CFA_RESTORE mode.
34833 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34835 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34836 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34837 expand_vec_perm_pblendv.
34839 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34841 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34843 Simplify description of __crc32d and __crc32cd intrinsics.
34844 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
34847 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
34850 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
34851 * config.in: Regenerate.
34852 * configure: Likewise.
34854 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34856 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
34858 (intersect_static_var_sets): Remove.
34859 (propagate): Do not prune local statics.
34861 2014-06-10 Jakub Jelinek <jakub@redhat.com>
34864 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
34865 Set lastprivate_firstprivate even if omp_private_outer_ref
34866 langhook returns true.
34867 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
34868 langhook, call unshare_expr on new_var and call
34869 build_outer_var_ref to get the last argument.
34871 2014-06-10 Marek Polacek <polacek@redhat.com>
34874 * doc/extend.texi: Add cindex for transparent_union.
34876 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34878 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
34879 init_symbolic_number ().
34881 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
34883 PR middle-end/61141
34884 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
34885 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
34886 (verify_rtl_sharing): Likewise.
34888 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
34891 * tree.c (build_qualified_type): Use a canonical type for
34894 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34896 * config/arm/arm-modes.def: Remove XFmode.
34898 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
34901 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
34902 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
34903 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
34904 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
34905 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
34906 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
34907 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
34908 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
34909 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
34911 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
34913 * tree-core.h (tree_decl_with_vis): Remove section_name.
34915 2014-06-09 Kito Cheng <kito@0xlab.org>
34917 * ira.c (ira): Don't call init_caller_save if LRA enabled
34918 since LRA use its own infrastructure to handle that.
34920 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34922 * symtab.c (dump_symtab_base): Update dumping.
34923 (symtab_make_decl_local): Clear only DECL_COMDAT.
34924 * tree-vect-data-refs.c (Check that variable is static before
34925 tampering with sections.
34926 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
34927 (cgraph_create_virtual_clone): Likewise.
34928 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
34929 (decl_section_name, set_decl_section_name): New accessors.
34930 (find_decls_types_r): Do not walk section name
34931 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
34932 (decl_comdat_group, decl_comdat_group_id): Constify.
34933 (decl_section_name, set_decl_section_name): Update.
34934 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
34935 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
34936 (cgraph_make_node_local_1): Clear section and comdat group.
34937 * cgraph.h (set_comdat_group): Sanity check.
34938 (get_section, set_section): New.
34939 * ipa-comdats.c (ipa_comdats): Use get_section.
34940 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
34941 * lto-streamer-out.c: Do not follow section names.
34942 * c-family/c-common.c (handle_section_attribute): Update.
34943 * lto-cgraph.c (lto_output_node): Output section.
34944 (lto_output_varpool_node): Likewise.
34945 (read_comdat_group): Rename to ...
34946 (read_identifier): ... this one.
34947 (read_string_cst): New function.
34948 (input_node, input_varpool_node): Input section names.
34949 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34950 (new_emutls_decl): Update.
34951 (secname_for_decl): Check section names only of static vars.
34952 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
34953 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
34954 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34955 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34956 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
34957 * config/mcore/mcore.c (mcore_unique_section): Likewise.
34958 * config/mips/mips.c (mips16_build_function_stub): Likewise.
34959 * config/v850/v850.c (v850_insert_attributes): Likewise.
34960 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
34962 (h8300_handle_tiny_data_attribute): Likewise.
34963 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
34964 (bfin_handle_l2_attribute): Likewise.
34966 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34968 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
34969 remove static initializer.
34971 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34973 * varasm.c (use_blocks_for_decl_p): Check symbol table
34974 instead of alias attribute.
34975 (place_block_symbol): Recurse on aliases.
34977 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34979 * ipa-visibility.c: Include varasm.h
34980 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
34982 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34984 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
34985 outputting aliases.
34987 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
34989 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
34990 from test_insn into GGC space escape via SET_SRC.
34992 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
34994 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
34995 call statement, if any.
34996 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
34997 statements, if any. Tidy up.
34999 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35002 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
35003 iterators, VSX_D that handles 64-bit types, and VSX_LE that
35004 handles swapping the two 64-bit double words on little endian
35005 systems. Include V1TImode and optionally TImode in VSX_LE so that
35006 these types are properly swapped. Change all of the insns and
35007 splits that do the 64-bit swaps to use VSX_LE.
35008 (vsx_le_perm_load_<mode>): Likewise.
35009 (vsx_le_perm_store_<mode>): Likewise.
35010 (splitters for little endian memory operations): Likewise.
35011 (vsx_xxpermdi2_le_<mode>): Likewise.
35012 (vsx_lxvd2x2_le_<mode>): Likewise.
35013 (vsx_stxvd2x2_le_<mode>): Likewise.
35015 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
35018 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
35019 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
35020 and corresponding splitters. Zero extend general register
35021 or memory input operand to XMM temporary. Enable for
35022 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
35023 (floatunssi<mode>2): Update expander predicate.
35025 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
35027 PR rtl-optimization/61325
35028 * lra-constraints.c (process_address_1): Check scale equal to one
35029 to prevent transformation: base + scale * index => base + new_reg.
35031 2014-06-06 Richard Biener <rguenther@suse.de>
35033 PR tree-optimization/59299
35034 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
35036 (nearest_common_dominator_of_uses): Likewise.
35037 (statement_sink_location): Adjust. Support sinking loads.
35039 2014-06-06 Martin Jambor <mjambor@suse.cz>
35041 * ipa-prop.c (get_place_in_agg_contents_list): New function.
35042 (build_agg_jump_func_from_list): Likewise.
35043 (determine_known_aggregate_parts): Renamed to
35044 determine_locally_known_aggregate_parts. Moved some functionality
35045 to the two functions above, removed bound checks.
35047 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
35049 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
35050 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
35051 (aarch64_progress_pointer): Likewise.
35052 (aarch64_copy_one_part_and_move_pointers): Likewise.
35053 (aarch64_expand_movmen): Likewise.
35054 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
35055 * config/aarch64/aarch64.md (movmem<mode>): New.
35057 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
35059 * targhooks.c (default_add_stmt_cost): Call target specific
35060 hook instead of default one.
35062 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35064 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
35065 endianness instead of host endianness.
35066 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
35069 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35072 * function.c (instantiate_decls): Process the saved static chain.
35073 (expand_function_start): If not optimizing, save the static chain
35075 * tree-nested.c (convert_all_function_calls): Always create the static
35076 chain for nested functions if not optimizing.
35078 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35080 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
35082 2014-06-06 Richard Biener <rguenther@suse.de>
35084 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
35085 (construct_init_block): Likewise.
35086 (construct_exit_block): Likewise.
35087 (pass_expand::execute): Likewise.
35088 * graphite.c (graphite_transforms): Replace check for current_loops
35089 with a check for > 1 loops.
35090 (pass_graphite_transforms::execute): Adjust.
35091 * ipa-split.c (split_function): Remove check for current_loops.
35092 * omp-low.c (expand_parallel_call): Likewise.
35093 (expand_omp_for_init_counts): Likewise.
35094 (extract_omp_for_update_vars): Likewise.
35095 (expand_omp_for_generic): Likewise.
35096 (expand_omp_sections): Likewise.
35097 (expand_omp_target): Likewise.
35098 * tracer.c (tail_duplicate): Likewise.
35099 (pass_tracer::execute): Likewise.
35100 * trans-mem.c (expand_transaction): Likewise.
35101 * tree-complex.c (expand_complex_div_wide): Likewise.
35102 * tree-eh.c (lower_resx): Likewise.
35103 (cleanup_empty_eh_merge_phis): Likewise.
35104 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
35105 current_loops with a check for > 1 loops.
35106 (pass_predcom::execute): Adjust.
35107 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
35108 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
35109 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
35110 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
35111 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
35112 * tree-switch-conversion.c (process_switch): Likewise.
35113 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
35114 * tree-vrp.c (vrp_visit_phi_node): Likewise.
35115 (execute_vrp): Likewise.
35116 * ubsan.c (ubsan_expand_null_ifn): Likewise.
35118 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35120 * rtl.h (insn_location): Declare.
35121 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
35122 with UNKNOWN_LOCATION.
35123 * emit-rtl.c (insn_location): New function.
35124 * final.c (notice_source_line): Check that the instruction has a
35125 location before retrieving it and use insn_location.
35126 * modulo-sched.c (loop_single_full_bb_p): Likewise.
35127 * print-rtl.c (print_rtx): Likewise.
35129 2014-06-06 Richard Biener <rguenther@suse.de>
35131 * passes.def: Move 2nd VRP pass before phi-only-cprop.
35133 2014-06-06 Christian Bruel <christian.bruel@st.com>
35135 PR tree-optimization/43934
35136 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
35139 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
35141 * ira-lives.c (single_reg_class): Add missing break. Explicitly
35142 return NO_REGS for extra address and memory constraints. Handle
35143 operands that match (or are equivalent to something that matches)
35144 extra constant constraints. Ignore other non-register operands.
35146 2014-06-06 Alan Modra <amodra@gmail.com>
35149 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35150 * doc/tm.texi: Regenerate.
35151 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35152 Use throughout in place of REG_PARM_STACK_SPACE.
35153 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35154 "incoming" param. Pass to rs6000_function_parms_need_stack.
35155 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35156 prototype_p when incoming. Use function decl when incoming
35157 to handle K&R style functions.
35158 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35159 (INCOMING_REG_PARM_STACK_SPACE): Define.
35161 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35164 * cfgexpand.c (expand_debug_expr): Use address space of nested
35165 TREE_TYPE for ADDR_EXPR and MEM_REF.
35167 2014-06-05 Jeff Law <law@redhat.com>
35169 PR tree-optimization/61289
35170 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35171 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35172 looking for those which match LHS. All callers changed.
35173 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35174 parameters and code which manipulated them. All callers changed.
35175 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35176 and DST_MAP parameters. Simplify invalidation code by just calling
35177 invalidate_equivalences. All callers changed.
35178 (thread_across_edge): Simplify now that we don't need to maintain
35179 the map of equivalences to invalidate.
35181 2014-06-05 Kai Tietz <ktietz@redhat.com>
35182 Richard Henderson <rth@redhat.com>
35185 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35186 checking for !TARGET_X32.
35187 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35188 (sibcall_intern): New define_insn, plus required peepholes.
35189 (sibcall_pop_intern): Likewise.
35190 (sibcall_value_intern): Likewise.
35191 (sibcall_value_pop_intern): Likewise.
35193 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35195 * tree-inline.c (tree_function_versioning): Check DF info existence
35196 before accessing it.
35198 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35200 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35202 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35203 aarch64_frame hard_fp_offset and frame_size.
35204 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35205 frame_size; remove original_frame_size.
35206 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35207 (aarch64_initial_elimination_offset): Remove frame_size and
35208 offset. Use aarch64_frame frame_size.
35210 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35211 Jiong Wang <jiong.wang@arm.com>
35212 Renlin <renlin.li@arm.com>
35214 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35215 initialization of R30 offset. Update offset. Iterate core
35216 regisers upto X30. Remove X29, X30 specific code.
35218 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35219 Jiong Wang <jiong.wang@arm.com>
35221 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35222 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35223 (aarch64_register_saved_on_entry): Adjust test.
35225 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35227 * config/aarch64/aarch64.h (machine_function): Move
35228 saved_varargs_size from here...
35229 (aarch64_frame): ... to here.
35231 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35232 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35233 (aarch64_initial_elimination_offset)
35234 (aarch64_setup_incoming_varargs): Adjust location of
35235 saved_varargs_size.
35237 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35239 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35242 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35243 Prachi Godbole <Prachi.Godbole@imgtec.com>
35245 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35246 mips32r5 entry to use PROCESSOR_P5600.
35247 * config/mips/mips-tables.opt: Regenerate.
35248 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35249 * config/mips/mips.c (mips_fmadd_bypass): New function.
35250 (mips_rtx_cost_data): Add costs for p5600.
35251 (mips_issue_rate): Add support for p5600.
35252 (mips_multipass_dfa_lookahead): Likewise.
35253 * config/mips/mips.h (TUNE_P5600): New define.
35254 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35255 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35256 * config/mips/mips.md: Include p5600.md.
35257 (processor): Add p5600.
35258 * config/mips/p5600.md: New file.
35260 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35262 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35263 * config/i386/predicates.md (palignr_operand): New.
35264 Indicates if permutation is suitable for palignr instruction.
35266 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35268 PR tree-optimization/61319
35269 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35270 stmt belongs to loop.
35272 2014-06-05 Richard Biener <rguenther@suse.de>
35274 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35275 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35276 (lookup_tmp_var): Adjust.
35277 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35279 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35281 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35283 2014-06-05 Marek Polacek <polacek@redhat.com>
35286 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35288 2014-06-04 Tom de Vries <tom@codesourcery.com>
35290 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35293 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35295 PR tree-optimization/61385
35296 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35298 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35300 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35301 changed to use fatal_error.
35302 (main): Ensure lto_wrapper_cleanup is run atexit.
35304 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35306 * lra-constraints.c (valid_address_p): Move earlier in file.
35307 (address_eliminator): New structure.
35308 (satisfies_memory_constraint_p): New function.
35309 (satisfies_address_constraint_p): Likewise.
35310 (process_alt_operands, process_address, curr_insn_transform): Use them.
35312 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35314 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35316 (target_lra_int, default_target_lra_int, this_target_lra_int)
35317 (op_alt_data): Delete.
35318 * lra.h (lra_init): Delete.
35319 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35320 (init_insn_code_data_once): Remove op_alt_data handling.
35321 (finish_insn_code_data_once): Likewise.
35322 (init_op_alt_data): Delete.
35323 (get_static_insn_data): Initialize operand_alternative to null.
35324 (free_insn_recog_data): Cast operand_alternative before freeing it.
35325 (setup_operand_alternative): Take the operand_alternative as
35326 parameter and assume it isn't already cached in the static
35328 (lra_set_insn_recog_data): Update accordingly.
35329 (lra_init): Delete.
35330 * ira.c (ira_init): Don't call lra_init.
35331 * target-globals.h (this_target_lra_int): Declare.
35332 (target_globals): Remove lra_int.
35333 (restore_target_globals): Update accordingly.
35334 * target-globals.c: Don't include lra-int.h.
35335 (default_target_globals, save_target_globals): Remove lra_int.
35337 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35339 * recog.h (operand_alternative): Convert reg_class, reject,
35340 matched and matches into bitfields.
35341 (preprocess_constraints): New overload.
35342 (preprocess_insn_constraints): New function.
35343 (preprocess_constraints): Take the insn as parameter.
35344 (recog_op_alt): Change into a pointer.
35345 (target_recog): Add x_op_alt.
35346 * recog.c (asm_op_alt): New variable.
35347 (recog_op_alt): Change into a pointer.
35348 (preprocess_constraints): New overload, replacing the old function
35349 definition with one that doesn't use global state.
35350 (preprocess_insn_constraints): New function.
35351 (preprocess_constraints): Use them. Take the insn as parameter.
35352 Use asm_op_alt for asms.
35353 (recog_init): Free existing x_op_alt entries.
35354 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35356 (make_early_clobber_and_input_conflicts): Likewise.
35357 (process_bb_node_lives): Pass the insn to process_constraints.
35358 * reg-stack.c (check_asm_stack_operands): Likewise.
35359 (subst_asm_stack_regs): Likewise.
35360 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35361 * regrename.c (build_def_use): Likewise.
35362 * sched-deps.c (sched_analyze_insn): Likewise.
35363 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35364 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35365 (note_invalid_constants): Likewise.
35366 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35367 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35370 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35372 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35373 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35375 (make_early_clobber_and_input_conflicts): Likewise.
35376 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35378 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35380 * recog.h (alternative_class): New function.
35381 (which_op_alt): Return a const recog_op_alt.
35382 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35383 (subst_asm_stack_regs): Likewise.
35384 * config/arm/arm.c (note_invalid_constants): Likewise.
35385 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35386 the operand_alternative; use alternative class instead.
35387 * sel-sched.c (get_reg_class): Likewise.
35388 * regrename.c (build_def_use): Likewise.
35389 (hide_operands, restore_operands, record_out_operands): Update type
35392 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35394 * recog.h (recog_op_alt): Convert to a flat array.
35395 (which_op_alt): New function.
35396 * recog.c (recog_op_alt): Convert to a flat array.
35397 (preprocess_constraints): Update accordingly, grouping all
35398 operands of the same alternative together, rather than the
35400 * ira-lives.c (check_and_make_def_conflict): Likewise.
35401 (make_early_clobber_and_input_conflicts): Likewise.
35402 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35403 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35404 (subst_asm_stack_regs): Likewise.
35405 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35406 * regrename.c (hide_operands, record_out_operands): Likewise.
35407 (build_def_use): Likewise.
35408 * sel-sched.c (get_reg_class): Likewise.
35409 * config/arm/arm.c (note_invalid_constants): Likewise.
35411 2014-06-04 Jason Merrill <jason@redhat.com>
35415 * gimplify.c (gimplify_arg): Non-static.
35416 * gimplify.h: Declare it.
35418 2014-06-04 Richard Biener <rguenther@suse.de>
35420 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35421 TREE_PUBLIC and DECL_EXTERNAL decls.
35423 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35425 * regcprop.c (copyprop_hardreg_forward_1): Account for
35426 HARD_REGNO_CALL_PART_CLOBBERED.
35428 2014-06-04 Richard Biener <rguenther@suse.de>
35430 * configure.ac: Check whether the underlying type of int64_t
35431 is long or long long.
35432 * configure: Regenerate.
35433 * config.in: Likewise.
35434 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35435 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35437 2014-06-04 Richard Biener <rguenther@suse.de>
35439 PR tree-optimization/60098
35440 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35442 (dse_optimize_stmt): Simplify, now that we found a kill
35445 2014-06-04 Richard Biener <rguenther@suse.de>
35447 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35448 of accesses with non-invariant address.
35450 2014-06-04 Martin Liska <mliska@suse.cz>
35452 * cgraph.h (cgraph_make_wrapper): New function introduced.
35453 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35454 * ipa-inline.h (inline_analyze_function): The function is global.
35455 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35457 2014-06-04 Martin Liska <mliska@suse.cz>
35459 * tree.h (private_lookup_attribute_starting): New function.
35460 (lookup_attribute_starting): Likewise.
35461 * tree.c (private_lookup_attribute_starting): Likewise.
35463 2014-06-04 Martin Liska <mliska@suse.cz>
35465 * cgraph.h (expand_thunk): New argument added.
35466 (address_taken_from_non_vtable_p): New global function.
35467 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35468 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35469 * cgraphunit.c (analyze_function): Likewise.
35470 (assemble_thunks_and_aliases): Argument added to call.
35471 (expand_thunk): New argument forces to produce GIMPLE thunk.
35473 2014-06-04 Martin Liska <mliska@suse.cz>
35475 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35476 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35477 * profile.c (branch_prob): Likewise.
35479 2014-06-04 Martin Jambor <mjambor@suse.cz>
35482 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35483 handler for switch on an ipa_ref_use enum.
35484 * ipa-reference.c (analyze_function): Likewise.
35486 2014-06-04 Kai Tietz <ktietz@redhat.com>
35488 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35489 from old call-instruction.
35491 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35493 * config/aarch64/aarch64.c (aarch64_classify_address)
35494 (aarch64_legitimize_reload_address): Support full addressing modes
35496 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35497 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35499 2014-06-03 Andrew Pinski <apinski@cavium.com>
35501 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35504 2014-06-03 Andrew Pinski <apinski@cavium.com>
35506 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35507 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35509 2014-06-03 Kai Tietz <ktietz@redhat.com>
35511 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35514 2014-06-03 Dehao Chen <dehao@google.com>
35516 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35519 2014-06-03 Marek Polacek <polacek@redhat.com>
35522 * doc/invoke.texi: Document -Wswitch-bool.
35523 * function.c (stack_protect_epilogue): Cast controlling expression of
35525 * gengtype.c (walk_type): Generate switch expression with its
35526 controlling expression cast to int.
35528 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35530 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35532 * config/avr/avr-tables.opt: Regenerate.
35533 * config/avr/t-multilib: Regenerate.
35534 * doc/avr-mmcu.texi: Regenerate.
35536 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35537 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35539 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35540 (ata6617c, ata664251): Add new avr35 devices.
35541 (ata6612c): Add new avr4 device.
35542 (ata6613c, ata6614q): Add new avr5 devices.
35543 * config/avr/avr-tables.opt: Regenerate.
35544 * config/avr/t-multilib: Regenerate.
35545 * doc/avr-mmcu.texi: Regenerate.
35547 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35549 * gcc/config/aarch64/aarch64-builtins.c
35550 (aarch64_types_binop_ssu_qualifiers): New static data.
35551 (TYPES_BINOP_SSU): Define.
35552 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35553 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35554 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35555 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35556 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35557 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35558 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35559 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35560 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35561 suffix to builtin function name, remove cast.
35562 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35563 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35564 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35566 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35568 * gcc/config/aarch64/aarch64-builtins.c
35569 (aarch64_types_binop_uus_qualifiers,
35570 aarch64_types_shift_to_unsigned_qualifiers,
35571 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35572 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35573 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35574 sqshlu_n, uqshl_n): Update qualifiers.
35575 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35576 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35577 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35578 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35579 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35580 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35581 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35582 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35583 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35584 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35585 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35586 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35587 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35588 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35589 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35590 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35591 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35592 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35593 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35594 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35595 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35596 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35597 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35598 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35599 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35600 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35601 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35603 2014-06-03 Teresa Johnson <tejohnson@google.com>
35605 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35607 2014-06-02 Jason Merrill <jason@redhat.com>
35610 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35612 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35614 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35617 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35619 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35621 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35622 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35623 * config/aarch64/iterators.md (REVERSE): New iterator.
35624 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35625 (rev_op): New int_attribute.
35626 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35627 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35628 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35629 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35630 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35631 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35632 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35633 Replace temporary __asm__ with __builtin_shuffle.
35635 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35637 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35639 * config/mips/mips-tables.opt: Regenerate.
35640 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35641 to use mips_isa_rev rather than ISA_MIPS32R2.
35642 * config/mips/mips.h (ISA_MIPS32R3): New define.
35643 (ISA_MIPS32R5): New define.
35644 (ISA_MIPS64R3): New define.
35645 (ISA_MIPS64R5): New define.
35646 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35647 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35648 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35650 (MIPS_ISA_SYNCI_SPEC): Likewise.
35651 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35652 (LINK_SPEC): Added mips32r3 and mips32r5.
35653 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35654 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35655 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35656 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35657 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35658 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35659 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35661 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35663 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35665 * config/mips/mips.opt (mxpa): New option.
35666 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35669 2014-06-03 Martin Jambor <mjambor@suse.cz>
35672 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35675 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35677 PR tree-optimization/61328
35678 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35679 initialization from find_bswap_or_nop_1.
35680 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35681 in source_expr2 before using the size value the function sets. Also
35682 make use of init_symbolic_number () in both the old place and
35683 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35684 doing recursion in the GIMPLE_BINARY_RHS case.
35686 2014-06-03 Richard Biener <rguenther@suse.de>
35688 PR tree-optimization/61383
35689 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35692 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35694 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35695 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35696 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35697 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35699 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35700 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35701 * system.h: ...here and make it unconditional.
35702 * target.def (conditional_register_usage): Mention
35703 define_register_constraint instead of old-style constraint macros.
35704 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35705 * doc/tm.texi: Regenerate.
35706 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35707 protected by !USE_MD_CONSTRAINTS.
35708 * config/frv/frv.md: Remove quote from old version of documentation.
35709 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35710 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35711 CONST_DOUBLE_OK_FOR_LETTER.
35712 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35714 2014-06-02 Andrew Pinski <apinski@cavium.com>
35716 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35717 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35718 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35719 file whose name depends on -mabi= and -mbig-endian.
35720 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35721 Handle LP64 better and handle ilp32 too.
35722 (MULTILIB_OPTIONS): Delete.
35723 (MULTILIB_DIRNAMES): Delete.
35725 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35727 * expr.h: Remove prototypes of functions defined in builtins.c.
35728 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35729 Remove prototypes of functions defined in builtins.c.
35730 * builtins.h: Update prototype list to include all exported functions.
35731 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35732 no_c99_libc_has_function): Move to targhooks.c
35733 (build_string_literal, build_call_expr_loc_array,
35734 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35736 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35737 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35738 no_c99_libc_has_function): Relocate from builtins.c.
35739 * tree.c: Include builtins.h.
35740 (build_call_expr_loc_array, build_call_expr_loc_vec,
35741 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35743 * fold-const.h (fold_fma): Move prototype to builtins.h.
35744 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35745 * asan.c: Include builtins.h.
35746 * cfgexpand.c: Likewise.
35747 * convert.c: Likewise.
35748 * emit-rtl.c: Likewise.
35749 * except.c: Likewise.
35750 * expr.c: Likewise.
35751 * fold-const.c: Likewise.
35752 * gimple-fold.c: Likewise.
35753 * gimple-ssa-strength-reduction.c: Likewise.
35754 * gimplify.c: Likewise.
35755 * ipa-inline.c: Likewise.
35756 * ipa-prop.c: Likewise.
35757 * lto-streamer-out.c: Likewise.
35758 * stmt.c: Likewise.
35759 * tree-inline.c: Likewise.
35760 * tree-object-size.c: Likewise.
35761 * tree-sra.c: Likewise.
35762 * tree-ssa-ccp.c: Likewise.
35763 * tree-ssa-forwprop.c: Likewise.
35764 * tree-ssa-loop-ivcanon.c: Likewise.
35765 * tree-ssa-loop-ivopts.c: Likewise.
35766 * tree-ssa-math-opts.c: Likewise.
35767 * tree-ssa-reassoc.c: Likewise.
35768 * tree-ssa-threadedge.c: Likewise.
35769 * tree-streamer-in.c: Likewise.
35770 * tree-vect-data-refs.c: Likewise.
35771 * tree-vect-patterns.c: Likewise.
35772 * tree-vect-stmts.c: Likewise.
35773 * config/aarch64/aarch64.c: Likewise.
35774 * config/alpha/alpha.c: Likewise.
35775 * config/arc/arc.c: Likewise.
35776 * config/arm/arm.c: Likewise.
35777 * config/avr/avr.c: Likewise.
35778 * config/bfin/bfin.c: Likewise.
35779 * config/c6x/c6x.c: Likewise.
35780 * config/cr16/cr16.c: Likewise.
35781 * config/cris/cris.c: Likewise.
35782 * config/epiphany/epiphany.c: Likewise.
35783 * config/fr30/fr30.c: Likewise.
35784 * config/frv/frv.c: Likewise.
35785 * config/h8300/h8300.c: Likewise.
35786 * config/i386/i386.c: Likewise.
35787 * config/i386/winnt.c: Likewise.
35788 * config/ia64/ia64.c: Likewise.
35789 * config/iq2000/iq2000.c: Likewise.
35790 * config/lm32/lm32.c: Likewise.
35791 * config/m32c/m32c.c: Likewise.
35792 * config/m32r/m32r.c: Likewise.
35793 * config/m68k/m68k.c: Likewise.
35794 * config/mcore/mcore.c: Likewise.
35795 * config/mep/mep.c: Likewise.
35796 * config/microblaze/microblaze.c: Likewise.
35797 * config/mips/mips.c: Likewise.
35798 * config/mmix/mmix.c: Likewise.
35799 * config/mn10300/mn10300.c: Likewise.
35800 * config/moxie/moxie.c: Likewise.
35801 * config/msp430/msp430.c: Likewise.
35802 * config/nds32/nds32.c: Likewise.
35803 * config/pa/pa.c: Likewise.
35804 * config/pdp11/pdp11.c: Likewise.
35805 * config/picochip/picochip.c: Likewise.
35806 * config/rl78/rl78.c: Likewise.
35807 * config/rs6000/rs6000.c: Likewise.
35808 * config/rx/rx.c: Likewise.
35809 * config/s390/s390.c: Likewise.
35810 * config/score/score.c: Likewise.
35811 * config/sh/sh.c: Likewise.
35812 * config/sparc/sparc.c: Likewise.
35813 * config/spu/spu.c: Likewise.
35814 * config/stormy16/stormy16.c: Likewise.
35815 * config/tilegx/tilegx.c: Likewise.
35816 * config/tilepro/tilepro.c: Likewise.
35817 * config/v850/v850.c: Likewise.
35818 * config/vax/vax.c: Likewise.
35819 * config/xtensa/xtensa.c: Likewise.
35821 2014-06-02 Jeff Law <law@redhat.com>
35823 PR rtl-optimization/61094
35824 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35825 was marked as do_no_reextend. If a copy is needed to eliminate
35826 an extension, then mark it as do_not_reextend.
35828 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35830 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35832 2014-06-02 Richard Henderson <rth@redhat.com>
35835 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35836 addresses inside asms. Use output_operand_lossage instead of
35839 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35842 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35843 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
35845 2014-06-02 Tom de Vries <tom@codesourcery.com>
35847 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
35848 case that x has VOIDmode.
35850 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
35852 * varasm.c (copy_constant): Delete function.
35853 (build_constant_desc): Don't call it.
35855 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35858 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
35859 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
35860 with immediate_operand.
35862 2014-06-02 Andreas Schwab <schwab@suse.de>
35864 * config/ia64/ia64.c
35865 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
35866 pending_data_specs first.
35868 2014-06-02 Richard Biener <rguenther@suse.de>
35870 PR tree-optimization/61378
35871 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
35872 valueized_anything.
35874 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
35876 * config/i386/constraints.md (Bw): Rename from 'w'.
35877 (Bz): Rename from 'z'.
35878 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
35880 2014-06-01 Kai Tietz <ktietz@redhat.com>
35883 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
35884 * config/i386/i386.md (sibcall_insn_operand): Use Bs
35885 instead of m constraint.
35887 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
35889 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
35890 a separate alternative where the scratch operand 2 is marked as
35893 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35895 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
35896 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
35897 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
35898 and __builtins_arm_get_fpscr.
35899 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
35900 __builtins_arm_get_fpscr.
35901 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
35902 __builtins_arm_ldfpscr.
35903 (arm_atomic_assign_expand_fenv): New function.
35904 * config/arm/vfp.md (set_fpscr): New pattern.
35905 (get_fpscr) : Likewise.
35906 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
35908 * doc/extend.texi (AARCH64 Built-in Functions) : Document
35909 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
35911 2014-05-30 Jakub Jelinek <jakub@redhat.com>
35913 * asan.c (report_error_func): Add SLOW_P argument, use
35914 BUILT_IN_ASAN_*_N if set.
35915 (build_check_stmt): Likewise.
35916 (instrument_derefs): If T has insufficient alignment,
35917 force same handling as for odd sizes.
35919 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
35920 BUILT_IN_ASAN_REPORT_STORE_N): New.
35921 * asan.c (struct asan_mem_ref): Change access_size type to
35923 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
35924 update_mem_ref_hash_table): Likewise.
35925 (asan_mem_ref_hasher::hash): Hash in a HWI.
35926 (report_error_func): Change size_in_bytes argument to HWI.
35927 Use *_N builtins if size_in_bytes is larger than 16 or not power of
35929 (build_shadow_mem_access): New function.
35930 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
35931 Handle size_in_bytes not power of two or larger than 16.
35932 (instrument_derefs): Don't give up if size_in_bytes is not
35933 power of two or is larger than 16.
35935 2014-05-30 Kai Tietz <ktietz@redhat.com>
35938 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
35939 for sibling-tail-calls.
35940 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
35942 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
35943 (sibcall_insn_operand): Add check for sibcall_memory_operand.
35945 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35947 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
35948 * config/avr/avr-tables.opt: Regenerate.
35949 * config/avr/t-multilib: Regenerate.
35950 * doc/avr-mmcu.texi: Regenerate.
35952 2014-05-30 Ian Lance Taylor <iant@google.com>
35954 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
35957 2014-05-30 Tom de Vries <tom@codesourcery.com>
35959 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
35962 2014-05-30 Tom de Vries <tom@codesourcery.com>
35964 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35965 * lra.c (initialize_lra_reg_info_element): Add init of
35966 actual_call_used_reg_set field.
35967 (lra): Call lra_create_live_ranges before lra_inheritance for
35969 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35971 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
35972 instead of call_used_reg_set for -fuse-caller-save.
35973 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35975 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35977 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
35979 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
35981 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
35983 * ira.c (ira_get_dup_out_num): Check for output operands at
35984 the start of the loop. Handle cases where an included alternative
35985 follows an excluded one.
35987 2014-05-29 Mike Stump <mikestump@comcast.net>
35990 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
35991 post ld passes when lto is used.
35993 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
35995 PR rtl-optimization/61325
35996 * lra-constraints.c (process_address): Rename to process_address_1.
35997 (process_address): New function.
35999 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
36001 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
36002 TYPES_BINOPV): New static data.
36003 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
36005 * config/aarch64/aarch64-simd.md (aarch64_ext,
36006 aarch64_im_lane_boundsi): New patterns.
36007 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
36009 (aarch64_evpc_ext): New function.
36011 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
36013 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
36014 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
36015 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
36016 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
36017 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
36019 2014-05-29 Tom de Vries <tom@codesourcery.com>
36021 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
36023 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
36024 Richard Sandiford <rdsandiford@googlemail.com>
36026 * arm/iterators.md (shiftable_ops): New code iterator.
36027 (t2_binop0, arith_shift_insn): New code attributes.
36028 * arm/predicates.md (shift_nomul_operator): New predicate.
36029 * arm/arm.md (insn_enabled): Delete.
36030 (enabled): Remove insn_enabled test.
36031 (*arith_shiftsi): Delete. Replace with ...
36032 (*<arith_shift_insn>_multsi): ... new pattern.
36033 (*<arith_shift_insn>_shiftsi): ... new pattern.
36034 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
36036 2014-05-29 Radovan Obradovic <robradovic@mips.com>
36037 Tom de Vries <tom@codesourcery.com>
36039 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
36040 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
36042 (mips_split_call): Use POST_CALL_TMP_REG.
36043 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
36045 2014-05-29 Tom de Vries <tom@codesourcery.com>
36047 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
36048 with #ifdef STACK_REGS.
36050 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
36052 * varasm.c (get_variable_section): Walk aliases.
36053 (place_block_symbol): Walk aliases.
36055 2014-05-28 Tom de Vries <tom@codesourcery.com>
36058 2014-05-28 Tom de Vries <tom@codesourcery.com>
36060 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36061 * lra.c (initialize_lra_reg_info_element): Add init of
36062 actual_call_used_reg_set field.
36063 (lra): Call lra_create_live_ranges before lra_inheritance for
36065 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36067 * lra-constraints.c (need_for_call_save_p): Use
36068 actual_call_used_reg_set instead of call_used_reg_set for
36070 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36072 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36074 * doc/md.texi: Document that the % constraint character must
36075 be at the beginning of the string.
36076 * genoutput.c (validate_insn_alternatives): Check that '=',
36077 '+' and '%' only appear at the beginning of a constraint.
36078 * ira.c (commutative_constraint_p): Delete.
36079 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
36080 at the start of the string.
36081 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
36083 * config/arm/neon.md (bicdi3_neon): Likewise.
36084 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
36085 (slt_si, sltu_si): Likewise.
36086 * config/vax/vax.md (sbcdi3): Likewise.
36087 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
36088 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
36089 (mul64): Move '%' to beginning of constraint.
36090 * config/arm/arm.md (*xordi3_insn): Likewise.
36091 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
36092 (xorsi3): Likewise.
36094 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36096 * doc/md.texi: Document the restrictions on the "enabled" attribute.
36098 2014-05-28 Jason Merrill <jason@redhat.com>
36101 * cgraph.h (symtab_node::get_comdat_group_id): New.
36102 * cgraphunit.c (analyze_functions): Call it.
36103 * symtab.c (dump_symtab_node): Likewise.
36104 * tree.c (decl_comdat_group_id): New.
36105 * tree.h: Declare it.
36106 * lto-streamer-out.c (write_symbol): Use it.
36107 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
36109 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36111 PR bootstrap/PR61146
36112 * wide-int.cc: Do not include longlong.h when compiling with clang.
36114 2014-05-28 Richard Biener <rguenther@suse.de>
36116 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
36117 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
36118 (vrp_visit_assignment_or_call): Print less vertical space.
36119 (vrp_visit_stmt): Likewise.
36120 (vrp_visit_phi_node): Likewise. For a PHI argument with
36121 VR_VARYING range consider recording it as copy.
36123 2014-05-28 Richard Biener <rguenther@suse.de>
36126 2014-05-28 Richard Biener <rguenther@suse.de>
36128 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36130 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
36132 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
36133 sufficiently aligned and an offset is used at the same time.
36134 (expand_expr_real_1): Likewise.
36136 2014-05-28 Richard Biener <rguenther@suse.de>
36138 PR middle-end/61045
36139 * fold-const.c (fold_comparison): When folding
36140 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
36141 the sign of the remaining constant operand stays the same.
36143 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36145 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36146 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36147 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36149 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36150 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36151 (m32bit-doubles) Likewise.
36152 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36153 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36156 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36158 * configure.ac ($gcc_cv_ld_clearcap): New test.
36159 * configure: Regenerate.
36160 * config.in: Regenerate.
36161 * config/sol2.opt (mclear-hwcap): New option.
36162 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36163 * config/sol2-clearcap.map: Moved here from
36164 testsuite/gcc.target/i386/clearcap.map.
36165 * config/sol2-clearcapv2.map: Move here from
36166 gcc.target/i386/clearcapv2.map.
36167 * config/t-sol2 (install): Depend on install-clearcap-map.
36168 (install-clearcap-map): New target.
36169 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36172 2014-05-28 Richard Biener <rguenther@suse.de>
36174 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36175 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36176 ... here and remove the rest.
36177 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36179 2014-05-28 Richard Biener <rguenther@suse.de>
36181 PR tree-optimization/61335
36182 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36183 new range fails, drop to varying.
36185 2014-05-28 Olivier Hainque <hainque@adacore.com>
36187 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36188 (CPP_SPEC): Add entry for -mcpu=8548.
36189 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36190 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36192 2014-05-28 Tom de Vries <tom@codesourcery.com>
36194 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36195 * lra.c (initialize_lra_reg_info_element): Add init of
36196 actual_call_used_reg_set field.
36197 (lra): Call lra_create_live_ranges before lra_inheritance for
36199 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36201 * lra-constraints.c (need_for_call_save_p): Use
36202 actual_call_used_reg_set instead of call_used_reg_set for
36204 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36206 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36207 Tom de Vries <tom@codesourcery.com>
36209 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36211 (@item -fuse-caller-save): New item.
36213 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36214 Tom de Vries <tom@codesourcery.com>
36216 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36217 OPT_fuse_caller_save.
36219 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36220 Tom de Vries <tom@codesourcery.com>
36222 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36223 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36224 get_call_reg_set_usage.
36225 * resource.c (mark_set_resources, mark_target_live_regs): Use
36226 get_call_reg_set_usage.
36227 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36229 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36230 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36231 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36232 * ira-build.c (ira_create_allocno): Init
36233 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36234 (create_cap_allocno, propagate_allocno_info)
36235 (propagate_some_info_from_allocno)
36236 (copy_info_to_removed_store_destinations): Handle
36237 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36238 * ira-costs.c (ira_tune_allocno_costs): Use
36239 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36241 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36242 Tom de Vries <tom@codesourcery.com>
36244 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36245 and function_used_regs_valid fields.
36246 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36247 find_all_hard_reg_sets.
36248 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36249 (get_call_reg_set_usage): New function.
36250 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36251 * regs.h (get_call_reg_set_usage): Declare.
36253 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36256 * config/dbx.h (License): Add Runtime Library Exception.
36257 * config/newlib-stdint.h (License): Same.
36258 * config/rtems.h (License): Same
36259 * config/initfini-array.h (License): Same
36260 * config/v850/v850.h (License): Same.
36261 * config/v850/v850-opts.h (License): Same
36262 * config/v850/rtems.h (License): Same.
36264 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36267 * doc/extend.texi (Local Labels): Note that label differences are
36268 not supported for AVR.
36270 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36271 Olivier Hainque <hainque@adacore.com>
36273 * rtl.h (set_for_reg_notes): Declare.
36274 * emit-rtl.c (set_for_reg_notes): New function.
36275 (set_unique_reg_note): Use it.
36276 * optabs.c (add_equal_note): Likewise
36278 2014-05-27 Andrew Pinski <apinski@cavium.com>
36280 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36281 Use <w> for the register in assembly template.
36282 (stack_protect_test): Use the mode of operands[0] for the result.
36283 (stack_protect_test_<mode>): Use <w> for the register
36284 in assembly template.
36286 2014-05-27 DJ Delorie <dj@redhat.com>
36288 * config/rx/rx.c (add_vector_labels): New.
36289 (rx_output_function_prologue): Call it.
36290 (rx_handle_func_attribute): Don't require empty arguments.
36291 (rx_handle_vector_attribute): New.
36292 (rx_attribute_table): Add "vector" attribute.
36293 * doc/extend.texi (interrupt, vector): Document new/changed
36294 RX-specific attributes.
36296 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36298 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36300 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36301 predicate to detect a negative quotient.
36303 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36305 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36306 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36307 Add X - Y CMP 0 to X CMP Y transformation.
36308 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36310 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36312 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36315 2014-05-27 Steve Ellcey <sellcey@mips.com>
36317 * config/mips/mips.c: Add include of cgraph.h.
36319 2014-05-27 Richard Biener <rguenther@suse.de>
36321 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36323 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36326 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36327 * config/arm/arm-cores.def (License): Same.
36328 * config/arm/arm-opts.h (License): Same.
36329 * config/arm/aout.h (License): Same.
36330 * config/arm/bpabi.h (License): Same.
36331 * config/arm/elf.h (License): Same.
36332 * config/arm/linux-elf.h (License): Same.
36333 * config/arm/linux-gas.h (License): Same.
36334 * config/arm/netbsd-elf.h (License): Same.
36335 * config/arm/uclinux-eabi.h (License): Same.
36336 * config/arm/uclinux-elf.h (License): Same.
36337 * config/arm/vxworks.h (License): Same.
36339 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36341 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36342 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36343 (arm_init_neon_builtins): Handle NEON_BSWAP.
36344 Define required type nodes.
36345 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36346 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36347 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36348 * config/arm/iterators.md (VDQHSD): New mode iterator.
36350 2014-05-27 Richard Biener <rguenther@suse.de>
36352 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36353 Try using literal operands when comparing value-ranges failed.
36355 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36357 * ira.c (commutative_operand): Adjust for change to recog_data.
36358 [Missing from previous commit.]
36360 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36362 * system.h (TEST_BIT): New macro.
36363 * recog.h (alternative_mask): New type.
36364 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36365 (recog_data_d): Replace alternative_enabled_p array with
36366 enabled_alternatives.
36367 (target_recog): New structure.
36368 (default_target_recog, this_target_recog): Declare.
36369 (get_enabled_alternatives, recog_init): Likewise.
36370 * recog.c (default_target_recog, this_target_recog): New variables.
36371 (get_enabled_alternatives): New function.
36372 (extract_insn): Use it.
36373 (recog_init): New function.
36374 (preprocess_constraints, constrain_operands): Adjust for change to
36376 * postreload.c (reload_cse_simplify_operands): Likewise.
36377 * reload.c (find_reloads): Likewise.
36378 * ira-costs.c (record_reg_classes): Likewise.
36379 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36380 all alternatives after a disabled one would be skipped.
36381 (ira_implicitly_set_insn_hard_regs): Likewise.
36382 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36383 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36384 with enabled_alternatives.
36385 * lra.c (free_insn_recog_data): Update accordingly.
36386 (lra_update_insn_recog_data): Likewise.
36387 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36388 * lra-constraints.c (process_alt_operands): Likewise. Handle
36389 only_alternative as part of the enabled mask.
36390 * target-globals.h (this_target_recog): Declare.
36391 (target_globals): Add a recog field.
36392 (restore_target_globals): Restore this_target_recog.
36393 * target-globals.c: Include recog.h.
36394 (default_target_globals): Initialize recog field.
36395 (save_target_globals): Likewise.
36396 * reginfo.c (reinit_regs): Call recog_init.
36397 * toplev.c (backend_init_target): Likewise.
36399 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36401 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36402 rather than any named insn's code.
36404 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36407 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36408 * config/arm/arm-cores.def (License): Same.
36410 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36412 * tree.h (decl_comdat_group): Declare.
36413 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36414 * tree.c (decl_comdat_group): Here.
36416 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36418 PR rtl-optimization/61222
36419 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36420 the shift, truncate the PLUS operand to the result mode.
36422 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36425 * config/i386/i386.c (ix86_rtx_costs)
36426 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36429 2014-05-26 Martin Jambor <mjambor@suse.cz>
36431 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36434 2014-05-26 Richard Biener <rguenther@suse.de>
36436 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36437 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36438 Provide specializations.
36439 (wi::int_traits <HOST_WIDE_INT>,
36440 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36442 2014-05-26 Alan Modra <amodra@gmail.com>
36445 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36446 params and return a bool. Remove dead code. Update comment.
36447 Assert we have a const_int source. Remove bogus code from
36448 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36449 handling of constants > 2G and reg_equal note, from..
36450 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36451 return value. Update comment. If we can, use a new pseudo
36452 for intermediate calculations.
36453 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36455 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36456 call to rs6000_emit_set_const in splitter.
36457 (movdi_internal64+2, +3): Likewise.
36459 2014-05-26 Richard Biener <rguenther@suse.de>
36461 * system.h: Define __STDC_FORMAT_MACROS before
36462 including inttypes.h.
36463 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36464 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36465 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36466 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36467 HOST_WIDEST_INT_C): Remove.
36468 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36469 if C99 inttypes.h is not available.
36470 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36471 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36472 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36473 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36474 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36475 (struct output_info): Likewise.
36476 (print_statistics): Adjust.
36477 (dump_bitmap_statistics): Likewise.
36478 * bt-load.c (migrate_btr_defs): Print with PRId64.
36479 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36480 (MAX_SAFE_MULTIPLIER): Adjust.
36481 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36482 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36483 dump_cgraph_node): Likewise.
36484 * final.c (dump_basic_block_info): Likewise.
36485 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36486 * gcov.c (format_gcov): Likewise.
36487 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36489 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36490 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36491 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36492 Use PRId64 for dumping.
36493 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36494 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36495 (add_allocno_hard_regs): Adjust.
36496 * loop-doloop.c (doloop_modify): Print using PRId64.
36497 * loop-iv.c (inverse): Compute in uint64_t.
36498 (determine_max_iter, iv_number_of_iterations): Likewise.
36499 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36500 Print using PRId64.
36501 * lto-streamer-out.c (write_symbol): Use uint64_t.
36502 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36503 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36504 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36505 * modulo-sched.c (const_iteration_count): Use int64_t.
36506 (sms_schedule): Dump using PRId64.
36507 * predict.c (dump_prediction): Likewise.
36508 * pretty-print.h (pp_widest_integer): Remove.
36509 * profile.c (get_working_sets, is_edge_inconsistent,
36510 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36511 * tree-pretty-print.c (pp_double_int): Remove case handling
36512 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36513 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36515 (pass_optimize_bswap::execute): Remove restriction on hosts.
36516 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36517 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36518 * tree.c (widest_int_cst_value): Remove.
36519 * tree.h (widest_int_cst_value): Likewise.
36520 * value-prof.c (dump_histogram_value): Print using PRId64.
36521 * gengtype.c (main): Also inject int64_t.
36522 * ggc-page.c (struct max_alignment): Use int64_t.
36523 * alloc-pool.c (struct allocation_object_def): Likewise.
36524 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36526 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36527 * doc/tm.texi: Regenerated.
36528 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36529 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36530 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36531 mmix_output_register_setting): Use [u]int64_t in prototypes.
36532 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36533 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36534 mmix_output_octa, mmix_output_shifted_value): Adjust.
36535 (mmix_intval): Adjust. Remove unreachable case.
36536 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36538 2014-05-26 Richard Biener <rguenther@suse.de>
36540 * configure.ac: Drop __int64 type check. Insist that we
36541 found uint64_t and int64_t.
36542 * hwint.h (HOST_BITS_PER___INT64): Remove.
36543 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36544 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36545 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36546 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36547 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36548 for dst_q_src_df_rms_cdt.
36549 * configure: Regenerate.
36550 * config.in: Likewise.
36552 2014-05-26 Michael Tautschnig <mt@debian.org>
36555 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36556 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36558 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36560 PR rtl-optimization/61278
36561 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36563 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36565 PR rtl-optimization/61220
36566 Part of PR rtl-optimization/61225
36567 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36568 insn; skip split_edge for a block with only one successor.
36570 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36572 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36575 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36577 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36578 (update_vtable_references): New function.
36579 (function_and_variable_visibility): Rewrite also vtable initializers.
36580 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36582 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36584 * ggc.h (ggc_grow): New function.
36585 * ggc-none.c (ggc_grow): New function.
36586 * ggc-page.c (ggc_grow): Likewise.
36588 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36590 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36591 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36592 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36593 varpool_externally_visible_p, can_replace_by_local_alias,
36594 update_visibility_by_resolution_info, function_and_variable_visibility,
36595 pass_data_ipa_function_and_variable_visibility,
36596 make_pass_ipa_function_and_variable_visibility,
36597 whole_program_function_and_variable_visibility,
36598 pass_data_ipa_whole_program_visibility,
36599 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36600 * cgraph.h (cgraph_local_node_p): Declare.
36601 * ipa-visibility.c: New file.
36602 * Makefile.in (OBJS): Add ipa-visiblity.o
36604 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36606 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36607 that var decl is available.
36609 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36611 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36612 symtab_node pointer.
36613 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36614 (find_decls_types_r): Do not walk COMDAT_GROUP.
36615 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36616 * varasm.c (make_decl_one_only): Use set_comdat_group;
36617 create node if needed.
36618 * ipa-inline-transform.c (save_inline_function_body): Update
36619 way we decl->symtab mapping.
36620 * symtab.c (symtab_hash, hash_node, eq_node
36621 symtab_insert_node_to_hashtable): Remove.
36622 (symtab_register_node): Update.
36623 (symtab_unregister_node): Update.
36624 (symtab_get_node): Reimplement as inline function.
36625 (symtab_add_to_same_comdat_group): Update.
36626 (symtab_dissolve_same_comdat_group_list): Update.
36627 (dump_symtab_base): Update.
36628 (verify_symtab_base): Update.
36629 (symtab_make_decl_local): Update.
36630 (fixup_same_cpp_alias_visibility): Update.
36631 (symtab_nonoverwritable_alias): Update.
36632 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36633 * ipa.c (update_visibility_by_resolution_info): UPdate.
36634 * bb-reorder.c: Include cgraph.h
36635 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36636 with comdat groups.
36637 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36638 * cgraph.c (cgraph_get_create_node): Update.
36639 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36641 (symtab_get_node): Make inline.
36642 (symtab_insert_node_to_hashtable): Remove.
36643 (symtab_can_be_discarded): Update.
36644 (decl_comdat_group): New function.
36645 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36647 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36649 (read_comdat_group): New function.
36650 (input_node, input_varpool_node): Use it.
36651 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36653 * mips.c (mips_start_unique_function): Likewise.
36654 (ix86_code_end): Likewise.
36655 (rs6000_code_end): Likweise.
36656 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36658 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36660 * gengtype-state.c (fatal_reading_state): Bring offline.
36661 * optabs.c (widening_optab_handler): Bring offline.
36662 * optabs.h (widening_optab_handler): Likewise.
36663 * final.c (get_attr_length_1): Likewise.
36665 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36667 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36669 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36671 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36672 (ppc440-compare): Include shift with dot.
36673 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36674 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36676 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36678 (e6500_sfx2): Include it.
36679 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36680 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36681 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36682 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36683 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36684 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36685 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36686 *lshiftrt_internal1le, *lshiftrt_internal1be,
36687 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36688 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36689 *rotldi3_internal10le, *rotldi3_internal10be,
36690 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36691 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36692 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36693 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36694 define_insns): Use type "shift" in the appropriate alternatives.
36696 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36698 * config/rs6000/rs6000.md (type): Add "logical". Delete
36700 (dot): Adjust comment.
36701 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36702 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36703 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36704 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36705 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36706 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36707 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36708 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36710 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36711 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36712 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36713 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36714 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36715 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36716 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36717 * config/rs6000/8540.md (ppc8540_su): Adjust.
36718 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36719 cell-cmp-microcoded): Adjust.
36720 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36721 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36722 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36723 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36724 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36725 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36726 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36727 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36728 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36730 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36731 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36732 Adjust. Adjust comment.
36733 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36734 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36736 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36738 * config/rs6000/rs6000.md (type): Add "add".
36739 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36740 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36741 define_insns): Use it.
36742 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36744 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36745 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36746 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36747 * config/rs6000/601.md (ppc601-integer): Adjust.
36748 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36749 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36750 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36751 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36752 * config/rs6000/8540.md (ppc8540_su): Adjust.
36753 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36754 cell-cmp-microcoded): Adjust.
36755 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36756 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36757 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36758 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36759 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36760 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36761 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36762 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36763 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36765 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36766 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36767 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36768 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36770 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36772 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36773 "delayed_compare", "var_delayed_compare".
36774 (var_shift): New attribute.
36775 (cell_micro): Adjust.
36776 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36777 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36778 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36779 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36780 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36781 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36782 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36783 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36784 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36785 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36786 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36787 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36788 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36789 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36790 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36791 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36792 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36793 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36794 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36795 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36796 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36797 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36798 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36799 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36800 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36802 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36803 * config/rs6000/440.md (ppc440-integer): Adjust.
36804 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36805 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36806 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36807 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36808 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36809 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36810 * config/rs6000/8540.md (ppc8540_su): Adjust.
36811 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36812 cell-cmp-microcoded): Adjust.
36813 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36814 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36815 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36816 e500mc64_delayed): Adjust.
36817 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36818 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36819 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36820 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36821 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36822 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36823 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36824 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36825 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36827 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36828 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36830 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36832 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36833 (bits): New mode_attr.
36834 (idiv_ldiv): Delete mode_attr.
36835 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36836 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36837 rs6000_adjust_priority, is_nonpipeline_insn,
36838 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36840 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36841 * config/rs6000/440.md (ppc440-idiv): Adjust.
36842 * config/rs6000/476.md (ppc476-idiv): Adjust.
36843 * config/rs6000/601.md (ppc601-idiv): Adjust.
36844 * config/rs6000/603.md (ppc603-idiv): Adjust.
36845 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
36846 ppc620-ldiv): Adjust.
36847 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
36848 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
36849 * config/rs6000/8540.md (ppc8540_divide): Adjust.
36850 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
36851 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
36852 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
36853 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
36854 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
36855 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
36856 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
36857 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
36858 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
36859 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
36860 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
36861 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
36862 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
36863 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
36864 * config/rs6000/titan.md (titan_fxu_div): Adjust.
36866 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36868 * config/rs6000/rs6000.md (type): Delete "insert_word",
36869 "insert_dword". Add "insert".
36870 (size): Update comment.
36871 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36872 insn_must_be_first_in_group): Adjust.
36873 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
36874 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
36875 *insvsi_internal6, insvdi_internal): Adjust.
36877 * config/rs6000/40x.md (ppc403-integer): Adjust.
36878 * config/rs6000/440.md (ppc440-integer): Adjust.
36879 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
36880 * config/rs6000/601.md (ppc601-integer): Adjust.
36881 * config/rs6000/603.md (ppc603-integer): Adjust.
36882 * config/rs6000/6xx.md (ppc604-integer): Adjust.
36883 * config/rs6000/7450.md (ppc7450-integer): Adjust.
36884 * config/rs6000/7xx.md (ppc750-integer): Adjust.
36885 * config/rs6000/8540.md (ppc8540_su): Adjust.
36886 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
36887 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
36888 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36889 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
36890 * config/rs6000/e5500.md (e5500_sfx): Adjust.
36891 * config/rs6000/e6500.md (e6500_sfx): Adjust.
36892 * config/rs6000/mpc.md (mpccore-integer): Adjust.
36893 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
36894 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
36895 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
36896 * config/rs6000/power7.md (power7-integer): Adjust.
36897 * config/rs6000/power8.md (power8-1cyc): Adjust.
36898 * config/rs6000/rs64.md (rs64a-integer): Adjust.
36899 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36901 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36903 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
36904 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
36905 (size): New attribute.
36906 (dot): New attribute.
36907 (cell_micro): Adjust.
36908 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
36909 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
36910 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
36911 umuldi3_highpart): Adjust.
36912 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36913 rs6000_adjust_priority, is_nonpipeline_insn,
36914 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36916 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
36917 ppc405-imul3): Adjust.
36918 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
36919 * config/rs6000/476.md (ppc476-imul): Adjust.
36920 * config/rs6000/601.md (ppc601-imul): Adjust.
36921 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
36922 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
36923 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
36924 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
36925 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
36927 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
36928 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
36929 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
36930 cell-imul): Adjust.
36931 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
36932 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
36933 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
36934 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
36935 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
36936 * config/rs6000/mpc.md (mpccore-imul): Adjust.
36937 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
36938 power4-lmul, power4-imul, power4-imul3): Adjust.
36939 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
36940 power5-lmul, power5-imul, power5-imul3): Adjust.
36941 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
36942 power6-lmul, power6-imul, power6-imul3): Adjust.
36943 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
36944 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
36946 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
36947 rs64a-lmul): Adjust.
36948 * config/rs6000/titan.md (titan_imul): Adjust.
36950 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36952 * config/rs6000/rs6000.md (type): Add new value "halfmul".
36953 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
36954 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
36955 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
36956 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
36957 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
36958 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
36959 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
36960 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
36961 * config/rs6000/titan.md: Delete nonsensical comment.
36962 (titan_imul): Add type imul3.
36963 (titan_mulhw): Remove type imul3; add type halfmul.
36965 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36967 * config/rs6000/rs6000.md (type): Reorder, reformat.
36969 2014-05-23 Martin Jambor <mjambor@suse.cz>
36971 PR tree-optimization/53787
36972 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
36973 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
36974 analysis_done, update all uses.
36975 * ipa-prop.c: Include domwalk.h
36976 (param_analysis_info): Removed.
36977 (param_aa_status): New type.
36978 (ipa_bb_info): Likewise.
36979 (func_body_info): Likewise.
36980 (ipa_get_bb_info): New function.
36981 (aa_overwalked): Likewise.
36982 (find_dominating_aa_status): Likewise.
36983 (parm_bb_aa_status_for_bb): Likewise.
36984 (parm_preserved_before_stmt_p): Changed to use new param AA info.
36985 (load_from_unmodified_param): Accept func_body_info as a parameter
36986 instead of parms_ainfo.
36987 (parm_ref_data_preserved_p): Changed to use new param AA info.
36988 (parm_ref_data_pass_through_p): Likewise.
36989 (ipa_load_from_parm_agg_1): Likewise. Update callers.
36990 (compute_complex_assign_jump_func): Changed to use new param AA info.
36991 (compute_complex_ancestor_jump_func): Likewise.
36992 (ipa_compute_jump_functions_for_edge): Likewise.
36993 (ipa_compute_jump_functions): Removed.
36994 (ipa_compute_jump_functions_for_bb): New function.
36995 (ipa_analyze_indirect_call_uses): Likewise, moved variable
36997 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
36998 and info, moved variable declarations down.
36999 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
37001 (ipa_analyze_stmt_uses): Likewise.
37002 (ipa_analyze_params_uses): Removed.
37003 (ipa_analyze_params_uses_in_bb): New function.
37004 (ipa_analyze_controlled_uses): Likewise.
37005 (free_ipa_bb_info): Likewise.
37006 (analysis_dom_walker): New class.
37007 (ipa_analyze_node): Handle node-specific forbidden analysis,
37008 initialize and free func_body_info, use dominator walker.
37009 (ipcp_modif_dom_walker): New class.
37010 (ipcp_transform_function): Create and free func_body_info, use
37011 ipcp_modif_dom_walker, moved a lot of functionality there.
37013 2014-05-23 Marek Polacek <polacek@redhat.com>
37014 Jakub Jelinek <jakub@redhat.com>
37016 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
37017 * gcc.c (sanitize_spec_function): Likewise.
37018 * convert.c (convert_to_integer): Include "ubsan.h". Add
37019 floating-point to integer instrumentation.
37020 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
37021 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
37022 SANITIZE_NONDEFAULT.
37023 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
37024 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
37025 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
37026 * ubsan.c: Include "realmpfr.h" and "dfp.h".
37027 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
37028 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
37029 float/double/long double.
37030 (ubsan_instrument_float_cast): New function.
37031 * ubsan.h (ubsan_instrument_float_cast): Declare.
37033 2014-05-23 Jiong Wang <jiong.wang@arm.com>
37035 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
37037 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
37038 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
37039 Adjust for tailcalling through registers.
37040 * config/aarch64/aarch64.h (enum reg_class): New caller save
37042 (REG_CLASS_NAMES): Likewise.
37043 (REG_CLASS_CONTENTS): Likewise.
37044 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
37045 Allow tailcalling without decls.
37047 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37049 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37050 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
37052 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
37053 gsi, and variables v_* to v*.
37055 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
37057 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
37059 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37061 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
37062 * omp-low.c: Update accordingly.
37064 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
37065 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
37066 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
37067 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
37068 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
37069 GF_OMP_TARGET_KIND_UPDATE.
37071 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37072 Explicitly enumerate the expected region types.
37074 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
37077 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
37078 documentation; the old documentation didn't clearly state the
37079 constraints on the contents of the pointed-to storage.
37081 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37083 Fix bootstrap error on ia64
37084 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
37085 Return default value.
37087 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
37089 PR tree-optimization/54733
37090 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
37092 (find_bswap_or_nop_load): New.
37093 (find_bswap_1): Renamed to ...
37094 (find_bswap_or_nop_1): This. Also add support for memory source.
37095 (find_bswap): Renamed to ...
37096 (find_bswap_or_nop): This. Also add support for memory source and
37097 detection of bitwise operations equivalent to load in target
37099 (execute_optimize_bswap): Likewise. Also move its leading comment back
37100 in place and split statement transformation into ...
37101 (bswap_replace): This.
37103 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37105 PR rtl-optimization/61215
37106 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
37107 simplify_gen_subreg until final substitution.
37109 2014-05-23 Alan Modra <amodra@gmail.com>
37112 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
37113 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
37114 Use "Y" constraint rather than "m".
37116 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
37118 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
37120 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
37121 New function declaration.
37122 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
37123 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
37124 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
37125 (aarch64_init_builtins) : Initialize builtins
37126 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37127 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37128 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
37129 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
37130 and __builtins_aarch64_set_fpsr.
37131 (aarch64_atomic_assign_expand_fenv): New function.
37132 * config/aarch64/aarch64.md (set_fpcr): New pattern.
37133 (get_fpcr) : Likewise.
37134 (set_fpsr) : Likewise.
37135 (get_fpsr) : Likewise.
37136 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
37137 and UNSPECV_SET_FPSR.
37138 * doc/extend.texi (AARCH64 Built-in Functions) : Document
37139 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37140 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37142 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37144 PR rtl-optimization/60969
37145 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37146 constraints. Set up mem cost for NO_REGS case.
37148 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37150 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37152 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37154 * config/darwin.c: Include "lto-section-names.h".
37155 (LTO_SEGMENT_NAME): Don't define.
37156 * config/i386/winnt.c: Include "lto-section-names.h".
37157 * lto-streamer.c: Include "lto-section-names.h".
37158 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37159 * lto-wrapper.c: Include "lto-section-names.h".
37160 (LTO_SECTION_NAME_PREFIX): Don't define.
37161 * lto-section-names.h: New file.
37162 * cgraphunit.c: Include "lto-section-names.h".
37164 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37166 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37168 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37171 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37173 2014-05-22 Nick Clifton <nickc@redhat.com>
37175 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37177 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37179 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37180 -> (T)A transformation to integer types.
37182 2014-05-22 Teresa Johnson <tejohnson@google.com>
37184 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37185 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37186 (gcov_rewrite): Use gcov_nonruntime_assert.
37187 (gcov_open): Ditto.
37188 (gcov_write_words): Ditto.
37189 (gcov_write_length): Ditto.
37190 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37191 gcc_assert from IN_LIBGCOV code.
37192 (gcov_read_summary): Use gcov_error to flag profile corruption.
37193 (gcov_sync): Use gcov_nonruntime_assert.
37194 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37195 (gcov_histo_index): Use gcov_nonruntime_assert.
37196 (static void gcov_histogram_merge): Ditto.
37197 (compute_working_sets): Ditto.
37198 * gcov-io.h (gcov_nonruntime_assert): Define.
37199 (gcov_error): Define for !IN_LIBGCOV
37201 2014-05-22 Richard Biener <rguenther@suse.de>
37203 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37204 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37205 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37206 and deallocation site.
37207 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37208 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37209 passing through the incoming points-to set.
37210 (handle_lhs_call): Use flags argument instead of recomputing it.
37211 (find_func_aliases_for_call): Call handle_lhs_call with proper
37214 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37216 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37217 all padding bits in REAL_VALUE_TYPE are cleared.
37219 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37221 Cleanup and improve multipass_dfa_lookahead_guard
37222 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37223 (core2i7_first_cycle_multipass_begin,)
37224 (core2i7_first_cycle_multipass_issue,)
37225 (core2i7_first_cycle_multipass_backtrack): Update signature.
37226 * config/ia64/ia64.c
37227 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37228 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37229 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37231 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37232 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37234 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37236 * doc/tm.texi: Regenerate.
37238 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37239 * haifa-sched.c (ready_try): Make signed to allow negative values.
37240 (rebug_ready_list_1): Update.
37241 (choose_ready): Simplify.
37242 (sched_extend_ready_list): Update.
37244 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37246 Remove IA64 speculation tweaking flags
37247 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37248 speculation tuning flags.
37249 (msched-prefer-non-data-spec-insns,)
37250 (msched-prefer-non-control-spec-insns): Obsolete options.
37251 * haifa-sched.c (choose_ready): Remove handling of
37252 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37253 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37254 and PREFER_NON_DATA_SPEC.
37255 * sel-sched.c (process_spec_exprs): Remove handling of
37256 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37258 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37260 Improve scheduling debug output
37261 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37262 (advance_one_cycle): Update.
37263 (schedule_insn, queue_to_ready): Add debug printouts.
37264 (debug_ready_list_1): New static function.
37265 (debug_ready_list): Update.
37266 (max_issue): Add debug printouts.
37267 (dump_insn_stream): New static function.
37268 (schedule_block): Use it. Also better indent printouts.
37270 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37272 Fix sched_insn debug counter
37273 * haifa-sched.c (schedule_insn): Update.
37274 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37275 (save_backtrack_point, restore_backtrack_point): Update.
37276 (first_nonscheduled_insn): New static function.
37277 (queue_to_ready, choose_ready): Use it.
37278 (schedule_block): Init nonscheduled_insns_begin.
37279 (sched_emit_insn): Update.
37282 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37284 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37286 (aarch64_secondary_reload) : LikeWise.
37287 (aarch64_class_max_nregs) : Remove CORE_REGS.
37288 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37289 (REG_CLASS_NAMES) : Likewise.
37290 (REG_CLASS_CONTENTS) : LikeWise.
37291 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37293 2014-05-21 Guozhi Wei <carrot@google.com>
37296 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37298 (vqdmulhq_n_s16): Likewise.
37300 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37302 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37304 2014-05-21 Marek Polacek <polacek@redhat.com>
37307 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37309 2014-05-21 Martin Jambor <mjambor@suse.cz>
37311 * doc/invoke.texi (Optimize Options): Document parameters
37312 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37313 ipa-cp-array-index-hint-bonus.
37315 2014-05-21 Mark Wielaard <mjw@redhat.com>
37318 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37319 version >= 3 or not strict DWARF.
37320 * langhooks.h (struct lang_hooks_for_types): Add
37321 enum_underlying_base_type.
37322 * langhooks.c (lhd_enum_underlying_base_type): New function.
37323 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37324 enum_underlying_base_type.
37325 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37326 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37327 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37329 2014-05-21 Richard Biener <rguenther@suse.de>
37331 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37333 2014-05-21 John Marino <gnugcc@marino.st>
37335 * config.gcc (*-*-dragonfly*): New target.
37336 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37337 * configure: Regenerate.
37338 * config/dragonfly-stdint.h: New.
37339 * config/dragonfly.h: New.
37340 * config/dragonfly.opt: New.
37341 * config/i386/dragonfly.h: New.
37342 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37344 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37346 * tree.def (VOID_CST): New.
37347 * tree-core.h (TI_VOID): New.
37348 * tree.h (void_node): New.
37349 * tree.c (tree_node_structure_for_code, tree_code_size)
37350 (iterative_hash_expr): Handle VOID_CST.
37351 (build_common_tree_nodes): Initialize void_node.
37353 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37355 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37357 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37359 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37362 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37363 flag_reorder_blocks_and_partition.
37364 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37366 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37369 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37371 (*addc_r_t): Add new insn_and_split.
37373 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37375 PR middle-end/61252
37376 * omp-low.c (handle_simd_reference): New function.
37377 (lower_rec_input_clauses): Use it. Defer adding reference
37378 initialization even for reduction without placeholder if in simd,
37379 handle it properly later on.
37381 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37383 PR tree-optimization/60899
37384 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37385 assume all static symbols will have definition wile parsing and
37386 check the do have definition later in compilation; check that
37387 variable referring symbol will be output before concluding that
37388 reference is safe; be conservative for referring local statics;
37389 be more precise about when comdat is output in other partition.
37391 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37394 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37396 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37397 (ipa_inline): Loop inline_to_all_callers until no more aliases
37400 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37402 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37403 set writeonly flag only for vars actually written to.
37405 2014-05-20 Dehao Chen <dehao@google.com>
37407 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37408 and callee count to get clone count.
37409 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37410 count in copy_body.
37412 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37414 PR rtl-optimization/61243
37415 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37417 2014-05-20 Xinliang David Li <davidxl@google.com>
37419 * cgraphunit.c (walk_polymorphic_call_targets): Add
37420 dbgcnt and fopt-info support.
37421 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37422 * ipa-devirt.c (ipa_devirt): Ditto.
37423 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37424 * ipa.c (walk_polymorphic_call_targets): Ditto.
37425 * gimple-fold.c (fold_gimple_assign): Ditto.
37426 (gimple_fold_call): Ditto.
37427 * dbgcnt.def: New counter.
37429 2014-05-20 DJ Delorie <dj@redhat.com>
37431 * config/msp430/msp430.md (split): Don't allow subregs when
37432 splitting SImode adds.
37433 (andneghi): Fix subtraction logic.
37434 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37436 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37438 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37440 * except.c (switch_to_exception_section, resolve_unique_section,
37441 get_named_text_section, default_function_rodata_section,
37442 align_variable, get_block_for_decl, default_section_type_flags):
37443 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37444 * symtab.c (symtab_add_to_same_comdat_group,
37445 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37446 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37448 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37449 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37450 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37451 (c6x_function_in_section_p): Likewise.
37452 * config/darwin.c (machopic_select_section): Likewise.
37453 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37454 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37455 * config/mep/mep.c (mep_select_section): LIkewise.
37456 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37458 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37460 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37461 EH region of calls to pure functions that can throw an exception.
37462 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37463 (copy_reference_ops_from_call): Also copy the EH region of the call if
37464 it can throw an exception.
37466 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37468 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37469 nested VEC_SELECTs that are inverses of each other.
37471 2014-05-20 Richard Biener <rguenther@suse.de>
37473 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37474 (extract_and_process_scc_for_name): not here.
37475 (cond_dom_walker::before_dom_children): Only process
37476 stmts that end the BB in interesting ways.
37477 (run_scc_vn): Mark param uses as visited.
37479 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37481 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37484 2014-05-20 Nick Clifton <nickc@redhat.com>
37486 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37487 (msp430_gimplify_va_arg_expr): New function.
37488 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37490 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37491 operand 0 in order to prevent confusion about the number of
37492 registers involved.
37494 2014-05-20 Richard Biener <rguenther@suse.de>
37496 PR tree-optimization/61221
37497 * tree-ssa-pre.c (el_to_update): Remove.
37498 (eliminate_dom_walker::before_dom_children): Handle released
37499 VDEFs by value-numbering them to the associated VUSE. Update
37500 stmt immediately for substituted call address.
37501 (eliminate): Remove delayed stmt updating code.
37502 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37503 possibly late re-numbered vuses.
37504 (vn_reference_lookup_2): Adjust.
37505 (vn_reference_lookup_pieces): Likewise.
37506 (vn_reference_lookup): Likewise.
37508 2014-05-20 Richard Biener <rguenther@suse.de>
37510 * config.gcc: Remove need_64bit_hwint.
37511 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37512 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37514 * config.in: Regenerate.
37515 * configure: Likewise.
37517 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37519 * doc/extend.texi: Create Label Attributes section,
37520 move all label attributes into it and reference it.
37522 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37524 * arm.c (thumb1_reorg): When scanning backwards skip anything
37525 that's not a proper insn.
37527 2014-05-19 Richard Biener <rguenther@suse.de>
37529 PR tree-optimization/61221
37530 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37531 Do nothing for unreachable blocks.
37532 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37533 Improve unreachability detection.
37535 2014-05-19 Richard Biener <rguenther@suse.de>
37537 PR tree-optimization/61209
37538 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37540 2014-05-19 Nick Clifton <nickc@redhat.com>
37542 * except.c (init_eh): Fix computation of builtin setjmp buffer
37543 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37545 2014-05-19 Richard Biener <rguenther@suse.de>
37547 PR tree-optimization/61184
37548 * tree-vrp.c (is_negative_overflow_infinity): Use
37549 TREE_OVERFLOW_P and do that check first.
37550 (is_positive_overflow_infinity): Likewise.
37551 (is_overflow_infinity): Likewise.
37552 (vrp_operand_equal_p): Properly treat operands with
37553 differing overflow as not equal.
37555 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37557 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37558 shift simplification where it was intended.
37560 2014-05-19 Christian Bruel <christian.bruel@st.com>
37563 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37565 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37568 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37571 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37573 * reg-notes.def (CROSSING_JUMP): Likewise.
37574 * rtl.h (rtx_def): Update comment for jump flag.
37575 (CROSSING_JUMP_P): Define.
37576 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37577 of a REG_CROSSING_JUMP note.
37578 * cfghooks.c (tidy_fallthru_edges): Likewise.
37579 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37580 * emit-rtl.c (try_split): Likewise.
37581 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37582 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37583 * jump.c (redirect_jump_2): Likewise.
37584 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37585 (relax_delay_slots): Likewise.
37586 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37587 (bbit_di): Likewise.
37588 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37589 * config/sh/sh.md (jump_compact): Likewise.
37590 * bb-reorder.c (rotate_loop): Likewise.
37591 (pass_duplicate_computed_gotos::execute): Likewise.
37592 (add_reg_crossing_jump_notes): Rename to...
37593 (update_crossing_jump_flags): ...this.
37594 (pass_partition_blocks::execute): Update accordingly.
37596 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37598 * tree.h: Remove extraneous template <>.
37600 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37602 * ipa.c (symtab_remove_unreachable_nodes): Remove
37603 symbol from comdat group if its body was eliminated.
37604 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37605 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37606 (symtab_unregister_node): ... this one.
37607 (verify_symtab_base): More strict checking of comdats.
37608 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37610 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37612 * tree-pass.h (make_pass_ipa_comdats): New pass.
37613 * timevar.def (TV_IPA_COMDATS): New timevar.
37614 * passes.def (pass_ipa_comdats): Add.
37615 * Makefile.in (OBJS): Add ipa-comdats.o
37616 * ipa-comdats.c: New file.
37618 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37620 * ipa.c (update_visibility_by_resolution_info): New function.
37621 (function_and_variable_visibility): Use it.
37623 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37625 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37627 (FOR_EACH_DEFINED_SYMBOL): New macro.
37628 (varpool_first_static_initializer, varpool_next_static_initializer,
37629 varpool_first_defined_variable, varpool_next_defined_variable):
37631 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37633 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37635 * ggc-page.c (ggc_handle_finalizers): Add comment.
37637 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37639 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37640 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37641 (ggc_internal_cleared_alloc): Likewise.
37642 * ggc-page.c (finalizer): New class.
37643 (vec_finalizer): Likewise.
37644 (globals::finalizers): New member.
37645 (globals::vec_finalizers): Likewise.
37646 (ggc_internal_alloc): Record the finalizer if any for the block being
37648 (ggc_handle_finalizers): New function.
37649 (ggc_collect): Call ggc_handle_finalizers.
37650 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37652 (ggc_internal_cleared_alloc): Likewise.
37653 (finalize): New function.
37654 (need_finalization_p): Likewise.
37655 (ggc_alloc): Install the type's destructor as the finalizer if it
37656 might do something.
37657 (ggc_cleared_alloc): Likewise.
37658 (ggc_vec_alloc): Likewise.
37659 (ggc_cleared_vec_alloc): Likewise.
37661 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37663 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37665 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37667 * alias.c (record_alias_subset): Adjust.
37668 * bitmap.c (bitmap_element_allocate): Likewise.
37669 (bitmap_gc_alloc_stat): Likewise.
37670 * cfg.c (init_flow): Likewise.
37671 (alloc_block): Likewise.
37672 (unchecked_make_edge): Likewise.
37673 * cfgloop.c (alloc_loop): Likewise.
37674 (flow_loops_find): Likewise.
37675 (rescan_loop_exit): Likewise.
37676 * cfgrtl.c (init_rtl_bb_info): Likewise.
37677 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37678 (cgraph_allocate_node): Likewise.
37679 (cgraph_create_edge_1): Likewise.
37680 (cgraph_allocate_init_indirect_info): Likewise.
37681 * cgraphclones.c (cgraph_clone_edge): Likewise.
37682 * cgraphunit.c (add_asm_node): Likewise.
37683 (init_lowered_empty_function): Likewise.
37684 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37685 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37686 (alpha_use_linkage): Likewise.
37687 * config/arc/arc.c (arc_init_machine_status): Likewise.
37688 * config/arm/arm.c (arm_init_machine_status): Likewise.
37689 * config/avr/avr.c (avr_init_machine_status): Likewise.
37690 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37691 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37692 * config/cris/cris.c (cris_init_machine_status): Likewise.
37693 * config/darwin.c (machopic_indirection_name): Likewise.
37694 (darwin_build_constant_cfstring): Likewise.
37695 (darwin_enter_string_into_cfstring_table): Likewise.
37696 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37697 * config/frv/frv.c (frv_init_machine_status): Likewise.
37698 * config/i386/i386.c (get_dllimport_decl): Likewise.
37699 (ix86_init_machine_status): Likewise.
37700 (assign_386_stack_local): Likewise.
37701 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37702 (i386_pe_maybe_record_exported_symbol): Likewise.
37703 (i386_pe_record_stub): Likewise.
37704 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37705 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37706 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37707 (m32c_note_pragma_address): Likewise.
37708 * config/mep/mep.c (mep_init_machine_status): Likewise.
37709 (mep_note_pragma_flag): Likewise.
37710 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37711 (mips16_local_alias): Likewise.
37712 (mips_init_machine_status): Likewise.
37713 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37714 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37715 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37716 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37717 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37718 * config/pa/pa.c (pa_init_machine_status): Likewise.
37719 (pa_get_deferred_plabel): Likewise.
37720 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37721 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37722 (rs6000_init_machine_status): Likewise.
37723 (output_toc): Likewise.
37724 * config/s390/s390.c (s390_init_machine_status): Likewise.
37725 * config/score/score.c (score_output_external): Likewise.
37726 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37727 * config/spu/spu.c (spu_init_machine_status): Likewise.
37728 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37729 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37730 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37731 * coverage.c (coverage_end_function): Likewise.
37732 * dbxout.c (dbxout_init): Likewise.
37733 * doc/gty.texi: Don't mention variable_size attribute.
37734 * dwarf2cfi.c (new_cfi): Adjust.
37735 (new_cfi_row): Likewise.
37736 (copy_cfi_row): Likewise.
37737 (create_cie_data): Likewise.
37738 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37739 (new_loc_descr): Likewise.
37740 (find_AT_string_in_table): Likewise.
37741 (add_addr_table_entry): Likewise.
37742 (new_die): Likewise.
37743 (add_var_loc_to_decl): Likewise.
37744 (clone_die): Likewise.
37745 (clone_as_declaration): Likewise.
37746 (break_out_comdat_types): Likewise.
37747 (new_loc_list): Likewise.
37748 (add_loc_descr_to_each): Likewise.
37749 (add_location_or_const_value_attribute): Likewise.
37750 (add_linkage_name): Likewise.
37751 (lookup_filename): Likewise.
37752 (dwarf2out_var_location): Likewise.
37753 (new_line_info_table): Likewise.
37754 (dwarf2out_init): Likewise.
37755 (mem_loc_descriptor): Likewise.
37756 (loc_descriptor): Likewise.
37757 (add_const_value_attribute): Likewise.
37758 (tree_add_const_value_attribute): Likewise.
37759 (comp_dir_string): Likewise.
37760 (dwarf2out_vms_debug_main_pointer): Likewise.
37761 (string_cst_pool_decl): Likewise.
37762 * emit-rtl.c (set_mem_attrs): Likewise.
37763 (get_reg_attrs): Likewise.
37764 (start_sequence): Likewise.
37765 (init_emit): Likewise.
37766 (init_emit_regs): Likewise.
37767 * except.c (init_eh_for_function): Likewise.
37768 (gen_eh_region): Likewise.
37769 (gen_eh_region_catch): Likewise.
37770 (gen_eh_landing_pad): Likewise.
37771 (add_call_site): Likewise.
37772 * function.c (add_frame_space): Likewise.
37773 (insert_temp_slot_address): Likewise.
37774 (assign_stack_temp_for_type): Likewise.
37775 (get_hard_reg_initial_val): Likewise.
37776 (allocate_struct_function): Likewise.
37777 (prepare_function_start): Likewise.
37778 (types_used_by_var_decl_insert): Likewise.
37779 * gengtype.c (variable_size_p): Remove function.
37780 (enum alloc_quantity): Remove enum.
37781 (write_typed_alloc_def): Remove function.
37782 (write_typed_struct_alloc_def): Likewise.
37783 (write_typed_typedef_alloc_def): Likewise.
37784 (write_typed_alloc_defns): Likewise.
37786 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37787 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37788 * ggc.h (ggc_alloc): new function.
37789 (ggc_cleared_alloc): Likewise.
37790 (ggc_vec_alloc): Template on type of vector element, and remove
37791 element size argument.
37792 (ggc_cleared_vec_alloc): Likewise.
37793 * gimple.c (gimple_build_omp_for): Adjust.
37794 (gimple_copy): Likewise.
37795 * ipa-cp.c (get_replacement_map): Likewise.
37796 (find_aggregate_values_for_callers_subset): Likewise.
37797 (known_aggs_to_agg_replacement_list): Likewise.
37798 * ipa-devirt.c (get_odr_type): Likewise.
37799 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37800 (read_agg_replacement_chain): Likewise.
37801 * loop-iv.c (get_simple_loop_desc): Likewise.
37802 * lto-cgraph.c (input_node_opt_summary): Likewise.
37803 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37804 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37805 (input_eh_region): Likewise.
37806 (input_eh_lp): Likewise.
37807 (input_cfg): Likewise.
37808 * optabs.c (set_optab_libfunc): Likewise.
37809 (init_tree_optimization_optabs): Likewise.
37810 (set_conv_libfunc): Likewise.
37811 * passes.c (do_per_function_toporder): Likewise.
37812 * rtl.h: Don't use variable_size gty attribute.
37813 * sese.c (if_region_set_false_region): Adjust.
37814 * stringpool.c (gt_pch_save_stringpool): Likewise.
37815 * target-globals.c (save_target_globals): Likewise.
37816 * toplev.c (general_init): Likewise.
37817 * trans-mem.c (record_tm_replacement): Likewise.
37818 (split_bb_make_tm_edge): Likewise.
37819 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37820 * tree-data-ref.h (lambda_vector_new): Likewise.
37821 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37822 * tree-iterator.c (tsi_link_before): Likewise.
37823 (tsi_link_after): Likewise.
37824 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37825 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37826 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37827 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37828 * tree-ssa.c (init_tree_ssa): Adjust.
37829 * tree-ssanames.c (set_range_info): Likewise.
37830 (get_ptr_info): Likewise.
37831 (duplicate_ssa_name_ptr_info): Likewise.
37832 (duplicate_ssa_name_range_info): Likewise.
37833 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37834 (unpack_ts_fixed_cst_value_fields): Likewise.
37835 * tree.c (build_fixed): Likewise.
37836 (build_real): Likewise.
37837 (build_string): Likewise.
37838 (decl_priority_info): Likewise.
37839 (decl_debug_expr_insert): Likewise.
37840 (decl_value_expr_insert): Likewise.
37841 (decl_debug_args_insert): Likewise.
37842 (type_hash_add): Likewise.
37843 (build_omp_clause): Likewise.
37844 * ubsan.c (decl_for_type_insert): Likewise.
37845 * varasm.c (get_unnamed_section): Likewise.
37846 (get_noswitch_section): Likewise.
37847 (get_section): Likewise.
37848 (get_block_for_section): Likewise.
37849 (create_block_symbol): Likewise.
37850 (build_constant_desc): Likewise.
37851 (create_constant_pool): Likewise.
37852 (force_const_mem): Likewise.
37853 (record_tm_clone_pair): Likewise.
37854 * varpool.c (varpool_create_empty_node): Likewise.
37856 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37858 * dwarf2out.c (tree_add_const_value_attribute): Call
37859 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
37860 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
37861 instead of ggc_internal_<x>alloc_stat.
37862 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
37863 (ggc_realloc): Likewise.
37864 * ggc-none.c (ggc_internal_alloc): Likewise.
37865 (ggc_internal_cleared_alloc): Likewise.
37866 * ggc-page.c: Likewise.
37867 * ggc.h (ggc_internal_alloc_stat): Likewise.
37868 (ggc_internal_alloc): Remove macro.
37869 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
37870 (ggc_internal_cleared_alloc): Remove macro.
37871 (GGC_RESIZEVEC): Adjust.
37872 (ggc_resizevar): Remove macro.
37873 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
37874 (ggc_internal_cleared_vec_alloc_stat): Likewise.
37875 (ggc_internal_vec_cleared_alloc): Remove macro.
37876 (ggc_alloc_atomic_stat): Drop _stat suffix.
37877 (ggc_alloc_atomic): Remove macro.
37878 (ggc_alloc_cleared_atomic): Remove macro.
37879 (ggc_alloc_string_stat): Drop _stat suffix.
37880 (ggc_alloc_string): Remove macro.
37881 (ggc_alloc_rtx_def_stat): Adjust.
37882 (ggc_alloc_tree_node_stat): Likewise.
37883 (ggc_alloc_cleared_tree_node_stat): Likewise.
37884 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
37885 (ggc_alloc_cleared_simd_clone_stat): Likewise.
37886 * gimple.c (gimple_build_omp_for): Likewise.
37887 (gimple_copy): Likewise.
37888 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
37889 * toplev.c (realloc_for_line_map): Adjust.
37890 * tree-data-ref.h (lambda_vector_new): Likewise.
37891 * tree-phinodes.c (allocate_phi_node): Likewise.
37892 * tree.c (grow_tree_vec_stat): Likewise.
37893 * vec.h (va_gc::reserve): Adjust.
37895 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
37897 * config/microblaze/microblaze.c (break_handler): New Declaration.
37898 (microblaze_break_function_p,microblaze_is_break_handler): New.
37899 (compute_frame_size): Use microblaze_break_function_p.
37900 Add the test of break_handler.
37901 (microblaze_function_prologue) : Add the test of variable
37902 break_handler. Check the fnname by BREAK_HANDLER_NAME.
37903 (microblaze_function_epilogue) : Add the test of break_handler.
37904 (microblaze_globalize_label) : Add the test of break_handler.
37905 Check the name by BREAK_HANDLER_NAME.
37907 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
37909 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
37910 microblaze_is_break_handler test.
37911 (call_internal1,call_value_intern): Use microblaze_break_function_p.
37912 Use SYMBOL_REF_DECL.
37914 * config/microblaze/microblaze-protos.h
37915 (microblaze_break_function_p,microblaze_is_break_handler):
37918 * doc/extend.texi (MicroBlaze break_handler Functions): Document
37919 new MicroBlaze break_handler functions.
37921 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37923 * doc/extend.texi (Size of an asm): Move node text according
37924 to its @menu entry position.
37926 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
37928 PR tree-optimization/61140
37929 PR tree-optimization/61150
37930 PR tree-optimization/61197
37931 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
37933 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37935 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
37937 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
37939 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
37940 __SIZEOF_INT128__ is defined.
37942 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37944 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
37945 (rs6000_delegitimize_address): Use it.
37947 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37949 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
37950 inplace argument. Store the new address in the original MEM when true.
37951 * emit-rtl.c (change_address_1): Likewise.
37952 (adjust_address_1, adjust_automodify_address_1, offset_address):
37953 Update accordingly.
37954 * rtl.h (plus_constant): Add an inplace argument.
37955 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
37956 when true. Avoid generating (plus X (const_int 0)).
37957 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
37958 in-place. Pass true to plus_constant.
37959 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
37961 2014-05-16 Dehao Chen <dehao@google.com>
37963 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
37965 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37968 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
37970 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
37972 2014-05-16 Dehao Chen <dehao@google.com>
37974 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
37975 optimize_function_for_size_p.
37976 * regs.h (REG_FREQ_FROM_BB): Likewise.
37978 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37981 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
37982 negt_reg_operand cases.
37983 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
37985 * config/sh/predicates.md (cbranch_treg_value): Simplify.
37987 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37989 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
37992 2014-05-16 David Malcolm <dmalcolm@redhat.com>
37995 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37997 * tree-cfg.c (dump_function_to_file): Dump the return type of
37998 functions, in a line to itself before the function body, mimicking
37999 the layout of a C function.
38001 2014-05-16 Dehao Chen <dehao@google.com>
38003 * cfghooks.c (make_forwarder_block): Use direct computation to
38004 get fall-through edge's count and frequency.
38006 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
38008 * config/arc/arc.c (arc_init): Fix typo in error message.
38009 * config/i386/i386.c (ix86_expand_builtin): Likewise.
38010 (split_stack_prologue_scratch_regno): Likewise.
38011 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
38012 word from error message.
38014 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38016 * ira-costs.c: Fix typo in comment.
38018 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
38020 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
38022 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
38024 * varpool.c (dump_varpool_node): Dump write-only flag.
38025 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
38027 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
38028 write-only variables.
38029 * ipa.c (process_references): New function.
38030 (set_readonly_bit): New function.
38031 (set_writeonly_bit): New function.
38032 (clear_addressable_bit): New function.
38033 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
38034 fix handling of aliases.
38035 * cgraph.h (struct varpool_node): Add writeonly flag.
38037 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
38039 PR rtl-optimization/60969
38040 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
38041 Calculate costs for this case.
38043 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
38045 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
38046 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
38048 2014-05-16 Richard Biener <rguenther@suse.de>
38050 PR tree-optimization/61194
38051 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
38052 bool patterns ending in a COND_EXPR.
38054 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38056 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
38058 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38060 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
38061 where we were unable to cost an RTX.
38063 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38065 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
38068 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38069 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38071 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
38073 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38074 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38076 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
38077 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
38079 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38080 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38082 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
38085 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38086 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38091 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38092 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38094 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
38095 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
38097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38098 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38100 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38101 rotates and shifts.
38103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38104 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38106 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
38107 ZERO_EXTEND and SIGN_EXTEND better.
38109 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38110 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38112 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
38113 logical operations.
38115 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38116 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38118 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
38119 costs when costing loads and stores to memory.
38121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38122 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
38124 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
38127 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38129 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
38131 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38132 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38134 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
38136 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
38138 (aarch64_rtx_mult_cost): New.
38139 (aarch64_rtx_costs): Use it, refactor as appropriate.
38141 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38142 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38144 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38145 emit instructions, return number of instructions which would
38147 (aarch64_add_constant): Update call to aarch64_build_constant.
38148 (aarch64_output_mi_thunk): Likewise.
38149 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38152 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38154 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38155 (TARGET_RTX_COSTS): Call it.
38157 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38159 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38160 (cortexa57_vector_cost): Likewise.
38161 (cortexa57_tunings): Use them.
38163 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38165 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38166 (cpu_addrcost_table): Use it.
38167 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38168 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38171 2014-05-16 Richard Biener <rguenther@suse.de>
38173 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38174 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38175 (visit_phi): Ignore edges marked as not executable.
38176 (class cond_dom_walker): New.
38177 (cond_dom_walker::before_dom_children): Value-number
38178 control statements and mark successor edges as not
38179 executable if possible.
38180 (run_scc_vn): First walk all control statements in
38181 dominator order, marking edges as not executable.
38182 * tree-inline.c (copy_edges_for_bb): Be not confused
38183 about random edge flags.
38185 2014-05-16 Richard Biener <rguenther@suse.de>
38187 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38189 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38192 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38193 (__TM_simple_begin): Use it.
38194 (__TM_begin): Likewise.
38196 2014-05-15 Martin Jambor <mjambor@suse.cz>
38199 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38200 type_preserved flag when the indirect edge is polymorphic.
38202 2014-05-15 Martin Jambor <mjambor@suse.cz>
38204 PR tree-optimization/61090
38205 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38206 build_ref_for_model.
38208 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38210 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38211 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38213 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38215 PR tree-optimization/61158
38216 * fold-const.c (fold_binary_loc): If X is zero-extended and
38217 shiftc >= prec, make sure zerobits is all ones instead of
38218 invoking undefined behavior.
38220 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38222 * regcprop.h: New file.
38223 * regcprop.c (skip_debug_insn_p): New decl.
38224 (replace_oldest_value_reg): Check skip_debug_insn_p.
38225 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38226 * shrink-wrap.c: Include regcprop.h.
38227 (prepare_shrink_wrap): Call
38228 copyprop_hardreg_forward_bb_without_debug_insn.
38230 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38232 * shrink-wrap.h: Update comment.
38233 * shrink-wrap.c: Update comment.
38234 (next_block_for_reg): Rename to live_edge_for_reg.
38235 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38236 (move_insn_for_shrink_wrap): Split live_edge.
38237 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38239 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38241 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38243 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38244 * config/sparc/sparc.md (fptype_ut699): New attribute.
38245 (in_branch_delay): Return false if -mfix-ut699 is specified and
38246 fptype_ut699 is set to single.
38247 (truncdfsf2): Add fptype_ut699 attribute.
38248 (fix_truncdfsi2): Likewise.
38249 (floatsisf2): Change fptype attribute.
38250 (fix_truncsfsi2): Likewise.
38251 (negtf2_notv9): Delete.
38252 (negtf2_v9): Likewise.
38253 (negtf2_hq): New instruction.
38254 (negtf2): New instruction and splitter.
38255 (negdf2_notv9): Rewrite.
38256 (abstf2_notv9): Delete.
38257 (abstf2_hq_v9): Likewise.
38258 (abstf2_v9): Likewise.
38259 (abstf2_hq): New instruction.
38260 (abstf2): New instruction and splitter.
38261 (absdf2_notv9): Rewrite.
38263 2014-05-14 Cary Coutant <ccoutant@google.com>
38266 * opts.c (common_handle_option): Don't special-case "-g".
38267 (set_debug_level): Default to at least level 2 with "-g".
38269 2014-05-14 DJ Delorie <dj@redhat.com>
38271 * config/msp430/msp430.c (msp430_builtin): Add
38272 MSP430_BUILTIN_DELAY_CYCLES.
38273 (msp430_init_builtins): Register void __delay_cycles(long long).
38274 (msp430_builtin_decl): Add it.
38275 (cg_magic_constant): New.
38276 (msp430_expand_delay_cycles): New.
38277 (msp430_expand_builtin): Call it.
38278 (msp430_print_operand_raw): Change integer printing from "int" to
38280 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38281 (delay_cycles_start): New.
38282 (delay_cycles_end): New.
38283 (delay_cycles_32): New.
38284 (delay_cycles_32x): New.
38285 (delay_cycles_16): New.
38286 (delay_cycles_16x): New.
38287 (delay_cycles_2): New.
38288 (delay_cycles_1): New.
38289 * doc/extend.texi: Document __delay_cycles().
38291 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38293 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38294 length attribute computation.
38296 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38299 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38301 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38304 * config/sparc/sparc.md: Fix types of low and high in DI constant
38305 splitter. Use gen_int_mode in some other splitters.
38307 2014-05-14 Martin Jambor <mjambor@suse.cz>
38310 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38312 2014-05-14 James Norris <jnorris@codesourcery.com>
38314 * omp-low.c (expand_parallel_call): Remove shadow variable.
38315 (expand_omp_taskreg): Likewise.
38317 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38319 * common/config/i386/i386-common.c
38320 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38321 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38322 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38323 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38324 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38325 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38326 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38327 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38328 xsavecintrin.h, xsavesintrin.h.
38329 (x86_64-*-*): Ditto.
38330 * config/i386/clflushoptintrin.h: New.
38331 * config/i386/xsavecintrin.h: Ditto.
38332 * config/i386/xsavesintrin.h: Ditto.
38333 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38334 (bit_XSAVES): Ditto.
38335 (bit_XSAVES): Ditto.
38336 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38337 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38339 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38340 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38341 OPTION_MASK_ISA_XSAVES.
38342 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38343 -mxsavec, -mxsaves.
38344 (PTA_CLFLUSHOPT) Define.
38345 (PTA_XSAVEC): Ditto.
38346 (PTA_XSAVES): Ditto.
38347 (ix86_option_override_internal): Handle new options.
38348 (ix86_valid_target_attribute_inner_p): Ditto.
38349 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38350 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38351 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38352 (bdesc_special_args): Add __builtin_ia32_xsaves,
38353 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38354 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38355 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38356 (ix86_expand_builtin): Handle new builtins.
38357 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38358 (TARGET_CLFLUSHOPT_P): Ditto.
38359 (TARGET_XSAVEC): Ditto.
38360 (TARGET_XSAVEC_P): Ditto.
38361 (TARGET_XSAVES): Ditto.
38362 (TARGET_XSAVES_P): Ditto.
38363 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38364 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38365 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38367 (ANY_XRSTOR64): Ditto.
38369 (xrstor): Change into <xrstor>.
38370 (xrstor_rex64): Change into <xrstor>_rex64.
38371 (xrstor64): Change into <xrstor>64
38373 * config/i386/i386.opt (mclflushopt): New.
38376 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38378 * doc/invoke.texi: Document new options.
38380 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38382 PR rtl-optimization/60866
38383 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38384 Default it to -1. Pass it down to init_simplejump_data.
38385 (init_simplejump_data): New parameter old_seqno. Pass it down
38386 to get_seqno_for_a_jump.
38387 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38388 initializing new jump seqno as a last resort. Add comment.
38389 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38390 jump and pass it down to sel_init_new_insn.
38391 (sel_redirect_edge_and_branch_force): Likewise.
38393 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38395 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38396 shifted values to avoid build warning.
38398 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38400 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38401 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38402 (cfg_layout_merge_blocks): Likewise.
38403 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38405 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38407 PR rtl-optimization/60901
38408 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38409 bb predecessor belongs to the same scheduling region. Adjust comment.
38411 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38413 * doc/sourcebuild.texi: (dfp_hw): Document.
38414 (p8vector_hw): Likewise.
38415 (powerpc_eabi_ok): Likewise.
38416 (powerpc_elfv2): Likewise.
38417 (powerpc_htm_ok): Likewise.
38418 (ppc_recip_hw): Likewise.
38419 (vsx_hw): Likewise.
38421 2014-05-13 Cary Coutant <ccoutant@google.com>
38423 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38425 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38427 * gengtype-parse.c (require3): Eliminate in favor of...
38429 (require_template_declaration): Update to support optional single *
38432 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38433 (create_user_defined_type): Handle a single level of explicit
38434 pointerness within template arguments.
38435 (struct write_types_data): Add field "kind".
38436 (filter_type_name): Handle "*" character.
38437 (write_user_func_for_structure_ptr): Require a write_types_data
38438 rather than just a prefix string, so that we can look up the kind
38439 of the wtd and use it as an index into wrote_user_func_for_ptr,
38440 ensuring that such functions are written at most once. Support
38441 subclasses by invoking the marking function of the ultimate base class.
38442 (write_user_func_for_structure_body): Require a write_types_data
38443 rather than just a prefix string, so that we can pass this to
38444 write_user_func_for_structure_ptr.
38445 (write_func_for_structure): Likewise.
38446 (ggc_wtd): Add initializer of new "kind" field.
38447 (pch_wtd): Likewise.
38449 * gengtype.h (enum write_types_kinds): New.
38450 (struct type): Add field wrote_user_func_for_ptr to the "s"
38453 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38455 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38456 instead of const_binop.
38457 (fold_binary_loc): Likewise.
38459 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38461 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38462 calculation to match get_ref_base_and_extent.
38464 2014-05-13 Catherine Moore <clm@codesourcery.com>
38465 Sandra Loosemore <sandra@codesourcery.com>
38467 * configure.ac: Fix assembly for explicit JALR relocation check.
38468 * configure: Regenerate.
38470 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38472 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38473 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38474 Remove associated type declarations and initialisations.
38475 (arm_expand_neon_builtin): Likewise.
38476 (neon_emit_pair_result_insn): Delete.
38477 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38478 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38479 (neon_vzip<mode>): Likewise.
38480 (neon_vuzp<mode>): Likewise.
38482 2014-05-13 Richard Biener <rguenther@suse.de>
38485 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38486 it needs revisiting whether the call still may be tail-called.
38488 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38490 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38491 * rtl.h (block_symbol): Reduce number of fields to 2.
38492 (rtx_def): Add u2.symbol_ref_flags.
38493 (SYMBOL_REF_FLAGS): Use it.
38494 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38495 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38496 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38497 Lower index of SYMBOL_REF_DATA.
38498 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38499 Print SYMBOL_REF_FLAGS at the same time.
38500 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38502 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38504 * rtl.def (VAR_LOCATION): Remove "i" field.
38505 * rtl.h (rtx_def): Add u2.var_location_status.
38506 (PAT_VAR_LOCATION_STATUS): Use it.
38507 (gen_rtx_VAR_LOCATION): Declare.
38508 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38509 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38510 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38512 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38514 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38515 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38517 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38519 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38520 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38521 * rtl.h (rtx_def): Add insn_uid to u2 field.
38522 (RTX_FLAG_CHECK8): Delete in favor of...
38523 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38524 (INSN_DELETED_P): Update accordingly.
38525 (INSN_UID): Use u2.insn_uid.
38526 (INSN_CHAIN_CODE_P): Define.
38527 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38528 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38529 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38530 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38531 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38532 indices accordingly.
38533 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38534 Update indices for insn-chain rtxes.
38535 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38536 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38537 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38538 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38539 * combine.c (try_combine): Likewise.
38540 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38542 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38544 * rtl.def (REG): Remove middle field.
38545 * rtl.h (rtx_def): Add orignal_regno to u2.
38546 (ORIGINAL_REGNO): Use it instead of field 1.
38547 (REG_ATTRS): Lower field index accordingly.
38548 * gengtype.c (adjust_field_rtx_def): Remove handling of
38549 ORIGINAL_REGNO. Move REG_ATTRS index down.
38550 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38551 code that prints the REGNO.
38553 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38555 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38558 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38560 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38562 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38564 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38565 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38567 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38569 * config/aarch64/aarch64-protos.h
38570 (aarch64_hard_regno_caller_save_mode): New prototype.
38571 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38573 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38575 2014-05-13 Christian Bruel <christian.bruel@st.com>
38577 * target.def (mode_switching): New hook vector.
38578 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38579 (mode_exit, modepriority_to_mode): Likewise.
38580 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38581 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38582 * target.h: Include tm.h and hard-reg-set.h.
38583 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38584 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38585 * doc/tm.texi Regenerate.
38586 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38587 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38588 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38589 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38590 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38591 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38592 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38593 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38594 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38595 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38596 (ix86_emit_mode_set): Hookify.
38597 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38599 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38600 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38601 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38602 (epiphany_mode_priority_to_mode): Remove declaration.
38603 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38604 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38605 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38607 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38608 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38609 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38611 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38614 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38615 is const0_rtx, return immediately. Don't test count == 0 when
38618 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38620 * Makefile.in: add shrink-wrap.o.
38621 * config/i386/i386.c: include "shrink-wrap.h"
38622 * function.c: Likewise.
38623 (requires_stack_frame_p, next_block_for_reg,
38624 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38625 dup_block_and_redirect): Move to shrink-wrap.c
38626 (thread_prologue_and_epilogue_insns): Extract three code segments
38627 as functions in shrink-wrap.c
38628 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38630 * shrink-wrap.c: New file.
38631 * shrink-wrap.h: New file.
38633 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38635 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38636 reference to Solaris.
38638 2014-05-12 Mike Stump <mikestump@comcast.net>
38641 * genattrtab.c (filename): Add.
38642 (convert_set_attr_alternative): Improve error message.
38643 (check_defs): Restore read_md_filename for error messages.
38644 (gen_insn): Save filename.
38646 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38648 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38649 -fno-local-ivars and -fivar-visibility.
38650 * c-family/c.opt: Make -Wshadow also implicitly enable
38653 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38655 * doc/tm.texi: Remove reference to deleted macro.
38656 * doc/tm.texi.in: Likewise.
38658 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38661 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38664 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38667 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38668 * config/arm/aout.h (License): Same.
38669 * config/arm/bpabi.h (License): Same.
38670 * config/arm/elf.h (License): Same.
38671 * config/arm/linux-elf.h (License): Same.
38672 * config/arm/linux-gas.h (License): Same.
38673 * config/arm/netbsd-elf.h (License): Same.
38674 * config/arm/uclinux-eabi.h (License): Same.
38675 * config/arm/uclinux-elf.h (License): Same.
38676 * config/arm/vxworks.h (License): Same.
38678 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38680 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38681 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38682 number of operands to 3.
38683 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38684 * tree-nested.c (convert_nonlocal_omp_clauses,
38685 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38686 * gimplify.c (gimplify_scan_omp_clauses): Handle
38687 OMP_CLAUSE_LINEAR_STMT.
38688 * omp-low.c (lower_rec_input_clauses): Fix typo.
38689 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38690 cast between Fortran boolean_type_node and C _Bool if
38693 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38695 PR tree-optimization/61136
38696 * wide-int.h (multiple_of_p): Define a version that doesn't return
38698 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38699 integer_zerop/const_binop pair.
38700 (multiple_of_p): Likewise, converting both operands to widest_int
38703 2014-05-09 Teresa Johnson <tejohnson@google.com>
38705 * cgraphunit.c (analyze_functions): Use correct dump file.
38707 2014-05-09 Florian Weimer <fweimer@redhat.com>
38709 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38711 (stack_protect_return_slot_p): New function.
38712 (expand_used_vars): Call stack_protect_decl_p and
38713 stack_protect_return_slot_p for -fstack-protector-strong.
38715 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38716 Andrew Haley <aph@redhat.com>
38717 Richard Sandiford <rdsandiford@googlemail.com>
38719 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38722 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38724 PR middle-end/61111
38725 * fold-const.c (fold_binary_loc): Changed width of mask.
38727 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38729 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38730 unsigned int initializers for regno_in, regno_out.
38732 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38735 * config/avr/avr.md (cc): Add new attribute set_vzn.
38736 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38737 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38738 with INC, DEC or NEG.
38739 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38740 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38741 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38743 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38746 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38748 * wide-int.cc (UTItype): Define.
38749 (UDWtype): Define for appropriate W_TYPE_SIZE.
38751 2014-05-09 Richard Biener <rguenther@suse.de>
38753 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38754 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38755 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38756 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38757 ssa_propagate): Adjust.
38759 2014-05-08 Jeff Law <law@redhat.com>
38761 PR tree-optimization/61009
38762 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38763 tri-state rather than a boolean. When a block is too big to
38764 thread through, inform caller via negative return value.
38765 (thread_across_edge): If a block was too big for normal threading,
38766 then it's too big for a joiner too, so remove temporary equivalences
38767 and return immediately.
38769 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38770 Matthias Klose <doko@ubuntu.com>
38773 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38775 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38778 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38780 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38783 * config/alpha/alpha.c: Include gimple-iterator.h.
38784 (alpha_gimple_fold_builtin): New function. Move
38785 ALPHA_BUILTIN_UMULH folding from ...
38786 (alpha_fold_builtin): ... here.
38787 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38789 2014-05-08 Wei Mi <wmi@google.com>
38792 * config/i386/i386.c (ix86_compute_frame_layout): Update
38793 preferred_stack_boundary for call, expanded from tls descriptor.
38794 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38795 to depend on SP register.
38796 (*tls_local_dynamic_base_32_gnu): Ditto.
38797 (*tls_local_dynamic_32_once): Ditto.
38798 (tls_global_dynamic_64_<mode>): Set
38799 ix86_tls_descriptor_calls_expanded_in_cfun.
38800 (tls_local_dynamic_base_64_<mode>): Ditto.
38801 (tls_global_dynamic_32): Set
38802 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38803 to depend on SP register.
38804 (tls_local_dynamic_base_32): Ditto.
38806 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38808 * config/arm/arm_neon.h: Update comment.
38809 * config/arm/neon-docgen.ml: Delete.
38810 * config/arm/neon-gen.ml: Delete.
38811 * doc/arm-neon-intrinsics.texi: Update comment.
38813 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38815 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38817 (vand, vorr, veor, vorn, vbic): Remove.
38818 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38820 (neon_vsub_unspec): Likewise.
38821 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38823 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38825 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38826 (vadd_s16): Likewise.
38827 (vadd_s32): Likewise.
38828 (vadd_f32): Likewise.
38829 (vadd_u8): Likewise.
38830 (vadd_u16): Likewise.
38831 (vadd_u32): Likewise.
38832 (vadd_s64): Likewise.
38833 (vadd_u64): Likewise.
38834 (vaddq_s8): Likewise.
38835 (vaddq_s16): Likewise.
38836 (vaddq_s32): Likewise.
38837 (vaddq_s64): Likewise.
38838 (vaddq_f32): Likewise.
38839 (vaddq_u8): Likewise.
38840 (vaddq_u16): Likewise.
38841 (vaddq_u32): Likewise.
38842 (vaddq_u64): Likewise.
38843 (vmul_s8): Likewise.
38844 (vmul_s16): Likewise.
38845 (vmul_s32): Likewise.
38846 (vmul_f32): Likewise.
38847 (vmul_u8): Likewise.
38848 (vmul_u16): Likewise.
38849 (vmul_u32): Likewise.
38850 (vmul_p8): Likewise.
38851 (vmulq_s8): Likewise.
38852 (vmulq_s16): Likewise.
38853 (vmulq_s32): Likewise.
38854 (vmulq_f32): Likewise.
38855 (vmulq_u8): Likewise.
38856 (vmulq_u16): Likewise.
38857 (vmulq_u32): Likewise.
38858 (vsub_s8): Likewise.
38859 (vsub_s16): Likewise.
38860 (vsub_s32): Likewise.
38861 (vsub_f32): Likewise.
38862 (vsub_u8): Likewise.
38863 (vsub_u16): Likewise.
38864 (vsub_u32): Likewise.
38865 (vsub_s64): Likewise.
38866 (vsub_u64): Likewise.
38867 (vsubq_s8): Likewise.
38868 (vsubq_s16): Likewise.
38869 (vsubq_s32): Likewise.
38870 (vsubq_s64): Likewise.
38871 (vsubq_f32): Likewise.
38872 (vsubq_u8): Likewise.
38873 (vsubq_u16): Likewise.
38874 (vsubq_u32): Likewise.
38875 (vsubq_u64): Likewise.
38876 (vand_s8): Likewise.
38877 (vand_s16): Likewise.
38878 (vand_s32): Likewise.
38879 (vand_u8): Likewise.
38880 (vand_u16): Likewise.
38881 (vand_u32): Likewise.
38882 (vand_s64): Likewise.
38883 (vand_u64): Likewise.
38884 (vandq_s8): Likewise.
38885 (vandq_s16): Likewise.
38886 (vandq_s32): Likewise.
38887 (vandq_s64): Likewise.
38888 (vandq_u8): Likewise.
38889 (vandq_u16): Likewise.
38890 (vandq_u32): Likewise.
38891 (vandq_u64): Likewise.
38892 (vorr_s8): Likewise.
38893 (vorr_s16): Likewise.
38894 (vorr_s32): Likewise.
38895 (vorr_u8): Likewise.
38896 (vorr_u16): Likewise.
38897 (vorr_u32): Likewise.
38898 (vorr_s64): Likewise.
38899 (vorr_u64): Likewise.
38900 (vorrq_s8): Likewise.
38901 (vorrq_s16): Likewise.
38902 (vorrq_s32): Likewise.
38903 (vorrq_s64): Likewise.
38904 (vorrq_u8): Likewise.
38905 (vorrq_u16): Likewise.
38906 (vorrq_u32): Likewise.
38907 (vorrq_u64): Likewise.
38908 (veor_s8): Likewise.
38909 (veor_s16): Likewise.
38910 (veor_s32): Likewise.
38911 (veor_u8): Likewise.
38912 (veor_u16): Likewise.
38913 (veor_u32): Likewise.
38914 (veor_s64): Likewise.
38915 (veor_u64): Likewise.
38916 (veorq_s8): Likewise.
38917 (veorq_s16): Likewise.
38918 (veorq_s32): Likewise.
38919 (veorq_s64): Likewise.
38920 (veorq_u8): Likewise.
38921 (veorq_u16): Likewise.
38922 (veorq_u32): Likewise.
38923 (veorq_u64): Likewise.
38924 (vbic_s8): Likewise.
38925 (vbic_s16): Likewise.
38926 (vbic_s32): Likewise.
38927 (vbic_u8): Likewise.
38928 (vbic_u16): Likewise.
38929 (vbic_u32): Likewise.
38930 (vbic_s64): Likewise.
38931 (vbic_u64): Likewise.
38932 (vbicq_s8): Likewise.
38933 (vbicq_s16): Likewise.
38934 (vbicq_s32): Likewise.
38935 (vbicq_s64): Likewise.
38936 (vbicq_u8): Likewise.
38937 (vbicq_u16): Likewise.
38938 (vbicq_u32): Likewise.
38939 (vbicq_u64): Likewise.
38940 (vorn_s8): Likewise.
38941 (vorn_s16): Likewise.
38942 (vorn_s32): Likewise.
38943 (vorn_u8): Likewise.
38944 (vorn_u16): Likewise.
38945 (vorn_u32): Likewise.
38946 (vorn_s64): Likewise.
38947 (vorn_u64): Likewise.
38948 (vornq_s8): Likewise.
38949 (vornq_s16): Likewise.
38950 (vornq_s32): Likewise.
38951 (vornq_s64): Likewise.
38952 (vornq_u8): Likewise.
38953 (vornq_u16): Likewise.
38954 (vornq_u32): Likewise.
38955 (vornq_u64): Likewise.
38957 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38959 * wide-int.cc (UTItype): Define.
38960 (UDWtype): Define for appropriate W_TYPE_SIZE.
38962 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
38964 PR tree-optimization/59100
38965 * tree-ssa-phiopt.c: Include tree-inline.h.
38966 (neutral_element_p, absorbing_element_p): New functions.
38967 (value_replacement): Handle conditional binary operations with a
38968 neutral or absorbing element.
38970 2014-05-08 Richard Biener <rguenther@suse.de>
38972 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
38973 folding the expression.
38974 (valueize_expr): Remove.
38975 (visit_reference_op_load): Do not valueize the result of
38977 (simplify_binary_expression): Likewise.
38978 (simplify_unary_expression): Likewise.
38980 2014-05-08 Richard Biener <rguenther@suse.de>
38982 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
38983 looking at TYPE_ARG_TYPES.
38985 2014-05-08 Richard Biener <rguenther@suse.de>
38987 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
38988 pointer propagation special-case.
38990 2014-05-08 Bin Cheng <bin.cheng@arm.com>
38992 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
38993 core part of address expressions.
38995 2014-05-08 Alan Modra <amodra@gmail.com>
38998 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
38999 loads and stores when -mno-strict-align at any alignment.
39000 (expand_block_clear): Similarly. Also correct calculation of
39003 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
39005 PR middle-end/39246
39006 * tree-complex.c (expand_complex_move): Keep line info when expanding
39008 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
39009 of complex expression. Use new argument to display correct location
39010 for values coming from phi statement.
39011 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
39012 (warn_uninitialized_phi): Pass location of phi argument to
39014 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
39015 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
39017 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
39019 * config/rs6000/predicates.md (indexed_address_mem): New.
39020 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
39021 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
39022 fpstore_ux, fpstore_u.
39023 (sign_extend, indexed, update): New.
39024 (cell_micro): Adjust.
39025 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
39026 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
39027 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
39028 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
39029 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
39030 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
39031 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
39032 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
39033 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
39034 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
39035 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
39036 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
39037 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
39038 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
39039 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
39041 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
39042 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
39043 *vsx_extract_<mode>_store): Adjust.
39044 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
39045 is_cracked_insn, insn_must_be_first_in_group,
39046 insn_must_be_last_in_group): Adjust.
39048 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
39050 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
39051 ppc440-fpstore): Adjust.
39052 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
39053 ppc476-fpstore): Adjust.
39054 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
39055 ppc601-fpstore): Adjust.
39056 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
39058 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
39060 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
39061 ppc7450-fpstore): Adjust.
39062 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
39063 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
39064 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
39066 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
39067 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
39068 cell-fpstore, cell-fpstore-update): Adjust.
39069 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
39070 ppce300c3_store, ppce300c3_fpstore): Adjust.
39071 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
39072 e500mc_fpstore): Adjust.
39073 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
39074 e500mc64_store, e500mc64_fpstore): Adjust.
39075 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
39076 e5500_fpstore): Adjust.
39077 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
39078 e6500_fpstore): Adjust.
39079 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
39081 * config/rs6000/power4.md (power4-load, power4-load-ext,
39082 power4-load-ext-update, power4-load-ext-update-indexed,
39083 power4-load-update-indexed, power4-load-update, power4-fpload,
39084 power4-fpload-update, power4-store, power4-store-update,
39085 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
39087 * config/rs6000/power5.md (power5-load, power5-load-ext,
39088 power5-load-ext-update, power5-load-ext-update-indexed,
39089 power5-load-update-indexed, power5-load-update, power5-fpload,
39090 power5-fpload-update, power5-store, power5-store-update,
39091 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
39093 * config/rs6000/power6.md (power6-load, power6-load-ext,
39094 power6-load-update, power6-load-update-indexed,
39095 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
39096 power6-fpload-update, power6-store, power6-store-update,
39097 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
39099 * config/rs6000/power7.md (power7-load, power7-load-ext,
39100 power7-load-update, power7-load-update-indexed,
39101 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
39102 power7-fpload-update, power7-store, power7-store-update,
39103 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
39105 * config/rs6000/power8.md (power8-load, power8-load-update,
39106 power8-load-ext, power8-load-ext-update, power8-fpload,
39107 power8-fpload-update, power8-store, power8-store-update-indexed,
39108 power8-fpstore, power8-fpstore-update): Adjust.
39109 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
39111 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
39112 titan_lsu_store, titan_lsu_fpstore): Adjust.
39113 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
39115 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
39118 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
39119 unrolled byte insns. Emit address increments after move insns.
39121 2014-05-07 David Malcolm <dmalcolm@redhat.com>
39123 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
39124 const_gimple, rather than a gimple.
39125 (gimple_call_builtin_p): Likewise, for the three variants.
39127 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
39128 (gimple_call_builtin_p): Likewise, for the three variants.
39130 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
39132 PR tree-optimization/61095
39133 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
39135 2014-05-07 Richard Biener <rguenther@suse.de>
39137 PR tree-optimization/61034
39138 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
39139 (maybe_skip_until): Use translate to take into account
39140 lattices when trying to do disambiguations.
39141 (get_continuation_for_phi_1): Likewise.
39142 (get_continuation_for_phi): Adjust for added translate arguments.
39143 (walk_non_aliased_vuses): Likewise.
39144 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39145 (walk_non_aliased_vuses): Likewise.
39146 (call_may_clobber_ref_p_1): Declare.
39147 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39148 calls. Stop early if we are only supposed to disambiguate.
39149 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39151 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39153 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39154 Emit an error when the function has arguments.
39156 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39158 * cfgloop.h (unswitch_loops): Remove.
39159 * doc/passes.texi: Remove references to loop-unswitch.c
39160 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39162 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39164 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39165 check for loads group of length 3.
39166 (vect_permute_load_chain): New permutations for loads group of
39168 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39169 of vec_perm_shuffle for the new permutations.
39171 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39173 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39174 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39175 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39176 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39177 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39178 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39179 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39180 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39182 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39184 * loop-unswitch.c: Delete.
39186 2014-05-07 Richard Biener <rguenther@suse.de>
39188 * config.gcc: Always set need_64bit_hwint to yes.
39190 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39192 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39193 of using optimize_size.
39195 2014-05-06 Mike Stump <mikestump@comcast.net>
39197 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39199 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39201 * config/i386/sse.md (*mov<mode>_internal)
39202 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39203 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39204 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39205 (*<code><mode>3, *andnot<mode>3<mask_name>)
39206 (<mask_codefor><code><mode>3<mask_name>): Only consider
39207 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39209 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39212 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39214 * lra-constraints.c (valid_address_p): Move earlier in file.
39215 Add a constraint argument to the address_info version.
39216 (satisfies_memory_constraint_p): New function.
39217 (satisfies_address_constraint_p): Likewise.
39218 (process_alt_operands, curr_insn_transform): Use them.
39219 (process_address): Pass the constraint to valid_address_p when
39220 checking address operands.
39222 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39224 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39225 to their respective blocks. Fix inadvertent use of "node".
39227 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39229 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39231 (init_emit_once): ...here.
39232 * rtl.h (init_derived_machine_modes): Declare.
39233 * toplev.c (do_compile): Call it even if no_backend.
39235 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39236 Mike Stump <mikestump@comcast.net>
39237 Richard Sandiford <rdsandiford@googlemail.com>
39238 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39240 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39241 (rtx_equal_for_memref_p): Update comment.
39242 (adjust_offset_for_component_ref): Use wide-int interfaces.
39243 * builtins.c (get_object_alignment_2): Likewise.
39244 (c_readstr): Likewise.
39245 (target_char_cast): Add comment.
39246 (determine_block_size): Use wide-int interfaces.
39247 (expand_builtin_signbit): Likewise.
39248 (fold_builtin_int_roundingfn): Likewise.
39249 (fold_builtin_bitop): Likewise.
39250 (fold_builtin_bswap): Likewise.
39251 (fold_builtin_logarithm): Use signop.
39252 (fold_builtin_pow): Likewise.
39253 (fold_builtin_memory_op): Use wide-int interfaces.
39254 (fold_builtin_object_size): Likewise.
39255 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39256 nb_iterations_estimate.
39257 (record_niter_bound): Use wide-int interfaces.
39258 (get_estimated_loop_iterations_int): Likewise.
39259 (get_estimated_loop_iterations): Likewise.
39260 (get_max_loop_iterations): Likewise.
39261 * cfgloop.h: Include wide-int.h.
39262 (struct nb_iter_bound): Change bound to widest_int.
39263 (struct loop): Change nb_iterations_upper_bound and
39264 nb_iterations_estimate to widest_int.
39265 (record_niter_bound): Switch to use widest_int.
39266 (get_estimated_loop_iterations): Likewise.
39267 (get_max_loop_iterations): Likewise.
39268 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39269 update for wide-int.
39270 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39271 * combine.c (try_combine): Likewise.
39272 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39273 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39275 (aarch64_float_const_representable_p): Likewise.
39276 * config/arc/arc.c: Include wide-int.h.
39277 (arc_can_use_doloop_p): Use wide-int interfaces.
39278 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39279 (vfp3_const_double_index): Likewise.
39280 * config/avr/avr.c (avr_out_round): Likewise.
39281 (avr_fold_builtin): Likewise.
39282 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39283 (bfin_can_use_doloop_p): Likewise.
39284 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39285 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39286 * config/i386/i386.c: Include wide-int.h.
39287 (ix86_data_alignment): Use wide-int interfaces.
39288 (ix86_local_alignment): Likewise.
39289 (ix86_emit_swsqrtsf): Update real_from_integer.
39290 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39291 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39292 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39293 (zero_constant): Likewise.
39294 (input_operand): Likewise.
39295 (splat_input_operand): Likewise.
39296 (non_logical_cint_operand): Change const_double to const_wide_int.
39297 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39298 (easy_altivec_constant): Remove comment.
39299 (paired_expand_vector_init): Use CONSTANT_P.
39300 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39301 (rs6000_emit_move): Update checks.
39302 (rs6000_aggregate_candidate): Use wide-int interfaces.
39303 (rs6000_expand_ternop_builtin): Likewise.
39304 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39305 (rs6000_assemble_integer): Likewise.
39306 (rs6000_hash_constant): Likewise.
39307 (output_toc): Likewise.
39308 (rs6000_rtx_costs): Likewise.
39309 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39310 * config/rs6000/rs6000-c.c: Include wide-int.h.
39311 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39312 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39313 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39314 Handle CONST_WIDE_INT.
39315 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39316 Use tree_fits_uhwi_p.
39317 * config/sparc/sparc.c: Include wide-int.h.
39318 (sparc_fold_builtin): Use wide-int interfaces.
39319 * config/vax/vax.c: Include wide-int.h.
39320 (vax_float_literal): Use real_from_integer.
39321 * coretypes.h (struct hwivec_def): New.
39323 (const_hwivec): New.
39324 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39325 (equiv_constant): Handle CONST_WIDE_INT.
39326 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39327 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39328 * dbxout.c (stabstr_U): Use wide-int interfaces.
39329 (dbxout_type): Update to use cst_fits_shwi_p.
39330 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39331 (TARGET_SUPPORTS_WIDE_INT): Add default.
39332 * dfp.c: Include wide-int.h.
39333 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39334 decimal_real_to_integer.
39335 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39336 decimal_real_to_integer.
39337 * doc/generic.texi (Constant expressions): Update for wide_int.
39338 * doc/rtl.texi (const_double): Likewise.
39339 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39340 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39341 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39342 (REAL_VALUE_FROM_INT): Remove.
39343 (TARGET_SUPPORTS_WIDE_INT): New.
39344 * doc/tm.texi: Regenerate.
39345 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39346 * double-int.h: Include wide-int.h.
39347 (struct wi::int_traits): New.
39348 * dwarf2out.c (get_full_len): New.
39349 (dw_val_equal_p): Add case dw_val_class_wide_int.
39350 (size_of_loc_descr): Likewise.
39351 (output_loc_operands): Likewise.
39352 (insert_double): Remove.
39353 (insert_wide_int): New.
39354 (add_AT_wide): New.
39355 (print_die): Add case dw_val_class_wide_int.
39356 (attr_checksum): Likewise.
39357 (attr_checksum_ordered): Likewise.
39358 (same_dw_val_p): Likewise.
39359 (size_of_die): Likewise.
39360 (value_format): Likewise.
39361 (output_die): Likewise.
39362 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39364 (clz_loc_descriptor): Use wide-int interfaces.
39365 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39366 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39367 (round_up_to_align): Use wide-int interfaces.
39368 (field_byte_offset): Likewise.
39369 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39370 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39371 CONST_DOUBLE handling. Use wide-int interfaces.
39372 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39373 (gen_enumeration_type_die): Use add_AT_wide.
39374 (hash_loc_operands): Add case dw_val_class_wide_int.
39375 (compare_loc_operands): Likewise.
39376 * dwarf2out.h: Include wide-int.h.
39377 (wide_int_ptr): New.
39378 (enum dw_val_class): Add dw_val_class_wide_int.
39379 (struct dw_val_struct): Add val_wide.
39380 * emit-rtl.c (const_wide_int_htab): New.
39381 (const_wide_int_htab_hash): New.
39382 (const_wide_int_htab_eq): New.
39383 (lookup_const_wide_int): New.
39384 (const_double_htab_hash): Use wide-int interfaces.
39385 (const_double_htab_eq): Likewise.
39386 (rtx_to_double_int): Conditionally compile for wide-int.
39387 (immed_double_int_const): Rename to immed_wide_int_const and
39388 update for wide-int.
39389 (immed_double_const): Conditionally compile for wide-int.
39390 (init_emit_once): Use wide-int interfaces.
39391 * explow.c (plus_constant): Likewise.
39392 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39393 (lshift_value): Use wide-int interfaces.
39394 (expand_mult): Likewise.
39395 (choose_multiplier): Likewise.
39396 (expand_smod_pow2): Likewise.
39397 (make_tree): Likewise.
39398 * expr.c (convert_modes): Consolidate handling of constants.
39399 Use wide-int interfaces.
39400 (emit_group_load_1): Add note.
39401 (store_expr): Update comment.
39402 (get_inner_reference): Use wide-int interfaces.
39403 (expand_constructor): Update comment.
39404 (expand_expr_real_2): Use wide-int interfaces.
39405 (expand_expr_real_1): Likewise.
39406 (reduce_to_bit_field_precision): Likewise.
39407 (const_vector_from_tree): Likewise.
39408 * final.c: Include wide-int-print.h.
39409 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39410 * fixed-value.c: Include wide-int.h.
39411 (fixed_from_string): Use wide-int interfaces.
39412 (fixed_to_decimal): Likewise.
39413 (fixed_convert_from_real): Likewise.
39414 (real_convert_from_fixed): Likewise.
39415 * fold-const.h (mem_ref_offset): Return an offset_int.
39416 (div_if_zero_remainder): Remove code parameter.
39417 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39418 Use wide-int interfaces.
39419 (may_negate_without_overflow_p): Use wide-int interfaces.
39420 (negate_expr_p): Likewise.
39421 (fold_negate_expr): Likewise.
39422 (int_const_binop_1): Likewise.
39423 (const_binop): Likewise.
39424 (fold_convert_const_int_from_int): Likewise.
39425 (fold_convert_const_int_from_real): Likewise.
39426 (fold_convert_const_int_from_fixed): Likewise.
39427 (fold_convert_const_fixed_from_int): Likewise.
39428 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39429 (sign_bit_p): Use wide-int interfaces.
39430 (make_range_step): Likewise.
39431 (build_range_check): Likewise. Pass an integer of the correct type
39432 instead of using integer_one_node.
39433 (range_predecessor): Pass an integer of the correct type instead
39434 of using integer_one_node.
39435 (range_successor): Likewise.
39436 (merge_ranges): Likewise.
39437 (unextend): Use wide-int interfaces.
39438 (extract_muldiv_1): Likewise.
39439 (fold_div_compare): Likewise.
39440 (fold_single_bit_test): Likewise.
39441 (fold_sign_changed_comparison): Likewise.
39442 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39443 (fold_plusminus_mult_expr): Use wide-int interfaces.
39444 (native_encode_int): Likewise.
39445 (native_interpret_int): Likewise.
39446 (fold_unary_loc): Likewise.
39447 (pointer_may_wrap_p): Likewise.
39448 (size_low_cst): Likewise.
39449 (mask_with_tz): Likewise.
39450 (fold_binary_loc): Likewise.
39451 (fold_ternary_loc): Likewise.
39452 (multiple_of_p): Likewise.
39453 (tree_call_nonnegative_warnv_p): Update calls to
39454 tree_int_cst_min_precision and real_from_integer.
39455 (fold_negate_const): Use wide-int interfaces.
39456 (fold_abs_const): Likewise.
39457 (fold_relational_const): Use tree_int_cst_lt.
39458 (round_up_loc): Use wide-int interfaces.
39459 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39460 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39461 * gengtype.c: Remove include of double-int.h.
39462 (do_typedef): Use wide-int interfaces.
39463 (open_base_files): Add wide-int.h.
39464 (main): Add offset_int and widest_int typedefs.
39465 * gengtype-lex.l: Handle "^".
39466 (CXX_KEYWORD): Add "static".
39467 * gengtype-parse.c (require3): New.
39468 (require_template_declaration): Handle constant template arguments
39469 and nested templates.
39470 * gengtype-state.c: Don't include "double-int.h".
39471 * genpreds.c (write_one_predicate_function): Update comment.
39472 (write_tm_constrs_h): Add check for hval and lval use in
39474 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39475 (add_to_sequence): Likewise.
39476 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39477 and const_double_operand.
39478 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39480 * gimple-fold.c (get_base_constructor): Likewise.
39481 (fold_array_ctor_reference): Likewise.
39482 (fold_nonarray_ctor_reference): Likewise.
39483 (fold_const_aggregate_ref_1): Likewise.
39484 (gimple_val_nonnegative_real_p): Likewise.
39485 (gimple_fold_indirect_ref): Likewise.
39486 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39487 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39488 (struct slsr_cand_d): Change index to be widest_int.
39489 (struct incr_info_d): Change incr to be widest_int.
39490 (alloc_cand_and_find_basis): Use wide-int interfaces.
39491 (slsr_process_phi): Likewise.
39492 (backtrace_base_for_ref): Likewise. Return a widest_int.
39493 (restructure_reference): Take a widest_int instead of a double_int.
39494 (slsr_process_ref): Use wide-int interfaces.
39495 (create_mul_ssa_cand): Likewise.
39496 (create_mul_imm_cand): Likewise.
39497 (create_add_ssa_cand): Likewise.
39498 (create_add_imm_cand): Take a widest_int instead of a double_int.
39499 (slsr_process_add): Use wide-int interfaces.
39500 (slsr_process_cast): Likewise.
39501 (slsr_process_copy): Likewise.
39502 (dump_candidate): Likewise.
39503 (dump_incr_vec): Likewise.
39504 (replace_ref): Likewise.
39505 (cand_increment): Likewise. Return a widest_int.
39506 (cand_abs_increment): Likewise.
39507 (replace_mult_candidate): Take a widest_int instead of a double_int.
39508 (replace_unconditional_candidate): Use wide-int interfaces.
39509 (incr_vec_index): Take a widest_int instead of a double_int.
39510 (create_add_on_incoming_edge): Likewise.
39511 (create_phi_basis): Use wide-int interfaces.
39512 (replace_conditional_candidate): Likewise.
39513 (record_increment): Take a widest_int instead of a double_int.
39514 (record_phi_increments): Use wide-int interfaces.
39515 (phi_incr_cost): Take a widest_int instead of a double_int.
39516 (lowest_cost_path): Likewise.
39517 (total_savings): Likewise.
39518 (analyze_increments): Use wide-int interfaces.
39519 (ncd_with_phi): Take a widest_int instead of a double_int.
39520 (ncd_of_cand_and_phis): Likewise.
39521 (nearest_common_dominator_for_cands): Likewise.
39522 (insert_initializers): Use wide-int interfaces.
39523 (all_phi_incrs_profitable): Likewise.
39524 (replace_one_candidate): Likewise.
39525 (replace_profitable_candidates): Likewise.
39526 * godump.c: Include wide-int-print.h.
39527 (go_output_typedef): Use wide-int interfaces.
39528 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39529 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39530 (build_loop_iteration_domains): Likewise.
39531 * hooks.h: Include wide-int.h rather than double-int.h.
39532 (hook_bool_dint_dint_uint_bool_true): Delete.
39533 (hook_bool_wint_wint_uint_bool_true): Declare.
39534 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39535 (hook_bool_wint_wint_uint_bool_true): New.
39536 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39538 (ubsan_expand_si_overflow_mul_check): Likewise.
39539 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39540 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39541 (get_ancestor_addr_info): Likewise.
39542 (ipa_modify_call_arguments): Likewise.
39543 * loop-doloop.c (doloop_modify): Likewise.
39544 (doloop_optimize): Likewise.
39545 * loop-iv.c (iv_number_of_iterations): Likewise.
39546 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39547 (unroll_loop_constant_iterations): Likewise.
39548 (decide_unroll_runtime_iterations): Likewise.
39549 (unroll_loop_runtime_iterations): Likewise.
39550 (decide_peel_simple): Likewise.
39551 (decide_unroll_stupid): Likewise.
39552 * lto-streamer-in.c (streamer_read_wi): Add.
39553 (input_cfg): Use wide-int interfaces.
39554 (lto_input_tree_1): Likewise.
39555 * lto-streamer-out.c (streamer_write_wi): Add.
39556 (hash_tree): Use wide-int interfaces.
39557 (output_cfg): Likewise.
39558 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39559 (GTFILES): Add wide-int.h and signop.h.
39560 (TAGS): Look for .cc files too.
39561 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39562 * optabs.c (expand_subword_shift): Likewise.
39563 (expand_doubleword_shift): Likewise.
39564 (expand_absneg_bit): Likewise.
39565 (expand_copysign_absneg): Likewise.
39566 (expand_copysign_bit): Likewise.
39567 * postreload.c (reload_cse_simplify_set): Likewise.
39568 * predict.c (predict_iv_comparison): Likewise.
39569 * pretty-print.h: Include wide-int-print.h.
39571 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39572 * print-tree.c: Include wide-int-print.h.
39573 (print_node_brief): Use wide-int interfaces.
39574 (print_node): Likewise.
39575 * read-rtl.c (validate_const_wide_int): New.
39576 (read_rtx_code): Add CONST_WIDE_INT case.
39577 * real.c: Include wide-int.h.
39578 (real_to_integer2): Delete.
39579 (real_to_integer): New function, returning a wide_int.
39580 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39581 (ten_to_ptwo): Update call to real_from_integer.
39582 (real_digit): Likewise.
39583 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39584 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39585 (REAL_VALUE_TO_INT): Delete.
39586 (real_to_integer): Declare a wide-int form.
39587 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39588 * recog.c (const_int_operand): Improve comment.
39589 (const_scalar_int_operand): New.
39590 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39591 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39592 (split_double): Likewise.
39593 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39594 (rtx_size): Likewise.
39595 (rtx_alloc_stat_v): New.
39596 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39597 (cwi_output_hex): New.
39598 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39599 (cwi_check_failed_bounds): New.
39600 * rtl.def (CONST_WIDE_INT): New.
39601 * rtl.h: Include <utility> and wide-int.h.
39602 (struct hwivec_def): New.
39603 (CWI_GET_NUM_ELEM): New.
39604 (CWI_PUT_NUM_ELEM): New.
39605 (struct rtx_def): Add num_elem and hwiv.
39606 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39607 (CASE_CONST_UNIQUE): Likewise.
39608 (CASE_CONST_ANY): Likewise.
39609 (CONST_SCALAR_INT_P): Likewise.
39610 (CONST_WIDE_INT_P): New.
39612 (HWIVEC_CHECK): New.
39613 (cwi_check_failed_bounds): New.
39615 (HWIVEC_CHECK): New.
39616 (CONST_WIDE_INT_VEC) New.
39617 (CONST_WIDE_INT_NUNITS) New.
39618 (CONST_WIDE_INT_ELT) New.
39619 (rtx_mode_t): New type.
39620 (wi::int_traits <rtx_mode_t>): New.
39622 (wi::min_value): New.
39623 (wi::max_value): New.
39625 (const_wide_int_alloc): New.
39626 (immed_wide_int_const): New.
39627 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39628 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39629 * signop.h: New file.
39630 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39631 (simplify_const_unary_operation): Use wide-int interfaces.
39632 (simplify_binary_operation_1): Likewise.
39633 (simplify_const_binary_operation): Likewise.
39634 (simplify_const_relational_operation): Likewise.
39635 (simplify_immed_subreg): Likewise.
39636 * stmt.c (expand_case): Likewise.
39637 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39638 signop rather than a bool.
39639 * stor-layout.c (layout_type): Use wide-int interfaces.
39640 (initialize_sizetypes): Update calls to
39641 set_min_and_max_values_for_integral_type.
39642 (set_min_and_max_values_for_integral_type): Take a signop rather
39643 than a bool. Use wide-int interfaces.
39644 (fixup_signed_type): Update accordingly. Remove
39645 HOST_BITS_PER_DOUBLE_INT limit.
39646 (fixup_unsigned_type): Likewise.
39647 * system.h (STATIC_CONSTANT_P): New.
39648 (STATIC_ASSERT): New.
39649 * target.def (can_use_doloop_p): Take widest_ints rather than
39651 * target.h: Include wide-int.h rather than double-int.h.
39652 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39654 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39655 rather than INT_CST_LT_UNSIGNED.
39656 (can_use_doloop_if_innermost): Take widest_ints rather than
39658 * tree-affine.c: Include wide-int-print.h.
39659 (double_int_ext_for_comb): Delete.
39660 (wide_int_ext_for_comb): New.
39661 (aff_combination_zero): Use wide-int interfaces.
39662 (aff_combination_const): Take a widest_int instead of a double_int.
39663 (aff_combination_elt): Use wide-int interfaces.
39664 (aff_combination_scale): Take a widest_int instead of a double_int.
39665 (aff_combination_add_elt): Likewise.
39666 (aff_combination_add_cst): Likewise.
39667 (aff_combination_add): Use wide-int interfaces.
39668 (aff_combination_convert): Likewise.
39669 (tree_to_aff_combination): Likewise.
39670 (add_elt_to_tree): Take a widest_int instead of a double_int.
39671 (aff_combination_to_tree): Use wide-int interfaces.
39672 (aff_combination_remove_elt): Likewise.
39673 (aff_combination_add_product): Take a widest_int instead of
39675 (aff_combination_mult): Use wide-int interfaces.
39676 (aff_combination_expand): Likewise.
39677 (double_int_constant_multiple_p): Delete.
39678 (wide_int_constant_multiple_p): New.
39679 (aff_combination_constant_multiple_p): Take a widest_int pointer
39680 instead of a double_int pointer.
39681 (print_aff): Use wide-int interfaces.
39682 (get_inner_reference_aff): Take a widest_int pointer
39683 instead of a double_int pointer.
39684 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39685 * tree-affine.h: Include wide-int.h.
39686 (struct aff_comb_elt): Change type of coef to widest_int.
39687 (struct affine_tree_combination): Change type of offset to widest_int.
39688 (double_int_ext_for_comb): Delete.
39689 (wide_int_ext_for_comb): New.
39690 (aff_combination_const): Use widest_int instead of double_int.
39691 (aff_combination_scale): Likewise.
39692 (aff_combination_add_elt): Likewise.
39693 (aff_combination_constant_multiple_p): Likewise.
39694 (get_inner_reference_aff): Likewise.
39695 (aff_comb_cannot_overlap_p): Likewise.
39696 (aff_combination_zero_p): Use wide-int interfaces.
39697 * tree.c: Include tree.h.
39698 (init_ttree): Use make_int_cst.
39699 (tree_code_size): Removed code for INTEGER_CST case.
39700 (tree_size): Add INTEGER_CST case.
39701 (make_node_stat): Update comment.
39702 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39703 (build_int_cst_type): Use wide-int interfaces.
39704 (double_int_to_tree): Likewise.
39705 (double_int_fits_to_tree_p): Delete.
39706 (force_fit_type_double): Delete.
39707 (force_fit_type): New.
39708 (int_cst_hash_hash): Use wide-int interfaces.
39709 (int_cst_hash_eq): Likewise.
39710 (build_int_cst_wide): Delete.
39711 (wide_int_to_tree): New.
39712 (cache_integer_cst): Use wide-int interfaces.
39713 (build_low_bits_mask): Likewise.
39714 (cst_and_fits_in_hwi): Likewise.
39715 (real_value_from_int_cst): Likewise.
39716 (make_int_cst_stat): New.
39717 (integer_zerop): Use wide_int interfaces.
39718 (integer_onep): Likewise.
39719 (integer_all_onesp): Likewise.
39720 (integer_pow2p): Likewise.
39721 (integer_nonzerop): Likewise.
39722 (tree_log2): Likewise.
39723 (tree_floor_log2): Likewise.
39724 (tree_ctz): Likewise.
39725 (int_size_in_bytes): Likewise.
39726 (mem_ref_offset): Return an offset_int rather than a double_int.
39727 (build_type_attribute_qual_variant): Use wide_int interfaces.
39728 (type_hash_eq): Likewise
39729 (tree_int_cst_equal): Likewise.
39730 (tree_int_cst_lt): Delete.
39731 (tree_int_cst_compare): Likewise.
39732 (tree_fits_shwi_p): Use wide_int interfaces.
39733 (tree_fits_uhwi_p): Likewise.
39734 (tree_int_cst_sign_bit): Likewise.
39735 (tree_int_cst_sgn): Likewise.
39736 (tree_int_cst_min_precision): Take a signop rather than a bool.
39737 (simple_cst_equal): Use wide_int interfaces.
39738 (compare_tree_int): Likewise.
39739 (iterative_hash_expr): Likewise.
39740 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39742 (get_type_static_bounds): Use wide_int interfaces.
39743 (tree_int_cst_elt_check_failed): New.
39744 (build_common_tree_nodes): Reordered to set prec before filling in
39746 (int_cst_value): Check cst_and_fits_in_hwi.
39747 (widest_int_cst_value): Use wide_int interfaces.
39748 (upper_bound_in_type): Likewise.
39749 (lower_bound_in_type): Likewise.
39750 (num_ending_zeros): Likewise.
39751 (drop_tree_overflow): Likewise.
39752 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39753 (gen_conditions_for_pow_cst_base): Likewise.
39754 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39755 (group_case_labels_stmt): Use wide-int interfaces.
39756 (verify_gimple_assign_binary): Likewise.
39757 (print_loop): Likewise.
39758 * tree-chrec.c (tree_fold_binomial): Likewise.
39759 * tree-core.h (struct tree_base): Add int_length.
39760 (struct tree_int_cst): Change rep of value.
39761 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39762 (dr_may_alias_p): Likewise.
39763 (max_stmt_executions_tree): Likewise.
39764 * tree.def (INTEGER_CST): Update comment.
39765 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39766 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39767 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39768 (dequeue_and_dump): Use wide-int interfaces.
39769 * tree.h: Include wide-int.h.
39770 (NULL_TREE): Moved to earlier loc in file.
39771 (TREE_INT_CST_ELT_CHECK): New.
39772 (tree_int_cst_elt_check_failed): New.
39774 (TREE_INT_CST): Delete.
39775 (TREE_INT_CST_LOW): Use wide-int interfaces.
39776 (TREE_INT_CST_HIGH): Delete.
39777 (TREE_INT_CST_NUNITS): New.
39778 (TREE_INT_CST_EXT_NUNITS): Likewise.
39779 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39780 (TREE_INT_CST_ELT): Likewise.
39781 (INT_CST_LT): Delete.
39782 (tree_int_cst_elt_check): New (two forms).
39783 (type_code_size): Update comment.
39784 (make_int_cst_stat, make_int_cst): New.
39785 (tree_to_double_int): Delete.
39786 (double_int_fits_to_tree_p): Delete.
39787 (force_fit_type_double): Delete.
39788 (build_int_cstu): Replace with out-of-line function.
39789 (build_int_cst_wide): Delete.
39790 (tree_int_cst_lt): Define inline.
39791 (tree_int_cst_le): New.
39792 (tree_int_cst_compare): Define inline.
39793 (tree_int_cst_min_precision): Take a signop rather than a bool.
39794 (wi::int_traits <const_tree>): New.
39795 (wi::int_traits <tree>): New.
39796 (wi::extended_tree): New.
39797 (wi::int_traits <wi::extended_tree>): New.
39798 (wi::to_widest): New.
39799 (wi::to_offset): New.
39800 (wi::fits_to_tree_p): New.
39801 (wi::min_value): New.
39802 (wi::max_value): New.
39803 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39804 (copy_tree_body_r): Likewise.
39805 * tree-object-size.c (compute_object_offset): Likewise.
39806 (addr_object_size): Likewise.
39807 * tree-predcom.c: Include wide-int-print.h.
39808 (struct dref_d): Change type of offset to widest_int.
39809 (dump_dref): Call wide-int printer.
39810 (aff_combination_dr_offset): Use wide-int interfaces.
39811 (determine_offset): Take a widest_int pointer rather than a
39812 double_int pointer.
39813 (split_data_refs_to_components): Use wide-int interfaces.
39814 (suitable_component_p): Likewise.
39815 (order_drefs): Likewise.
39816 (add_ref_to_chain): Likewise.
39817 (valid_initializer_p): Likewise.
39818 (determine_roots_comp): Likewise.
39819 * tree-pretty-print.c: Include wide-int-print.h.
39820 (dump_generic_node): Use wide-int interfaces.
39821 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39822 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39823 (move_fixed_address_to_symbol): Likewise.
39824 (move_hint_to_base): Likewise.
39825 (move_pointer_to_base): Likewise.
39826 (move_variant_to_index): Likewise.
39827 (most_expensive_mult_to_index): Likewise.
39828 (addr_to_parts): Likewise.
39829 (copy_ref_info): Likewise.
39830 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39831 (indirect_refs_may_alias_p): Likewise.
39832 (stmt_kills_ref_p_1): Likewise.
39833 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39834 * tree-ssa-ccp.c: Update comment at top of file. Include
39836 (struct prop_value_d): Change type of mask to widest_int.
39837 (extend_mask): New function.
39838 (dump_lattice_value): Use wide-int interfaces.
39839 (get_default_value): Likewise.
39840 (set_constant_value): Likewise.
39841 (set_value_varying): Likewise.
39842 (valid_lattice_transition): Likewise.
39843 (set_lattice_value): Likewise.
39844 (value_to_double_int): Delete.
39845 (value_to_wide_int): New.
39846 (get_value_from_alignment): Use wide-int interfaces.
39847 (get_value_for_expr): Likewise.
39848 (do_dbg_cnt): Likewise.
39849 (ccp_finalize): Likewise.
39850 (ccp_lattice_meet): Likewise.
39851 (bit_value_unop_1): Use widest_ints rather than double_ints.
39852 (bit_value_binop_1): Likewise.
39853 (bit_value_unop): Use wide-int interfaces.
39854 (bit_value_binop): Likewise.
39855 (bit_value_assume_aligned): Likewise.
39856 (evaluate_stmt): Likewise.
39857 (ccp_fold_stmt): Likewise.
39858 (visit_cond_stmt): Likewise.
39859 (ccp_visit_stmt): Likewise.
39860 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
39861 (constant_pointer_difference): Likewise.
39862 (associate_pointerplus): Likewise.
39863 (combine_conversions): Likewise.
39864 * tree-ssa-loop.h: Include wide-int.h.
39865 (struct tree_niter_desc): Change type of max to widest_int.
39866 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
39867 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
39868 (remove_redundant_iv_tests): Likewise.
39869 (canonicalize_loop_induction_variables): Likewise.
39870 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
39871 (constant_multiple_of): Take a widest_int pointer instead of
39872 a double_int pointer.
39873 (get_computation_aff): Use wide-int interfaces.
39874 (ptr_difference_cost): Likewise.
39875 (difference_cost): Likewise.
39876 (get_loop_invariant_expr_id): Likewise.
39877 (get_computation_cost_at): Likewise.
39878 (iv_elimination_compare_lt): Likewise.
39879 (may_eliminate_iv): Likewise.
39880 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
39881 instead of double_int.
39882 (max_loop_iterations): Likewise.
39883 (max_stmt_executions): Likewise.
39884 (estimated_stmt_executions): Likewise.
39885 * tree-ssa-loop-niter.c: Include wide-int-print.h.
39886 (split_to_var_and_offset): Use wide-int interfaces.
39887 (determine_value_range): Likewise.
39888 (bound_difference_of_offsetted_base): Likewise.
39889 (bounds_add): Take a widest_int instead of a double_int.
39890 (number_of_iterations_ne_max): Use wide-int interfaces.
39891 (number_of_iterations_ne): Likewise.
39892 (number_of_iterations_lt_to_ne): Likewise.
39893 (assert_loop_rolls_lt): Likewise.
39894 (number_of_iterations_lt): Likewise.
39895 (number_of_iterations_le): Likewise.
39896 (number_of_iterations_cond): Likewise.
39897 (number_of_iterations_exit): Likewise.
39898 (finite_loop_p): Likewise.
39899 (derive_constant_upper_bound_assign): Likewise.
39900 (derive_constant_upper_bound): Return a widest_int.
39901 (derive_constant_upper_bound_ops): Likewise.
39902 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
39903 (record_estimate): Take a widest_int rather than a double_int.
39904 (record_nonwrapping_iv): Use wide-int interfaces.
39905 (double_int_cmp): Delete.
39906 (wide_int_cmp): New.
39907 (bound_index): Take a widest_int rather than a double_int.
39908 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
39909 (maybe_lower_iteration_bound): Likewise.
39910 (estimate_numbers_of_iterations_loop): Likewise.
39911 (estimated_loop_iterations): Take a widest_int pointer than than
39912 a double_int pointer.
39913 (estimated_loop_iterations_int): Use wide-int interfaces.
39914 (max_loop_iterations): Take a widest_int pointer than than
39915 a double_int pointer.
39916 (max_loop_iterations_int): Use wide-int interfaces.
39917 (max_stmt_executions): Take a widest_int pointer than than
39918 a double_int pointer.
39919 (estimated_stmt_executions): Likewise.
39920 (n_of_executions_at_most): Use wide-int interfaces.
39921 (scev_probably_wraps_p): Likewise.
39922 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
39923 to real_to_integer.
39924 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
39926 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
39927 double_ints. Adjust for trailing_wide_ints <3> representation.
39928 (set_nonzero_bits): Likewise.
39929 (get_range_info): Return wide_ints rather than double_ints.
39930 Adjust for trailing_wide_ints <3> representation.
39931 (get_nonzero_bits): Likewise.
39932 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
39934 * tree-ssanames.h (struct range_info_def): Replace min, max and
39935 nonzero_bits with a trailing_wide_ints <3>.
39936 (set_range_info): Use wide_int_refs rather than double_ints.
39937 (set_nonzero_bits): Likewise.
39938 (get_range_info): Return wide_ints rather than double_ints.
39939 (get_nonzero_bits): Likewise.
39940 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
39941 * tree-ssa-pre.c (phi_translate_1): Likewise.
39942 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
39943 (acceptable_pow_call): Likewise.
39944 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
39946 (vn_reference_fold_indirect): Likewise.
39947 (vn_reference_maybe_forwprop_address): Likewise.
39948 (valueize_refs_1): Likewise.
39949 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
39950 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
39951 tree_int_cst_lt and tree_int_cst_le.
39952 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
39954 (streamer_alloc_tree): Likewise.
39955 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
39956 (streamer_write_tree_header): Likewise.
39957 (streamer_write_integer_cst): Likewise.
39958 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
39959 (build_constructors): Likewise.
39960 (array_value_type): Likewise.
39961 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
39962 (vect_check_gather): Likewise.
39963 * tree-vect-generic.c (build_replicated_const): Likewise.
39964 (expand_vector_divmod): Likewise.
39965 * tree-vect-loop.c (vect_transform_loop): Likewise.
39966 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
39967 (vect_do_peeling_for_alignment): Likewise.
39968 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
39969 * tree-vrp.c: Include wide-int.h.
39970 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
39971 (extract_range_from_assert): Use wide-int interfaces.
39972 (vrp_int_const_binop): Likewise.
39973 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
39974 double_int pointers.
39975 (ranges_from_anti_range): Use wide-int interfaces.
39976 (quad_int_cmp): Delete.
39977 (quad_int_pair_sort): Likewise.
39978 (extract_range_from_binary_expr_1): Use wide-int interfaces.
39979 (extract_range_from_unary_expr_1): Likewise.
39980 (adjust_range_with_scev): Likewise.
39981 (masked_increment): Take and return wide_ints rather than double_ints.
39982 (register_edge_assert_for_2): Use wide-int interfaces.
39983 (check_array_ref): Likewise.
39984 (search_for_addr_array): Likewise.
39985 (maybe_set_nonzero_bits): Likewise.
39986 (union_ranges): Pass an integer of the correct type instead of
39987 using integer_one_node.
39988 (intersect_ranges): Likewise.
39989 (simplify_truth_ops_using_ranges): Likewise.
39990 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
39991 (range_fits_type_p): Likewise.
39992 (simplify_cond_using_ranges): Likewise. Take a signop rather than
39994 (simplify_conversion_using_ranges): Use wide-int interfaces.
39995 (simplify_float_conversion_using_ranges): Likewise.
39996 (vrp_finalize): Likewise.
39997 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
39998 (gimple_stringops_transform): Likewise.
39999 * varasm.c (decode_addr_const): Likewise.
40000 (const_hash_1): Likewise.
40001 (const_rtx_hash_1): Likewise
40002 (output_constant): Likewise.
40003 (array_size_for_constructor): Likewise.
40004 (output_constructor_regular_field): Likewise.
40005 (output_constructor_bitfield): Likewise.
40006 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
40007 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
40009 * gencheck.c: Define BITS_PER_UNIT.
40010 * wide-int.cc: New.
40012 * wide-int-print.cc: New.
40013 * wide-int-print.h: New.
40015 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40017 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
40019 2014-05-06 Richard Biener <rguenther@suse.de>
40021 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
40022 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
40023 (TODO_verify_all): Adjust.
40024 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
40025 TODO_verify_stmts and TODO_verify_rtl_sharing.
40026 * bb-reorder.c: Likewise.
40027 * cfgexpand.c: Likewise.
40028 * cprop.c: Likewise.
40030 * function.c: Likewise.
40031 * fwprop.c: Likewise.
40032 * gcse.c: Likewise.
40033 * gimple-ssa-isolate-paths.c: Likewise.
40034 * gimple-ssa-strength-reduction.c: Likewise.
40035 * ipa-split.c: Likewise.
40036 * loop-init.c: Likewise.
40037 * loop-unroll.c: Likewise.
40038 * lower-subreg.c: Likewise.
40039 * modulo-sched.c: Likewise.
40040 * postreload-gcse.c: Likewise.
40041 * predict.c: Likewise.
40042 * recog.c: Likewise.
40043 * sched-rgn.c: Likewise.
40044 * store-motion.c: Likewise.
40045 * tracer.c: Likewise.
40046 * trans-mem.c: Likewise.
40047 * tree-call-cdce.c: Likewise.
40048 * tree-cfg.c: Likewise.
40049 * tree-cfgcleanup.c: Likewise.
40050 * tree-complex.c: Likewise.
40051 * tree-eh.c: Likewise.
40052 * tree-emutls.c: Likewise.
40053 * tree-if-conv.c: Likewise.
40054 * tree-into-ssa.c: Likewise.
40055 * tree-loop-distribution.c: Likewise.
40056 * tree-object-size.c: Likewise.
40057 * tree-parloops.c: Likewise.
40058 * tree-pass.h: Likewise.
40059 * tree-sra.c: Likewise.
40060 * tree-ssa-ccp.c: Likewise.
40061 * tree-ssa-copy.c: Likewise.
40062 * tree-ssa-copyrename.c: Likewise.
40063 * tree-ssa-dce.c: Likewise.
40064 * tree-ssa-dom.c: Likewise.
40065 * tree-ssa-dse.c: Likewise.
40066 * tree-ssa-forwprop.c: Likewise.
40067 * tree-ssa-ifcombine.c: Likewise.
40068 * tree-ssa-loop-ch.c: Likewise.
40069 * tree-ssa-loop-ivcanon.c: Likewise.
40070 * tree-ssa-loop.c: Likewise.
40071 * tree-ssa-math-opts.c: Likewise.
40072 * tree-ssa-phiopt.c: Likewise.
40073 * tree-ssa-phiprop.c: Likewise.
40074 * tree-ssa-pre.c: Likewise.
40075 * tree-ssa-reassoc.c: Likewise.
40076 * tree-ssa-sink.c: Likewise.
40077 * tree-ssa-strlen.c: Likewise.
40078 * tree-ssa-tail-merge.c: Likewise.
40079 * tree-ssa-uncprop.c: Likewise.
40080 * tree-switch-conversion.c: Likewise.
40081 * tree-tailcall.c: Likewise.
40082 * tree-vect-generic.c: Likewise.
40083 * tree-vectorizer.c: Likewise.
40084 * tree-vrp.c: Likewise.
40085 * tsan.c: Likewise.
40086 * var-tracking.c: Likewise.
40087 * bt-load.c: Likewise.
40088 * cfgcleanup.c: Likewise.
40089 * combine-stack-adj.c: Likewise.
40090 * combine.c: Likewise.
40091 * compare-elim.c: Likewise.
40092 * config/epiphany/resolve-sw-modes.c: Likewise.
40093 * config/i386/i386.c: Likewise.
40094 * config/mips/mips.c: Likewise.
40095 * config/s390/s390.c: Likewise.
40096 * config/sh/sh_treg_combine.cc: Likewise.
40097 * config/sparc/sparc.c: Likewise.
40100 * final.c: Likewise.
40101 * ifcvt.c: Likewise.
40102 * mode-switching.c: Likewise.
40103 * passes.c: Likewise.
40104 * postreload.c: Likewise.
40106 * reg-stack.c: Likewise.
40107 * regcprop.c: Likewise.
40108 * regrename.c: Likewise.
40111 2014-05-06 Richard Biener <rguenther@suse.de>
40113 PR middle-end/61070
40114 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
40115 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
40117 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
40120 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
40122 2014-05-05 Radovan Obradovic <robradovic@mips.com>
40123 Tom de Vries <tom@codesourcery.com>
40125 * target.def (call_fusage_contains_non_callee_clobbers): New
40127 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
40129 (@node Miscellaneous Register Hooks): New node.
40130 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
40131 * doc/tm.texi: Regenerate.
40133 2014-05-05 Marek Polacek <polacek@redhat.com>
40136 * opts.c (common_handle_option): Call error_at instead of warning_at.
40138 2014-05-05 Richard Biener <rguenther@suse.de>
40140 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
40141 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
40142 under the TODO_verify_il umbrella.
40144 2014-05-05 Richard Biener <rguenther@suse.de>
40146 * passes.c (execute_function_todo): Move TODO_verify_flow under
40147 the TODO_verify_ul umbrella.
40149 2014-05-05 Richard Biener <rguenther@suse.de>
40151 PR middle-end/61010
40152 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40153 X & CST away from a CST that is the mask of a mode.
40155 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40157 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40158 int argument to enum machine_mode.
40159 (picochip_class_max_nregs): Ditto.
40160 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40161 (picochip_class_max_nregs): Ditto.
40163 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40165 * target.def: Add new target hook.
40166 * doc/tm.texi: Regenerate.
40167 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40168 * targhooks.c (default_keep_leaf_when_profiled): New function.
40170 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40171 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40173 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40175 PR tree-optimization/60363
40176 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40177 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40178 (update_destination_phis): New parameter.
40179 (create_edge_and_update_destination_phis): Ditto.
40180 (ssa_fix_duplicate_block_edges): Pass new arguments.
40181 (thread_single_edge): Ditto.
40183 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40185 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40186 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40187 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40188 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40189 Use RS6000_BTM_HARD_FLOAT.
40190 (BU_MISC_2): Likewise.
40191 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40192 RS6000_BTM_HARD_FLOAT.
40193 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40194 is explicitly used.
40195 (rs6000_invalid_builtin): Add hard floating builtin support.
40196 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40197 hard float builtins.
40198 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40200 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40202 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40203 Add missing function* argument.
40205 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40207 * lra-constraints.c (valid_address_p): Move earlier in file.
40208 Add a constraint argument to the address_info version.
40209 (satisfies_memory_constraint_p): New function.
40210 (satisfies_address_constraint_p): Likewise.
40211 (process_alt_operands, curr_insn_transform): Use them.
40212 (process_address): Pass the constraint to valid_address_p when
40213 checking address operands.
40215 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40217 * config/mips/mips.c (mips_isa_rev): New variable.
40218 (mips_set_architecture): Set it.
40219 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40221 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40222 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40223 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40224 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40225 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40226 conditions in terms of mips_isa_rev.
40227 (mips_isa_rev): Declare.
40229 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40231 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40232 (prob_unlikely, prob_likely): Make variables const.
40234 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40236 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40238 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40240 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40242 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40244 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40245 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40246 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40248 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40249 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40251 Replace usage of ROUND_REG with sh_round_reg.
40252 Use CEIL instead of ROUND_ADVANCE.
40254 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40257 * config/sh/sh.c: Include stdlib headers before everything else.
40259 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40261 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40262 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40263 (gimplify_adjust_omp_clauses): Simd region is never
40264 directly nested in combined parallel. Instead, for linear
40265 with copyin/copyout, if in combined for simd loop, make decl
40266 firstprivate/lastprivate on OMP_FOR.
40267 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40268 expand_omp_for_static_chunk): When setting endvar, also set
40269 fd->loop.v to the same value.
40271 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40273 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40275 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40277 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40280 2014-05-02 Marek Polacek <polacek@redhat.com>
40282 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40284 2014-05-02 Kito Cheng <kito@0xlab.org>
40286 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40287 to a C expression marco.
40288 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40289 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40290 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40291 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40292 HONOR_REG_ALLOC_ORDER.
40293 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40295 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40297 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40299 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40301 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40303 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40305 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40306 (convert_scalar_cond_reduction): Likewise.
40307 (predicate_scalar_phi): Add recognition and transformation
40308 of simple conditioanl reduction to be vectorizable.
40310 2014-05-01 Marek Polacek <polacek@redhat.com>
40313 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40315 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40317 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40318 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40319 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40320 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40321 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40322 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40323 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40324 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40326 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40328 * config/arc/arc.opt (mlra): Move comment above option name
40329 to avoid mis-parsing as language options.
40331 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40333 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40334 * config/sol2.h: ... here.
40335 * config/sol2-10.h: Remove.
40337 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40338 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40339 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40340 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40341 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40342 * config/sol2.h: ... here.
40343 (SECTION_NAME_FORMAT): Don't redefine.
40344 (STARTFILE_ARCH32_SPEC): Rename to ...
40345 (STARTFILE_ARCH_SPEC): ... this.
40346 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40347 * config/sparc/sol2.h: ... here.
40348 (SECTION_NAME_FORMAT): Don't undef.
40349 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40350 (SUBTARGET_EXTRA_SPECS): Remove.
40351 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40353 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40354 (MD_STARTFILE_PREFIX): Remove.
40355 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40356 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40357 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40358 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40359 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40360 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40361 * config/i386/sol2.h: ... here.
40362 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40363 * config/i386/sol2-bi.h: Remove.
40364 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40365 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40367 * config/i386/t-sol2-64: Rename to ...
40368 * config/i386/t-sol2: ... this.
40369 * config/sparc/t-sol2-64: Rename to ...
40370 * config/sparc/t-sol2: ... this.
40372 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40373 sol2_tm_file_head, sol2_tm_file_tail.
40374 Include ${cpu_type}/sol2.h before sol2.h.
40376 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40377 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40378 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40379 Reflect i386/t-sol2-64 renaming.
40380 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40381 Reflect sparc/t-sol2-64 renaming.
40383 2014-04-30 Richard Biener <rguenther@suse.de>
40385 * passes.c (execute_function_todo): Move TODO_verify_stmts
40386 and TODO_verify_ssa under the TODO_verify_il umbrella.
40387 * tree-ssa.h (verify_ssa): Adjust prototype.
40388 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40389 we should verify SSA operands.
40390 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40391 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40392 whether we should verify whether not throwing stmts have EH info.
40393 * graphite-scop-detection.c (create_sese_edges): Adjust.
40394 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40395 * tree-eh.c (lower_try_finally_switch): Do not add the
40396 default case label twice.
40398 2014-04-30 Marek Polacek <polacek@redhat.com>
40400 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40401 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40402 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40403 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40405 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40407 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40408 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40409 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40410 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40411 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40412 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40413 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40414 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40416 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40418 * tree-cfg.c (dump_function_to_file): Dump the return type of
40419 functions, in a line to itself before the function body, mimicking
40420 the layout of a C function.
40422 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40424 PR tree-optimization/60971
40425 * tree-tailcall.c (process_assignment): Reject conversions which
40428 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40430 * calls.c (initialize_argument_information): Always treat
40431 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40432 (expand_call): Likewise.
40433 (emit_library_call_calue_1): Likewise.
40434 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40435 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40438 2014-04-29 Nick Clifton <nickc@redhat.com>
40440 * config/msp430/msp430.md (umulsidi): Fix typo.
40441 (mulhisi3): Enable even inside interrupt handlers.
40442 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40443 bigger return address pushed in large mode.
40445 2014-04-29 Nick Clifton <nickc@redhat.com>
40447 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40448 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40450 * config/m32r/m32r.c (init_reg_tables): Likewise.
40451 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40452 enum to hold the modes.
40454 2014-04-29 Richard Biener <rguenther@suse.de>
40456 * dominance.c (free_dominance_info): Add overload with
40457 function parameter.
40458 (dom_info_state): Likewise.
40459 (dom_info_available_p): Likewise.
40460 * basic-block.h (free_dominance_info, dom_info_state,
40461 dom_info_available_p): Declare overloads.
40462 * passes.c (execute_function_todo): Verify that verifiers
40463 don't change dominator info state. Drop dominator info
40464 for IPA pass invocations.
40465 * cgraph.c (release_function_body): Restore asserts that
40466 dominator information is released.
40468 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40470 * doc/invoke.texi: Fix typo.
40471 * tree-vrp.c: Fix typos.
40472 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40474 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40476 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40478 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40480 * config/aarch64/aarch64-builtins.c
40481 (aarch64_types_storestruct_lane_qualifiers): New.
40482 (TYPES_STORESTRUCT_LANE): Likewise.
40483 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40484 (st3_lane): Likewise.
40485 (st4_lane): Likewise.
40486 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40487 (vec_store_lanesci_lane<mode>): Likewise.
40488 (vec_store_lanesxi_lane<mode>): Likewise.
40489 (aarch64_st2_lane<VQ:mode>): Likewise.
40490 (aarch64_st3_lane<VQ:mode>): Likewise.
40491 (aarch64_st4_lane<VQ:mode>): Likewise.
40492 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40493 * config/aarch64/arm_neon.h
40494 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40495 use new macro arguments.
40496 (__ST3_LANE_FUNC): Likewise.
40497 (__ST4_LANE_FUNC): Likewise.
40498 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40499 (V_THREE_ELEM): Likewise.
40500 (V_FOUR_ELEM): Likewise.
40502 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40504 * doc/gimple.texi: Replace the description of the now-defunct
40505 union gimple_statement_d with a diagram showing the
40506 gimple_statement_base class hierarchy and its relationships to
40507 the GSS_ and GIMPLE_ enums.
40509 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40511 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40512 * config/aarch64/aarch64.c
40513 (aarch64_cannot_change_mode_class): Weaken conditions.
40514 (aarch64_modes_tieable_p): New.
40515 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40517 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40519 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40520 (loadsync_<mode>): Change mode.
40521 (load_quadpti, store_quadpti): New.
40522 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40523 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40525 2014-04-28 Martin Jambor <mjambor@suse.cz>
40527 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40528 same alias type as the original statement.
40529 (subreplacement_assignment_data): New type.
40530 (handle_unscalarized_data_in_subtree): New type of parameter,
40531 generate new memory accesses with same alias type as the original
40533 (load_assign_lhs_subreplacements): Likewise.
40534 (sra_modify_constructor_assign): Generate new memory accesses with
40535 same alias type as the original statement.
40537 2014-04-28 Richard Biener <rguenther@suse.de>
40539 * tree-pass.h (TODO_verify_il): Define.
40540 (TODO_verify_all): Complete properly.
40541 * passes.c (execute_function_todo): Move existing loop-closed
40542 SSA verification under TODO_verify_il.
40543 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40544 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40545 Fix tree sharing issue.
40547 2014-04-28 Richard Biener <rguenther@suse.de>
40549 PR middle-end/60092
40550 * builtins.def (DEF_C11_BUILTIN): Add.
40551 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40552 * coretypes.h (enum function_class): Add function_c11_misc.
40553 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40554 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40555 (call_may_clobber_ref_p_1): Likewise.
40556 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40557 (mark_all_reaching_defs_necessary_1): Likewise.
40558 (propagate_necessity): Likewise.
40559 (eliminate_unnecessary_stmts): Likewise.
40560 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40562 2014-04-28 Richard Biener <rguenther@suse.de>
40564 * tree-vrp.c (vrp_var_may_overflow): Remove.
40565 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40566 with overflow immediately bump to one before that value and
40567 let iteration figure out overflow status.
40569 2014-04-28 Richard Biener <rguenther@suse.de>
40571 * configure.ac: Do valgrind header checks unconditionally.
40572 Add --enable-valgrind-annotations.
40573 * system.h: Guard valgrind header inclusion with
40574 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40575 * alloc-pool.c (pool_alloc, pool_free): Use
40576 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40577 to guard possibly dead code.
40578 * config.in: Regenerated.
40579 * configure: Likewise.
40581 2014-04-28 Jeff Law <law@redhat.com>
40583 PR tree-optimization/60902
40584 * tree-ssa-threadedge.c
40585 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40586 over real defs when invalidating outputs from statements that do not
40587 produce useful outputs for threading.
40589 2014-04-28 Richard Biener <rguenther@suse.de>
40591 PR tree-optimization/60979
40592 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40593 SCOPs that end in a block with a successor with abnormal
40596 2014-04-28 Richard Biener <rguenther@suse.de>
40598 * tree-pass.h (execute_pass_list): Adjust prototype.
40599 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40600 (do_per_function): Change callback signature, push all actual
40601 work to the callbals.
40602 (do_per_function_toporder): Likewise.
40603 (execute_function_dump): Adjust.
40604 (execute_function_todo): Likewise.
40605 (clear_last_verified): Likewise.
40606 (verify_curr_properties): Likewise.
40607 (update_properties_after_pass): Likewise.
40608 (execute_pass_list_1): Split out from ...
40609 (execute_pass_list): ... here. Adjust.
40610 (execute_ipa_pass_list): Likewise.
40611 * cgraphunit.c (cgraph_add_new_function): Adjust.
40612 (analyze_function): Likewise.
40613 (expand_function): Likewise.
40614 * cgraph.c (release_function_body): Free dominance info
40615 here instead of asserting it was magically freed elsewhere.
40617 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40619 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40620 * configure: Regenerate.
40621 * config/sparc/sparc.opt (muser-mode): New option.
40622 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40624 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40625 * doc/invoke.texi (SPARC options): Document -muser-mode.
40627 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40629 * cselib.c (find_slot_memmode): Delete.
40630 (cselib_hasher): Change compare_type to a struct.
40631 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40633 (preserve_constants_and_equivs): Adjust for new compare_type.
40634 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40635 (wrap_constant): Delete.
40636 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40638 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40640 * doc/install.texi (Building with profile feedback): Remove
40643 2014-04-26 Tom de Vries <tom@codesourcery.com>
40645 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40648 2014-04-25 Cary Coutant <ccoutant@google.com>
40651 * dwarf2out.c (should_move_die_to_comdat): A type definition
40652 can contain a subprogram definition, but don't move it to a
40654 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40655 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40657 (clone_tree_hash): Rename to...
40658 (clone_tree_partial): ...this; change callers. Copy
40659 DW_TAG_subprogram DIEs as declarations.
40660 (copy_decls_walk): Don't copy children of a declaration into a
40663 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40666 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40669 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40671 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40672 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40674 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40677 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40679 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40681 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40683 PR tree-optimization/60930
40684 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40685 creating a multiply candidate by folding two constant
40686 multiplicands when the result overflows.
40688 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40690 PR tree-optimization/60960
40691 * tree-vect-generic.c (expand_vector_operation): Only call
40692 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40694 2014-04-25 Tom de Vries <tom@codesourcery.com>
40696 * expr.c (clobber_reg_mode): New function.
40697 * expr.h (clobber_reg): New function.
40699 2014-04-25 Tom de Vries <tom@codesourcery.com>
40701 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40704 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40705 Tom de Vries <tom@codesourcery.com>
40707 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40709 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40710 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40711 new argument to find_all_hard_reg_sets call.
40713 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40715 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40716 Use HOST_WIDE_INT_C for mask literal.
40717 (aarch_rev16_shleft_mask_imm_p): Likewise.
40719 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40722 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40724 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40726 PR preprocessor/56540
40727 * config/i386/i386-c.c (ix86_target_macros): Define
40728 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40730 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40732 * configure.ac (tga_func): Remove.
40733 (LIB_TLS_SPEC): Remove.
40734 * configure: Regenerate.
40735 * config.in: Regenerate.
40736 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40738 2014-04-25 Richard Biener <rguenther@suse.de>
40741 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40742 call stmt use/clobber sets during stmt walk instead of
40743 walking the possibly incomplete set of caller edges.
40745 2014-04-25 Richard Biener <rguenther@suse.de>
40748 * passes.c (apply_ipa_transforms): Inline into only caller ...
40749 (execute_one_pass): ... here. Properly bring in function
40750 bodies for nodes we want to apply IPA transforms to.
40752 2014-04-24 Cong Hou <congh@google.com>
40754 PR tree-optimization/60896
40755 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40756 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40757 (vect_mark_pattern_stmts): Set the def type of all statements in
40758 PATTERN_DEF_SEQ as vect_internal_def.
40760 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40762 * doc/extend.texi (PowerPC Built-in Functions): Document new
40763 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40764 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40766 * config/rs6000/predicates.md (const_0_to_3_operand): New
40767 predicate to match 0..3 integer constants.
40769 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40770 to support adding miscellaneous builtin functions.
40771 (BU_DFP_MISC_2): Likewise.
40772 (BU_P7_MISC_1): Likewise.
40773 (BU_P7_MISC_2): Likewise.
40774 (BU_P8V_MISC_3): Likewise.
40775 (BU_MISC_1): Likewise.
40776 (BU_MISC_2): Likewise.
40777 (DIVWE): Add extended divide builtin functions.
40778 (DIVWEO): Likewise.
40779 (DIVWEU): Likewise.
40780 (DIVWEUO): Likewise.
40782 (DIVDEO): Likewise.
40783 (DIVDEU): Likewise.
40784 (DIVDEUO): Likewise.
40785 (DXEX): Add decimal floating-point builtin functions.
40787 (DDEDPD): Likewise.
40788 (DDEDPDQ): Likewise.
40789 (DENBCD): Likewise.
40790 (DENBCDQ): Likewise.
40794 (DSCLIQ): Likewise.
40796 (DSCRIQ): Likewise.
40797 (CDTBCD): Add new BCD builtin functions.
40798 (CBCDTD): Likewise.
40799 (ADDG6S): Likewise.
40800 (BCDADD): Likewise.
40801 (BCDADD_LT): Likewise.
40802 (BCDADD_EQ): Likewise.
40803 (BCDADD_GT): Likewise.
40804 (BCDADD_OV): Likewise.
40805 (BCDSUB): Likewise.
40806 (BCDSUB_LT): Likewise.
40807 (BCDSUB_EQ): Likewise.
40808 (BCDSUB_GT): Likewise.
40809 (BCDSUB_OV): Likewise.
40810 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40811 (UNPACK_TD): Likewise.
40812 (PACK_TF): Likewise.
40813 (UNPACK_TF): Likewise.
40814 (UNPACK_TF_0): Likewise.
40815 (UNPACK_TF_1): Likewise.
40816 (PACK_V1TI): Likewise.
40817 (UNPACK_V1TI): Likewise.
40819 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40820 support for decimal floating point builtin functions.
40821 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40822 functions that take constant arguments.
40823 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40824 (rs6000_init_builtins): Setup long double, _Decimal64, and
40825 _Decimal128 types for new builtin functions.
40826 (builtin_function_type): Set the unsigned flags appropriately for
40827 the new builtin functions.
40828 (rs6000_opt_masks): Add support for decimal floating point builtin
40831 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40832 floating point builtin functions.
40833 (RS6000_BTM_COMMON): Likewise.
40834 (RS6000_BTI_long_double): Likewise.
40835 (RS6000_BTI_dfloat64): Likewise.
40836 (RS6000_BTI_dfloat128): Likewise.
40837 (long_double_type_internal_node): Likewise.
40838 (dfloat64_type_internal_node): Likewise.
40839 (dfloat128_type_internal_node): Likewise.
40841 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40842 2.07 bcd arithmetic instructions.
40843 (UNSPEC_BCDSUB): Likewise.
40844 (UNSPEC_BCD_OVERFLOW): Likewise.
40845 (UNSPEC_BCD_ADD_SUB): Likewise.
40846 (bcd_add_sub): Likewise.
40847 (BCD_TEST): Likewise.
40848 (bcd<bcd_add_sub>): Likewise.
40849 (bcd<bcd_add_sub>_test): Likewise.
40850 (bcd<bcd_add_sub>_test2): Likewise.
40851 (bcd<bcd_add_sub>_<code>): Likewise.
40852 (peephole2 for combined bcd ops): Likewise.
40854 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
40855 decimal floating point builtin functions.
40856 (UNSPEC_DENBCD): Likewise.
40857 (UNSPEC_DXEX): Likewise.
40858 (UNSPEC_DIEX): Likewise.
40859 (UNSPEC_DSCLI): Likewise.
40860 (UNSPEC_DSCRI): Likewise.
40861 (D64_D128): Likewise.
40862 (dfp_suffix): Likewise.
40863 (dfp_ddedpd_<mode>): Likewise.
40864 (dfp_denbcd_<mode>): Likewise.
40865 (dfp_dxex_<mode>): Likewise.
40866 (dfp_diex_<mode>): Likewise.
40867 (dfp_dscli_<mode>): Likewise.
40868 (dfp_dscri_<mode>): Likewise.
40870 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
40872 (UNSPEC_CDTBCD): Likewise.
40873 (UNSPEC_CBCDTD): Likewise.
40874 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
40875 (UNSPEC_DIVEO): Likewise.
40876 (UNSPEC_DIVEU): Likewise.
40877 (UNSPEC_DIVEUO): Likewise.
40878 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
40879 pack/unpack 128-bit types.
40880 (UNSPEC_PACK_128BIT): Likewise.
40881 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
40882 (udiv<mode>3): Use idiv_ldiv mode attribute.
40883 (div<mode>3): Likewise.
40884 (addg6s): Add new BCD builtin functions.
40885 (cdtbcd): Likewise.
40886 (cbcdtd): Likewise.
40887 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
40888 (div_extend): Likewise.
40889 (div<div_extend>_<mode>"): Likewise.
40890 (FP128_64): Add support for new builtin functions to pack/unpack
40892 (unpack<mode>): Likewise.
40893 (unpacktf_0): Likewise.
40894 (unpacktf_1): Likewise.
40895 (unpack<mode>_dm): Likewise.
40896 (unpack<mode>_nodm): Likewise.
40897 (pack<mode>): Likewise.
40898 (unpackv1ti): Likewise.
40899 (packv1ti): Likewise.
40901 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
40903 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
40906 2014-04-24 Jakub Jelinek <jakub@redhat.com>
40908 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
40909 * gimplify.c (omp_is_private): Change last argument's type to int.
40910 Only diagnose lastprivate if the simd argument is 1, only diagnose
40911 linear if the simd argument is 2.
40912 (gimplify_omp_for): Adjust omp_is_private callers. When adding
40913 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
40914 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
40915 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
40916 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
40917 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40918 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
40919 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40920 * tree-nested.c (convert_nonlocal_omp_clauses,
40921 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
40923 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
40926 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
40929 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
40931 * flag-types.h (enum ivar_visibility): Add.
40933 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
40935 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
40936 function * argument.
40938 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
40940 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
40942 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40943 Tom de Vries <tom@codesourcery.com>
40945 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
40946 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
40948 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
40949 * emit-rtl.c (try_split): Same.
40951 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40952 Tom de Vries <tom@codesourcery.com>
40954 * common.opt (fuse-caller-save): New option.
40956 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
40958 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
40959 elements for big-endian.
40961 2014-04-24 Richard Biener <rguenther@suse.de>
40963 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
40964 during TER and instead use the sepops interface for expanding
40965 non-GIMPLE_SINGLE_RHS.
40967 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40969 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
40970 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
40972 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40974 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
40975 assembler 64-bit option.
40976 * configure: Regenerate.
40978 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40980 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
40981 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
40982 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
40983 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
40984 (TARGET_CRYPTO): Take TARGET_SIMD into account.
40986 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40988 * config/aarch64/aarch64-builtins.c
40989 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
40990 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
40991 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
40992 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
40994 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
40995 (Vrevsuff): New mode attribute.
40997 2014-04-24 Terry Guo <terry.guo@arm.com>
40999 * config/arm/arm.h (machine_function): Define variable
41000 after_arm_reorg here.
41001 * config/arm/arm.c (after_arm_reorg): Remove the definition.
41002 (arm_split_constant): Update the way to access variable
41004 (arm_reorg): Ditto.
41005 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
41007 2014-04-23 Tom de Vries <tom@codesourcery.com>
41009 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
41011 2014-04-23 David Malcolm <dmalcolm@redhat.com>
41013 * is-a.h: Update comments to reflect the following changes to the
41014 "pointerness" of the API, making the template parameter match the
41015 return type, allowing use of is-a.h with typedefs of pointers.
41016 (is_a_helper::cast): Return a T rather then a pointer to a T, so
41017 that the return type matches the parameter to the is_a_helper.
41019 (dyn_cast): Likewise.
41021 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
41022 pointer from the is-a.h API.
41024 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
41025 (is_a_helper <cgraph_node *>::test): ...this, matching change to
41027 (is_a_helper <varpool_node>::test): Likewise, convert to...
41028 (is_a_helper <varpool_node *>::test): ...this.
41030 (varpool_first_variable): Update for removal of implicit pointer
41031 from the is-a.h API.
41032 (varpool_next_variable): Likewise.
41033 (varpool_first_static_initializer): Likewise.
41034 (varpool_next_static_initializer): Likewise.
41035 (varpool_first_defined_variable): Likewise.
41036 (varpool_next_defined_variable): Likewise.
41037 (cgraph_first_defined_function): Likewise.
41038 (cgraph_next_defined_function): Likewise.
41039 (cgraph_first_function): Likewise.
41040 (cgraph_next_function): Likewise.
41041 (cgraph_first_function_with_gimple_body): Likewise.
41042 (cgraph_next_function_with_gimple_body): Likewise.
41043 (cgraph_alias_target): Likewise.
41044 (varpool_alias_target): Likewise.
41045 (cgraph_function_or_thunk_node): Likewise.
41046 (varpool_variable_node): Likewise.
41047 (symtab_real_symbol_p): Likewise.
41048 * cgraphunit.c (referred_to_p): Likewise.
41049 (analyze_functions): Likewise.
41050 (handle_alias_pairs): Likewise.
41051 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
41052 * gimple-ssa.h (gimple_vuse_op): Likewise.
41053 (gimple_vdef_op): Likewise.
41054 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
41055 * gimple.c (gimple_build_asm_1): Likewise.
41056 (gimple_build_try): Likewise.
41057 (gimple_build_resx): Likewise.
41058 (gimple_build_eh_dispatch): Likewise.
41059 (gimple_build_omp_for): Likewise.
41060 (gimple_omp_for_set_clauses): Likewise.
41062 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
41063 (is_a_helper <gimple_statement_asm *>::test): ...this.
41064 (is_a_helper <gimple_statement_bind>::test): Convert to...
41065 (is_a_helper <gimple_statement_bind *>::test): ...this.
41066 (is_a_helper <gimple_statement_call>::test): Convert to...
41067 (is_a_helper <gimple_statement_call *>::test): ...this.
41068 (is_a_helper <gimple_statement_catch>::test): Convert to...
41069 (is_a_helper <gimple_statement_catch *>::test): ...this.
41070 (is_a_helper <gimple_statement_resx>::test): Convert to...
41071 (is_a_helper <gimple_statement_resx *>::test): ...this.
41072 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
41073 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
41074 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
41075 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
41076 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
41077 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
41078 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
41079 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
41080 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
41081 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
41082 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
41083 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
41084 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
41085 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
41086 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
41087 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
41088 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
41089 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
41090 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
41091 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
41092 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
41093 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
41094 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
41095 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
41096 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
41097 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
41098 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
41099 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
41100 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
41101 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
41102 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
41103 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
41104 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
41105 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
41106 (is_a_helper <gimple_statement_phi>::test): Convert to...
41107 (is_a_helper <gimple_statement_phi *>::test): ...this.
41108 (is_a_helper <gimple_statement_transaction>::test): Convert to...
41109 (is_a_helper <gimple_statement_transaction *>::test): ...this.
41110 (is_a_helper <gimple_statement_try>::test): Convert to...
41111 (is_a_helper <gimple_statement_try *>::test): ...this.
41112 (is_a_helper <gimple_statement_wce>::test): Convert to...
41113 (is_a_helper <gimple_statement_wce *>::test): ...this.
41114 (is_a_helper <const gimple_statement_asm>::test): Convert to...
41115 (is_a_helper <const gimple_statement_asm *>::test): ...this.
41116 (is_a_helper <const gimple_statement_bind>::test): Convert to...
41117 (is_a_helper <const gimple_statement_bind *>::test): ...this.
41118 (is_a_helper <const gimple_statement_call>::test): Convert to...
41119 (is_a_helper <const gimple_statement_call *>::test): ...this.
41120 (is_a_helper <const gimple_statement_catch>::test): Convert to...
41121 (is_a_helper <const gimple_statement_catch *>::test): ...this.
41122 (is_a_helper <const gimple_statement_resx>::test): Convert to...
41123 (is_a_helper <const gimple_statement_resx *>::test): ...this.
41124 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
41125 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
41126 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
41127 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
41128 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
41130 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
41132 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
41134 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
41136 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
41137 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
41138 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
41140 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
41141 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
41143 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
41144 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41145 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41146 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41147 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41148 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41150 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41151 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41152 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41153 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41155 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41156 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41157 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41158 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41159 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41160 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41161 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41162 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41163 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41164 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41165 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41166 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41167 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41168 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41169 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41170 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41172 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41174 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41175 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41177 (gimple_use_ops): Update for removal of implicit pointer from the
41179 (gimple_set_use_ops): Likewise.
41180 (gimple_vuse): Likewise.
41181 (gimple_vdef): Likewise.
41182 (gimple_vuse_ptr): Likewise.
41183 (gimple_vdef_ptr): Likewise.
41184 (gimple_set_vuse): Likewise.
41185 (gimple_set_vdef): Likewise.
41186 (gimple_omp_return_set_lhs): Likewise.
41187 (gimple_omp_return_lhs): Likewise.
41188 (gimple_omp_return_lhs_ptr): Likewise.
41189 (gimple_call_fntype): Likewise.
41190 (gimple_call_set_fntype): Likewise.
41191 (gimple_call_set_internal_fn): Likewise.
41192 (gimple_call_use_set): Likewise.
41193 (gimple_call_clobber_set): Likewise.
41194 (gimple_bind_vars): Likewise.
41195 (gimple_bind_set_vars): Likewise.
41196 (gimple_bind_body_ptr): Likewise.
41197 (gimple_bind_set_body): Likewise.
41198 (gimple_bind_add_stmt): Likewise.
41199 (gimple_bind_block): Likewise.
41200 (gimple_bind_set_block): Likewise.
41201 (gimple_asm_ninputs): Likewise.
41202 (gimple_asm_noutputs): Likewise.
41203 (gimple_asm_nclobbers): Likewise.
41204 (gimple_asm_nlabels): Likewise.
41205 (gimple_asm_input_op): Likewise.
41206 (gimple_asm_input_op_ptr): Likewise.
41207 (gimple_asm_output_op): Likewise.
41208 (gimple_asm_output_op_ptr): Likewise.
41209 (gimple_asm_set_output_op): Likewise.
41210 (gimple_asm_clobber_op): Likewise.
41211 (gimple_asm_set_clobber_op): Likewise.
41212 (gimple_asm_label_op): Likewise.
41213 (gimple_asm_set_label_op): Likewise.
41214 (gimple_asm_string): Likewise.
41215 (gimple_catch_types): Likewise.
41216 (gimple_catch_types_ptr): Likewise.
41217 (gimple_catch_handler_ptr): Likewise.
41218 (gimple_catch_set_types): Likewise.
41219 (gimple_catch_set_handler): Likewise.
41220 (gimple_eh_filter_types): Likewise.
41221 (gimple_eh_filter_types_ptr): Likewise.
41222 (gimple_eh_filter_failure_ptr): Likewise.
41223 (gimple_eh_filter_set_types): Likewise.
41224 (gimple_eh_filter_set_failure): Likewise.
41225 (gimple_eh_must_not_throw_fndecl): Likewise.
41226 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41227 (gimple_eh_else_n_body_ptr): Likewise.
41228 (gimple_eh_else_e_body_ptr): Likewise.
41229 (gimple_eh_else_set_n_body): Likewise.
41230 (gimple_eh_else_set_e_body): Likewise.
41231 (gimple_try_eval_ptr): Likewise.
41232 (gimple_try_cleanup_ptr): Likewise.
41233 (gimple_try_set_eval): Likewise.
41234 (gimple_try_set_cleanup): Likewise.
41235 (gimple_wce_cleanup_ptr): Likewise.
41236 (gimple_wce_set_cleanup): Likewise.
41237 (gimple_phi_capacity): Likewise.
41238 (gimple_phi_num_args): Likewise.
41239 (gimple_phi_result): Likewise.
41240 (gimple_phi_result_ptr): Likewise.
41241 (gimple_phi_set_result): Likewise.
41242 (gimple_phi_arg): Likewise.
41243 (gimple_phi_set_arg): Likewise.
41244 (gimple_resx_region): Likewise.
41245 (gimple_resx_set_region): Likewise.
41246 (gimple_eh_dispatch_region): Likewise.
41247 (gimple_eh_dispatch_set_region): Likewise.
41248 (gimple_omp_critical_name): Likewise.
41249 (gimple_omp_critical_name_ptr): Likewise.
41250 (gimple_omp_critical_set_name): Likewise.
41251 (gimple_omp_for_clauses): Likewise.
41252 (gimple_omp_for_clauses_ptr): Likewise.
41253 (gimple_omp_for_set_clauses): Likewise.
41254 (gimple_omp_for_collapse): Likewise.
41255 (gimple_omp_for_index): Likewise.
41256 (gimple_omp_for_index_ptr): Likewise.
41257 (gimple_omp_for_set_index): Likewise.
41258 (gimple_omp_for_initial): Likewise.
41259 (gimple_omp_for_initial_ptr): Likewise.
41260 (gimple_omp_for_set_initial): Likewise.
41261 (gimple_omp_for_final): Likewise.
41262 (gimple_omp_for_final_ptr): Likewise.
41263 (gimple_omp_for_set_final): Likewise.
41264 (gimple_omp_for_incr): Likewise.
41265 (gimple_omp_for_incr_ptr): Likewise.
41266 (gimple_omp_for_set_incr): Likewise.
41267 (gimple_omp_for_pre_body_ptr): Likewise.
41268 (gimple_omp_for_set_pre_body): Likewise.
41269 (gimple_omp_parallel_clauses): Likewise.
41270 (gimple_omp_parallel_clauses_ptr): Likewise.
41271 (gimple_omp_parallel_set_clauses): Likewise.
41272 (gimple_omp_parallel_child_fn): Likewise.
41273 (gimple_omp_parallel_child_fn_ptr): Likewise.
41274 (gimple_omp_parallel_set_child_fn): Likewise.
41275 (gimple_omp_parallel_data_arg): Likewise.
41276 (gimple_omp_parallel_data_arg_ptr): Likewise.
41277 (gimple_omp_parallel_set_data_arg): Likewise.
41278 (gimple_omp_task_clauses): Likewise.
41279 (gimple_omp_task_clauses_ptr): Likewise.
41280 (gimple_omp_task_set_clauses): Likewise.
41281 (gimple_omp_task_child_fn): Likewise.
41282 (gimple_omp_task_child_fn_ptr): Likewise.
41283 (gimple_omp_task_set_child_fn): Likewise.
41284 (gimple_omp_task_data_arg): Likewise.
41285 (gimple_omp_task_data_arg_ptr): Likewise.
41286 (gimple_omp_task_set_data_arg): Likewise.
41287 (gimple_omp_taskreg_clauses): Likewise.
41288 (gimple_omp_taskreg_clauses_ptr): Likewise.
41289 (gimple_omp_taskreg_set_clauses): Likewise.
41290 (gimple_omp_taskreg_child_fn): Likewise.
41291 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41292 (gimple_omp_taskreg_set_child_fn): Likewise.
41293 (gimple_omp_taskreg_data_arg): Likewise.
41294 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41295 (gimple_omp_taskreg_set_data_arg): Likewise.
41296 (gimple_omp_task_copy_fn): Likewise.
41297 (gimple_omp_task_copy_fn_ptr): Likewise.
41298 (gimple_omp_task_set_copy_fn): Likewise.
41299 (gimple_omp_task_arg_size): Likewise.
41300 (gimple_omp_task_arg_size_ptr): Likewise.
41301 (gimple_omp_task_set_arg_size): Likewise.
41302 (gimple_omp_task_arg_align): Likewise.
41303 (gimple_omp_task_arg_align_ptr): Likewise.
41304 (gimple_omp_task_set_arg_align): Likewise.
41305 (gimple_omp_single_clauses): Likewise.
41306 (gimple_omp_single_clauses_ptr): Likewise.
41307 (gimple_omp_single_set_clauses): Likewise.
41308 (gimple_omp_target_clauses): Likewise.
41309 (gimple_omp_target_clauses_ptr): Likewise.
41310 (gimple_omp_target_set_clauses): Likewise.
41311 (gimple_omp_target_child_fn): Likewise.
41312 (gimple_omp_target_child_fn_ptr): Likewise.
41313 (gimple_omp_target_set_child_fn): Likewise.
41314 (gimple_omp_target_data_arg): Likewise.
41315 (gimple_omp_target_data_arg_ptr): Likewise.
41316 (gimple_omp_target_set_data_arg): Likewise.
41317 (gimple_omp_teams_clauses): Likewise.
41318 (gimple_omp_teams_clauses_ptr): Likewise.
41319 (gimple_omp_teams_set_clauses): Likewise.
41320 (gimple_omp_sections_clauses): Likewise.
41321 (gimple_omp_sections_clauses_ptr): Likewise.
41322 (gimple_omp_sections_set_clauses): Likewise.
41323 (gimple_omp_sections_control): Likewise.
41324 (gimple_omp_sections_control_ptr): Likewise.
41325 (gimple_omp_sections_set_control): Likewise.
41326 (gimple_omp_for_set_cond): Likewise.
41327 (gimple_omp_for_cond): Likewise.
41328 (gimple_omp_atomic_store_set_val): Likewise.
41329 (gimple_omp_atomic_store_val): Likewise.
41330 (gimple_omp_atomic_store_val_ptr): Likewise.
41331 (gimple_omp_atomic_load_set_lhs): Likewise.
41332 (gimple_omp_atomic_load_lhs): Likewise.
41333 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41334 (gimple_omp_atomic_load_set_rhs): Likewise.
41335 (gimple_omp_atomic_load_rhs): Likewise.
41336 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41337 (gimple_omp_continue_control_def): Likewise.
41338 (gimple_omp_continue_control_def_ptr): Likewise.
41339 (gimple_omp_continue_set_control_def): Likewise.
41340 (gimple_omp_continue_control_use): Likewise.
41341 (gimple_omp_continue_control_use_ptr): Likewise.
41342 (gimple_omp_continue_set_control_use): Likewise.
41343 (gimple_transaction_body_ptr): Likewise.
41344 (gimple_transaction_label): Likewise.
41345 (gimple_transaction_label_ptr): Likewise.
41346 (gimple_transaction_set_body): Likewise.
41347 (gimple_transaction_set_label): Likewise.
41349 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41350 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41351 * ipa-ref.c (ipa_record_reference): Likewise.
41352 * ipa-reference.c (analyze_function): Likewise.
41353 (ipa_reference_write_optimization_summary): Likewise.
41354 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41355 (address_taken_from_non_vtable_p): Likewise.
41356 (comdat_can_be_unshared_p_1): Likewise.
41357 * lto-cgraph.c (lto_output_ref): Likewise.
41358 (add_references): Likewise.
41359 (compute_ltrans_boundary): Likewise.
41360 (output_symtab): Likewise.
41361 (input_ref): Likewise.
41362 (input_cgraph_1): Likewise.
41363 (output_cgraph_opt_summary): Likewise.
41364 * lto-streamer-out.c (lto_output): Likewise.
41365 (output_symbol_p): Likewise.
41366 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41367 (lsei_start_function_in_partition): Likewise.
41368 (lsei_next_variable_in_partition): Likewise.
41369 (lsei_start_variable_in_partition): Likewise.
41370 * symtab.c (insert_to_assembler_name_hash): Likewise.
41371 (unlink_from_assembler_name_hash): Likewise.
41372 (symtab_unregister_node): Likewise.
41373 (symtab_remove_node): Likewise.
41374 (dump_symtab_node): Likewise.
41375 (verify_symtab_base): Likewise.
41376 (verify_symtab_node): Likewise.
41377 (symtab_make_decl_local): Likewise.
41378 (symtab_alias_ultimate_target): Likewise.
41379 (symtab_resolve_alias): Likewise.
41380 (symtab_get_symbol_partitioning_class): Likewise.
41381 * tree-phinodes.c (allocate_phi_node): Likewise.
41382 (reserve_phi_args_for_new_edge): Likewise.
41383 (remove_phi_args): Likewise.
41384 * varpool.c (varpool_node_for_asm): Likewise.
41385 (varpool_remove_unreferenced_decls): Likewise.
41387 2014-04-23 Jeff Law <law@redhat.com>
41389 PR tree-optimization/60902
41390 * tree-ssa-threadedge.c
41391 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41392 invalidate outputs from statements that do not produce useful
41393 outputs for threading.
41395 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41397 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41398 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41399 machine descriptions for Stack Smashing Protector.
41401 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41403 * aarch64.md (<optab>_rol<mode>3): New pattern.
41404 (<optab>_rolsi3_uxtw): Likewise.
41405 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41407 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41409 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41410 (arm_cortex_a12_tune): Likewise.
41412 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41414 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41416 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41418 * config/arm/arm.md (arm_rev16si2): New pattern.
41419 (arm_rev16si2_alt): Likewise.
41420 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41422 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41424 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41425 (rev16<mode>2_alt): Likewise.
41426 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41427 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41428 (aarch_rev16_shleft_mask_imm_p): Likewise.
41429 (aarch_rev16_p_1): Likewise.
41430 (aarch_rev16_p): Likewise.
41431 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41432 (aarch_rev16_shright_mask_imm_p): Likewise.
41433 (aarch_rev16_shleft_mask_imm_p): Likewise.
41435 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41437 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41438 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41440 (cortex_a53_extra_costs): Likewise.
41441 (cortex_a57_extra_costs): Likewise.
41442 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41443 (cortexa7_extra_costs): Likewise.
41444 (cortexa8_extra_costs): Likewise.
41445 (cortexa12_extra_costs): Likewise.
41446 (cortexa15_extra_costs): Likewise.
41447 (v7m_extra_costs): Likewise.
41448 (arm_new_rtx_costs): Handle BSWAP.
41450 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41452 * config/arm/arm.c (cortexa8_extra_costs): New table.
41453 (arm_cortex_a8_tune): New tuning struct.
41454 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41456 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41458 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41460 2014-04-23 Richard Biener <rguenther@suse.de>
41462 * Makefile.in (OBJS): Remove loop-unswitch.o.
41463 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41464 * passes.def (pass_rtl_unswitch): Likewise.
41465 * loop-init.c (gate_rtl_unswitch): Likewise.
41466 (rtl_unswitch): Likewise.
41467 (pass_data_rtl_unswitch): Likewise.
41468 (pass_rtl_unswitch): Likewise.
41469 (make_pass_rtl_unswitch): Likewise.
41470 * rtl.h (reversed_condition): Likewise.
41471 (compare_and_jump_seq): Likewise.
41472 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41474 * loop-unroll.c (compare_and_jump_seq): Likewise.
41476 2014-04-23 Richard Biener <rguenther@suse.de>
41478 PR tree-optimization/60903
41479 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41480 commented code block.
41481 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41482 loop flags to newly created BBs and edges.
41484 2014-04-23 Nick Clifton <nickc@redhat.com>
41486 * config/msp430/msp430.c (msp430_handle_option): Move function
41488 (msp430_option_override): Simplify mcu and mcpu option handling.
41489 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41490 support for -mhwmult command line option.
41491 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41492 -mhwmult command line option.
41493 (msp430_hwmult_enabled): Delete.
41494 (msp43o_output_labelref): Add support for -mhwmult command line option.
41495 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41496 (umulsidi3): Likewise.
41497 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41498 (mcpu, mlarge, msmall): Likewise.
41499 (mhwmult): New option.
41500 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41502 (msp430_is_f5_mcu): Remove prototype.
41503 (msp430_use_f5_series_hwmult): Add prototype.
41504 * config/msp430/msp430-opts.h: New file.
41505 * common/config/msp430: New directory.
41506 * common/config/msp430/msp430-common.c: New file.
41507 * config.gcc (msp430): Remove target_has_targetm_common.
41508 * doc/invoke.texi: Document -mhwmult command line option.
41510 2014-04-23 Nick Clifton <nickc@redhat.com>
41512 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41513 default-manifest.o if it can be found in the search path.
41514 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41516 2014-04-23 Terry Guo <terry.guo@arm.com>
41518 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41520 2014-04-23 Richard Biener <rguenther@suse.de>
41522 PR middle-end/60895
41523 * tree-inline.c (declare_return_variable): Use mark_addressable.
41525 2014-04-23 Richard Biener <rguenther@suse.de>
41527 PR middle-end/60891
41528 * loop-init.c (loop_optimizer_init): Make sure to apply
41529 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41531 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41534 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41536 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41537 if flag_sanitize_undefined_trap_on_error.
41538 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41539 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41540 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41541 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41542 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41543 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41544 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41545 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41546 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41547 * ubsan.c (ubsan_instrument_unreachable): Return
41548 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41549 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41550 if flag_sanitize_undefined_trap_on_error and
41551 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41552 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41553 instrument_bool_enum_load): Emit __builtin_trap () if
41554 flag_sanitize_undefined_trap_on_error and
41555 __builtin_handle_*_abort () if !flag_sanitize_recover.
41556 * doc/invoke.texi (-fsanitize-recover,
41557 -fsanitize-undefined-trap-on-error): Document.
41559 2014-04-22 Christian Bruel <christian.bruel@st.com>
41561 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41562 Force immediates to SImode.
41564 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41566 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41567 (lroundsfsi2): New.
41568 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41569 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41570 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41571 (nios2_fpu_insn): Add entry for round.
41572 (N2FPU_NO_ERRNO_P): Define.
41573 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41575 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41577 2014-04-22 Richard Henderson <rth@redhat.com>
41579 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41580 (add<GPI>3_compare0): Remove leading * from name.
41581 (add<GPI>3_carryin): Likewise.
41582 (sub<GPI>3_compare0): Likewise.
41583 (sub<GPI>3_carryin): Likewise.
41584 (<su_optab>mulditi3): New expander.
41585 (multi3): New expander.
41586 (madd<GPI>): Remove leading * from name.
41588 2014-04-22 Martin Jambor <mjambor@suse.cz>
41590 * cgraphclones.c (cgraph_function_versioning): Copy
41591 ipa_transforms_to_apply instead of asserting it is empty.
41593 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41596 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41597 on count_exp to get mode.
41599 2014-04-22 Andrew Pinski <apinski@cavium.com>
41601 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41602 Handle TLS for ILP32.
41603 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41604 (tlsie_small_<mode>): this and handle PTR.
41605 (tlsie_small_sidi): New pattern.
41606 (tlsle_small): Change to an expand to handle ILP32.
41607 (tlsle_small_<mode>): New pattern.
41608 (tlsdesc_small): Rename to ...
41609 (tlsdesc_small_<mode>): this and handle PTR.
41611 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41613 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41615 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41617 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41618 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41619 (aarch64_types_signed_poly_qualifiers): Likewise.
41620 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41621 (aarch64_types_poly_signed_qualifiers): Likewise.
41622 (TYPES_REINTERP_SS): Type macro added.
41623 (TYPES_REINTERP_SU): Likewise.
41624 (TYPES_REINTERP_SP): Likewise.
41625 (TYPES_REINTERP_US): Likewise.
41626 (TYPES_REINTERP_PS): Likewise.
41627 (aarch64_fold_builtin): New expression folding added.
41628 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41629 Declarations removed.
41630 (REINTERP_SS): Declarations added.
41631 (REINTERP_US): Likewise.
41632 (REINTERP_PS): Likewise.
41633 (REINTERP_SU): Likewise.
41634 (REINTERP_SP): Likewise.
41635 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41636 (vreinterpretq_p8_f64): Likewise.
41637 (vreinterpret_p16_f64): Likewise.
41638 (vreinterpretq_p16_f64): Likewise.
41639 (vreinterpret_f32_f64): Likewise.
41640 (vreinterpretq_f32_f64): Likewise.
41641 (vreinterpret_f64_f32): Likewise.
41642 (vreinterpret_f64_p8): Likewise.
41643 (vreinterpret_f64_p16): Likewise.
41644 (vreinterpret_f64_s8): Likewise.
41645 (vreinterpret_f64_s16): Likewise.
41646 (vreinterpret_f64_s32): Likewise.
41647 (vreinterpret_f64_s64): Likewise.
41648 (vreinterpret_f64_u8): Likewise.
41649 (vreinterpret_f64_u16): Likewise.
41650 (vreinterpret_f64_u32): Likewise.
41651 (vreinterpret_f64_u64): Likewise.
41652 (vreinterpretq_f64_f32): Likewise.
41653 (vreinterpretq_f64_p8): Likewise.
41654 (vreinterpretq_f64_p16): Likewise.
41655 (vreinterpretq_f64_s8): Likewise.
41656 (vreinterpretq_f64_s16): Likewise.
41657 (vreinterpretq_f64_s32): Likewise.
41658 (vreinterpretq_f64_s64): Likewise.
41659 (vreinterpretq_f64_u8): Likewise.
41660 (vreinterpretq_f64_u16): Likewise.
41661 (vreinterpretq_f64_u32): Likewise.
41662 (vreinterpretq_f64_u64): Likewise.
41663 (vreinterpret_s64_f64): Likewise.
41664 (vreinterpretq_s64_f64): Likewise.
41665 (vreinterpret_u64_f64): Likewise.
41666 (vreinterpretq_u64_f64): Likewise.
41667 (vreinterpret_s8_f64): Likewise.
41668 (vreinterpretq_s8_f64): Likewise.
41669 (vreinterpret_s16_f64): Likewise.
41670 (vreinterpretq_s16_f64): Likewise.
41671 (vreinterpret_s32_f64): Likewise.
41672 (vreinterpretq_s32_f64): Likewise.
41673 (vreinterpret_u8_f64): Likewise.
41674 (vreinterpretq_u8_f64): Likewise.
41675 (vreinterpret_u16_f64): Likewise.
41676 (vreinterpretq_u16_f64): Likewise.
41677 (vreinterpret_u32_f64): Likewise.
41678 (vreinterpretq_u32_f64): Likewise.
41680 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41682 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41683 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41684 (vreinterpret_p8_s8): Likewise.
41685 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41686 (vreinterpret_p8_s16): Likewise.
41687 (vreinterpret_p8_s32): Likewise.
41688 (vreinterpret_p8_s64): Likewise.
41689 (vreinterpret_p8_f32): Likewise.
41690 (vreinterpret_p8_u8): Likewise.
41691 (vreinterpret_p8_u16): Likewise.
41692 (vreinterpret_p8_u32): Likewise.
41693 (vreinterpret_p8_u64): Likewise.
41694 (vreinterpret_p8_p16): Likewise.
41695 (vreinterpretq_p8_s8): Likewise.
41696 (vreinterpretq_p8_s16): Likewise.
41697 (vreinterpretq_p8_s32): Likewise.
41698 (vreinterpretq_p8_s64): Likewise.
41699 (vreinterpretq_p8_f32): Likewise.
41700 (vreinterpretq_p8_u8): Likewise.
41701 (vreinterpretq_p8_u16): Likewise.
41702 (vreinterpretq_p8_u32): Likewise.
41703 (vreinterpretq_p8_u64): Likewise.
41704 (vreinterpretq_p8_p16): Likewise.
41705 (vreinterpret_p16_s8): Likewise.
41706 (vreinterpret_p16_s16): Likewise.
41707 (vreinterpret_p16_s32): Likewise.
41708 (vreinterpret_p16_s64): Likewise.
41709 (vreinterpret_p16_f32): Likewise.
41710 (vreinterpret_p16_u8): Likewise.
41711 (vreinterpret_p16_u16): Likewise.
41712 (vreinterpret_p16_u32): Likewise.
41713 (vreinterpret_p16_u64): Likewise.
41714 (vreinterpret_p16_p8): Likewise.
41715 (vreinterpretq_p16_s8): Likewise.
41716 (vreinterpretq_p16_s16): Likewise.
41717 (vreinterpretq_p16_s32): Likewise.
41718 (vreinterpretq_p16_s64): Likewise.
41719 (vreinterpretq_p16_f32): Likewise.
41720 (vreinterpretq_p16_u8): Likewise.
41721 (vreinterpretq_p16_u16): Likewise.
41722 (vreinterpretq_p16_u32): Likewise.
41723 (vreinterpretq_p16_u64): Likewise.
41724 (vreinterpretq_p16_p8): Likewise.
41725 (vreinterpret_f32_s8): Likewise.
41726 (vreinterpret_f32_s16): Likewise.
41727 (vreinterpret_f32_s32): Likewise.
41728 (vreinterpret_f32_s64): Likewise.
41729 (vreinterpret_f32_u8): Likewise.
41730 (vreinterpret_f32_u16): Likewise.
41731 (vreinterpret_f32_u32): Likewise.
41732 (vreinterpret_f32_u64): Likewise.
41733 (vreinterpret_f32_p8): Likewise.
41734 (vreinterpret_f32_p16): Likewise.
41735 (vreinterpretq_f32_s8): Likewise.
41736 (vreinterpretq_f32_s16): Likewise.
41737 (vreinterpretq_f32_s32): Likewise.
41738 (vreinterpretq_f32_s64): Likewise.
41739 (vreinterpretq_f32_u8): Likewise.
41740 (vreinterpretq_f32_u16): Likewise.
41741 (vreinterpretq_f32_u32): Likewise.
41742 (vreinterpretq_f32_u64): Likewise.
41743 (vreinterpretq_f32_p8): Likewise.
41744 (vreinterpretq_f32_p16): Likewise.
41745 (vreinterpret_s64_s8): Likewise.
41746 (vreinterpret_s64_s16): Likewise.
41747 (vreinterpret_s64_s32): Likewise.
41748 (vreinterpret_s64_f32): Likewise.
41749 (vreinterpret_s64_u8): Likewise.
41750 (vreinterpret_s64_u16): Likewise.
41751 (vreinterpret_s64_u32): Likewise.
41752 (vreinterpret_s64_u64): Likewise.
41753 (vreinterpret_s64_p8): Likewise.
41754 (vreinterpret_s64_p16): Likewise.
41755 (vreinterpretq_s64_s8): Likewise.
41756 (vreinterpretq_s64_s16): Likewise.
41757 (vreinterpretq_s64_s32): Likewise.
41758 (vreinterpretq_s64_f32): Likewise.
41759 (vreinterpretq_s64_u8): Likewise.
41760 (vreinterpretq_s64_u16): Likewise.
41761 (vreinterpretq_s64_u32): Likewise.
41762 (vreinterpretq_s64_u64): Likewise.
41763 (vreinterpretq_s64_p8): Likewise.
41764 (vreinterpretq_s64_p16): Likewise.
41765 (vreinterpret_u64_s8): Likewise.
41766 (vreinterpret_u64_s16): Likewise.
41767 (vreinterpret_u64_s32): Likewise.
41768 (vreinterpret_u64_s64): Likewise.
41769 (vreinterpret_u64_f32): Likewise.
41770 (vreinterpret_u64_u8): Likewise.
41771 (vreinterpret_u64_u16): Likewise.
41772 (vreinterpret_u64_u32): Likewise.
41773 (vreinterpret_u64_p8): Likewise.
41774 (vreinterpret_u64_p16): Likewise.
41775 (vreinterpretq_u64_s8): Likewise.
41776 (vreinterpretq_u64_s16): Likewise.
41777 (vreinterpretq_u64_s32): Likewise.
41778 (vreinterpretq_u64_s64): Likewise.
41779 (vreinterpretq_u64_f32): Likewise.
41780 (vreinterpretq_u64_u8): Likewise.
41781 (vreinterpretq_u64_u16): Likewise.
41782 (vreinterpretq_u64_u32): Likewise.
41783 (vreinterpretq_u64_p8): Likewise.
41784 (vreinterpretq_u64_p16): Likewise.
41785 (vreinterpret_s8_s16): Likewise.
41786 (vreinterpret_s8_s32): Likewise.
41787 (vreinterpret_s8_s64): Likewise.
41788 (vreinterpret_s8_f32): Likewise.
41789 (vreinterpret_s8_u8): Likewise.
41790 (vreinterpret_s8_u16): Likewise.
41791 (vreinterpret_s8_u32): Likewise.
41792 (vreinterpret_s8_u64): Likewise.
41793 (vreinterpret_s8_p8): Likewise.
41794 (vreinterpret_s8_p16): Likewise.
41795 (vreinterpretq_s8_s16): Likewise.
41796 (vreinterpretq_s8_s32): Likewise.
41797 (vreinterpretq_s8_s64): Likewise.
41798 (vreinterpretq_s8_f32): Likewise.
41799 (vreinterpretq_s8_u8): Likewise.
41800 (vreinterpretq_s8_u16): Likewise.
41801 (vreinterpretq_s8_u32): Likewise.
41802 (vreinterpretq_s8_u64): Likewise.
41803 (vreinterpretq_s8_p8): Likewise.
41804 (vreinterpretq_s8_p16): Likewise.
41805 (vreinterpret_s16_s8): Likewise.
41806 (vreinterpret_s16_s32): Likewise.
41807 (vreinterpret_s16_s64): Likewise.
41808 (vreinterpret_s16_f32): Likewise.
41809 (vreinterpret_s16_u8): Likewise.
41810 (vreinterpret_s16_u16): Likewise.
41811 (vreinterpret_s16_u32): Likewise.
41812 (vreinterpret_s16_u64): Likewise.
41813 (vreinterpret_s16_p8): Likewise.
41814 (vreinterpret_s16_p16): Likewise.
41815 (vreinterpretq_s16_s8): Likewise.
41816 (vreinterpretq_s16_s32): Likewise.
41817 (vreinterpretq_s16_s64): Likewise.
41818 (vreinterpretq_s16_f32): Likewise.
41819 (vreinterpretq_s16_u8): Likewise.
41820 (vreinterpretq_s16_u16): Likewise.
41821 (vreinterpretq_s16_u32): Likewise.
41822 (vreinterpretq_s16_u64): Likewise.
41823 (vreinterpretq_s16_p8): Likewise.
41824 (vreinterpretq_s16_p16): Likewise.
41825 (vreinterpret_s32_s8): Likewise.
41826 (vreinterpret_s32_s16): Likewise.
41827 (vreinterpret_s32_s64): Likewise.
41828 (vreinterpret_s32_f32): Likewise.
41829 (vreinterpret_s32_u8): Likewise.
41830 (vreinterpret_s32_u16): Likewise.
41831 (vreinterpret_s32_u32): Likewise.
41832 (vreinterpret_s32_u64): Likewise.
41833 (vreinterpret_s32_p8): Likewise.
41834 (vreinterpret_s32_p16): Likewise.
41835 (vreinterpretq_s32_s8): Likewise.
41836 (vreinterpretq_s32_s16): Likewise.
41837 (vreinterpretq_s32_s64): Likewise.
41838 (vreinterpretq_s32_f32): Likewise.
41839 (vreinterpretq_s32_u8): Likewise.
41840 (vreinterpretq_s32_u16): Likewise.
41841 (vreinterpretq_s32_u32): Likewise.
41842 (vreinterpretq_s32_u64): Likewise.
41843 (vreinterpretq_s32_p8): Likewise.
41844 (vreinterpretq_s32_p16): Likewise.
41845 (vreinterpret_u8_s8): Likewise.
41846 (vreinterpret_u8_s16): Likewise.
41847 (vreinterpret_u8_s32): Likewise.
41848 (vreinterpret_u8_s64): Likewise.
41849 (vreinterpret_u8_f32): Likewise.
41850 (vreinterpret_u8_u16): Likewise.
41851 (vreinterpret_u8_u32): Likewise.
41852 (vreinterpret_u8_u64): Likewise.
41853 (vreinterpret_u8_p8): Likewise.
41854 (vreinterpret_u8_p16): Likewise.
41855 (vreinterpretq_u8_s8): Likewise.
41856 (vreinterpretq_u8_s16): Likewise.
41857 (vreinterpretq_u8_s32): Likewise.
41858 (vreinterpretq_u8_s64): Likewise.
41859 (vreinterpretq_u8_f32): Likewise.
41860 (vreinterpretq_u8_u16): Likewise.
41861 (vreinterpretq_u8_u32): Likewise.
41862 (vreinterpretq_u8_u64): Likewise.
41863 (vreinterpretq_u8_p8): Likewise.
41864 (vreinterpretq_u8_p16): Likewise.
41865 (vreinterpret_u16_s8): Likewise.
41866 (vreinterpret_u16_s16): Likewise.
41867 (vreinterpret_u16_s32): Likewise.
41868 (vreinterpret_u16_s64): Likewise.
41869 (vreinterpret_u16_f32): Likewise.
41870 (vreinterpret_u16_u8): Likewise.
41871 (vreinterpret_u16_u32): Likewise.
41872 (vreinterpret_u16_u64): Likewise.
41873 (vreinterpret_u16_p8): Likewise.
41874 (vreinterpret_u16_p16): Likewise.
41875 (vreinterpretq_u16_s8): Likewise.
41876 (vreinterpretq_u16_s16): Likewise.
41877 (vreinterpretq_u16_s32): Likewise.
41878 (vreinterpretq_u16_s64): Likewise.
41879 (vreinterpretq_u16_f32): Likewise.
41880 (vreinterpretq_u16_u8): Likewise.
41881 (vreinterpretq_u16_u32): Likewise.
41882 (vreinterpretq_u16_u64): Likewise.
41883 (vreinterpretq_u16_p8): Likewise.
41884 (vreinterpretq_u16_p16): Likewise.
41885 (vreinterpret_u32_s8): Likewise.
41886 (vreinterpret_u32_s16): Likewise.
41887 (vreinterpret_u32_s32): Likewise.
41888 (vreinterpret_u32_s64): Likewise.
41889 (vreinterpret_u32_f32): Likewise.
41890 (vreinterpret_u32_u8): Likewise.
41891 (vreinterpret_u32_u16): Likewise.
41892 (vreinterpret_u32_u64): Likewise.
41893 (vreinterpret_u32_p8): Likewise.
41894 (vreinterpret_u32_p16): Likewise.
41895 (vreinterpretq_u32_s8): Likewise.
41896 (vreinterpretq_u32_s16): Likewise.
41897 (vreinterpretq_u32_s32): Likewise.
41898 (vreinterpretq_u32_s64): Likewise.
41899 (vreinterpretq_u32_f32): Likewise.
41900 (vreinterpretq_u32_u8): Likewise.
41901 (vreinterpretq_u32_u16): Likewise.
41902 (vreinterpretq_u32_u64): Likewise.
41903 (vreinterpretq_u32_p8): Likewise.
41904 (vreinterpretq_u32_p16): Likewise.
41906 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41908 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
41910 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
41912 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
41913 (vqnegd_s64): Likewise.
41914 (vqabs_s64): Likewise.
41915 (vqabsd_s64): Likewise.
41917 2014-04-22 Richard Henderson <rth@redhat.com>
41919 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
41920 computation to the top of the loop.
41922 2014-04-22 Renlin <renlin.li@arm.com>
41923 Jiong Wang <jiong.wang@arm.com>
41925 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
41926 * config/aarch64/aarch64.c (aarch64_layout_frame)
41927 (aarch64_initial_elimination_offset): Likewise.
41929 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
41931 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
41934 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
41936 * machmode.h (bitwise_mode_for_mode): Declare.
41937 * stor-layout.h (bitwise_type_for_mode): Likewise.
41938 * stor-layout.c (bitwise_mode_for_mode): New function.
41939 (bitwise_type_for_mode): Likewise.
41940 * builtins.c (fold_builtin_memory_op): Use it instead of
41941 int_mode_for_mode and build_nonstandard_integer_type.
41943 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41945 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
41946 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
41947 (*-*-solaris2*): Simplify.
41948 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
41949 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
41950 *-*-solaris2.9* handling.
41952 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
41954 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
41955 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
41956 handling, simplify.
41957 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
41958 * configure: Regenerate.
41960 * config/i386/sol2-9.h: Remove.
41962 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
41963 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
41964 Remove Solaris 9 references.
41966 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
41968 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
41969 (floatuns<GPI:mode><GPF:mode>2): Remove.
41970 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
41971 and floatuns conversions.
41972 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
41973 and floatuns conversions.
41974 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
41975 (w1,w2): New mode attributes for inequal width conversions.
41977 2014-04-22 Renlin Li <Renlin.Li@arm.com>
41979 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
41980 the output asm format.
41982 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
41984 * config/aarch64/aarch64-simd.md
41985 (aarch64_cm<optab>di): Always split.
41986 (*aarch64_cm<optab>di): New.
41987 (aarch64_cmtstdi): Always split.
41988 (*aarch64_cmtstdi): New.
41990 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41992 PR tree-optimization/60823
41993 * omp-low.c (ipa_simd_modify_function_body): Go through
41994 all SSA_NAMEs and for those refering to vector arguments
41995 which are going to be replaced adjust SSA_NAME_VAR and,
41996 if it is a default definition, change it into a non-default
41997 definition assigned at the beginning of function from new_decl.
41998 (ipa_simd_modify_stmt_ops): Rewritten.
41999 * tree-dfa.c (set_ssa_default_def): When removing default def,
42000 check for NULL loc instead of NULL *loc.
42002 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42004 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
42005 restrictions on core registers for DImode values in Thumb2.
42007 2014-04-22 Ian Bolton <ian.bolton@arm.com>
42009 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
42010 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
42012 2014-04-22 Ian Bolton <ian.bolton@arm.com>
42014 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
42015 (*iordi_notzesidi_di): Likewise.
42016 (*iordi_notsesidi_di): Likewise.
42018 2014-04-22 Ian Bolton <ian.bolton@arm.com>
42020 * config/arm/arm-protos.h (tune_params): New struct members.
42021 * config/arm/arm.c: Initialise tune_params per processor.
42022 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
42023 for speed, based on new tune_params.
42025 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
42027 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
42028 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
42029 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
42030 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
42031 * config/aarch64/arm_neon.h (vrnd_f64): Added.
42032 (vrnda_f64): Likewise.
42033 (vrndi_f64): Likewise.
42034 (vrndm_f64): Likewise.
42035 (vrndn_f64): Likewise.
42036 (vrndp_f64): Likewise.
42037 (vrndx_f64): Likewise.
42039 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
42041 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
42042 GET_MODE_SIZE argument is enum machine_mode.
42044 2014-04-22 Jakub Jelinek <jakub@redhat.com>
42047 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
42048 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
42050 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
42052 PR middle-end/60281
42053 * asan.c (asan_emit_stack_protection): Force the base to align to
42054 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
42055 appropriate bits if STRICT_ALIGNMENT.
42056 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
42058 (expand_used_vars): Leave a space in the stack frame for alignment
42059 if STRICT_ALIGNMENT.
42061 2014-04-21 David Malcolm <dmalcolm@redhat.com>
42063 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
42065 (gimple_store_p): Likewise.
42066 (gimple_assign_load_p): Likewise.
42067 (gimple_assign_cast_p): Likewise.
42068 (gimple_clobber_p): Likewise.
42070 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
42071 rather than a gimple.
42072 (gimple_assign_cast_p): Likewise.
42074 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
42077 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
42078 If mode is DDmode and TARGET_E500_DOUBLE allow move.
42080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
42081 more debug information for E500 if -mdebug=reg.
42083 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
42086 * config/i386/i386.c (ix86_expand_builtin)
42087 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
42088 register for target RTX.
42089 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
42091 2014-04-18 Cong Hou <congh@google.com>
42093 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
42094 the widen-mult pattern by handling two operands with different sizes,
42095 and operands whose size is smaller than half of the result type.
42097 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42099 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
42100 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
42101 (do_estimate_edge_time): Compute it.
42102 * ipa-inline.c (want_inline_small_function_p): Bypass
42103 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
42105 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42107 * ipa-inline.c (spec_rem): New static variable.
42108 (dump_overall_stats): New function.
42109 (dump_inline_stats): New function.
42111 2014-04-18 Richard Henderson <rth@redhat.com>
42113 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
42114 to GET_MODE_SIZE, not a reg_class_t.
42116 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42118 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
42119 (vsx_xxmrglw_<mode>): Likewise.
42121 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
42124 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
42125 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
42126 (rs6000_init_hard_regno_mode_ok): Likewise.
42128 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
42130 * ipa-inline.c (inline_small_functions): Account only non-cold
42132 * doc/invoke.texi (inline-unit-growth): Update documentation.
42134 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
42136 * config/rs6000/rs6000.md (addti3, subti3): New.
42138 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
42141 * config/i386/i386.c (ix86_expand_clear): Remove outdated
42142 comment. Check optimize_insn_for_size_p instead of
42143 optimize_insn_for_speed_p.
42145 2014-04-17 Martin Jambor <mjambor@suse.cz>
42147 * gimple-iterator.c (gsi_start_edge): New function.
42148 * gimple-iterator.h (gsi_start_edge): Declare.
42149 * tree-sra.c (single_non_eh_succ): New function.
42150 (disqualify_ops_if_throwing_stmt): Renamed to
42151 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42152 having one non-EH successor BB.
42153 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42154 generate loads into replacements.
42155 (sra_modify_assign): Likewise and and also use the simple path for
42157 (sra_modify_function_body): Commit statements on edges.
42159 2014-04-17 Richard Biener <rguenther@suse.de>
42161 PR middle-end/60849
42162 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42163 comparison results and add clarifying comment.
42165 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42167 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42168 (blank_mode): Initialize it.
42169 (emit_mode_size_inline, emit_mode_nunits_inline,
42170 emit_mode_inner_inline): New functions.
42171 (emit_insn_modes_h): Call them and surround their output with
42172 #if GCC_VERSION >= 4001 ... #endif.
42173 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42174 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42175 mode_* arrays if the argument is __builtin_constant_p.
42176 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42177 is enum machine_mode.
42179 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42181 * passes.c (opt_pass::execute): Adjust.
42182 (pass_manager::execute_pass_mode_switching): Likewise.
42183 (early_local_passes::execute): Likewise.
42184 (execute_one_pass): Pass cfun to the pass's execute method.
42185 * tree-pass.h (opt_pass::execute): Add function * argument.
42186 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42187 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42188 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42189 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42190 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42191 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42192 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42193 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42194 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42195 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42196 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42197 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42198 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42199 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42200 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42201 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42202 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42203 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42204 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42205 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42206 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42207 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42208 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42209 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42210 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42211 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42212 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42213 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42214 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42217 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42219 * passes.c (opt_pass::gate): Take function * argument.
42220 (gate_all_early_local_passes): Merge into
42221 (early_local_passes::gate): this.
42222 (gate_all_early_optimizations): Merge into
42223 (all_early_optimizations::gate): this.
42224 (gate_all_optimizations): Mege into
42225 (all_optimizations::gate): this.
42226 (gate_all_optimizations_g): Merge into
42227 (all_optimizations_g::gate): this.
42228 (gate_rest_of_compilation): Mege into
42229 (rest_of_compilation::gate): this.
42230 (gate_postreload): Merge into
42231 (postreload::gate): this.
42232 (dump_one_pass): Pass cfun to the pass's gate method.
42233 (execute_ipa_summary_passes): Likewise.
42234 (execute_one_pass): Likewise.
42235 (ipa_write_summaries_2): Likewise.
42236 (ipa_write_optimization_summaries_1): Likewise.
42237 (ipa_read_summaries_1): Likewise.
42238 (ipa_read_optimization_summaries_1): Likewise.
42239 (execute_ipa_stmt_fixups): Likewise.
42240 * tree-pass.h (opt_pass::gate): Add function * argument.
42241 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42242 combine-stack-adj.c, combine.c, compare-elim.c,
42243 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42244 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42245 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42246 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42247 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42248 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42249 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42250 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42251 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42252 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42253 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42254 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42255 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42256 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42257 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42258 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42259 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42260 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42261 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42262 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42263 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42264 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42265 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42266 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42267 var-tracking.c, vtable-verify.c, web.c: Adjust.
42269 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42271 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42272 * configure: Regenerate.
42274 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42276 * passes.c (dump_one_pass): don't check pass->has_gate.
42277 (execute_ipa_summary_passes): Likewise.
42278 (execute_one_pass): Likewise.
42279 (ipa_write_summaries_2): Likewise.
42280 (ipa_write_optimization_summaries_1): Likewise.
42281 (ipa_read_optimization_summaries_1): Likewise.
42282 (execute_ipa_stmt_fixups): Likewise.
42283 * tree-pass.h (pass_data::has_gate): Remove.
42284 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42285 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42286 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42287 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42288 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42289 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42290 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42291 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42292 gimple-low.c, gimple-ssa-isolate-paths.c,
42293 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42294 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42295 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42296 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42297 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42298 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42299 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42300 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42301 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42302 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42303 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42304 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42305 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42306 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42307 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42308 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42309 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42310 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42311 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42312 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42313 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42314 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42317 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42319 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42321 * passes.c (pass_manager::register_dump_files_1): Merge into
42322 (pass_manager::register_dump_files): this, and remove its handling of
42323 properties since the pass always has the properties anyway.
42324 (pass_manager::pass_manager): Adjust.
42326 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42328 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42329 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42330 dealing with properties.
42331 (pass_manager::register_dump_files): Adjust.
42333 2014-03-20 Mark Wielaard <mjw@redhat.com>
42335 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42336 then represent the bound as normal constant value.
42338 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42341 Forward port from 4.8 branch
42342 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42344 * config/i386/bmiintrin.h (_blsi_u32): New.
42345 (_blsi_u64): Ditto.
42346 (_blsr_u32): Ditto.
42347 (_blsr_u64): Ditto.
42348 (_blsmsk_u32): Ditto.
42349 (_blsmsk_u64): Ditto.
42350 (_tzcnt_u32): Ditto.
42351 (_tzcnt_u64): Ditto.
42353 2014-04-17 Kito Cheng <kito@0xlab.org>
42355 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42357 2014-04-17 Richard Biener <rguenther@suse.de>
42359 PR middle-end/60849
42360 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42361 boolean results for comparisons.
42363 2014-04-17 Richard Biener <rguenther@suse.de>
42365 PR tree-optimization/60836
42366 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42367 initial PHI args to be gimple values.
42369 2014-04-17 Richard Biener <rguenther@suse.de>
42371 PR tree-optimization/60841
42372 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42373 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42374 of stmts to SLP build.
42375 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42376 (vect_analyze_slp): Likewise.
42377 (vect_analyze_slp_instance): Likewise.
42378 (vect_build_slp_tree): Limit overall SLP tree growth.
42379 * tree-vectorizer.h (vect_analyze_data_refs,
42380 vect_analyze_slp): Adjust prototypes.
42382 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42384 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42387 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42389 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42390 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42391 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42392 for TARGET_SLOW_PSHUFB
42394 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42396 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42397 * config/i386/i386.c (intel_cost): Ditto.
42399 2014-04-17 Joey Ye <joey.ye@arm.com>
42401 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42403 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42405 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42406 with -fuse-profile.
42408 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42410 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42411 (type_all_derivations_known_p): New predicate.
42412 (type_all_ctors_visible_p): New predicate.
42413 (type_possibly_instantiated_p): New predicate.
42414 (get_odr_type): Compute all_derivations_known.
42415 (dump_odr_type): Dump the flag.
42416 (maybe_record_type): Cleanup.
42417 (record_target_from_binfo): Add bases_to_consider array;
42418 record bases for types w/o instances and skip CXX destructor.
42419 (possible_polymorphic_call_targets_1): Add bases_to_consider
42420 and consider_construction parameters; check if type may have instance.
42421 (get_polymorphic_call_info): Set maybe_in_construction to true
42422 when we know nothing.
42423 (record_targets_from_bases): Skip CXX destructors; they are
42424 never called for types in construction.
42425 (possible_polymorphic_call_targets): Do not record target when
42426 type may not have instance.
42428 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42431 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42432 external aliases alive, too.
42434 2014-04-16 Andrew Pinski <apinski@cavium.com>
42436 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42439 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42441 * final.c (compute_alignments): Do not apply loop alignment to a block
42442 falling through to the exit.
42444 2014-04-16 Catherine Moore <clm@codesourcery.com>
42446 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42447 Adjust constraints for microMIPS store patterns.
42449 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42451 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42453 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42455 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42456 (append_use): Run at -O0.
42457 (append_vdef): Likewise.
42458 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42459 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42461 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42463 PR tree-optimization/60844
42464 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42465 (propagate_op_to_single_use, remove_visited_stmt_chain,
42466 linearize_expr, repropagate_negates, reassociate_bb): Use it
42467 instead of gsi_remove.
42469 2014-04-16 Martin Jambor <mjambor@suse.cz>
42471 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42472 ipa_transforms_to_apply.
42473 (cgraph_function_versioning): Assert that old_node has empty
42474 ipa_transforms_to_apply.
42475 * trans-mem.c (ipa_tm_create_version): Likewise.
42476 * tree-inline.c (tree_function_versioning): Do not duplicate
42477 ipa_transforms_to_apply.
42479 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42482 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42484 Pass necessary as flags on 64-bit Solaris/x86.
42485 Use lowercase relocs for x86_64-*-*.
42486 * configure: Regenerate.
42488 2014-04-15 Jan Hubicka <jh@suse.cz>
42490 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42491 (maybe_record_node, likely_target_p): Use it.
42493 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42496 Revert following patch
42498 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42501 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42502 software floating point or no floating point registers, do not
42503 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42504 in GPRs that occurs after we tested for GPRs that would never be
42507 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42508 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42509 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42510 specifically allow DDmode, since that does not use the SPE SIMD
42513 2014-03-21 Mark Wielaard <mjw@redhat.com>
42515 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42516 as unsigned or int depending on type and value used.
42518 2014-04-15 Richard Biener <rguenther@suse.de>
42520 PR rtl-optimization/56965
42521 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42522 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42524 * alias.c (true_dependence_1): Do not call
42525 nonoverlapping_component_refs_p.
42526 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42527 nonoverlapping_component_refs_p.
42528 (indirect_refs_may_alias_p): Likewise.
42530 2014-04-15 Teresa Johnson <tejohnson@google.com>
42532 * cfg.c (dump_bb_info): Fix flags check.
42533 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42535 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42537 PR rtl-optimization/60663
42538 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42541 2014-04-15 Richard Biener <rguenther@suse.de>
42543 * lto-streamer.h (LTO_major_version): Bump to 4.
42545 2014-04-15 Richard Biener <rguenther@suse.de>
42547 * common.opt (lto_partition_model): New enum.
42548 (flto-partition=): Merge separate options with a single with argument,
42549 add -flto-partition=one support.
42550 * flag-types.h (enum lto_partition_model): Declare.
42551 * opts.c (finish_options): Remove duplicate -flto-partition=
42553 * lto-wrapper.c (run_gcc): Adjust.
42555 2014-04-15 Richard Biener <rguenther@suse.de>
42557 * alias.c (ncr_compar): New function.
42558 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42560 2014-04-15 Richard Biener <rguenther@suse.de>
42562 * alias.c (record_component_aliases): Do not walk BINFOs.
42564 2014-04-15 Richard Biener <rguenther@suse.de>
42566 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42567 Add struct function argument and adjust.
42568 (find_func_aliases_for_call): Likewise.
42569 (find_func_aliases): Likewise.
42570 (find_func_clobbers): Likewise.
42571 (intra_create_variable_infos): Likewise.
42572 (compute_points_to_sets): Likewise.
42573 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42575 2014-04-15 Richard Biener <rguenther@suse.de>
42577 * tree.c (iterative_hash_expr): Use enum tree_code_class
42578 to store TREE_CODE_CLASS.
42579 (tree_block): Likewise.
42580 (tree_set_block): Likewise.
42581 * tree.h (fold_build_pointer_plus_loc): Use
42582 convert_to_ptrofftype_loc.
42584 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42587 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42590 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42592 * cfgloop.h (struct loop): Move force_vectorize down.
42593 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42594 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42595 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42596 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42597 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42598 * tree-core.h (enum annot_expr_kind): Add new kind values.
42599 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42600 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42602 * tree.def (ANNOTATE_EXPR): Tweak comment.
42604 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42606 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42609 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42611 * tree.h (TYPE_IDENTIFIER): Declare.
42612 * tree.c (subrange_type_for_debug_p): Use it.
42613 * godump.c (go_format_type): Likewise.
42614 * dwarf2out.c (is_cxx_auto, modified_type_die,
42615 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42616 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42618 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42621 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42623 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42625 * config/i386/i386.c (examine_argument): Return bool. Return true if
42626 parameter should be passed in memory.
42627 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42628 (construct_container): Update calls to examine_argument.
42629 (function_arg_advance_64): Ditto.
42630 (return_in_memory_32): Merge with ix86_return_in_memory.
42631 (return_in_memory_64): Ditto.
42632 (return_in_memory_ms_64): Ditto.
42634 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42636 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42637 * coverage.c (coverage_compute_profile_id): Handle externally visible
42640 2014-04-14 Martin Jambor <mjambor@suse.cz>
42642 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42643 DECL_DISREGARD_INLINE_LIMITS functions.
42645 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42648 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42650 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42653 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42654 optimize_insn_for_speed_p instead of
42655 optimize_function_for_speed_p.
42657 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42659 * doc/invoke.texi (free): Document AArch64.
42661 2014-04-14 Richard Biener <rguenther@suse.de>
42663 PR tree-optimization/60042
42664 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42665 (insert_into_preds_of_block): Do not prevent PHI insertion
42666 for REFERENCE exprs here ...
42667 (eliminate_dom_walker::before_dom_children): ... but prevent
42668 their use here under similar conditions when applied to the
42669 IL after PRE optimizations.
42671 2014-04-14 Richard Biener <rguenther@suse.de>
42673 * passes.def: Move early points-to after early SRA.
42675 2014-04-14 Richard Biener <rguenther@suse.de>
42677 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42678 check for which sign-changes we allow when forwarding
42679 a converted value into a switch.
42681 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42683 * stor-layout.c (place_field): Finalize non-constant offset for the
42686 2014-04-14 Richard Biener <rguenther@suse.de>
42688 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42690 (expand_switch_using_bit_tests_p): Likewise.
42691 (process_switch): Compute and pass on speed_p based on the
42693 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42694 optimize_bb_for_speed_p.
42696 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42698 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42699 * function.h (struct function): Rename has_force_vect_loops into
42700 has_force_vectorize_loops.
42701 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42702 (input_struct_function_base): Likewise.
42703 * lto-streamer-out.c (output_cfg): Likewise.
42704 (output_struct_function_base): Likewise.
42705 * omp-low.c (expand_omp_simd): Likewise.
42706 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42707 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42708 (version_loop_for_if_conversion): Likewise.
42709 (tree_if_conversion): Likewise.
42710 (main_tree_if_conversion): Likewise.
42711 (gate_tree_if_conversion): Likewise.
42712 * tree-inline.c (copy_loops): Likewise.
42713 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42714 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42715 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42716 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42717 * tree-vectorizer.c (vectorize_loops): Likewise.
42718 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42720 2014-04-14 Richard Biener <rguenther@suse.de>
42723 * lto-streamer-out.c (wrap_refs): New function.
42724 (lto_output): Wrap symbol references in global initializes in
42725 type-preserving MEM_REFs.
42727 2014-04-14 Christian Bruel <christian.bruel@st.com>
42729 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42731 2014-04-14 Christian Bruel <christian.bruel@st.com>
42733 * config/sh/sh.md (setmemqi): New expand pattern.
42734 * config/sh/sh.h (CLEAR_RATIO): Define.
42735 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42736 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42738 2014-04-14 Richard Biener <rguenther@suse.de>
42740 PR middle-end/55022
42741 * fold-const.c (negate_expr_p): Don't negate directional rounding
42743 (fold_negate_expr): Likewise.
42745 2014-04-14 Richard Biener <rguenther@suse.de>
42747 PR tree-optimization/59817
42748 PR tree-optimization/60453
42749 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42750 recursion to catch all CHRECs in the scalar evolution and restrict
42751 the predicate for the remains appropriately.
42753 2014-04-12 Catherine Moore <clm@codesourcery.com>
42755 * config/mips/constraints.md: Add new register constraint "kb".
42756 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42757 (*movhi_internal): Likewise.
42758 (*movqi_internal): Likewise.
42759 * config/mips/mips.h (M16_STORE_REGS): New register class.
42760 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42761 (REG_CLASS_CONTENTS): Likewise.
42762 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42764 2014-04-11 Tobias Burnus <burnus@net-b.de>
42767 * doc/invoke.texi (-Wformat-signedness): Document it.
42768 (Wformat=2): Mention that this enables -Wformat-signedness.
42770 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42772 * common/config/epiphany/epiphany-common.c
42773 (epiphany_option_optimization_table): Enable section anchors by
42774 default at -O1 or higher.
42775 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42776 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42777 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42778 carries no extra cost.
42779 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42780 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42781 * config/epiphany/predicates.md (memclob_operand): New predicate.
42782 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42783 Use memclob_operand predicate and X constraint for operand 3.
42785 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42787 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42788 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42791 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42793 PR rtl-optimization/60651
42794 * mode-switching.c (optimize_mode_switching): Make sure to emit
42795 sets of a lower numbered entity before sets of a higher numbered
42796 entity to a mode of the same or lower priority.
42797 When creating a seginfo for a basic block that starts with a code
42798 label, move the insertion point past the code label.
42799 (new_seginfo): Document and enforce requirement that
42800 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42801 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42802 * doc/tm.texi: Regenerate.
42804 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42807 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42809 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42811 * BASE-VER: Set to 4.10.0.
42813 2014-04-11 Tobias Burnus <burnus@net-b.de>
42816 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42817 * doc/gcc.texi (Service): Update description in the @menu
42818 * doc/invoke.texi (Option Summary): Remove misplaced and
42821 2014-04-11 Steve Ellcey <sellcey@mips.com>
42822 Jakub Jelinek <jakub@redhat.com>
42824 PR middle-end/60556
42825 * expr.c (convert_move): Use emit_store_flag_force instead of
42826 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42829 2014-04-11 Richard Biener <rguenther@suse.de>
42831 PR middle-end/60797
42832 * varasm.c (assemble_alias): Avoid endless error reporting
42833 recursion by setting TREE_ASM_WRITTEN.
42835 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42837 * config/s390/s390.md: Add a splitter for NOT rtx.
42839 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42841 PR rtl-optimization/60663
42842 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
42844 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
42845 Jakub Jelinek <jakub@redhat.com>
42848 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
42849 flag from decl_node to node.
42851 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42854 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
42855 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
42856 ameliorating the cases where it can be.
42858 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
42861 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42863 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42864 (loadsync_<mode>): Change mode.
42865 (load_quadpti, store_quadpti): New.
42866 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42867 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42868 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
42870 2014-04-09 Cong Hou <congh@google.com>
42873 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
42876 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42878 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
42879 instead of vnor to exploit possible fusion opportunity in the
42881 (altivec_expand_vec_perm_const_le): Likewise.
42883 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42885 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42886 (loadsync_<mode>): Change mode.
42887 (load_quadpti, store_quadpti): New.
42888 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42889 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42891 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
42894 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
42895 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
42896 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
42898 2014-04-08 Richard Biener <rguenther@suse.de>
42900 PR middle-end/60706
42901 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
42902 a 64bit widest int print double-int similar to on HWI64 hosts.
42904 2014-04-08 Richard Biener <rguenther@suse.de>
42906 PR tree-optimization/60785
42907 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
42908 default defs properly.
42910 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
42912 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
42913 (Weffc++): Likewise.
42915 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
42917 * ipa-devirt.c (maybe_record_node): When node is not recorded,
42918 set completep to false rather than true.
42920 2014-04-07 Douglas B Rupp <rupp@adacore.com>
42923 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
42924 ARM_TARGET2_DWARF_FORMAT.
42926 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
42929 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
42930 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
42933 2014-04-07 Richard Biener <rguenther@suse.de>
42935 PR tree-optimization/60766
42936 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
42937 (may_eliminate_iv): Convert cand_value_at result to desired type.
42939 2014-04-07 Jason Merrill <jason@redhat.com>
42942 * common.opt (-fno-gnu-unique): Add.
42943 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
42945 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42947 * haifa-sched.c: Fix outdated function reference and minor
42948 grammar errors in introductory comment.
42950 2014-04-07 Richard Biener <rguenther@suse.de>
42952 PR middle-end/60750
42953 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
42954 for noreturn calls.
42955 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
42957 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
42960 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
42961 size accounting for thunks.
42962 (pa_asm_output_mi_thunk): Use final_start_function() and
42963 final_end_function() to output function start and end directives.
42965 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42967 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
42968 device specific ISA/ feature information. Remove short_sp and
42969 errata_skip ds. Add avr_device_specific_features enum to have device
42971 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
42972 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
42973 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
42974 updated device specific info.
42975 * config/avr/avr-mcus.def: Merge device specific details to
42976 dev_attribute field.
42977 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
42979 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
42980 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
42981 assembler if RMW isa supported by current device.
42982 * config/avr/genmultilib.awk: Update as device info structure changed.
42983 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
42985 2014-04-04 Cong Hou <congh@google.com>
42987 PR tree-optimization/60656
42988 * tree-vect-stmts.c (supportable_widening_operation):
42989 Fix a bug that elements in a vector with vect_used_by_reduction
42990 property are incorrectly reordered when the operation on it is not
42991 consistant with the one in reduction operation.
42993 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
42995 PR rtl-optimization/60155
42996 * gcse.c (record_set_data): New function.
42997 (single_set_gcse): New function.
42998 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
42999 (hoist_code): Likewise.
43000 (get_pressure_class_and_nregs): Likewise.
43002 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
43004 * explow.c (probe_stack_range): Emit a final optimization blockage.
43006 2014-04-04 Anthony Green <green@moxielogic.com>
43008 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
43011 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
43014 * lto-cgraph.c (input_overwrite_node): Check that partitioning
43015 flags are set only during streaming.
43016 * ipa.c (process_references, walk_polymorphic_call_targets,
43017 symtab_remove_unreachable_nodes): Drop bodies of always inline
43018 after early inlining.
43019 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
43021 2014-04-04 Jakub Jelinek <jakub@redhat.com>
43022 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43025 * dwarf2out.c (const_ok_for_output_1): Reject expressions
43028 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43031 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
43033 (cortex_a53_fdivd): Likewise.
43035 2014-04-04 Martin Jambor <mjambor@suse.cz>
43038 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
43039 Adjust all callers.
43040 * cgraph.c (clone_of_p): Also return true if thunks match.
43041 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
43042 cgraph_function_or_thunk_node and an obsolete comment.
43043 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
43045 (build_function_decl_skip_args): Likewise.
43046 (set_new_clone_decl_and_node_flags): New function.
43047 (duplicate_thunk_for_node): Likewise.
43048 (redirect_edge_duplicating_thunks): Likewise.
43049 (cgraph_clone_node): New parameter args_to_skip, pass it to
43050 redirect_edge_duplicating_thunks which is called instead of
43051 cgraph_redirect_edge_callee.
43052 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
43053 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
43055 2014-04-04 Jeff Law <law@redhat.com>
43058 * config/arm/predicates.md (const_int_I_operand): New predicate.
43059 (const_int_M_operand): Similarly.
43060 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
43062 (insv_t2, extv_reg, extzv_t2): Likewise.
43063 (load_multiple_with_writeback): Similarly for const_int_I_operand.
43064 (pop_multiple_with_writeback_and_return): Likewise.
43065 (vfp_pop_multiple_with_writeback): Likewise
43067 2014-04-04 Richard Biener <rguenther@suse.de>
43070 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
43071 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
43073 * gimplify.h (gimple_add_tmp_var_fn): Declare.
43074 * gimplify.c (gimple_add_tmp_var_fn): New function.
43075 * gimple-expr.h (create_tmp_reg_fn): Declare.
43076 * gimple-expr.c (create_tmp_reg_fn): New function.
43077 * gimple-low.c (record_vars_into): Don't change cfun.
43078 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
43079 code generation without cfun.
43081 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
43084 * Makefile.in (install-driver): Fix shell scripting.
43086 2014-04-03 Cong Hou <congh@google.com>
43088 PR tree-optimization/60505
43089 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
43090 threshold of number of iterations below which no vectorization
43092 * tree-vect-loop.c (new_loop_vec_info):
43093 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
43094 * tree-vect-loop.c (vect_analyze_loop_operations):
43095 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
43096 * tree-vect-loop.c (vect_transform_loop):
43097 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
43098 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
43099 of iterations of the loop and see if we should build the epilogue.
43101 2014-04-03 Richard Biener <rguenther@suse.de>
43103 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
43104 (streamer_tree_cache_create): Adjust.
43105 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
43106 to allow optional nodes array.
43107 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
43108 (streamer_tree_cache_append): Likewise.
43109 (streamer_tree_cache_create): Create nodes array optionally
43110 as specified by parameter.
43111 * lto-streamer-out.c (create_output_block): Avoid maintaining
43112 the node array in the writer cache.
43113 (DFS_write_tree): Remove assertion.
43114 (produce_asm_for_decls): Free the out decl state hash table early.
43115 * lto-streamer-in.c (lto_data_in_create): Adjust for
43116 streamer_tree_cache_create prototype change.
43118 2014-04-03 Richard Biener <rguenther@suse.de>
43120 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
43121 set TREE_CHAIN to NULL_TREE.
43123 2014-04-03 Richard Biener <rguenther@suse.de>
43125 PR tree-optimization/60740
43126 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
43127 over all GIMPLE_COND operands.
43129 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
43131 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
43132 (Weffc++): Remove Scott's numbering, merge lists and reference
43135 2014-04-03 Nick Clifton <nickc@redhat.com>
43137 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
43140 2014-04-03 Martin Jambor <mjambor@suse.cz>
43142 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
43143 mention gcc_unreachable before failing.
43144 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43147 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43150 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43151 inconsistent code and instead mark the context inconsistent.
43152 (possible_polymorphic_call_targets): For inconsistent contexts
43153 return empty complete list.
43155 2014-04-02 Anthony Green <green@moxielogic.com>
43157 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43158 (extendqisi2, extendhisi2): Define.
43159 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43160 (WCHAR_TYPE): Change to unsigned int.
43162 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43164 PR tree-optimization/60733
43165 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43166 insertion point for PHI candidates to be the end of the feeding
43167 block for the PHI argument.
43169 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43171 PR rtl-optimization/60650
43172 * lra-constraints.c (process_alt_operands): Decrease reject for
43173 earlyclobber matching.
43175 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43177 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43179 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43181 * config/spu/spu.c (pad_bb): Do not crash when the last
43182 insn is CODE_FOR_blockage.
43184 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43186 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43187 lies outside the target mode.
43189 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43192 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43193 software floating point or no floating point registers, do not
43194 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43195 in GPRs that occurs after we tested for GPRs that would never be
43198 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43199 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43200 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43201 specifically allow DDmode, since that does not use the SPE SIMD
43204 2014-04-02 Richard Biener <rguenther@suse.de>
43206 PR middle-end/60729
43207 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43208 MODE_INTs. Properly use negv_optab.
43209 (expand_abs): Likewise.
43211 2014-04-02 Richard Biener <rguenther@suse.de>
43214 * Makefile.in (install-driver): Guard extra installs with special
43217 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43219 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43220 Document vec_vgbbd.
43222 2014-04-01 Richard Henderson <rth@redhat.com>
43225 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43226 alternative enabled before register allocation.
43228 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43230 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43231 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43233 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43234 (nios2_got_address): Update nios2_large_got_address call site.
43235 (nios2_delegitimize_address): New function.
43236 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43237 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43238 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43240 2014-04-01 Martin Husemann <martin@duskware.de>
43242 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43245 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43247 PR rtl-optimization/60604
43248 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43249 check from register_operand.
43250 (register_operand): Redefine in terms of general_operand.
43251 (nonmemory_operand): Use register_operand for the non-constant cases.
43253 2014-04-01 Richard Biener <rguenther@suse.de>
43255 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43257 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43259 * doc/invoke.texi (mapp-regs): Clarify.
43261 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43263 * config/i386/avx512fintrin.h (__v32hi): Define type.
43264 (__v64qi): Likewise.
43265 (_mm512_set1_epi8): Define.
43266 (_mm512_set1_epi16): Define.
43267 (_mm512_set4_epi32): Define.
43268 (_mm512_set4_epi64): Define.
43269 (_mm512_set4_pd): Define.
43270 (_mm512_set4_ps): Define.
43271 (_mm512_setr4_epi64): Define.
43272 (_mm512_setr4_epi32): Define.
43273 (_mm512_setr4_pd): Define.
43274 (_mm512_setr4_ps): Define.
43275 (_mm512_setzero_epi32): Define.
43277 2014-03-31 Martin Jambor <mjambor@suse.cz>
43279 PR middle-end/60647
43280 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43281 callsite_arguments_match_p. Updated all callers. Also check types of
43282 corresponding formal parameters and actual arguments.
43283 (not_all_callers_have_enough_arguments_p) Renamed to
43284 some_callers_have_mismatched_arguments_p.
43286 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43288 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43290 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43293 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43296 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43298 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43299 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43301 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43302 Use FMAMODE_NOVF512 mode iterator.
43303 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43304 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43305 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43306 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43308 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43309 Use VF_128_256 mode iterator.
43310 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43313 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43315 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43316 static chain if needed.
43318 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43321 * lra-constraints.c (index_part_to_reg): New.
43322 (process_address): Use it.
43324 2014-03-27 Jeff Law <law@redhat.com>
43325 Jakub Jelinek <jakub@redhat.com>
43328 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43329 gen_rtx_{PLUS,MULT} to build up the address expression.
43331 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43332 creating non-canonical RTL.
43334 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43337 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43338 functions; reorganize to make cheap checks first.
43339 (inline_small_functions): Do not estimate growth when dumping;
43341 * ipa-inline.h (inline_summary): Add min_size.
43342 (growth_likely_positive): New function.
43343 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43344 (set_cond_stmt_execution_predicate): Cleanup.
43345 (estimate_edge_size_and_time): Compute min_size.
43346 (estimate_calls_size_and_time): Likewise.
43347 (estimate_node_size_and_time): Likewise.
43348 (inline_update_overall_summary): Update min_size.
43349 (do_estimate_edge_time): Likewise.
43350 (do_estimate_edge_size): Update.
43351 (do_estimate_edge_hints): Update.
43352 (growth_likely_positive): New function.
43354 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43357 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43358 also if addr has VOIDmode.
43360 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43362 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43363 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43365 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43366 instructions as well as AdvancedSIMD loads.
43368 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43370 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43371 Use crypto_aese type.
43372 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43373 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43374 crypto_aese, crypto_aesmc. Move to types.md.
43375 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43377 * config/arm/iterators.md (crypto_type): Likewise.
43379 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43381 * cgraph.c: Include expr.h and tree-dfa.h.
43382 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43385 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43388 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43389 regs from checking multi-reg pseudos.
43391 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43393 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43395 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43397 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43398 if it would clobber the stack pointer, even temporarily.
43400 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43402 * mode-switching.c: Make small adjustments to the top comment.
43404 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43406 * config/rs6000/constraints.md (wD constraint): New constraint to
43407 match the constant integer to get the top DImode/DFmode out of a
43408 vector in a VSX register.
43410 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43411 match the constant integer to get the top DImode/DFmode out of a
43412 vector in a VSX register.
43414 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43417 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43420 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43421 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43423 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43424 Optimize vec_extract of 64-bit values, where the value being
43425 extracted is in the top word, where we can use scalar
43426 instructions. Add direct move and store support. Combine the big
43427 endian/little endian vector select load support into a single insn.
43428 (vsx_extract_<mode>_internal1): Likewise.
43429 (vsx_extract_<mode>_internal2): Likewise.
43430 (vsx_extract_<mode>_load): Likewise.
43431 (vsx_extract_<mode>_store): Likewise.
43432 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43433 combined into vsx_extract_<mode>_load.
43434 (vsx_extract_<mode>_one_le): Likewise.
43436 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43437 define the top 64-bit vector element.
43439 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43442 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43443 Document vec_vbpermq builtin.
43446 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43447 enable use of xxsldwi and xxpermdi builtin functions.
43448 (vec_xxpermdi): Likewise.
43450 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43451 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43453 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43455 PR rtl-optimization/60650
43456 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43458 (find_spills_for): New.
43459 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43460 Spill all pseudos on the second iteration.
43462 2014-03-27 Marek Polacek <polacek@redhat.com>
43465 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43468 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43470 * config/s390/s390.c (s390_can_use_return_insn): Check for
43471 call-saved FPRs on 31 bit.
43473 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43475 PR middle-end/60682
43476 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43477 if they need regimplification, just drop them instead of
43478 calling gimple_regimplify_operands on them.
43480 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43483 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43484 (aarch64_frame_pointer_required): Adjust logic.
43485 (aarch64_can_eliminate): Adjust logic.
43486 (aarch64_override_options_after_change): Adjust logic.
43488 2014-03-27 Dehao Chen <dehao@google.com>
43490 * ipa-inline.c (early_inliner): Update node's inline info.
43492 2014-03-26 Dehao Chen <dehao@google.com>
43494 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43495 compiler inserted conditional jumps for NAN float check.
43497 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43499 * ubsan.h (ubsan_create_data): Change second argument's type
43500 to const location_t *.
43501 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43503 (ubsan_create_data): Change second argument to const location_t *PLOC.
43504 Create Loc field whenever PLOC is non-NULL.
43505 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43506 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43510 * real.c (real_to_integer2): Change type of low to UHWI.
43512 2014-03-26 Tobias Burnus <burnus@net-b.de>
43514 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43515 (CILK_SELF_SPECS): New define.
43516 (driver_self_specs): Use it.
43518 2014-03-26 Richard Biener <rguenther@suse.de>
43520 * tree-pretty-print.c (percent_K_format): Implement special
43521 case for LTO and its stripped down BLOCK tree.
43523 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43526 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43528 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43529 one range is range_int_cst_p, but not both, at least optimize
43530 addition/subtraction of 0 and multiplication by 0 or 1.
43531 * gimple-fold.c (gimple_fold_call): Fold
43532 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43533 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43534 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43536 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43538 PR rtl-optimization/60452
43539 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43540 <case REG>: Return 1 for invalid offsets from the frame pointer.
43542 2014-03-26 Marek Polacek <polacek@redhat.com>
43545 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43548 2014-03-26 Marek Polacek <polacek@redhat.com>
43551 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43554 2014-03-26 Marek Polacek <polacek@redhat.com>
43557 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43558 multiplication in unsigned type.
43560 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43562 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43564 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43566 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43568 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43571 * cif-code.def (UNREACHABLE) New code.
43572 * ipa-inline.c (inline_small_functions): Skip edges to
43573 __builtlin_unreachable.
43574 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43575 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43576 predicate to __bulitin_unreachable.
43577 (set_cond_stmt_execution_predicate): Fix issue when
43578 invert_tree_comparison returns ERROR_MARK.
43579 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43580 propagate to inline clones.
43581 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43583 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43584 * cgraphclones.c (cgraph_clone_node): If call destination is already
43585 ureachable, do not redirect it back.
43586 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43589 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43591 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43592 Do not modify inline clones.
43594 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43596 * config/i386/i386.md (general_sext_operand): New mode attr.
43597 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43598 don't generate (sign_extend (const_int)).
43599 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43600 operands[2]. Use We constraint instead of <i> and
43601 <general_sext_operand> predicate instead of <general_operand>.
43602 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43603 * config/i386/constraints.md (We): New constraint.
43604 * config/i386/predicates.md (x86_64_sext_operand,
43605 sext_operand): New predicates.
43607 2014-03-25 Martin Jambor <mjambor@suse.cz>
43610 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43611 inconsistent devirtualizations to __builtin_unreachable.
43613 2014-03-25 Marek Polacek <polacek@redhat.com>
43616 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43618 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43620 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43621 order of elements for big-endian.
43623 2014-03-25 Richard Biener <rguenther@suse.de>
43625 PR middle-end/60635
43626 * gimplify-me.c (gimple_regimplify_operands): Update the
43629 2014-03-25 Martin Jambor <mjambor@suse.cz>
43632 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43633 (lto_output_varpool_node): Likewise.
43634 (input_overwrite_node): Likewise.
43635 (input_varpool_node): Likewise.
43637 2014-03-25 Richard Biener <rguenther@suse.de>
43639 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43640 (run_gcc): Likewise.
43642 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43644 * combine.c (simplify_compare_const): Add MODE argument.
43645 Handle mode_width 0 as very large mode_width.
43646 (try_combine, simplify_comparison): Adjust callers.
43648 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43649 type to avoid signed integer overflow.
43650 * explow.c (plus_constant): Likewise.
43652 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43654 * doc/generic.texi: Correct typos.
43656 2014-03-24 Tobias Burnus <burnus@net-b.de>
43658 * doc/invoke.texi (-flto): Expand section about
43659 using static libraries with LTO.
43661 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43663 PR rtl-optimization/60501
43664 * optabs.def (addptr3_optab): New optab.
43665 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43666 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43667 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43669 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43671 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43673 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43675 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43678 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43679 (_mm256_undefined_ps): Define.
43680 (_mm256_undefined_pd): Define.
43681 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43682 (_mm_undefined_pd): Define.
43683 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43684 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43685 (_mm512_undefined_ps): Define.
43686 (_mm512_undefined_pd): Define.
43687 Use _mm*_undefined_*.
43688 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43690 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43692 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43693 (lshr_simd): DI mode added.
43694 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43695 (aarch64_ushr_simddi): Likewise.
43696 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43697 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43698 (vshrd_n_u64): Likewise.
43700 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43702 * Makefile.in (s-macro_list): Depend on cc1.
43704 2014-03-23 Teresa Johnson <tejohnson@google.com>
43706 * ipa-utils.c (ipa_print_order): Use specified dump file.
43708 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43710 PR rtl-optimization/60601
43711 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43713 * gcc.c (eval_spec_function): Initialize save_growing_value.
43715 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43718 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43719 code == MINUS_EXPR, never swap op0 with op1.
43721 * toplev.c (init_local_tick): Avoid signed integer multiplication
43723 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43724 shift by first operand's bitsize.
43726 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43729 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43730 redefine to 1 or 0.
43731 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43732 TARGET_ISA_64BIT_P(x).
43734 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43736 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43737 pattern for vector nor instead of subtract from splat(-1).
43738 (altivec_expand_vec_perm_const_le): Likewise.
43740 2014-03-21 Richard Henderson <rth@twiddle.net>
43743 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43744 related insns after epilogue_completed.
43746 2014-03-21 Martin Jambor <mjambor@suse.cz>
43749 * cgraph.h (symtab_node): New flag body_removed.
43750 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43751 when removing bodies.
43752 * symtab.c (dump_symtab_base): Dump body_removed flag.
43753 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43754 had their bodies removed.
43756 2014-03-21 Martin Jambor <mjambor@suse.cz>
43759 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43762 2014-03-21 Richard Biener <rguenther@suse.de>
43764 PR tree-optimization/60577
43765 * tree-core.h (struct tree_base): Document nothrow_flag use
43766 in DECL_NONALIASED.
43767 * tree.h (DECL_NONALIASED): New.
43768 (may_be_aliased): Adjust.
43769 * coverage.c (build_var): Set DECL_NONALIASED.
43771 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43773 * expr.c (expand_expr_real_1): Remove outdated comment.
43775 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43777 PR middle-end/60597
43778 * ira.c (adjust_cleared_regs): Call copy_rtx on
43779 *reg_equiv[REGNO (loc)].src_p before passing it to
43780 simplify_replace_fn_rtx.
43783 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43784 into CONST, put pic register as first operand of PLUS. Use
43785 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43787 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43789 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43791 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43793 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43794 around for store forwarding issue in the FPU on the UT699.
43795 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43796 loads and operations if -mfix-ut699 is specified.
43797 (divtf3_hq): Tweak attribute.
43798 (sqrttf2_hq): Likewise.
43800 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43802 * calls.c (store_one_arg): Remove incorrect const qualification on the
43803 type of the temporary.
43804 * cfgexpand.c (expand_return): Likewise.
43805 * expr.c (expand_constructor): Likewise.
43806 (expand_expr_real_1): Likewise.
43808 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43810 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43813 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43816 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43818 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43820 * config/arm/aarch-common-protos.h
43821 (alu_cost_table): Fix spelling of "extend".
43822 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43824 2014-03-19 Richard Biener <rguenther@suse.de>
43826 PR middle-end/60553
43827 * tree-core.h (tree_type_common): Re-order pointer members
43828 to reduce recursion depth during GC walks.
43830 2014-03-19 Marek Polacek <polacek@redhat.com>
43833 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43834 before accessing it.
43836 2014-03-19 Richard Biener <rguenther@suse.de>
43839 * lto-streamer-in.c (input_function): In WPA stage do not drop
43842 2014-03-19 Jakub Jelinek <jakub@redhat.com>
43844 PR tree-optimization/60559
43845 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
43846 with build_zero_cst assignment.
43848 2014-03-18 Kai Tietz <ktietz@redhat.com>
43850 PR rtl-optimization/56356
43851 * sdbout.c (sdbout_parms): Verify that parms'
43852 incoming argument is valid.
43853 (sdbout_reg_parms): Likewise.
43855 2014-03-18 Richard Henderson <rth@redhat.com>
43858 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
43859 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
43860 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
43862 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
43864 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
43865 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
43866 Italicize plugin event names in description. Explain that
43867 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
43868 Remind that no GCC functions should be called after PLUGIN_FINISH.
43869 Explain what pragmas with expansion are.
43871 2014-03-18 Martin Liska <mliska@suse.cz>
43873 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
43874 gimple call statement is update.
43875 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
43876 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
43878 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43881 * ubsan.c (ubsan_instrument_unreachable): Call
43882 initialize_sanitizer_builtins.
43883 (ubsan_pass): Likewise.
43886 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
43887 varpool_finalize_decl instead of rest_of_decl_compilation.
43889 2014-03-18 Richard Biener <rguenther@suse.de>
43891 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
43892 by using bitmap_and_compl instead of bitmap_and_compl_into.
43893 (df_rd_transfer_function): Likewise.
43895 2014-03-18 Richard Biener <rguenther@suse.de>
43897 * doc/lto.texi (fresolution): Fix typo.
43899 2014-03-18 Richard Biener <rguenther@suse.de>
43901 * doc/invoke.texi (flto): Update for changes in 4.9.
43903 2014-03-18 Richard Biener <rguenther@suse.de>
43905 * doc/loop.texi: Remove section on the removed lambda framework.
43906 Update loop docs with recent changes in preserving loop structure.
43908 2014-03-18 Richard Biener <rguenther@suse.de>
43910 * doc/lto.texi (-fresolution): Document.
43912 2014-03-18 Richard Biener <rguenther@suse.de>
43914 * doc/contrib.texi: Adjust my name.
43916 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43919 * internal-fn.c: Include diagnostic-core.h.
43920 (expand_BUILTIN_EXPECT): New function.
43921 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
43922 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
43923 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
43924 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
43925 IFN_BUILTIN_EXPECT.
43926 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
43927 Revert 3 argument __builtin_expect code.
43928 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
43929 * gimple-fold.c (gimple_fold_call): Likewise.
43930 * tree.h (fold_builtin_expect): New prototype.
43931 * builtins.c (build_builtin_expect_predicate): Add predictor
43932 argument, if non-NULL, create 3 argument __builtin_expect.
43933 (fold_builtin_expect): No longer static. Add ARG2 argument,
43934 pass it through to build_builtin_expect_predicate.
43935 (fold_builtin_2): Adjust caller.
43936 (fold_builtin_3): Handle BUILT_IN_EXPECT.
43937 * internal-fn.def (BUILTIN_EXPECT): New.
43939 2014-03-18 Tobias Burnus <burnus@net-b.de>
43942 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
43943 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
43944 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
43946 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
43949 * predict.c (combine_predictions_for_bb): Fix up formatting.
43950 (expr_expected_value_1, expr_expected_value): Add predictor argument,
43951 fill what it points to if non-NULL.
43952 (tree_predict_by_opcode): Adjust caller, use the predictor.
43953 * predict.def (PRED_COMPARE_AND_SWAP): Add.
43955 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
43957 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
43958 proper constant for the store mode.
43960 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
43962 * symtab.c (change_decl_assembler_name): Fix transparent alias
43963 chain construction.
43965 2014-03-16 Renlin Li <Renlin.Li@arm.com>
43967 * config/aarch64/aarch64.c: Correct the comments about the
43968 aarch64 stack layout.
43970 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
43972 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
43973 check for GF_OMP_FOR_KIND_FOR.
43975 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
43977 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
43978 ymm and zmm register names.
43980 2014-03-17 Jakub Jelinek <jakub@redhat.com>
43983 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
43984 note creation for the 2010-08-31 changes.
43986 2014-03-17 Marek Polacek <polacek@redhat.com>
43988 PR middle-end/60534
43989 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
43990 as -fno-tree-loop-vectorize.
43991 (expand_omp_simd): Likewise.
43993 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
43995 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
43996 (eligible_for_call_delay): New prototype.
43997 * config/sparc/sparc.c (tls_call_delay): Rename into...
43998 (eligible_for_call_delay): ...this. Return false if the instruction
43999 cannot be put in the delay slot of a branch.
44000 (eligible_for_restore_insn): Simplify.
44001 (eligible_for_return_delay): Return false if the instruction cannot be
44002 put in the delay slot of a branch and simplify.
44003 (eligible_for_sibcall_delay): Return false if the instruction cannot be
44004 put in the delay slot of a branch.
44005 * config/sparc/sparc.md (fix_ut699): New attribute.
44006 (tls_call_delay): Delete.
44007 (in_call_delay): Reimplement.
44008 (eligible_for_sibcall_delay): Rename into...
44009 (in_sibcall_delay): ...this.
44010 (eligible_for_return_delay): Rename into...
44011 (in_return_delay): ...this.
44012 (in_branch_delay): Reimplement.
44013 (in_uncond_branch_delay): Delete.
44014 (in_annul_branch_delay): Delete.
44016 2014-03-14 Richard Henderson <rth@redhat.com>
44019 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
44020 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
44021 (*floathi<X87MODEF>2_i387_with_temp): Remove.
44022 (floathi splitters): Remove.
44023 (float<SWI48x>xf2): New pattern.
44024 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
44025 code that tried to handle DImode for 32-bit, but which was excluded
44026 by the pattern's condition. Drop allocation of stack temporary.
44027 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
44028 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
44029 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
44030 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
44031 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
44032 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
44033 (*float<SWI48><MODEF>2_sse_interunit): Remove.
44034 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
44035 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
44036 (*float<SWI48x><X87MODEF>2_i387): Remove.
44037 (all float _with_temp splitters): Remove.
44038 (*float<SWI48x><MODEF>2_i387): New pattern.
44039 (*float<SWI48><MODEF>2_sse): New pattern.
44040 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
44041 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
44043 2014-03-14 Jakub Jelinek <jakub@redhat.com>
44044 Marek Polacek <polacek@redhat.com>
44046 PR middle-end/60484
44047 * common.opt (dump_base_name_prefixed): New Variable.
44048 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
44049 if x_dump_base_name_prefixed is already set, set it at the end.
44051 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
44053 PR rtl-optimization/60508
44054 * lra-constraints.c (get_reload_reg): Add new parameter
44056 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
44057 Pass the new parameter values.
44059 2014-03-14 Richard Biener <rguenther@suse.de>
44061 * common.opt: Revert unintented changes from r205065.
44062 * opts.c: Likewise.
44064 2014-03-14 Richard Biener <rguenther@suse.de>
44066 PR middle-end/60518
44067 * cfghooks.c (split_block): Properly adjust all loops the
44068 block was a latch of.
44070 2014-03-14 Martin Jambor <mjambor@suse.cz>
44073 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
44076 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
44079 * config/avr/avr.c (avr_set_current_function): Pass function name
44080 through default_strip_name_encoding before sanity checking instead
44081 of skipping the first char of the assembler name.
44083 2014-03-13 Richard Henderson <rth@redhat.com>
44086 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
44087 (ix86_force_to_memory, ix86_free_from_memory): Remove.
44088 * config/i386/i386-protos.h: Likewise.
44089 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
44090 in the expander instead of a splitter.
44091 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
44092 any possibility of requiring a memory.
44093 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
44094 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
44095 (fp branch splitters): Update for ix86_split_fp_branch.
44096 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
44097 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
44098 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
44099 (*fop_<MODEF>_2_i387): Remove f/r alternative.
44100 (*fop_<MODEF>_3_i387): Likewise.
44101 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
44102 (splitters for the fop_* register patterns): Remove.
44103 (fscalexf4_i387): Rename from *fscalexf4_i387.
44104 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
44106 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44108 PR tree-optimization/59779
44109 * tree-dfa.c (get_ref_base_and_extent): Use double_int
44110 type for bitsize and maxsize instead of HOST_WIDE_INT.
44112 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
44114 PR rtl-optimization/57320
44115 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
44116 the CFG after thread_prologue_and_epilogue_insns.
44118 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
44120 PR rtl-optimization/57189
44121 * lra-constraints.c (process_alt_operands): Disfavor spilling
44124 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
44126 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
44128 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44130 PR tree-optimization/59025
44131 PR middle-end/60418
44132 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
44133 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
44135 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
44138 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
44139 calls of avr_out_plus_1.
44141 2014-03-13 Bin Cheng <bin.cheng@arm.com>
44143 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
44144 BB's single pred and update the father loop's latch info later.
44146 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44148 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44152 (VEC_base): Likewise.
44153 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44154 registers, we need to swap double words in little endian mode.
44156 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44157 to be a container mode for 128-bit integer operations added in ISA
44158 2.07. Unlike TImode and PTImode, the preferred register set is
44159 the Altivec/VMX registers for the 128-bit operations.
44161 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44163 (rs6000_split_128bit_ok_p): Likewise.
44165 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44166 macros for creating ISA 2.07 normal and overloaded builtin
44167 functions with 3 arguments.
44168 (BU_P8V_OVERLOAD_3): Likewise.
44169 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44170 for use as overloaded functions.
44171 (VPERM_1TI_UNS): Likewise.
44172 (VSEL_1TI): Likewise.
44173 (VSEL_1TI_UNS): Likewise.
44174 (ST_INTERNAL_1ti): Likewise.
44175 (LD_INTERNAL_1ti): Likewise.
44176 (XXSEL_1TI): Likewise.
44177 (XXSEL_1TI_UNS): Likewise.
44178 (VPERM_1TI): Likewise.
44179 (VPERM_1TI_UNS): Likewise.
44180 (XXPERMDI_1TI): Likewise.
44181 (SET_1TI): Likewise.
44182 (LXVD2X_V1TI): Likewise.
44183 (STXVD2X_V1TI): Likewise.
44184 (VEC_INIT_V1TI): Likewise.
44185 (VEC_SET_V1TI): Likewise.
44186 (VEC_EXT_V1TI): Likewise.
44187 (EQV_V1TI): Likewise.
44188 (NAND_V1TI): Likewise.
44189 (ORC_V1TI): Likewise.
44190 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44191 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44192 overloaded builtin.
44193 (VADDUQM): Likewise.
44194 (VSUBCUQ): Likewise.
44195 (VADDEUQM): Likewise.
44196 (VADDECUQ): Likewise.
44197 (VSUBEUQM): Likewise.
44198 (VSUBECUQ): Likewise.
44200 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44201 __int128_t and __uint128_t types.
44202 (__uint128_type): Likewise.
44203 (altivec_categorize_keyword): Add support for vector __int128_t,
44204 vector __uint128_t, vector __int128, and vector unsigned __int128
44205 as a container type for TImode operations that need to be done in
44206 VSX/Altivec registers.
44207 (rs6000_macro_to_expand): Likewise.
44208 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44209 to support 128-bit integer instructions vaddcuq, vadduqm,
44210 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44211 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44213 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44214 for V1TImode, and set up preferences to use VSX/Altivec registers.
44215 Setup VSX reload handlers.
44216 (rs6000_debug_reg_global): Likewise.
44217 (rs6000_init_hard_regno_mode_ok): Likewise.
44218 (rs6000_preferred_simd_mode): Likewise.
44219 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44220 (easy_altivec_constant): Likewise.
44221 (output_vec_const_move): Likewise.
44222 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44224 (rs6000_expand_vector_extract): Likewise.
44225 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44227 (rs6000_const_vec): Add support for V1TImode.
44228 (rs6000_emit_le_vsx_load): Swap double words when loading or
44229 storing TImode/V1TImode.
44230 (rs6000_emit_le_vsx_store): Likewise.
44231 (rs6000_emit_le_vsx_move): Likewise.
44232 (rs6000_emit_move): Add support for V1TImode.
44233 (altivec_expand_ld_builtin): Likewise.
44234 (altivec_expand_st_builtin): Likewise.
44235 (altivec_expand_vec_init_builtin): Likewise.
44236 (altivec_expand_builtin): Likewise.
44237 (rs6000_init_builtins): Add support for V1TImode type. Add
44238 support for ISA 2.07 128-bit integer builtins. Define type names
44239 for the VSX/Altivec vector types.
44240 (altivec_init_builtins): Add support for overloaded vector
44241 functions with V1TImode type.
44242 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44243 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44245 (rs6000_split_128bit_ok_p): Likewise.
44246 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44247 __int128_t and vector __uint128_t.
44249 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44250 and mode attributes.
44252 (VSX_M2): Likewise.
44257 (VS_scalar): Likewise.
44258 (VS_double): Likewise.
44259 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44261 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44262 we support the ISA 2.07 128-bit integer arithmetic instructions.
44263 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44264 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44265 and TImode types for use with the builtin functions.
44266 (V1TI_type_node): Likewise.
44267 (unsigned_V1TI_type_node): Likewise.
44268 (intTI_type_internal_node): Likewise.
44269 (uintTI_type_internal_node): Likewise.
44271 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44272 128-bit builtin functions.
44273 (UNSPEC_VADDEUQM): Likewise.
44274 (UNSPEC_VADDECUQ): Likewise.
44275 (UNSPEC_VSUBCUQ): Likewise.
44276 (UNSPEC_VSUBEUQM): Likewise.
44277 (UNSPEC_VSUBECUQ): Likewise.
44278 (VM): Add V1TImode to vector mode iterators.
44280 (VI_unit): Likewise.
44281 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44282 (altivec_vaddcuq): Likewise.
44283 (altivec_vsubuqm): Likewise.
44284 (altivec_vsubcuq): Likewise.
44285 (altivec_vaddeuqm): Likewise.
44286 (altivec_vaddecuq): Likewise.
44287 (altivec_vsubeuqm): Likewise.
44288 (altivec_vsubecuq): Likewise.
44290 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44292 (BOOL_128): Likewise.
44293 (BOOL_REGS_OUTPUT): Likewise.
44294 (BOOL_REGS_OP1): Likewise.
44295 (BOOL_REGS_OP2): Likewise.
44296 (BOOL_REGS_UNARY): Likewise.
44297 (BOOL_REGS_AND_CR0): Likewise.
44299 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44300 128-bit integer builtin support.
44301 (vec_vadduqm): Likewise.
44302 (vec_vaddecuq): Likewise.
44303 (vec_vaddeuqm): Likewise.
44304 (vec_vsubecuq): Likewise.
44305 (vec_vsubeuqm): Likewise.
44306 (vec_vsubcuq): Likewise.
44307 (vec_vsubuqm): Likewise.
44309 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44310 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44311 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44312 128-bit integer add/subtract to ISA 2.07.
44314 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44316 * config/arc/arc.c (arc_predicate_delay_insns):
44317 Fix third argument passed to conditionalize_nonjump.
44319 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44321 * config/aarch64/aarch64-builtins.c
44322 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44323 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44324 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44325 instead of __builtin_lfloor.
44326 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44328 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44330 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44331 (tree_ssa_ifcombine_bb_1): New function.
44332 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44333 is an empty forwarder block to then_bb or vice versa and then_bb
44334 and else_bb are effectively swapped.
44336 2014-03-12 Christian Bruel <christian.bruel@st.com>
44339 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44340 REG_CFA_DEF_CFA note.
44341 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44342 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44344 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44346 PR tree-optimization/60454
44347 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44349 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44351 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44352 Do not define target_cpu_default2 to generic.
44353 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44354 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44355 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44357 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44358 Marc Glisse <marc.glisse@inria.fr>
44360 PR tree-optimization/60502
44361 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44362 instead of build_low_bits_mask.
44364 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44366 PR middle-end/60482
44367 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44368 if there are multiple uses, but op doesn't live on E edge.
44369 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44370 clobber stmts before __builtin_unreachable.
44372 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44374 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44375 hard_frame_pointer_rtx.
44376 * cse.c (cse_insn): Remove volatile check.
44377 * cselib.c (cselib_process_insn): Likewise.
44378 * dse.c (scan_insn): Likewise.
44380 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44382 * config/arc/arc.c (conditionalize_nonjump): New function,
44384 (arc_ifcvt): ... this.
44385 (arc_predicate_delay_insns): Use it.
44387 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44389 * config/arc/predicates.md (extend_operand): During/after reload,
44390 allow const_int_operand.
44391 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44392 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44393 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44395 (umulsi3_highpart_i): Likewise.
44397 2014-03-11 Richard Biener <rguenther@suse.de>
44399 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44400 Add asserts to guard possible wrong-code bugs.
44402 2014-03-11 Richard Biener <rguenther@suse.de>
44404 PR tree-optimization/60429
44405 PR tree-optimization/60485
44406 * tree-ssa-structalias.c (set_union_with_increment): Properly
44407 take into account all fields that overlap the shifted vars.
44408 (do_sd_constraint): Likewise.
44409 (do_ds_constraint): Likewise.
44410 (get_constraint_for_ptr_offset): Likewise.
44412 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44414 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44415 (nios2_compute_frame_layout):
44416 Add calculation of cfun->machine->fp_save_offset.
44417 (nios2_expand_prologue): Correct setting of frame pointer register
44419 (nios2_expand_epilogue): Update recovery of stack pointer from
44420 frame pointer accordingly.
44421 (nios2_initial_elimination_offset): Update calculation of offset
44422 for eliminating to HARD_FRAME_POINTER_REGNUM.
44424 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44427 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44428 cgraph_get_create_node on VAR_DECLs.
44430 2014-03-10 Richard Biener <rguenther@suse.de>
44432 PR middle-end/60474
44433 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44435 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44437 * config/vms/vms.opt (vms_float_format): New variable.
44439 2014-03-08 Tobias Burnus <burnus@net-b.de>
44441 * doc/invoke.texi (-fcilkplus): Update implementation status.
44443 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44444 Richard Biener <rguenther@suse.de>
44446 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44447 consistently accross all TUs.
44448 (run_gcc): Enable -fshort-double automatically at link at link-time
44449 and disallow override.
44451 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44454 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44455 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44456 if they can't be used.
44458 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44460 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44461 for Solaris 11/x86 ld.
44462 * configure: Regenerate.
44464 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44466 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44467 (LIB_TLS_SPEC): Save as ld_tls_libs.
44468 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44469 (HAVE_AS_IX86_TLSLDM): New test.
44470 * configure, config.in: Regenerate.
44471 * config/i386/i386.c (legitimize_tls_address): Fall back to
44472 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44473 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44474 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44475 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44477 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44479 * common.opt (fira-loop-pressure): Mark as optimization.
44481 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44483 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44484 an OpenMP mappable type.
44486 2014-03-06 Matthias Klose <doko@ubuntu.com>
44488 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44489 MULTILIB_OSDIRNAMES is not defined.
44491 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44492 Meador Inge <meadori@codesourcery.com>
44495 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44496 (arm_legitimize_address): Call legitimize_tls_address for any
44497 arm_tls_referenced_p expression, handle constant addend. Call it
44498 before testing for !TARGET_ARM.
44499 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44501 2014-03-06 Richard Biener <rguenther@suse.de>
44503 PR middle-end/60445
44507 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44509 * tree-streamer.c (record_common_node): Assert we don't record
44510 nodes with type double.
44511 (preload_common_node): Skip type double, complex double and double
44512 pointer since it is now frontend dependent due to fshort-double option.
44514 2014-03-06 Richard Biener <rguenther@suse.de>
44516 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44517 or -fno-lto is specified and the linker has full plugin support.
44518 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44519 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44520 * lto-wrapper.c (merge_and_complain): Merge compile-time
44521 optimization levels.
44522 (run_gcc): And pass it through to the link options.
44524 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44528 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44530 * cselib.c (remove_useless_values): Skip to avoid quadratic
44531 behavior if the condition moved from...
44532 (cselib_process_insn): ... here holds.
44534 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44537 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44538 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44541 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44542 (TM_H): Add x86-tune.def.
44544 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44546 * config/aarch64/aarch64.c (generic_tunings):
44547 Use cortexa57_extra_costs.
44549 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44552 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44553 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44554 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44557 2014-03-04 Heiher <r@hev.cc>
44559 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44560 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44562 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44564 * config/i386/predicates.md (const2356_operand): Change to ...
44565 (const2367_operand): ... this.
44566 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44568 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44569 (*avx512pf_scatterpf<mode>sf): Ditto.
44570 (avx512pf_scatterpf<mode>df): Ditto.
44571 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44572 (*avx512pf_scatterpf<mode>df): Ditto.
44573 * config/i386/i386.c (ix86_expand_builtin): Update
44574 incorrect hint operand error message.
44576 2014-03-04 Richard Biener <rguenther@suse.de>
44578 * lto-section-in.c (lto_get_section_data): Fix const cast.
44580 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44582 * tree-streamer.c (record_common_node): Assert we don't record
44583 nodes with type double.
44584 (preload_common_node): Skip type double, complex double and double
44585 pointer since it is now frontend dependent due to fshort-double option.
44587 2014-03-04 Richard Biener <rguenther@suse.de>
44590 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44591 (lto_input_toplevel_asms): Likewise.
44592 * lto-section-in.c (lto_get_section_data): Instead do it here
44595 2014-03-04 Richard Biener <rguenther@suse.de>
44597 PR tree-optimization/60382
44598 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44599 dead PHIs a reduction.
44601 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44603 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44605 (_mm_prefetch): Move out of GCC target("sse") pragma.
44606 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44607 GCC target("prfchw") pragma.
44608 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44610 * config/i386/i386.c (ix86_option_override_internal): Enable
44611 -mprfchw with -mprefetchwt1.
44613 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44615 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44618 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44620 * opts.h (CL_PCH_IGNORE): Define.
44621 * targhooks.c (option_affects_pch_p):
44622 Return false for options that have CL_PCH_IGNORE set.
44623 * opt-functions.awk: Process PchIgnore.
44624 * doc/options.texi: Document PchIgnore.
44626 * config/arc/arc.opt (misize): Add PchIgnore property.
44628 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44630 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44631 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44632 constraint on constants to permit them being loaded into
44633 GENERAL_REGS or BASE_REGS.
44635 2014-03-03 Nick Clifton <nickc@redhat.com>
44637 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44638 anti-cacnonical alternatives.
44639 (negandhi3_real): New pattern.
44640 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44642 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44644 * config/avr/avr-mcus.def: Remove atxmega16x1.
44645 * config/avr/avr-tables.opt: Regenerate.
44646 * config/avr/t-multilib: Regenerate.
44647 * doc/avr-mmcu.texi: Regenerate.
44649 2014-03-03 Tobias Grosser <tobias@grosser.es>
44650 Mircea Namolaru <mircea.namolaru@inria.fr>
44652 PR tree-optimization/58028
44653 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44656 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44658 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44659 not handled by recognizers.
44661 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44663 PR middle-end/60175
44664 * function.c (expand_function_end): Don't emit
44665 clobber_return_register sequence if clobber_after is a BARRIER.
44666 * cfgexpand.c (construct_exit_block): Append instructions before
44667 return_label to prev_bb.
44669 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44671 * config/rs6000/constraints.md: Document reserved use of "wc".
44673 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44676 * ipa.c (function_and_variable_visibility): When dissolving comdat
44677 group, also set all symbols to local.
44679 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44684 2013-12-14 Jan Hubicka <jh@suse.cz>
44685 PR middle-end/58477
44686 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44688 2014-03-02 Jon Beniston <jon@beniston.com>
44694 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44695 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44696 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44697 (simple_return, *simple_return): New patterns
44698 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44699 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44701 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44703 * dwarf2out.c (gen_subprogram_die): Tidy.
44705 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44708 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44709 (*mov_t_msb_neg_negc): ... this new insn.
44711 2014-02-28 Jason Merrill <jason@redhat.com>
44714 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44717 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44720 * dwarf2out.c (decltype_auto_die): New static.
44721 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44722 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44723 (is_cxx_auto): Likewise.
44725 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44727 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44728 we are not using general regs only.
44730 2014-02-28 Richard Biener <rguenther@suse.de>
44733 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44734 previous fix and only allow to remove trivial pre-headers
44735 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44736 (remove_forwarder_block): Properly update the latch of a loop.
44738 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44741 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44742 (cselib_preserved_hash_table): New.
44743 (preserve_constants_and_equivs): Move preserved vals to it.
44744 (cselib_find_slot): Look it up first.
44745 (cselib_init): Initialize it.
44746 (cselib_finish): Release it.
44747 (dump_cselib_table): Dump it.
44749 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44752 * cselib.c (remove_useless_values): Skip to avoid quadratic
44753 behavior if the condition moved from...
44754 (cselib_process_insn): ... here holds.
44756 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44759 * var-tracking.c (vt_initialize): Apply the same condition to
44760 preserve the CFA base value.
44762 2014-02-28 Joey Ye <joey.ye@arm.com>
44765 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44766 if reload in progress or completed.
44768 2014-02-28 Tobias Burnus <burnus@net-b.de>
44770 PR middle-end/60147
44771 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44774 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44776 * doc/tm.texi.in (Condition Code Status): Update documention for
44777 relative locations of cc0-setter and cc0-user.
44779 2014-02-27 Jeff Law <law@redhat.com>
44781 PR rtl-optimization/52714
44782 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44783 into two independent simple sets, if I3 is a jump, ensure the
44784 pattern we place into I3 is a (set (pc) ...).
44786 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44787 Jeff Law <law@redhat.com>
44789 PR rtl-optimization/49847
44790 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44791 are in different blocks.
44792 * doc/tm.texi (Condition Code Status): Update documention for
44793 relative locations of cc0-setter and cc0-user.
44795 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44798 * lra.c (lra_emit_add): Check SUBREG too.
44800 2014-02-27 Andreas Schwab <schwab@suse.de>
44802 * config/m68k/m68k.c (m68k_option_override): Disable
44803 -flive-range-shrinkage for classic m68k.
44804 (m68k_override_options_after_change): Likewise.
44806 2014-02-27 Marek Polacek <polacek@redhat.com>
44808 PR middle-end/59223
44809 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44810 -Wmaybe-uninitialized.
44812 2014-02-27 Alan Modra <amodra@gmail.com>
44815 * reload1.c (emit_input_reload_insns): When reload_override_in,
44816 set old to rl->in_reg when rl->in_reg is a subreg.
44818 2014-02-26 Richard Biener <rguenther@suse.de>
44821 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44823 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44825 * common/config/i386/predicates.md (const1256_operand): Remove.
44826 (const2356_operand): New.
44827 (const_1_to_2_operand): Remove.
44828 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44829 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44830 (*avx512pf_gatherpf<mode>sf): Ditto.
44831 (avx512pf_gatherpf<mode>df): Ditto.
44832 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44833 (*avx512pf_gatherpf<mode>df): Ditto.
44834 (avx512pf_scatterpf<mode>sf): Ditto.
44835 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44836 (*avx512pf_scatterpf<mode>sf): Ditto.
44837 (avx512pf_scatterpf<mode>df): Ditto.
44838 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44839 (*avx512pf_scatterpf<mode>df): Ditto.
44840 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44842 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
44844 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
44845 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
44846 (_mm512_mask_testn_epi64_mask): Move to ...
44847 * config/i386/avx512cdintrin.h: Here.
44848 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
44849 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
44850 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
44851 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
44852 TARGET_AVX512F from TARGET_AVX512CD.
44854 2014-02-26 Richard Biener <rguenther@suse.de>
44857 * ipa.c (walk_polymorphic_call_targets): Properly guard
44858 call to inline_update_overall_summary.
44860 2014-02-26 Bin Cheng <bin.cheng@arm.com>
44863 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
44864 and latches only if requested. Fix latch if it is removed.
44865 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
44866 LOOPS_HAVE_PREHEADERS.
44868 2014-02-25 Andrew Pinski <apinski@cavium.com>
44870 * builtins.c (expand_builtin_thread_pointer): Create a new target
44871 when the target is NULL.
44873 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
44875 PR rtl-optimization/60317
44876 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44877 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44878 * lra-assigns.c: Include params.h.
44879 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
44880 other reload pseudos considerations.
44882 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44884 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
44885 to use canonical form for nor<mode>3.
44887 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44890 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
44893 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44895 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
44896 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
44897 (ix86_handle_option): Handle OPT_mprefetchwt1.
44898 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
44899 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
44901 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44902 OPTION_MASK_ISA_PREFETCHWT1.
44903 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
44904 (PTA_PREFETCHWT1): New.
44905 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
44906 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
44907 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
44908 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
44909 (*prefetch_avx512pf_<mode>_: Change into ...
44910 (*prefetch_prefetchwt1_<mode>: This.
44911 * config/i386/i386.opt (mprefetchwt1): New.
44912 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
44913 (_mm_prefetch): Handle intent to write.
44914 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
44916 2014-02-25 Richard Biener <rguenther@suse.de>
44918 PR middle-end/60291
44919 * emit-rtl.c (mem_attrs_htab): Remove.
44920 (mem_attrs_htab_hash): Likewise.
44921 (mem_attrs_htab_eq): Likewise.
44922 (set_mem_attrs): Always allocate new mem-attrs when something changed.
44923 (init_emit_once): Do not allocate mem_attrs_htab.
44925 2014-02-25 Richard Biener <rguenther@suse.de>
44928 * lto-opts.c (lto_write_options): Output non-explicit conservative
44929 -fwrapv, -fno-trapv and -fno-strict-overflow.
44930 * lto-wrapper.c (merge_and_complain): Handle merging those options.
44931 (run_gcc): And pass them through.
44933 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44935 * sel-sched.c (calculate_new_fences): New parameter ptime.
44936 Calculate it as a maximum over all fence cycles.
44937 (sel_sched_region_2): Adjust the call to calculate_new_fences.
44938 Print the final schedule timing when sched_verbose.
44940 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44942 PR rtl-optimization/60292
44943 * sel-sched.c (fill_vec_av_set): Do not reset target availability
44944 bit fot the fence instruction.
44946 2014-02-24 Alangi Derick <alangiderick@gmail.com>
44948 * calls.h: Fix typo in comment.
44950 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
44952 * config/pa/pa.c (pa_output_move_double): Don't valididate when
44953 adjusting offsetable addresses.
44955 2014-02-24 Guozhi Wei <carrot@google.com>
44957 * sparseset.h (sparseset_pop): Fix the wrong index.
44959 2014-02-24 Walter Lee <walt@tilera.com>
44961 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
44962 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
44964 * common/config/tilegx/tilegx-common.c
44965 (TARGET_DEFAULT_TARGET_FLAGS): Define.
44966 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
44967 (LINK_SPEC): Ditto.
44968 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
44969 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
44970 (tilegx_gimplify_va_arg_expr): Handle big endian.
44971 (tilegx_expand_unaligned_load): Ditto.
44972 (tilegx_expand_unaligned_store): Ditto.
44973 (TARGET_RETURN_IN_MSB): New.
44974 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
44975 (TARGET_ENDIAN_DEFAULT): New.
44976 (TARGET_BIG_ENDIAN): Handle big endian.
44977 (BYTES_BIG_ENDIAN): Ditto.
44978 (WORDS_BIG_ENDIAN): Ditto.
44979 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
44980 (ENDIAN_SPEC): New.
44981 (EXTRA_SPECS): New.
44982 * config/tilegx/tilegx.md (extv): Handle big endian.
44984 (insn_st<n>): Ditto.
44985 (insn_st<n>_add<bitsuffix>): Ditto.
44986 (insn_stnt<n>): Ditto.
44987 (insn_stnt<n>_add<bitsuffix>):Ditto.
44988 (vec_interleave_highv8qi): Handle big endian.
44989 (vec_interleave_highv8qi_be): New.
44990 (vec_interleave_highv8qi_le): New.
44991 (insn_v1int_h): Handle big endian.
44992 (vec_interleave_lowv8qi): Handle big endian.
44993 (vec_interleave_lowv8qi_be): New.
44994 (vec_interleave_lowv8qi_le): New.
44995 (insn_v1int_l): Handle big endian.
44996 (vec_interleave_highv4hi): Handle big endian.
44997 (vec_interleave_highv4hi_be): New.
44998 (vec_interleave_highv4hi_le): New.
44999 (insn_v2int_h): Handle big endian.
45000 (vec_interleave_lowv4hi): Handle big endian.
45001 (vec_interleave_lowv4hi_be): New.
45002 (vec_interleave_lowv4hi_le): New.
45003 (insn_v2int_l): Handle big endian.
45004 (vec_interleave_highv2si): Handle big endian.
45005 (vec_interleave_highv2si_be): New.
45006 (vec_interleave_highv2si_le): New.
45007 (insn_v4int_h): Handle big endian.
45008 (vec_interleave_lowv2si): Handle big endian.
45009 (vec_interleave_lowv2si_be): New.
45010 (vec_interleave_lowv2si_le): New.
45011 (insn_v4int_l): Handle big endian.
45012 * config/tilegx/tilegx.opt (mbig-endian): New option.
45013 (mlittle-endian): New option.
45014 * doc/install.texi: Document tilegxbe-linux.
45015 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
45017 2014-02-24 Martin Jambor <mjambor@suse.cz>
45020 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
45021 there are no parameter descriptors.
45023 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
45025 PR rtl-optimization/60268
45026 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
45027 initialization to ...
45028 (sched_rgn_init): ... here.
45029 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
45031 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45033 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
45036 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
45038 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
45041 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45043 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
45044 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
45046 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45048 * config/microblaze/predicates.md: Add cmp_op predicate.
45049 * config/microblaze/microblaze.md: Add branch_compare instruction
45050 which uses cmp_op predicate and emits cmp insn before branch.
45051 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
45052 to microblaze_expand_conditional_branch and consolidate logic.
45053 (microblaze_expand_conditional_branch): emit branch_compare
45054 insn instead of handling cmp op separate from branch insn.
45056 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45058 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
45061 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45063 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
45064 define_insn with define_expand and new define_insn
45065 *altivec_lve<VI_char>x_internal.
45066 (altivec_stve<VI_char>x): Replace define_insn with define_expand
45067 and new define_insn *altivec_stve<VI_char>x_internal.
45068 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
45070 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
45072 (altivec_expand_stvex_be): New function.
45074 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
45076 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
45077 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
45078 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
45079 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
45081 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
45084 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
45085 instead of emit_move_insn.
45087 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45089 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
45090 vspltw with vsldoi.
45091 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
45092 gen_altivec_vsumsws.
45094 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45096 * config/rs6000/altivec.md (altivec_lvxl): Rename as
45097 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
45098 (altivec_lvxl_<mode>): New define_expand incorporating
45099 -maltivec=be semantics where needed.
45100 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
45101 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
45102 semantics where needed.
45103 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
45104 (altivec_stvx_<mode>): New define_expand incorporating
45105 -maltivec=be semantics where needed.
45106 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
45107 VM2 iterator instead of V4SI.
45108 (altivec_stvxl_<mode>): New define_expand incorporating
45109 -maltivec=be semantics where needed.
45110 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
45111 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
45112 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
45113 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
45114 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
45115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
45116 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
45117 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
45118 ALTIVEC_BUILTIN_STVXL.
45119 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
45120 (altivec_expand_stvx_be): Likewise.
45121 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
45122 (altivec_expand_lvx_be): Likewise.
45123 (altivec_expand_stvx_be): Likewise.
45124 (altivec_expand_builtin): Add cases for
45125 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
45126 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
45127 (altivec_init_builtins): Add definitions for
45128 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
45129 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
45131 2014-02-21 Catherine Moore <clm@codesourcery.com>
45133 * doc/invoke.texi (mvirt, mno-virt): Document.
45134 * config/mips/mips.opt (mvirt): New option.
45135 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
45137 2014-02-21 Richard Biener <rguenther@suse.de>
45139 PR tree-optimization/60276
45140 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
45141 (STMT_VINFO_MIN_NEG_DIST): New macro.
45142 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
45143 STMT_VINFO_MIN_NEG_DIST.
45144 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45145 made for negative dependence distances still hold.
45147 2014-02-21 Richard Biener <rguenther@suse.de>
45149 PR middle-end/60291
45150 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45151 DECL_INITIAL for globals not in the current function context.
45153 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45155 PR tree-optimization/56490
45156 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45157 * tree-ssa-uninit.c: Include params.h.
45158 (compute_control_dep_chain): Add num_calls argument, return false
45159 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45160 num_calls to recursive call.
45161 (find_predicates): Change dep_chain into normal array,
45162 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45163 variable and adjust compute_control_dep_chain caller.
45164 (find_def_preds): Likewise.
45166 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45168 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45169 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45171 2014-02-21 Nick Clifton <nickc@redhat.com>
45173 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45174 (pushhi1): Likewise.
45175 (popqi1): Add mode to pre_dec.
45176 (pophi1): Likewise.
45178 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45180 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45181 mode for mask of V8SFmode permutation.
45183 2014-02-20 Richard Henderson <rth@redhat.com>
45186 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45187 a new pseudo for OLDVAL.
45189 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45192 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45193 gen_reg_rtx if d->testing_p.
45194 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45195 if d->testing_p and we will certainly return true.
45196 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45199 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45201 * emit-rtl.c (gen_reg_rtx): Assert that
45202 crtl->emit.regno_pointer_align_length is non-zero.
45204 2014-02-20 Richard Henderson <rth@redhat.com>
45207 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45208 on failure the store back into EXPECT.
45210 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45211 Sandra Loosemore <sandra@codesourcery.com>
45213 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45214 * config/nios2/nios2.c (nios2_function_profiler): Add
45215 -fPIC (flag_pic == 2) support.
45216 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45217 (nios2_large_offset_p): New function.
45218 (nios2_unspec_reloc_p): Move up position, update to use
45219 nios2_large_offset_p.
45220 (nios2_unspec_address): Remove function.
45221 (nios2_unspec_offset): New function.
45222 (nios2_large_got_address): New function.
45223 (nios2_got_address): Add large offset support.
45224 (nios2_legitimize_tls_address): Update usage of removed and new
45226 (nios2_symbol_binds_local_p): New function.
45227 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45228 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45229 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45230 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45231 processing for (const (unspec ...)).
45232 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45234 2014-02-20 Richard Biener <rguenther@suse.de>
45236 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45237 doing the substitution.
45238 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45240 2014-02-20 Martin Jambor <mjambor@suse.cz>
45243 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45244 info when checking whether lattices are bottom.
45246 2014-02-20 Richard Biener <rguenther@suse.de>
45248 PR middle-end/60221
45249 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45252 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45255 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45256 parameter specifying the scaling.
45257 (inline_call): Update.
45258 (want_inline_recursively): Guard division by zero.
45259 (recursive_inlining): Update.
45260 * ipa-inline.h (clone_inlined_nodes): Update.
45262 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45265 * config/i386/i386.c (classify_argument): Pass structures of size
45266 64 bytes or less in register.
45268 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45269 Kirill Yukhin <kirill.yukhin@intel.com>
45271 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45272 (_mm_rcp28_round_ss): Ditto.
45273 (_mm_rsqrt28_round_sd): Ditto.
45274 (_mm_rsqrt28_round_ss): Ditto.
45275 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45276 (_mm_rcp14_round_ss): Ditto.
45277 (_mm_rsqrt14_round_sd): Ditto.
45278 (_mm_rsqrt14_round_ss): Ditto.
45279 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45280 the first input operand, get rid of match_dup.
45281 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45283 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45285 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45286 operand as the first input operand, set type attribute.
45287 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45288 Set type attribute.
45289 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45290 operand as the first input operand, set type attribute.
45292 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45294 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45297 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45300 * config/i386/i386.c (construct_container): Remove TFmode check
45301 for X86_64_INTEGER_CLASS.
45303 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45306 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45307 only when -Wpsabi is enabled.
45309 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45312 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45313 passing arrays in registers are the same as for structs, so remove the
45314 special case for them.
45316 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45318 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45319 destination type, extract only the valid bits if the source type is not
45320 integral and has a different mode.
45322 2014-02-19 Richard Biener <rguenther@suse.de>
45325 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45328 2014-02-19 Richard Biener <rguenther@suse.de>
45331 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45332 (ipa_modify_call_arguments): Emit an argument load explicitely and
45333 preserve virtual SSA form there and for the replacement call.
45334 Do not update SSA form nor free dominance info.
45336 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45338 * ipa.c (function_and_variable_visibility): Also clear WEAK
45339 flag when disolving COMDAT_GROUP.
45341 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45343 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45344 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45345 not devirtualizing.
45346 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45347 do more sanity checks.
45348 (detect_type_change): Return true when giving up early.
45349 (compute_complex_assign_jump_func): Fix type parameter of
45350 ipa_set_ancestor_jf.
45351 (compute_complex_ancestor_jump_func): Likewise.
45352 (update_jump_functions_after_inlining): Fix updating of
45354 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45356 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45358 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45359 inline clones when edge disappears.
45361 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45364 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45365 Split 64-bit moves into 2 patterns. Do not allow the use of
45366 direct move for TDmode in little endian, since the decimal value
45367 has little endian bytes within a word, but the 64-bit pieces are
45368 ordered in a big endian fashion, and normal subreg's of TDmode are
45370 (mov<mode>_64bit_dm): Likewise.
45371 (movtd_64bit_nodm): Likewise.
45373 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45375 PR tree-optimization/60174
45376 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45377 statement of an SSA_NAME that occurs in an abnormal PHI node.
45379 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45382 * final.c (SEEN_BB): Remove.
45383 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45384 (final_scan_insn): Don't force_source_line on second
45385 NOTE_INSN_BASIC_BLOCK.
45387 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45390 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45391 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45392 (type_natural_mode): Warn ABI change when %zmm register is not
45393 available for AVX512F vector value passing.
45395 2014-02-18 Kai Tietz <ktietz@redhat.com>
45398 * config/i386/i386.c (ix86_expand_prologue): Use value in
45399 rax register as displacement when restoring %r10 or %rax.
45400 Fix wrong offset when restoring both registers.
45402 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45404 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45405 assertion with conditional return.
45407 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45408 Uros Bizjak <ubizjak@gmail.com>
45411 * config/i386/driver-i386.c (host_detect_local_cpu): If
45412 YMM state is not saved by the OS, also clear has_f16c. Move
45413 CPUID 0x80000001 handling before YMM state saving checking.
45415 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45417 PR rtl-optimization/58960
45418 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45419 factored out from ...
45420 (sched_init): ... here.
45421 (free_global_sched_pressure_data): New, factored out from ...
45422 (sched_finish): ... here.
45423 * sched-int.h (free_global_sched_pressure_data): Declare.
45424 * sched-rgn.c (nr_regions_initial): New static global.
45425 (haifa_find_rgns): Initialize it.
45426 (schedule_region): Disable sched-pressure for the newly
45429 2014-02-17 Richard Biener <rguenther@suse.de>
45431 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45432 release SSA defs of pattern stmts.
45434 2014-02-17 Richard Biener <rguenther@suse.de>
45436 * tree-inline.c (expand_call_inline): Release the virtual
45437 operand defined by the call we are about to inline.
45439 2014-02-17 Richard Biener <rguenther@suse.de>
45441 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45443 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45444 Ilya Tocar <ilya.tocar@intel.com>
45446 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45447 arguments order in builtin.
45448 (_mm512_permutexvar_epi64): Ditto.
45449 (_mm512_mask_permutexvar_epi64): Ditto
45450 (_mm512_maskz_permutexvar_epi32): Ditto
45451 (_mm512_permutexvar_epi32): Ditto
45452 (_mm512_mask_permutexvar_epi32): Ditto
45454 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45456 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45457 (p8_vmrgow): Likewise.
45459 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45461 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45464 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45467 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45468 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45469 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45470 using direct move instructions on ISA 2.07. Also adjust
45471 instruction length for 64-bit.
45472 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45473 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45475 2014-02-15 Alan Modra <amodra@gmail.com>
45479 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45480 find_replacement on parts of insn rtl that might be reloaded.
45482 2014-02-15 Richard Biener <rguenther@suse.de>
45484 PR tree-optimization/60183
45485 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45486 (tree_ssa_phiprop): Calculate and free post-dominators.
45488 2014-02-14 Jeff Law <law@redhat.com>
45490 PR rtl-optimization/60131
45491 * ree.c (get_extended_src_reg): New function.
45492 (combine_reaching_defs): Use it rather than assuming location of REG.
45493 (find_and_remove_re): Verify first operand of extension is
45494 a REG before adding the insns to the copy list.
45496 2014-02-14 Roland McGrath <mcgrathr@google.com>
45498 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45499 * configure: Regenerated.
45500 * config.in: Regenerated.
45501 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45502 instead of ASM_SHORT.
45504 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45505 Richard Earnshaw <rearnsha@arm.com>
45507 PR rtl-optimization/59535
45508 * lra-constraints.c (process_alt_operands): Encourage alternative
45509 when unassigned pseudo class is superset of the alternative class.
45510 (inherit_reload_reg): Don't inherit when optimizing for code size.
45511 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45512 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45513 modes not less than 4 for Thumb1.
45515 2014-02-14 Kyle McMartin <kyle@redhat.com>
45518 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45520 2014-02-14 Richard Biener <rguenther@suse.de>
45522 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45523 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45524 Do not strip INDIRECT_REFs.
45526 2014-02-14 Richard Biener <rguenther@suse.de>
45529 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45530 DECL_FUNCTION_SPECIFIC_TARGET.
45531 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45532 * tree-streamer-out.c (pack_ts_target_option): Remove.
45533 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45534 (write_ts_function_decl_tree_pointers): Do not stream
45535 DECL_FUNCTION_SPECIFIC_TARGET.
45536 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45537 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45538 (lto_input_ts_function_decl_tree_pointers): Do not stream
45539 DECL_FUNCTION_SPECIFIC_TARGET.
45541 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45543 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45544 (get_initial_def_for_induction, vectorizable_induction): Ignore
45545 debug stmts when looking for exit_phi.
45546 (vectorizable_live_operation): Fix up condition.
45548 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45550 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45551 nreverse() because it changes the content of original tree list.
45553 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45555 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45556 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45558 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45560 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45561 GNU coding standards.
45563 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45566 * dwarf2out.c (gen_subprogram_die): Don't call
45567 add_calling_convention_attribute if subr_die is old_die.
45569 2014-02-13 Sharad Singhai <singhai@google.com>
45571 * doc/optinfo.texi: Fix order of nodes.
45573 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45575 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45576 operands[2], not operands[3].
45578 2014-02-13 Richard Biener <rguenther@suse.de>
45581 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45582 mention the possibility of an in-tree build.
45583 (CLooG): Update recommended version to 0.18.1, mention the
45584 possibility of an in-tree build and clarify that the ISL
45585 bundled with CLooG does not work.
45587 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45590 * expr.c (compress_float_constant): If x is a hard register,
45591 extend into a pseudo and then move to x.
45593 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45595 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45596 caused by bad second argument to warning_at() with -mhotpatch and
45597 nested functions (e.g. with gfortran).
45599 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45601 * opts.c (option_name): Remove "enabled by default" rider.
45603 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45605 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45607 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45608 Uros Bizjak <ubizjak@gmail.com>
45611 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45612 * configure: Regenerated.
45614 2014-02-12 Richard Biener <rguenther@suse.de>
45616 * vec.c (vec_prefix::calculate_allocation): Move as
45617 inline variant to vec.h.
45618 (vec_prefix::calculate_allocation_1): New out-of-line version.
45619 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45620 (vec_prefix::m_has_auto_buf): Rename to ...
45621 (vec_prefix::m_using_auto_storage): ... this.
45622 (vec_prefix::calculate_allocation): Inline the easy cases
45623 and dispatch to calculate_allocation_1 which doesn't need the
45625 (va_heap::reserve): Use gcc_checking_assert.
45626 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45627 m_using_auto_storage.
45628 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45630 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45631 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45632 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45634 2014-02-12 Richard Biener <rguenther@suse.de>
45636 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45637 when we found a dependence.
45639 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45641 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45643 (maybe_fold_stmt): ... into this new function.
45644 * omp-low.c (lower_omp): Update comment.
45646 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45649 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45652 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45654 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45655 identifiers in comments.
45656 (cortexa53_extra_costs): Likewise.
45657 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45658 (cortexa7_extra_costs): Likewise.
45659 (cortexa12_extra_costs): Likewise.
45660 (cortexa15_extra_costs): Likewise.
45661 (v7m_extra_costs): Likewise.
45663 2014-02-12 Richard Biener <rguenther@suse.de>
45665 PR middle-end/60092
45666 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45667 of posix_memalign being successful.
45668 (lower_stmt): Restrict lowering of posix_memalign to when
45669 -ftree-bit-ccp is enabled.
45671 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45673 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45675 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45677 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45679 PR rtl-optimization/60116
45680 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45681 other_insn once the combination has been validated.
45683 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45686 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45688 * ipa-devirt.c: Include demangle.h
45689 (odr_violation_reported): New static variable.
45690 (add_type_duplicate): Update odr_violations.
45691 (maybe_record_node): Add completep parameter; update it.
45692 (record_target_from_binfo): Add COMPLETEP parameter;
45693 update it as needed.
45694 (possible_polymorphic_call_targets_1): Likewise.
45695 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45696 rename FINAL to COMPLETE.
45697 (record_targets_from_bases): Sanity check we found the binfo;
45698 fix COMPLETEP updating.
45699 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45700 parameter, fix computing of COMPLETEP.
45701 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45702 at LTO time do demangling.
45703 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45704 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45706 (gimple_get_virt_method_for_binfo): Likewise.
45707 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45708 gimple_get_virt_method_for_vtable): Update prototypes.
45710 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45713 * genautomata.c (add_presence_absence): Fix typo with
45714 {final_}presence_list.
45716 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45719 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45720 for VSX/Altivec vectors that land in GPR registers.
45722 2014-02-11 Richard Henderson <rth@redhat.com>
45723 Jakub Jelinek <jakub@redhat.com>
45726 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45727 around drhs if type conversion to lacc->type is not useless.
45729 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45731 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45733 (cortex-a57.cortex-a53): Likewise.
45734 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45736 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45738 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45741 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45743 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45744 add_options_for_arm_vfp3.
45746 2014-02-11 Jeff Law <law@redhat.com>
45748 PR middle-end/54041
45749 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45750 object with an undesirable mode.
45752 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45755 * config/i386/sol2-9.h: New file.
45756 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45757 *-*-solaris2.9*): Use it.
45759 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45761 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45762 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45764 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45766 * config/microblaze/microblaze.c: Extend mcpu version format
45768 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45770 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45772 2014-02-10 Richard Henderson <rth@redhat.com>
45775 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45776 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45777 ms-abi vs -mno-accumulate-outgoing-args.
45778 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45779 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45782 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45784 PR middle-end/60080
45785 * cfgexpand.c (expand_asm_operands): Attach source location to
45786 ASM_INPUT rtx objects.
45787 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45789 2014-02-10 Nick Clifton <nickc@redhat.com>
45791 * config/mn10300/mn10300.c (popcount): New function.
45792 (mn10300_expand_prologue): Include saved registers in stack usage
45795 2014-02-10 Jeff Law <law@redhat.com>
45797 PR middle-end/52306
45798 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45799 when changing the SET_DEST of a prior insn to avoid an input reload.
45801 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45803 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45804 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45805 -mcall-openbsd, or -mcall-linux.
45806 (CC1_ENDIAN_BIG_SPEC): Remove.
45807 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45808 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45809 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45810 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45811 and %cc1_endian_default.
45812 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45814 2014-02-10 Richard Biener <rguenther@suse.de>
45816 PR tree-optimization/60115
45817 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45818 MEM_REF handling. Properly verify that the accesses are not
45819 out of the objects bound.
45821 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45823 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45826 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45828 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45829 proper constants and fix formatting.
45830 (possible_polymorphic_call_targets): Fix formatting.
45832 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45833 Ilya Tocar <ilya.tocar@intel.com>
45835 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45836 (_mm512_loadu_epi32): Renamed into...
45837 (_mm512_loadu_si512): This.
45838 (_mm512_storeu_epi32): Renamed into...
45839 (_mm512_storeu_si512): This.
45840 (_mm512_maskz_ceil_ps): Removed.
45841 (_mm512_maskz_ceil_pd): Ditto.
45842 (_mm512_maskz_floor_ps): Ditto.
45843 (_mm512_maskz_floor_pd): Ditto.
45844 (_mm512_floor_round_ps): Ditto.
45845 (_mm512_floor_round_pd): Ditto.
45846 (_mm512_ceil_round_ps): Ditto.
45847 (_mm512_ceil_round_pd): Ditto.
45848 (_mm512_mask_floor_round_ps): Ditto.
45849 (_mm512_mask_floor_round_pd): Ditto.
45850 (_mm512_mask_ceil_round_ps): Ditto.
45851 (_mm512_mask_ceil_round_pd): Ditto.
45852 (_mm512_maskz_floor_round_ps): Ditto.
45853 (_mm512_maskz_floor_round_pd): Ditto.
45854 (_mm512_maskz_ceil_round_ps): Ditto.
45855 (_mm512_maskz_ceil_round_pd): Ditto.
45856 (_mm512_expand_pd): Ditto.
45857 (_mm512_expand_ps): Ditto.
45858 * config/i386/i386.c (ix86_builtins): Remove
45859 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
45860 (bdesc_args): Ditto.
45861 * config/i386/predicates.md (const1256_operand): New.
45862 (const_1_to_2_operand): Ditto.
45863 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
45864 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45865 (*avx512pf_gatherpf<mode>sf): Ditto.
45866 (avx512pf_gatherpf<mode>df): Ditto.
45867 (*avx512pf_gatherpf<mode>df_mask): Ditto.
45868 (*avx512pf_gatherpf<mode>df): Ditto.
45869 (avx512pf_scatterpf<mode>sf): Ditto.
45870 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45871 (*avx512pf_scatterpf<mode>sf): Ditto.
45872 (avx512pf_scatterpf<mode>df): Ditto.
45873 (*avx512pf_scatterpf<mode>df_mask): Ditto.
45874 (*avx512pf_scatterpf<mode>df): Ditto.
45875 (avx512f_expand<mode>): Removed.
45876 (<shift_insn><mode>3<mask_name>): Change predicate type.
45878 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45880 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
45881 not at the end of datarefs vector use ordered_remove to avoid
45882 reordering datarefs vector.
45885 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
45886 mark local addressable non-static vars as GOVD_PRIVATE
45887 instead of GOVD_LOCAL.
45888 * omp-low.c (lower_omp_for): Move gimple_bind_vars
45889 and BLOCK_VARS of gimple_bind_block to new_stmt rather
45892 PR middle-end/60092
45893 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
45894 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
45895 assume_aligned or alloc_align attributes.
45896 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
45897 arguments. Handle also assume_aligned and alloc_align attributes.
45898 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
45899 calls to functions with assume_aligned or alloc_align attributes.
45900 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
45902 2014-02-08 Terry Guo <terry.guo@arm.com>
45904 * doc/invoke.texi: Document ARM -march=armv7e-m.
45906 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45908 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
45909 flag on __cilkrts_rethrow builtin.
45912 * ipa-cp.c (determine_versionability): Fail at -O0
45913 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
45914 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
45917 2014-02-04 Jakub Jelinek <jakub@redhat.com>
45920 * tree-inline.c (copy_forbidden): Fail for
45921 __attribute__((optimize (0))) functions.
45923 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45925 * varpool.c: Include pointer-set.h.
45926 (varpool_remove_unreferenced_decls): Variables in other partitions
45927 will not be output; be however careful to not lose information
45928 about partitioning.
45930 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45932 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
45933 lookup in the vtable constructor.
45935 2014-02-07 Jeff Law <law@redhat.com>
45938 * config/m68k/m68k.md (ashldi_extsi): Turn into a
45939 define_insn_and_split.
45941 * ipa-inline.c (inline_small_functions): Fix typos.
45943 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45945 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
45946 (s390_can_use_return_insn): Declare.
45947 * config/s390/s390.h (EPILOGUE_USES): Define.
45948 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
45950 (s390_chunkify_start): Handle return JUMP_LABELs.
45951 (s390_early_mach): Emit a main_pool instruction on the entry edge.
45952 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
45953 (s390_can_use_return_insn): New functions.
45954 (s390_fix_long_loop_prediction): Handle conditional returns.
45955 (TARGET_SET_UP_BY_PROLOGUE): Define.
45956 * config/s390/s390.md (ANY_RETURN): New code iterator.
45957 (*creturn, *csimple_return, return, simple_return): New patterns.
45959 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45961 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
45962 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
45963 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
45964 REG_CFA_RESTORE list when deciding not to restore a register.
45966 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45968 * config/s390/s390.c: Include tree-pass.h and context.h.
45969 (s390_early_mach): New function, split out from...
45970 (s390_emit_prologue): ...here.
45971 (pass_data_s390_early_mach): New pass structure.
45972 (pass_s390_early_mach): New class.
45973 (s390_option_override): Create and register early_mach pass.
45974 Move to end of file.
45976 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45978 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
45979 to match for the exit block.
45981 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45983 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
45984 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
45985 Reject misaligned operands.
45987 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45989 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
45991 2014-02-07 Richard Biener <rguenther@suse.de>
45993 PR middle-end/60092
45994 * gimple-low.c (lower_builtin_posix_memalign): New function.
45995 (lower_stmt): Call it to lower posix_memalign in a way
45996 to make alignment info accessible.
45998 2014-02-07 Jakub Jelinek <jakub@redhat.com>
46001 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
46002 __builtin_setjmp_receiver.
46004 2014-02-07 Richard Biener <rguenther@suse.de>
46006 PR middle-end/60092
46007 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
46008 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
46009 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
46010 Handle BUILT_IN_POSIX_MEMALIGN.
46011 (find_func_clobbers): Likewise.
46012 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
46013 (call_may_clobber_ref_p_1): Likewise.
46015 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46018 * ipa-devirt.c (record_target_from_binfo): Remove overactive
46021 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46024 * lto-cgraph.c (lto_output_node): Use
46025 symtab_get_symbol_partitioning_class.
46026 (lto_output_varpool_node): likewise.
46027 (symtab_get_symbol_partitioning_class): Move here from
46028 lto/lto-partition.c
46029 * cgraph.h (symbol_partitioning_class): Likewise.
46030 (symtab_get_symbol_partitioning_class): Declare.
46032 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46034 * ggc.h (ggc_internal_cleared_alloc): New macro.
46035 * vec.h (vec_safe_copy): Handle memory stats.
46036 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
46037 * target-globals.c (save_target_globals): Likewise.
46039 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46042 * expr.c (emit_move_resolve_push): Export; be bit more selective
46043 on when to clear alias set.
46044 * expr.h (emit_move_resolve_push): Declare.
46045 * function.h (struct function): Add tail_call_marked.
46046 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
46047 * config/i386/i386-protos.h (ix86_expand_push): Remove.
46048 * config/i386/i386.md (TImode move expander): De not call
46050 (FP push expanders): Preserve memory attributes.
46051 * config/i386/sse.md (push<mode>1): Remove.
46052 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
46053 (ix86_expand_push): Remove.
46054 * config/i386/mmx.md (push<mode>1): Remove.
46056 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46058 PR rtl-optimization/60030
46059 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
46060 lopart with paradoxical subreg before shifting it up by hprec.
46062 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46064 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
46065 Remove extra newline at end of file.
46066 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
46067 (arm_issue_rate): Handle cortexa57.
46068 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
46069 (cortex-a57.cortex-a53): Likewise.
46071 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46074 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
46075 don't record in REG_FRAME_RELATED_EXPR registers not set in that
46077 (arm_expand_prologue): Adjust all callers.
46078 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
46079 info, registers also at the lowest numbered registers side. Use
46080 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
46084 * var-tracking.c (adjust_mems): Before adding a SET to
46085 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
46087 2014-02-06 Alan Modra <amodra@gmail.com>
46090 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
46091 change SDmode to DDmode when lra_in_progress.
46093 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46095 PR middle-end/59150
46096 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
46097 free_data_ref on the dr first, and before goto again also set dr
46098 to the next dr. For simd_lane_access, free old datarefs[i] before
46099 overwriting it. For get_vectype_for_scalar_type failure, don't
46100 free_data_ref if simd_lane_access.
46102 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
46105 * tree.h (opts_for_fn): New inline function.
46106 (opt_for_fn): Define.
46107 * config/i386/i386.c (ix86_function_regparm): Use
46108 opt_for_fn (decl, optimize) instead of optimize.
46110 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
46112 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
46113 for SYMBOL_REF in large memory model.
46115 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46117 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
46118 and crypto support.
46119 (cortex-a57): Likewise.
46120 (cortex-a57.cortex-a53): Likewise.
46122 2014-02-06 Yury Gribov <y.gribov@samsung.com>
46123 Kugan Vivekanandarajah <kuganv@linaro.org>
46125 * config/arm/arm.c (arm_vector_alignment_reachable): Check
46127 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
46129 2014-02-06 Richard Biener <rguenther@suse.de>
46131 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
46132 set_loop_copy and initialize_original_copy_tables.
46134 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
46136 * config/aarch64/aarch64-simd.md
46137 (aarch64_ashr_simddi): Change QI to SI.
46139 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46140 Jakub Jelinek <jakub@redhat.com>
46142 PR middle-end/60013
46143 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46146 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46148 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46149 CODE_FOR_altivec_vpku[hw]um to
46150 CODE_FOR_altivec_vpku[hw]um_direct.
46151 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46152 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46153 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46154 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46156 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46158 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46159 generation for -maltivec=be.
46160 (altivec_vsumsws): Simplify redundant test.
46162 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46164 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46165 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46166 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46167 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46168 gen_altivec_vpkuwum.
46169 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46171 (altivec_vpks<VI_char>ss): Likewise.
46172 (altivec_vpks<VI_char>us): Likewise.
46173 (altivec_vpku<VI_char>us): Likewise.
46174 (altivec_vpku<VI_char>um): Likewise.
46175 (altivec_vpku<VI_char>um_direct): New (copy of
46176 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46178 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46179 target is little endian and -maltivec=be is not specified.
46180 (*altivec_vupkhs<VU_char>_direct): New (copy of
46181 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46182 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46183 target is little endian and -maltivec=be is not specified.
46184 (*altivec_vupkls<VU_char>_direct): New (copy of
46185 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46186 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46187 little endian and -maltivec=be is not specified.
46188 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46189 little endian and -maltivec=be is not specified.
46191 2014-02-05 Richard Henderson <rth@redhat.com>
46194 * combine-stack-adj.c: Revert r206943.
46195 * sched-int.h (struct deps_desc): Add last_args_size.
46196 * sched-deps.c (init_deps): Initialize it.
46197 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46198 contain REG_ARGS_SIZE notes.
46200 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46202 * lto-cgraph.c (asm_nodes_output): Make global.
46203 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46204 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46205 (driver_handle_option): Handle OPT_fwpa.
46207 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46210 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46211 a comment typo and formatting issue. If odr_hash hasn't been
46212 created, return vNULL and set *completep to false.
46214 PR middle-end/57499
46215 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46216 bb with no successors.
46218 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46221 * doc/invoke.texi (-march): Clarify documentation for ARM.
46222 (-mtune): Likewise.
46225 2014-02-05 Richard Biener <rguenther@suse.de>
46227 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46228 when not vectorizing because of too many alias checks.
46229 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46230 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46232 2014-02-05 Nick Clifton <nickc@redhat.com>
46234 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46235 accept extended registers in any mode when compiling for the MN10300.
46237 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46239 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46240 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46241 sanitization attributes.
46242 (can_inline_edge_p): Likewise.
46243 (sanitize_attrs_match_for_inline_p): New function.
46245 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46247 * ipa-prop.c (detect_type_change): Shor circuit testing of
46248 type changes on THIS pointer.
46250 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46253 * config/pa/pa.c (legitimize_tls_address): Return original address
46254 if not passed a SYMBOL_REF rtx.
46255 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46257 (pa_emit_move_sequence): Simplify TLS source operands.
46258 (pa_legitimate_constant_p): Reject all TLS constants.
46259 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46260 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46262 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46264 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46265 groups when we know they are controlled by LTO.
46266 * varasm.c (default_binds_local_p_1): If object is in other partition,
46267 it will be resolved locally.
46269 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46271 * config/host-linux.c (linux_gt_pch_use_address): Don't
46272 use SSIZE_MAX because it is not always defined.
46274 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46277 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46278 threshold for pseudo splitting.
46279 (update_ebb_live_info): Process call argument hard registers and
46280 hard registers from insn definition too.
46281 (max_small_class_regs_num): New constant.
46282 (inherit_in_ebb): Update live hard regs through EBBs. Update
46283 reloads_num only for small register classes. Don't split for
46286 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46289 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46292 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46294 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46295 visibility is safe.
46297 2014-02-04 Marek Polacek <polacek@redhat.com>
46299 * gdbinit.in (pel): Define.
46301 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46303 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46306 2014-02-04 Richard Biener <rguenther@suse.de>
46309 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46310 in function context local.
46311 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46312 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46313 similar to LTO_imported_decl_ref.
46315 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46317 PR tree-optimization/60002
46318 * cgraphclones.c (build_function_decl_skip_args): Clear
46319 DECL_LANG_SPECIFIC.
46321 PR tree-optimization/60023
46322 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46323 false to gsi_replace.
46324 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46325 has been in some EH region and vec_stmt could throw, add
46326 vec_stmt into the same EH region.
46327 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46328 has no lhs, ignore it.
46329 * internal-fn.c (expand_MASK_LOAD): Likewise.
46332 * tree-inline.c (copy_forbidden): Fail for
46333 __attribute__((optimize (0))) functions.
46336 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46337 is set, copy one less argument.
46338 (expand_simd_clones): Don't subtract clone_info->inbranch
46339 from simd_clone_struct_alloc argument.
46341 PR rtl-optimization/57915
46342 * recog.c (simplify_while_replacing): If all unary/binary/relational
46343 operation arguments are constant, attempt to simplify those.
46345 PR middle-end/59261
46346 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46347 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46349 2014-02-04 Richard Biener <rguenther@suse.de>
46351 PR tree-optimization/60012
46352 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46353 TBAA disambiguation to all DDRs.
46355 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46358 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46359 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46361 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46364 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46366 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46368 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46369 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46371 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46374 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46375 to figure out targets of polymorphic calls with known decl.
46376 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46377 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46378 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46379 (get_polymorphic_call_info): ... here.
46380 (get_polymorphic_call_info_from_invariant): New function.
46382 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46384 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46385 lookup via vtable pointer; check for type consistency
46386 and turn inconsitent facts into UNREACHABLE.
46387 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46388 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46389 type inconsistent querries; return UNREACHABLE instead.
46391 2014-02-03 Richard Henderson <rth@twiddle.net>
46394 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46395 already processed this node.
46396 (normalize_one_pred_1): Pass along mark_set.
46397 (normalize_one_pred): Create and destroy a pointer_set_t.
46398 (normalize_one_pred_chain): Likewise.
46400 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46402 PR gcov-profile/58602
46403 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46405 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46408 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46409 -fno-devirtualize; try to devirtualize by the knowledge of
46410 virtual table pointer given by aggregate propagation.
46411 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46412 (ipa_print_node_jump_functions): Dump also offset that
46413 is relevant for polymorphic calls.
46414 (determine_known_aggregate_parts): Add arg_type parameter; use it
46415 instead of determining the type from pointer type.
46416 (ipa_compute_jump_functions_for_edge): Update call of
46417 determine_known_aggregate_parts.
46418 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46419 (gimple_get_virt_method_for_binfo): ... here; simplify using
46420 vtable_pointer_value_to_vtable.
46421 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46422 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46423 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46424 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46426 (vtable_pointer_value_to_binfo): ... here.
46427 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46429 2014-02-03 Teresa Johnson <tejohnson@google.com>
46431 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46432 redef of outer loop index variable.
46434 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46438 * doc/extend.texi (Function Attributes): Typo.
46440 2014-02-03 Cong Hou <congh@google.com>
46442 PR tree-optimization/60000
46443 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46444 if the vectorized statement is a store. A store statement can only
46445 appear at the end of pattern statements.
46447 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46449 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46450 (ix86_option_override_internal): Default long double to 64-bit for
46451 32-bit Bionic and to 128-bit for 64-bit Bionic.
46453 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46454 TARGET_LONG_DOUBLE_128 is true.
46455 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46457 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46458 (mlong-double-64): Negate -mlong-double-128.
46459 (mlong-double-128): New option.
46461 * config/i386/i386-c.c (ix86_target_macros): Define
46462 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46464 * doc/invoke.texi: Document -mlong-double-128.
46466 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46468 PR rtl-optimization/60024
46469 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46471 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46473 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46475 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46477 PR rtl-optimization/57662
46478 * sel-sched.c (code_motion_path_driver): Do not mark already not
46479 existing blocks in the visiting bitmap.
46481 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46483 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46484 on the insn being emitted.
46486 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46487 Will Deacon <will.deacon@arm.com>
46489 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46491 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46493 * config/arm/arm-tables.opt: Regenerate.
46495 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46497 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46498 for vector types other than V16QImode.
46499 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46500 define_expand, and call altivec_expand_vec_perm_le when producing
46501 code with little endian element order.
46502 (*altivec_vperm_<mode>_internal): New insn having previous
46503 behavior of altivec_vperm_<mode>.
46504 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46505 altivec_expand_vec_perm_le when producing code with little endian
46507 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46508 behavior of altivec_vperm_<mode>_uns.
46510 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46512 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46513 (altivec_vsumsws): Add handling for -maltivec=be with a little
46515 (altivec_vsumsws_direct): New.
46516 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46517 gen_altivec_vsumsws.
46519 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46521 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46522 vtable_pointer_value_to_binfo): New functions.
46523 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46524 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46526 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46528 * config/nios2/nios2.md (load_got_register): Initialize GOT
46529 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46530 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46532 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46534 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46535 preserverd by passthrough, do not propagate the type.
46537 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46539 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46540 (mips_atomic_assign_expand_fenv): New function.
46541 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46543 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46545 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46546 (__builtin_mips_set_fcsr): Likewise.
46547 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46548 MIPS_USI_FTYPE_VOID.
46549 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46550 (mips16_expand_set_fcsr): Likewise.
46551 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46552 (mips16_set_fcsr_stub): Likewise.
46553 (mips16_get_fcsr_one_only_stub): New class.
46554 (mips16_set_fcsr_one_only_stub): Likewise.
46555 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46556 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46557 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46558 (hard_float): New availability predicate.
46559 (mips_builtins): Add get_fcsr and set_fcsr.
46560 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46561 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46562 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46563 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46564 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46567 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46569 * config/mips/mips.c (mips_one_only_stub): New class.
46570 (mips_need_mips16_rdhwr_p): Replace with...
46571 (mips16_rdhwr_stub): ...this new variable.
46572 (mips16_stub_call_address): New function.
46573 (mips16_rdhwr_one_only_stub): New class.
46574 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46575 (mips_output_mips16_rdhwr): Delete.
46576 (mips_finish_stub): New function.
46577 (mips_code_end): Use it to handle rdhwr stubs.
46579 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46582 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46583 when calculating size of integer atomic types.
46585 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46587 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46589 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46591 PR tree-optimization/60003
46592 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46593 * profile.c (branch_prob): Use gimple_call_builtin_p
46594 to check for BUILT_IN_SETJMP_RECEIVER.
46595 * tree-inline.c (copy_bb): Call notice_special_calls.
46597 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46600 * lra-constraints.c (process_alt_operands): Update reload_sum only
46603 2014-01-31 Richard Henderson <rth@redhat.com>
46605 PR middle-end/60004
46606 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46607 until after else_eh is processed.
46609 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46611 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46612 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46613 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46614 in smmintrin.h, remove them.
46615 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46616 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46617 * config/i386/i386.md (ROUND_SAE): Fix value.
46618 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46619 (const48_operand): New.
46620 * config/i386/subst.md (round), (round_expand): Use
46621 const_4_or_8_to_11_operand.
46622 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46624 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46626 * config/i386/constraints.md (Yk): Swap meaning with k.
46627 * config/i386/i386.md (movhi_internal): Change Yk to k.
46628 (movqi_internal): Ditto.
46629 (*k<logic><mode>): Ditto.
46632 (kandn<mode>): Ditto.
46633 (*<code>hi_1): Ditto.
46634 (*<code>qi_1): Ditto.
46635 (kxnor<mode>): Ditto.
46636 (kortestzhi): Ditto.
46637 (kortestchi): Ditto.
46639 (*one_cmplhi2_1): Ditto.
46640 (*one_cmplqi2_1): Ditto.
46641 * config/i386/sse.md (): Change k to Yk.
46642 (avx512f_load<mode>_mask): Ditto.
46643 (avx512f_blendm<mode>): Ditto.
46644 (avx512f_store<mode>_mask): Ditto.
46645 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46646 (avx512f_storedqu<mode>_mask): Ditto.
46647 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46649 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46650 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46651 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46652 (avx512f_maskcmp<mode>3): Ditto.
46653 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46654 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46655 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46656 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46657 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46658 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46659 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46660 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46661 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46662 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46663 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46664 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46665 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46666 (vec_extract_lo_<mode>_maskm): Ditto.
46667 (vec_extract_hi_<mode>_maskm): Ditto.
46668 (avx512f_vternlog<mode>_mask): Ditto.
46669 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46670 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46671 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46672 (avx512f_<code>v8div16qi2_mask): Ditto.
46673 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46674 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46675 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46676 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46677 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46678 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46679 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46680 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46681 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46682 (avx512cd_maskb_vec_dupv8di): Ditto.
46683 (avx512cd_maskw_vec_dupv16si): Ditto.
46684 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46685 (avx512f_vpermi2var<mode>3_mask): Ditto.
46686 (avx512f_vpermi2var<mode>3_mask): Ditto.
46687 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46688 (*avx512f_gathersi<mode>): Ditto.
46689 (*avx512f_gathersi<mode>_2): Ditto.
46690 (*avx512f_gatherdi<mode>): Ditto.
46691 (*avx512f_gatherdi<mode>_2): Ditto.
46692 (*avx512f_scattersi<mode>): Ditto.
46693 (*avx512f_scatterdi<mode>): Ditto.
46694 (avx512f_compress<mode>_mask): Ditto.
46695 (avx512f_compressstore<mode>_mask): Ditto.
46696 (avx512f_expand<mode>_mask): Ditto.
46697 * config/i386/subst.md (mask): Change k to Yk.
46698 (mask_scalar_merge): Ditto.
46701 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46703 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46705 2014-01-31 Richard Biener <rguenther@suse.de>
46707 PR middle-end/59990
46708 * builtins.c (fold_builtin_memory_op): Make sure to not
46709 use a floating-point mode or a boolean or enumeral type for
46710 the copy operation.
46712 2014-01-30 DJ Delorie <dj@redhat.com>
46714 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46715 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46716 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46717 whenever main() has an epilogue.
46719 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46721 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46722 unused variable "field".
46723 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46724 (vsx_mergeh_<mode>): Likewise.
46725 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46726 (altivec_vmrghh): Likewise.
46727 (altivec_vmrghw): Likewise.
46728 (altivec_vmrglb): Likewise.
46729 (altivec_vmrglh): Likewise.
46730 (altivec_vmrglw): Likewise.
46731 (altivec_vspltb): Add missing uses.
46732 (altivec_vsplth): Likewise.
46733 (altivec_vspltw): Likewise.
46734 (altivec_vspltsf): Likewise.
46736 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46739 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46740 frame related instructions.
46742 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46744 PR rtl-optimization/59959
46745 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46746 any reload of register whose subreg is invalid.
46748 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46750 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46751 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46752 Add missing return type - void.
46754 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46756 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46757 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46758 remove element index adjustment for endian (now handled in vsx.md
46760 (altivec_expand_vec_perm_const): Use
46761 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46762 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46763 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46764 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46765 define_expand and a new define_insn *altivec_vspltb_internal;
46766 adjust for -maltivec=be on a little endian target.
46767 (altivec_vspltb_direct): New.
46768 (altivec_vsplth): Divide into a define_expand and a new
46769 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46770 little endian target.
46771 (altivec_vsplth_direct): New.
46772 (altivec_vspltw): Divide into a define_expand and a new
46773 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46774 little endian target.
46775 (altivec_vspltw_direct): New.
46776 (altivec_vspltsf): Divide into a define_expand and a new
46777 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46778 a little endian target.
46780 2014-01-30 Richard Biener <rguenther@suse.de>
46782 PR tree-optimization/59993
46783 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46784 can propagate form the earlier stmt and avoid the transform
46785 when the intermediate result is needed.
46787 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46789 * README.Portability: Fix typo.
46791 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46793 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46794 comparison_operator with ordered_comparison_operator.
46796 2014-01-30 Nick Clifton <nickc@redhat.com>
46798 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46799 Rename to mn10300_store_multiple_regs.
46800 * config/mn10300/mn10300.c: Likewise.
46801 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46802 store_multiple_regs.
46803 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46804 Call mn10300_store_multiple_regs.
46806 2014-01-30 Nick Clifton <nickc@redhat.com>
46807 DJ Delorie <dj@redhat.com>
46809 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46810 %fp 2 to keep registers after it properly word-aligned.
46811 (rl78_alloc_physical_registers_umul): Handle the case where both
46812 input operands are the same.
46814 2014-01-30 Richard Biener <rguenther@suse.de>
46816 PR tree-optimization/59903
46817 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46820 2014-01-30 Jason Merrill <jason@redhat.com>
46823 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46826 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46828 2014-01-30 Richard Biener <rguenther@suse.de>
46830 PR tree-optimization/59951
46831 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46833 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46836 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46837 SFmode to DFmode case.
46839 2014-01-29 DJ Delorie <dj@redhat.com>
46841 * config/msp430/msp430.opt (-minrt): New.
46842 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
46844 (ENDFILE_SPEC): Likewise.
46846 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
46848 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
46849 (estimate_function_body_sizes): Use it.
46851 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
46854 * dwarf2out.c (is_cxx_auto): New.
46855 (is_base_type): Use it.
46856 (gen_type_die_with_usage): Likewise.
46858 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46860 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
46861 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
46862 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
46863 -maltivec=be with LE targets.
46864 (vsx_mergeh_<mode>): Likewise.
46865 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
46866 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
46867 (altivec_vmrghb): Replace with define_expand and new
46868 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
46869 (altivec_vmrghb_direct): New define_insn.
46870 (altivec_vmrghh): Replace with define_expand and new
46871 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
46872 (altivec_vmrghh_direct): New define_insn.
46873 (altivec_vmrghw): Replace with define_expand and new
46874 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
46875 (altivec_vmrghw_direct): New define_insn.
46876 (*altivec_vmrghsf): Adjust for endianness.
46877 (altivec_vmrglb): Replace with define_expand and new
46878 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
46879 (altivec_vmrglb_direct): New define_insn.
46880 (altivec_vmrglh): Replace with define_expand and new
46881 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
46882 (altivec_vmrglh_direct): New define_insn.
46883 (altivec_vmrglw): Replace with define_expand and new
46884 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
46885 (altivec_vmrglw_direct): New define_insn.
46886 (*altivec_vmrglsf): Adjust for endianness.
46887 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46888 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46889 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46890 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46891 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46892 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46893 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46894 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46896 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
46898 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
46899 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
46902 2014-01-29 Richard Biener <rguenther@suse.de>
46904 PR tree-optimization/58742
46905 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
46906 associate_pointerplus_align.
46907 (associate_pointerplus_diff): New function.
46908 (associate_pointerplus): Likewise. Call associate_pointerplus_align
46909 and associate_pointerplus_diff.
46911 2014-01-29 Richard Biener <rguenther@suse.de>
46913 * lto-streamer.h (LTO_major_version): Bump to 3.
46914 (LTO_minor_version): Reset to 0.
46916 2014-01-29 Renlin Li <Renlin.Li@arm.com>
46918 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
46919 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
46920 (arm_file_start): Generate correct asm header for armv7ve.
46921 * config/arm/bpabi.h: Add multilib support for armv7ve.
46922 * config/arm/driver-arm.c: Change the architectures of cortex-a7
46923 and cortex-a15 to armv7ve.
46924 * config/arm/t-aprofile: Add multilib support for armv7ve.
46925 * doc/invoke.texi: Document -march=armv7ve.
46927 2014-01-29 Richard Biener <rguenther@suse.de>
46929 PR tree-optimization/58742
46930 * tree-ssa-forwprop.c (associate_plusminus): Return true
46931 if we changed sth, defer EH cleanup to ...
46932 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
46933 (simplify_mult): New function.
46935 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46937 PR middle-end/59917
46938 PR tree-optimization/59920
46939 * tree.c (build_common_builtin_nodes): Remove
46940 __builtin_setjmp_dispatcher initialization.
46941 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
46942 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
46943 instead of gsi_after_labels + manually skipping debug stmts.
46944 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
46945 ignore bbs with IFN_ABNORMAL_DISPATCHER.
46946 * tree-inline.c (copy_edges_for_bb): Remove
46947 can_make_abnormal_goto argument, instead add abnormal_goto_dest
46948 argument. Ignore computed_goto_p stmts. Don't call
46949 make_abnormal_goto_edges. If a call might need abnormal edges
46950 for non-local gotos, see if it already has an edge to
46951 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
46952 with true argument, don't do anything then, otherwise add
46953 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
46954 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
46956 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
46957 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
46958 (lower_stmt): Don't set data->calls_builtin_setjmp.
46959 (lower_builtin_setjmp): Adjust comment.
46960 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
46961 * tree-cfg.c (found_computed_goto): Remove.
46962 (factor_computed_gotos): Remove.
46963 (make_goto_expr_edges): Return bool, true for computed gotos.
46964 Don't call make_abnormal_goto_edges.
46965 (build_gimple_cfg): Don't set found_computed_goto, don't call
46966 factor_computed_gotos.
46967 (computed_goto_p): No longer static.
46968 (make_blocks): Don't set found_computed_goto.
46969 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
46970 (make_edges): If make_goto_expr_edges returns true, push bb
46971 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
46972 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
46973 vector. Record mapping between bbs and OpenMP regions if there
46974 are any, adjust make_gimple_omp_edges caller. Call
46975 handle_abnormal_edges.
46976 (make_abnormal_goto_edges): Remove.
46977 * tree-cfg.h (make_abnormal_goto_edges): Remove.
46978 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
46979 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
46980 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
46981 * internal-fn.def (ABNORMAL_DISPATCHER): New.
46982 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
46983 filling *region also set *region_idx to (*region)->entry->index.
46986 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
46987 For REGs set ORIGINAL_REGNO.
46989 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
46991 * doc/md.texi: Mention that a target shouldn't implement
46992 vec_widen_(s|u)mul_even/odd pair if it is less efficient
46995 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46997 PR tree-optimization/59594
46998 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
46999 a copy of the datarefs vector rather than the vector itself.
47001 2014-01-28 Jason Merrill <jason@redhat.com>
47004 * dwarf2out.c (auto_die): New static.
47005 (gen_type_die_with_usage): Handle C++1y 'auto'.
47006 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
47009 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
47012 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
47013 (SPEC_X32): Likewise.
47014 (SPEC_64): Likewise.
47015 * config/i386/i386.c (ix86_option_override_internal): Turn off
47016 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
47018 (x86_file_start): Output .code16gcc for TARGET_16BIT.
47019 * config/i386/i386.h (TARGET_16BIT): New macro.
47020 (TARGET_16BIT_P): Likewise.
47021 * config/i386/i386.opt: Add m16.
47022 * doc/invoke.texi: Document -m16.
47024 2014-01-28 Jakub Jelinek <jakub@redhat.com>
47026 PR preprocessor/59935
47027 * input.c (location_get_source_line): Bail out on when line number
47028 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
47030 2014-01-28 Richard Biener <rguenther@suse.de>
47032 PR tree-optimization/58742
47033 * tree-ssa-forwprop.c (associate_plusminus): Handle
47034 pointer subtraction of the form (T)(P + A) - (T)P.
47036 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47038 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
47041 2014-01-28 Richard Biener <rguenther@suse.de>
47044 2014-01-28 Richard Biener <rguenther@suse.de>
47046 PR rtl-optimization/45364
47047 PR rtl-optimization/59890
47048 * var-tracking.c (local_get_addr_clear_given_value): Handle
47049 already cleared slot.
47050 (val_reset): Handle not allocated local_get_addr_cache.
47051 (vt_find_locations): Use post-order on the inverted CFG.
47053 2014-01-28 Richard Biener <rguenther@suse.de>
47055 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
47057 2014-01-28 Richard Biener <rguenther@suse.de>
47059 PR rtl-optimization/45364
47060 PR rtl-optimization/59890
47061 * var-tracking.c (local_get_addr_clear_given_value): Handle
47062 already cleared slot.
47063 (val_reset): Handle not allocated local_get_addr_cache.
47064 (vt_find_locations): Use post-order on the inverted CFG.
47066 2014-01-28 Alan Modra <amodra@gmail.com>
47068 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
47069 * configure.ac <recursive call for build != host>: Define
47070 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
47071 and LD_FOR_BUILD too.
47072 * configure: Regenerate.
47074 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
47076 * config/i386/i386.c (get_builtin_code_for_version): Separate
47077 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
47078 Broadwell from Haswell.
47080 2014-01-27 Steve Ellcey <sellcey@mips.com>
47082 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
47083 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
47084 * config/mips/mips.c (mips_option_override): Change setting
47086 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
47087 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
47088 Change from Mask to Var.
47090 2014-01-27 Jeff Law <law@redhat.com>
47092 * ipa-inline.c (inline_small_functions): Fix typo.
47094 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
47096 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
47097 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
47098 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
47099 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
47100 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
47101 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
47102 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
47103 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
47104 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
47105 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
47106 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
47107 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
47108 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
47109 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
47110 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
47111 (_mm512_storeu_epi64): Ditto.
47112 (_mm512_cmpge_epi32_mask): Ditto.
47113 (_mm512_cmpge_epu32_mask): Ditto.
47114 (_mm512_cmpge_epi64_mask): Ditto.
47115 (_mm512_cmpge_epu64_mask): Ditto.
47116 (_mm512_cmple_epi32_mask): Ditto.
47117 (_mm512_cmple_epu32_mask): Ditto.
47118 (_mm512_cmple_epi64_mask): Ditto.
47119 (_mm512_cmple_epu64_mask): Ditto.
47120 (_mm512_cmplt_epi32_mask): Ditto.
47121 (_mm512_cmplt_epu32_mask): Ditto.
47122 (_mm512_cmplt_epi64_mask): Ditto.
47123 (_mm512_cmplt_epu64_mask): Ditto.
47124 (_mm512_cmpneq_epi32_mask): Ditto.
47125 (_mm512_cmpneq_epu32_mask): Ditto.
47126 (_mm512_cmpneq_epi64_mask): Ditto.
47127 (_mm512_cmpneq_epu64_mask): Ditto.
47128 (_mm512_expand_pd): Ditto.
47129 (_mm512_expand_ps): Ditto.
47130 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
47131 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
47132 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
47133 * config/i386/i386.c (ix86_builtins): Add
47134 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
47135 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
47136 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
47137 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
47138 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
47139 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
47140 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
47141 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
47142 IX86_BUILTIN_PMOVUSQW512_MEM.
47143 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
47144 __builtin_ia32_pmovsqd512mem_mask,
47145 __builtin_ia32_pmovqd512mem_mask,
47146 __builtin_ia32_pmovusqw512mem_mask,
47147 __builtin_ia32_pmovsqw512mem_mask,
47148 __builtin_ia32_pmovqw512mem_mask,
47149 __builtin_ia32_pmovusdw512mem_mask,
47150 __builtin_ia32_pmovsdw512mem_mask,
47151 __builtin_ia32_pmovdw512mem_mask,
47152 __builtin_ia32_pmovqb512mem_mask,
47153 __builtin_ia32_pmovusqb512mem_mask,
47154 __builtin_ia32_pmovsqb512mem_mask,
47155 __builtin_ia32_pmovusdb512mem_mask,
47156 __builtin_ia32_pmovsdb512mem_mask,
47157 __builtin_ia32_pmovdb512mem_mask.
47158 (bdesc_args): Add __builtin_ia32_expanddf512,
47159 __builtin_ia32_expandsf512.
47160 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47161 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47162 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47163 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47164 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47165 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47166 (avx512f_<code>v8div16qi2_mask_store): This.
47167 (avx512f_expand<mode>): New.
47169 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47171 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47173 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47174 (_mm512_prefetch_i32scatter_pd): Ditto.
47175 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47176 (_mm512_prefetch_i64scatter_pd): Ditto.
47177 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47178 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47179 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47180 (_mm512_prefetch_i32scatter_ps): Ditto.
47181 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47182 (_mm512_prefetch_i64scatter_ps): Ditto.
47183 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47184 * config/i386/i386-builtin-types.def: Define
47185 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47186 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47187 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47188 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47189 IX86_BUILTIN_SCATTERPFQPD.
47190 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47191 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47192 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47193 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47194 __builtin_ia32_scatterpfqps.
47195 (ix86_expand_builtin): Expand new built-ins.
47196 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47197 fix memory access data type.
47198 (*avx512pf_gatherpf<mode>_mask): Ditto.
47199 (*avx512pf_gatherpf<mode>): Ditto.
47200 (avx512pf_scatterpf<mode>): Ditto.
47201 (*avx512pf_scatterpf<mode>_mask): Ditto.
47202 (*avx512pf_scatterpf<mode>): Ditto.
47203 (GATHER_SCATTER_SF_MEM_MODE): New.
47204 (avx512pf_gatherpf<mode>df): Ditto.
47205 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47206 (*avx512pf_scatterpf<mode>df): Ditto.
47208 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47211 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47212 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47215 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47217 * common/config/arm/arm-common.c
47218 (arm_rewrite_mcpu): Handle multiple names.
47220 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47222 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47224 * gimple-builder.h (create_gimple_tmp): Delete.
47226 2014-01-27 Christian Bruel <christian.bruel@st.com>
47228 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47231 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47233 * config/pa/pa.md (call): Generate indirect long calls to non-local
47234 functions when outputing 32-bit code.
47235 (call_value): Likewise except for special call to buggy powf function.
47237 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47238 portable runtime and PIC indirect calls.
47239 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47240 and PIC call sequences. Use ldo instead of blr to set return register
47241 in PIC call sequence.
47243 2014-01-25 Walter Lee <walt@tilera.com>
47245 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47246 avoid clobbering a live register.
47248 2014-01-25 Walter Lee <walt@tilera.com>
47250 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47251 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47252 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47253 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47255 2014-01-25 Walter Lee <walt@tilera.com>
47257 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47258 arguments on even registers.
47259 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47261 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47262 (BIGGEST_ALIGNMENT): Ditto.
47263 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47265 2014-01-25 Walter Lee <walt@tilera.com>
47267 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47268 insns before bundling.
47269 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47271 2014-01-25 Walter Lee <walt@tilera.com>
47273 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47274 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47275 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47277 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47279 * config/mips/constraints.md (kl): Delete.
47280 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47281 define expands, using...
47282 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47283 instructions for MIPS16.
47284 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47285 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47287 2014-01-25 Walter Lee <walt@tilera.com>
47289 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47293 2014-01-25 Walter Lee <walt@tilera.com>
47295 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47296 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47298 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47300 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47303 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47305 * print-rtl.c (in_call_function_usage): New var.
47306 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47307 EXPR_LIST mode as mode and not as reg note name.
47309 PR middle-end/59561
47310 * cfgloopmanip.c (copy_loop_info): If
47311 loop->warned_aggressive_loop_optimizations, make sure
47312 the flag is set in target loop too.
47314 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47316 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47318 * builtins.def: Likewise.
47319 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47320 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47321 * ira.c (ira_setup_eliminable_regset): Likewise.
47322 * omp-low.c (gate_expand_omp): Likewise.
47323 (execute_lower_omp): Likewise.
47324 (diagnose_sb_0): Likewise.
47325 (gate_diagnose_omp_blocks): Likewise.
47326 (simd_clone_clauses_extract): Likewise.
47329 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47331 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47332 correction for little endian...
47333 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47336 2014-01-24 Jeff Law <law@redhat.com>
47338 PR tree-optimization/59919
47339 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47340 for non-returning calls.
47342 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47344 * common/config/aarch64/aarch64-common.c
47345 (aarch64_rewrite_mcpu): Handle multiple names.
47346 * config/aarch64/aarch64.h
47347 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47349 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47351 * input.c (add_file_to_cache_tab): Handle the case where fopen
47354 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47357 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47358 from push operand if code of push isn't PRE_DEC.
47360 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47363 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47364 -mquad-memory-atomic. Update -mquad-memory documentation to say
47365 it is only used for non-atomic loads/stores.
47367 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47368 -mquad-memory or -mquad-memory-atomic switches.
47370 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47371 -mquad-memory-atomic to ISA 2.07 support.
47373 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47374 to separate support of normal quad word memory operations (ldq, stq)
47375 from the atomic quad word memory operations.
47377 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47378 support to separate non-atomic quad word operations from atomic
47379 quad word operations. Disable non-atomic quad word operations in
47380 little endian mode so that we don't have to swap words after the
47381 load and before the store.
47382 (quad_load_store_p): Add comment about atomic quad word support.
47383 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47384 options printed with -mdebug=reg.
47386 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47387 -mquad-memory-atomic as the test for whether we have quad word
47388 atomic instructions.
47389 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47390 or -mp8-vector are used, allow byte/half-word atomic operations.
47392 * config/rs6000/sync.md (load_lockedti): Insure that the address
47393 is a proper indexed or indirect address for the lqarx instruction.
47394 On little endian systems, swap the hi/lo registers after the lqarx
47396 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47397 insure the address is valid for the lqarx instruction.
47398 (store_conditionalti): Insure that the address is a proper indexed
47399 or indirect address for the stqcrx. instruction. On little endian
47400 systems, swap the hi/lo registers before doing the stqcrx.
47402 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47403 insure the address is valid for the stqcrx. instruction.
47405 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47406 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47407 type of quad memory support is available.
47409 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47411 PR regression/59915
47412 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47413 there is a danger of looping.
47415 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47417 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47418 force flag_ira_loop_pressure if set via command line.
47420 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47422 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47423 (ashr_simd): New builtin handling DI mode.
47424 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47425 (aarch64_sshr_simddi): New match pattern.
47426 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47427 (vshrd_n_s64): Likewise.
47428 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47430 2014-01-23 Nick Clifton <nickc@redhat.com>
47432 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47433 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47434 favour of mcu specific scripts.
47435 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47438 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47439 Alex Velenko <Alex.Velenko@arm.com>
47441 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47442 (vaddv_s16): Likewise.
47443 (vaddv_s32): Likewise.
47444 (vaddv_u8): Likewise.
47445 (vaddv_u16): Likewise.
47446 (vaddv_u32): Likewise.
47447 (vaddvq_s8): Likewise.
47448 (vaddvq_s16): Likewise.
47449 (vaddvq_s32): Likewise.
47450 (vaddvq_s64): Likewise.
47451 (vaddvq_u8): Likewise.
47452 (vaddvq_u16): Likewise.
47453 (vaddvq_u32): Likewise.
47454 (vaddvq_u64): Likewise.
47455 (vaddv_f32): Likewise.
47456 (vaddvq_f32): Likewise.
47457 (vaddvq_f64): Likewise.
47458 (vmaxv_f32): Likewise.
47459 (vmaxv_s8): Likewise.
47460 (vmaxv_s16): Likewise.
47461 (vmaxv_s32): Likewise.
47462 (vmaxv_u8): Likewise.
47463 (vmaxv_u16): Likewise.
47464 (vmaxv_u32): Likewise.
47465 (vmaxvq_f32): Likewise.
47466 (vmaxvq_f64): Likewise.
47467 (vmaxvq_s8): Likewise.
47468 (vmaxvq_s16): Likewise.
47469 (vmaxvq_s32): Likewise.
47470 (vmaxvq_u8): Likewise.
47471 (vmaxvq_u16): Likewise.
47472 (vmaxvq_u32): Likewise.
47473 (vmaxnmv_f32): Likewise.
47474 (vmaxnmvq_f32): Likewise.
47475 (vmaxnmvq_f64): Likewise.
47476 (vminv_f32): Likewise.
47477 (vminv_s8): Likewise.
47478 (vminv_s16): Likewise.
47479 (vminv_s32): Likewise.
47480 (vminv_u8): Likewise.
47481 (vminv_u16): Likewise.
47482 (vminv_u32): Likewise.
47483 (vminvq_f32): Likewise.
47484 (vminvq_f64): Likewise.
47485 (vminvq_s8): Likewise.
47486 (vminvq_s16): Likewise.
47487 (vminvq_s32): Likewise.
47488 (vminvq_u8): Likewise.
47489 (vminvq_u16): Likewise.
47490 (vminvq_u32): Likewise.
47491 (vminnmv_f32): Likewise.
47492 (vminnmvq_f32): Likewise.
47493 (vminnmvq_f64): Likewise.
47495 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47497 * config/aarch64/aarch64-simd.md
47498 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47499 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47500 (*aarch64_mul3_elt<mode>): Likewise.
47501 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47502 (*aarch64_mul3_elt_to_64v2df): Likewise.
47503 (*aarch64_mla_elt<mode>): Likewise.
47504 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47505 (*aarch64_mls_elt<mode>): Likewise.
47506 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47507 (*aarch64_fma4_elt<mode>): Likewise.
47508 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47509 (*aarch64_fma4_elt_to_64v2df): Likewise.
47510 (*aarch64_fnma4_elt<mode>): Likewise.
47511 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47512 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47513 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47514 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47515 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47516 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47517 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47518 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47519 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47521 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47523 * config/aarch64/aarch64-simd.md
47524 (aarch64_be_checked_get_lane<mode>): New define_expand.
47525 * config/aarch64/aarch64-simd-builtins.def
47526 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47527 New builtin definition.
47528 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47529 Use new safe be builtin.
47531 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47533 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47535 (aarch64_be_st1<mode>): Likewise.
47536 (aarch_ld1<VALL:mode>): Define_expand modified.
47537 (aarch_st1<VALL:mode>): Likewise.
47538 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47539 (UNSPEC_ST1): Likewise.
47541 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47543 * config/microblaze/microblaze.md: Add trap insn and attribute
47545 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47547 PR preprocessor/58580
47548 * input.h (location_get_source_line): Take an additional line_size
47550 (void diagnostics_file_cache_fini): Declare new function.
47551 * input.c (struct fcache): New type.
47552 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47553 New static constants.
47554 (diagnostic_file_cache_init, total_lines_num)
47555 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47556 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47557 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47558 (get_next_line, read_next_line, goto_next_line, read_line_num):
47559 New static function definitions.
47560 (diagnostic_file_cache_fini): New function.
47561 (location_get_source_line): Take an additional output line_len
47562 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47564 * diagnostic.c (diagnostic_finish): Call
47565 diagnostic_file_cache_fini.
47566 (adjust_line): Take an additional input parameter for the length
47567 of the line, rather than calculating it with strlen.
47568 (diagnostic_show_locus): Adjust the use of
47569 location_get_source_line and adjust_line with respect to their new
47570 signature. While displaying a line now, do not stop at the first
47571 null byte. Rather, display the zero byte as a space and keep
47572 going until we reach the size of the line.
47573 * Makefile.in: Add vec.o to OBJS-libcommon
47575 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47576 Ilya Tocar <ilya.tocar@intel.com>
47578 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47579 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47580 (__builtin_ia32_kmov16): Ditto.
47581 * config/i386/i386.md (UNSPEC_KMOV): New.
47584 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47586 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47587 (_mm512_storeu_si512): Ditto.
47589 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47592 * rtl.h (get_referenced_operands): Declare.
47593 * recog.c (get_referenced_operands): New function.
47594 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47595 operands have been referenced when recording LO_SUM references.
47597 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47599 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47601 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47603 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47604 Enable for generic and recent AMD targets.
47606 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47608 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47609 ARG_SIZE note when adjustment was eliminated.
47611 2014-01-22 Jeff Law <law@redhat.com>
47613 PR tree-optimization/59597
47614 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47615 in file. Accept new argument REGISTERING and use it to modify
47616 dump output appropriately.
47617 (register_jump_thread): Corresponding changes.
47618 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47619 thread paths involving joiner blocks. Add code to dump cancelled
47620 jump threading paths.
47622 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47624 PR rtl-optimization/59477
47625 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47626 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47628 2014-01-22 Tom Tromey <tromey@redhat.com>
47630 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47632 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47634 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47636 PR rtl-optimization/59896
47637 * lra-constraints.c (process_alt_operands): Check unused note for
47638 matched operands of insn with no output reloads.
47640 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47642 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47643 (mips_move_from_gpr_cost): Likewise.
47645 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47647 PR rtl-optimization/59858
47648 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47649 ira_class_hard_regs_num.
47650 (process_alt_operands): Increase reject for dying matched operand.
47652 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47655 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47656 smaller than size, perform several stores or loads and stores
47657 at dst + count - size to store or copy all of size bytes, rather
47658 than just last modesize bytes.
47660 2014-01-20 DJ Delorie <dj@redhat.com>
47662 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47663 that CLOBBERs are REGs before propogating their values.
47665 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47667 PR middle-end/59789
47668 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47669 (cgraph_inline_failed_type): New function.
47670 * cgraph.h (DEFCIFCODE): Add type.
47671 (cgraph_inline_failed_type_t): New enum.
47672 (cgraph_inline_failed_type): New prototype.
47673 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47674 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47675 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47676 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47677 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47678 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47679 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47680 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47681 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47682 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47683 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47684 OPTIMIZATION_MISMATCH.
47685 * tree-inline.c (expand_call_inline): Emit errors during
47686 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47688 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47691 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47692 mode attribute in insn output.
47694 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47696 * output.h (output_constant): Delete.
47697 * varasm.c (output_constant): Make private.
47699 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47701 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47703 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47705 PR middle-end/59860
47706 * tree.h (fold_builtin_strcat): New prototype.
47707 * builtins.c (fold_builtin_strcat): No longer static. Add len
47708 argument, if non-NULL, don't call c_strlen. Optimize
47709 directly into __builtin_memcpy instead of __builtin_strcpy.
47710 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47711 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47713 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47715 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47716 for SImode_address_operand operands, having only a REG argument.
47718 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47720 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47721 loader name using mbig-endian.
47722 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47724 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47726 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47727 (-mtune): Likewise.
47730 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47732 * config/aarch64/aarch64-protos.h
47733 (aarch64_cannot_change_mode_class_ptr): Declare.
47734 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47735 aarch64_cannot_change_mode_class_ptr): New.
47736 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47737 backend hook aarch64_cannot_change_mode_class.
47739 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47741 * common/config/aarch64/aarch64-common.c
47742 (aarch64_handle_option): Don't handle any option order logic here.
47743 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47744 selected_cpu, warn on architecture version mismatch.
47745 (aarch64_override_options): Fix parsing order for option strings.
47747 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47748 Iain Sandoe <iain@codesourcery.com>
47751 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47752 warning. Amend comment to reflect current functionality.
47754 2014-01-20 Richard Biener <rguenther@suse.de>
47756 PR middle-end/59860
47757 * builtins.c (fold_builtin_strcat): Remove case better handled
47758 by tree-ssa-strlen.c.
47760 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47762 * config/aarch64/aarch64.opt
47763 (mcpu, march, mtune): Make case-insensitive.
47765 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47768 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47769 if operands[1] is a REG or ZERO_EXTEND of a REG.
47771 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47773 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47775 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47777 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47778 long non-pic millicode calls.
47780 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47782 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47784 2014-01-19 Kito Cheng <kito@0xlab.org>
47786 * builtins.c (expand_movstr): Check movstr expand done or fail.
47788 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47789 H.J. Lu <hongjiu.lu@intel.com>
47792 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47793 to DImode for zero-extended addresses.
47795 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47797 PR rtl-optimization/57763
47798 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47799 on the new indirect jump_insn and increment LABEL_NUSES (label).
47801 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47805 * config.gcc (x86_archs): New variable.
47806 (x86_64_archs): Likewise.
47807 (x86_cpus): Likewise.
47808 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47809 --with-arch/--with-cpu= options.
47810 Support --with-arch=/--with-cpu={nehalem,westmere,
47811 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47813 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47815 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47816 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47818 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47820 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47822 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47825 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47826 clear cpp_get_options (parse_in)->warn_unused_macros for
47827 ix86_target_macros_internal with cpp_define.
47829 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47831 * jump.c (delete_related_insns): Keep (use (insn))s.
47832 * reorg.c (redundant_insn): Check for barriers too.
47834 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47836 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47838 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47840 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47841 call to $$dyncall when TARGET_LONG_CALLS is true.
47843 2014-01-17 Jeff Law <law@redhat.com>
47845 * ree.c (combine_set_extension): Temporarily disable test for
47846 changing number of hard registers.
47848 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47850 PR middle-end/58125
47851 * ipa-inline-analysis.c (inline_free_summary):
47852 Do not free summary of aliases.
47854 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47856 PR middle-end/59706
47857 * gimplify.c (gimplify_expr): Use create_tmp_var
47858 instead of create_tmp_var_raw. If cond doesn't have
47859 integral type, don't add the IFN_ANNOTATE builtin at all.
47861 2014-01-17 Martin Jambor <mjambor@suse.cz>
47864 * ipa-cp.c (prev_edge_clone): New variable.
47865 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
47866 Also resize prev_edge_clone vector.
47867 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
47868 (ipcp_edge_removal_hook): New function.
47869 (ipcp_driver): Register ipcp_edge_removal_hook.
47871 2014-01-17 Andrew Pinski <apinski@cavium.com>
47872 Steve Ellcey <sellcey@mips.com>
47875 * config/mips/mips.c (mips_print_operand): Check operand mode instead
47878 2014-01-17 Jeff Law <law@redhat.com>
47880 PR middle-end/57904
47881 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
47882 so that pass_ccp runs first.
47884 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47886 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
47887 (ix86_adjust_cost): Use !TARGET_XXX.
47888 (do_reorder_for_imul): Likewise.
47889 (swap_top_of_ready_list): Likewise.
47890 (ix86_sched_reorder): Likewise.
47892 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47894 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
47895 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
47896 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
47897 (intel_memset): New. Duplicate slm_memset.
47898 (intel_cost): New. Duplicate slm_cost.
47899 (m_INTEL): New macro.
47900 (processor_target_table): Add "intel".
47901 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
47902 with PROCESSOR_INTEL for "intel".
47903 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
47904 PROCESSOR_SILVERMONT.
47905 (ix86_issue_rate): Likewise.
47906 (ix86_adjust_cost): Likewise.
47907 (ia32_multipass_dfa_lookahead): Likewise.
47908 (swap_top_of_ready_list): Likewise.
47909 (ix86_sched_reorder): Likewise.
47910 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
47911 instead of TARGET_OPT_AGU.
47912 * config/i386/i386.h (TARGET_INTEL): New.
47913 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
47914 (processor_type): Add PROCESSOR_INTEL.
47915 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
47916 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
47918 2014-01-17 Marek Polacek <polacek@redhat.com>
47921 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
47924 2014-01-17 Richard Biener <rguenther@suse.de>
47926 PR tree-optimization/46590
47927 * opts.c (default_options_table): Add entries for
47928 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
47929 all enabled at -O1 but not for -Og.
47930 * common.opt (fbranch-count-reg): Remove Init(1).
47931 (fmove-loop-invariants): Likewise.
47932 (ftree-pta): Likewise.
47934 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47936 * config/i386/i386.c (ix86_data_alignment): For compatibility with
47937 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
47938 decls to at least the GCC 4.8 used alignments.
47941 * tree-nested.c (convert_nonlocal_reference_stmt,
47942 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
47943 of GIMPLE_BIND stmts, adjust associated decls.
47945 2014-01-17 Richard Biener <rguenther@suse.de>
47947 PR tree-optimization/46590
47948 * vec.h (vec<>::bseach): New member function implementing
47949 binary search according to C89 bsearch.
47950 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
47951 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
47952 bitmap pointer again. Make accesses_in_loop a flat array.
47953 (mem_ref_obstack): New global.
47954 (outermost_indep_loop): Adjust for mem_ref->stored changes.
47955 (mark_ref_stored): Likewise.
47956 (ref_indep_loop_p_2): Likewise.
47957 (set_ref_stored_in_loop): New helper function.
47958 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
47959 (memref_free): Adjust.
47960 (record_mem_ref_loc): Simplify.
47961 (gather_mem_refs_stmt): Adjust.
47962 (sort_locs_in_loop_postorder_cmp): New function.
47963 (analyze_memory_references): Sort accesses_in_loop after
47964 loop postorder number.
47965 (find_ref_loc_in_loop_cmp): New function.
47966 (for_all_locs_in_loop): Find relevant cluster of locs in
47967 accesses_in_loop and iterate without recursion.
47968 (execute_sm): Avoid uninit warning.
47969 (struct ref_always_accessed): Simplify.
47970 (ref_always_accessed::operator ()): Likewise.
47971 (ref_always_accessed_p): Likewise.
47972 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
47973 loop postorder numbers here.
47974 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
47977 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47980 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
47981 on decls for which assemble_alias has been called.
47983 2014-01-17 Nick Clifton <nickc@redhat.com>
47985 * config/msp430/msp430.opt: (mcpu): New option.
47986 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
47987 (msp430_option_override): Parse target_cpu. If the MCU name
47988 matches a generic string, clear target_mcu.
47989 (msp430_attr): Allow numeric interrupt values up to 63.
47990 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
47991 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
47993 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
47995 * config/msp430/msp430.md (popm): Use %J rather than %I.
47996 (addsi3): Use msp430_nonimmediate_operand for operand 2.
47997 (addhi_cy_i): Use immediate_operand for operand 2.
47998 * doc/invoke.texi: Document -mcpu option.
48000 2014-01-17 Richard Biener <rguenther@suse.de>
48002 PR rtl-optimization/38518
48003 * df.h (df_analyze_loop): Declare.
48004 * df-core.c: Include cfgloop.h.
48005 (df_analyze_1): Split out main part of df_analyze.
48006 (df_analyze): Adjust.
48007 (loop_inverted_post_order_compute): New function.
48008 (loop_post_order_compute): Likewise.
48009 (df_analyze_loop): New function avoiding whole-function
48010 postorder computes.
48011 * loop-invariant.c (find_defs): Use df_analyze_loop.
48012 (find_invariants): Adjust.
48013 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
48015 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
48017 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
48018 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
48020 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
48022 * ipa-ref.c (ipa_remove_stmt_references): Fix references
48023 traversal when removing references.
48025 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
48028 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
48030 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
48032 PR middle-end/56791
48033 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
48034 pushing a reload for an autoinc when we had previously reloaded an
48035 inner part of the address.
48037 2014-01-16 Jakub Jelinek <jakub@redhat.com>
48039 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
48041 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
48042 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
48043 when not giving up or versioning for alias only because of
48045 (vect_analyze_data_ref_dependences): Set to true.
48046 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
48048 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
48049 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
48052 PR middle-end/58344
48053 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
48056 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
48057 operand 0 predicate for gathers, use a new pseudo as subtarget.
48059 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48061 PR middle-end/59609
48062 * lra-constraints.c (process_alt_operands): Add printing debug info.
48063 Check absence of input/output reloads for matched operands too.
48065 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48067 PR rtl-optimization/59835
48068 * ira.c (ira_init_register_move_cost): Increase cost for
48071 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
48073 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
48075 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
48078 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
48079 non-register objects. Use gen_(high/low)part more consistently.
48082 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
48085 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
48086 endian support, remove tests for WORDS_BIG_ENDIAN.
48087 (p8_mfvsrd_3_<mode>): Likewise.
48088 (reload_gpr_from_vsx<mode>): Likewise.
48089 (reload_gpr_from_vsxsf): Likewise.
48090 (p8_mfvsrd_4_disf): Likewise.
48092 2014-01-16 Richard Biener <rguenther@suse.de>
48094 PR rtl-optimization/46590
48095 * lcm.c (compute_antinout_edge): Use postorder iteration.
48096 (compute_laterin): Use inverted postorder iteration.
48098 2014-01-16 Nick Clifton <nickc@redhat.com>
48100 PR middle-end/28865
48101 * varasm.c (output_constant): Return the number of bytes actually
48103 (output_constructor_array_range): Update the field size with the
48104 number of bytes emitted by output_constant.
48105 (output_constructor_regular_field): Likewise. Also do not
48106 complain if the total number of bytes emitted is now greater
48107 than the expected fieldpos.
48108 * output.h (output_constant): Update prototype and descriptive comment.
48110 2014-01-16 Marek Polacek <polacek@redhat.com>
48112 PR middle-end/59827
48113 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
48114 it is error_mark_node.
48116 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
48118 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
48119 VALID_AVX256_REG_OR_OI_MODE.
48121 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
48123 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
48124 current procedure should be profiled.
48126 2014-01-15 Andrew Pinski <apinski@cavium.com>
48128 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
48129 of moving from/to the STACK_REG register class.
48131 2014-01-15 Richard Henderson <rth@redhat.com>
48134 * reginfo.c (global_regs_decl): Globalize.
48135 * rtl.h (global_regs_decl): Declare.
48136 * ira.c (do_reload): Diagnose frame_pointer_needed and it
48137 reserved via global_regs.
48139 2014-01-15 Teresa Johnson <tejohnson@google.com>
48141 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
48143 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48145 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48146 and vmulosh rather than call gen_vec_widen_smult_*.
48147 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48148 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48149 (vec_widen_smult_even_v16qi): Likewise.
48150 (vec_widen_umult_even_v8hi): Likewise.
48151 (vec_widen_smult_even_v8hi): Likewise.
48152 (vec_widen_umult_odd_v16qi): Likewise.
48153 (vec_widen_smult_odd_v16qi): Likewise.
48154 (vec_widen_umult_odd_v8hi): Likewise.
48155 (vec_widen_smult_odd_v8hi): Likewise.
48156 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48157 vmuloub rather than call gen_vec_widen_umult_*.
48158 (vec_widen_umult_lo_v16qi): Likewise.
48159 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48160 vmulosb rather than call gen_vec_widen_smult_*.
48161 (vec_widen_smult_lo_v16qi): Likewise.
48162 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48163 rather than call gen_vec_widen_umult_*.
48164 (vec_widen_umult_lo_v8hi): Likewise.
48165 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48166 rather than call gen_vec_widen_smult_*.
48167 (vec_widen_smult_lo_v8hi): Likewise.
48169 2014-01-15 Jeff Law <law@redhat.com>
48171 PR tree-optimization/59747
48172 * ree.c (find_and_remove_re): Properly handle case where a second
48173 eliminated extension requires widening a copy created for elimination
48174 of a prior extension.
48175 (combine_set_extension): Ensure that the number of hard regs needed
48176 for a destination register does not change when we widen it.
48178 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48180 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48181 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48182 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48183 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48184 (avr-*-rtems*): Likewise.
48185 (bfin*-rtems*): Likewise.
48186 (moxie-*-rtems*): Likewise.
48187 (h8300-*-rtems*): Likewise.
48188 (i[34567]86-*-rtems*): Likewise.
48189 (lm32-*-rtems*): Likewise.
48190 (m32r-*-rtems*): Likewise.
48191 (m68k-*-rtems*): Likewise.
48192 (microblaze*-*-rtems*): Likewise.
48193 (mips*-*-rtems*): Likewise.
48194 (powerpc-*-rtems*): Likewise.
48195 (sh-*-rtems*): Likewise.
48196 (sparc-*-rtems*): Likewise.
48197 (sparc64-*-rtems*): Likewise.
48198 (v850-*-rtems*): Likewise.
48199 (m32c-*-rtems*): Likewise.
48201 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48203 PR rtl-optimization/59511
48204 * ira.c (ira_init_register_move_cost): Use memory costs for some
48205 cases of register move cost calculations.
48206 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48207 instead of BB frequency.
48208 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48209 * lra-assigns.c (find_hard_regno_for): Ditto.
48211 2014-01-15 Richard Biener <rguenther@suse.de>
48213 PR tree-optimization/59822
48214 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48215 (vectorizable_load): Use it to hoist defs of uses of invariant
48216 loads out of the loop.
48218 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48219 Kugan Vivekanandarajah <kuganv@linaro.org>
48222 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48225 2014-01-15 Richard Biener <rguenther@suse.de>
48227 PR rtl-optimization/59802
48228 * lcm.c (compute_available): Use inverted postorder to seed
48229 the initial worklist.
48231 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48234 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48235 ADDR_REGS for invalid symrefs in non-PIC code.
48237 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48240 * builtins.c (determine_block_size): Initialize *probable_max_size
48241 even if len_rtx is CONST_INT.
48243 2014-01-14 Andrew Pinski <apinski@cavium.com>
48245 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48246 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48247 (cortexa53_tunings): Likewise.
48248 (aarch64_sched_issue_rate): New function.
48249 (TARGET_SCHED_ISSUE_RATE): Define.
48251 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48253 * ira-costs.c (find_costs_and_classes): Add missed
48254 ira_init_register_move_cost_if_necessary.
48256 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48259 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48261 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48264 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48265 to indicate if type is used for function return value. Warn ABI
48266 change if the vector mode isn't available for function return value.
48267 (ix86_function_arg_advance): Pass false to type_natural_mode.
48268 (ix86_function_arg): Likewise.
48269 (ix86_gimplify_va_arg): Likewise.
48270 (function_arg_32): Don't warn ABI change.
48271 (ix86_function_value): Pass true to type_natural_mode.
48272 (ix86_return_in_memory): Likewise.
48273 (ix86_struct_value_rtx): Removed.
48274 (TARGET_STRUCT_VALUE_RTX): Likewise.
48276 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48278 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48279 converting a conditional jump into a conditional return.
48281 2014-01-14 Richard Biener <rguenther@suse.de>
48283 PR tree-optimization/58921
48284 PR tree-optimization/59006
48285 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48286 hoisting invariant stmts.
48287 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48288 invariant loads on the preheader edge if possible.
48290 2014-01-14 Joey Ye <joey.ye@arm.com>
48292 * doc/plugin.texi (Building GCC plugins): Update to C++.
48294 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48296 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48297 (_mm_rcp28_round_ss): Ditto.
48298 (_mm_rsqrt28_round_sd): Ditto.
48299 (_mm_rsqrt28_round_ss): Ditto.
48300 (_mm_rcp28_sd): Ditto.
48301 (_mm_rcp28_ss): Ditto.
48302 (_mm_rsqrt28_sd): Ditto.
48303 (_mm_rsqrt28_ss): Ditto.
48304 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48305 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48306 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48307 (IX86_BUILTIN_RCP28SD): Ditto.
48308 (IX86_BUILTIN_RCP28SS): Ditto.
48309 (IX86_BUILTIN_RSQRT28SD): Ditto.
48310 (IX86_BUILTIN_RSQRT28SS): Ditto.
48311 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48312 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48313 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48314 (ix86_expand_special_args_builtin): Expand new FTYPE.
48315 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48316 (srcp14<mode>): Make insn unary.
48317 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48318 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48319 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48320 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48321 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48322 Fix rounding: make it SAE only.
48323 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48325 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48327 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48328 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48329 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48330 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48331 (round_saeonly_mask_scalar_operand4): Ditto.
48332 (round_saeonly_mask_scalar_op3): Ditto.
48333 (round_saeonly_mask_scalar_op4): Ditto.
48335 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48337 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48338 Implement -maltivec=be for vec_insert and vec_extract.
48340 2014-01-10 DJ Delorie <dj@redhat.com>
48342 * config/msp430/msp430.md (call_internal): Don't allow memory
48343 references with SP as the base register.
48344 (call_value_internal): Likewise.
48345 * config/msp430/constraints.md (Yc): New. For memory references
48346 that don't use SP as a base register.
48348 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48349 "an integer without a # prefix"
48350 * config/msp430/msp430.md (epilogue_helper): Use it.
48352 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48355 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48356 AVX512F gather builtins.
48357 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48358 on gather decls with INTEGER_TYPE masktype.
48359 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48360 directly into the builtin rather than hoisting it before loop.
48362 PR tree-optimization/59387
48363 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48364 (scev_const_prop): If folded_casts and type has undefined overflow,
48365 use force_gimple_operand instead of force_gimple_operand_gsi and
48366 for each added stmt if it is assign with
48367 arith_code_with_undefined_signed_overflow, call
48368 rewrite_to_defined_overflow.
48369 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48370 gimple-fold.h instead.
48371 (arith_code_with_undefined_signed_overflow,
48372 rewrite_to_defined_overflow): Moved to ...
48373 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48374 rewrite_to_defined_overflow): ... here. No longer static.
48375 Include gimplify-me.h.
48376 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48377 rewrite_to_defined_overflow): New prototypes.
48379 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48381 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48383 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48385 * builtins.c (get_object_alignment_2): Minor tweak.
48386 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48388 2014-01-13 Christian Bruel <christian.bruel@st.com>
48390 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48391 optimized non constant lengths.
48393 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48396 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48397 load as __atomic_load_N if possible.
48399 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48401 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48403 (rs6000_expand_builtin): Adjust call.
48405 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48408 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48409 * config/rs6000/rs6000.c: Include target-globals.h.
48410 (rs6000_set_current_function): Instead of doing target_reinit
48411 unconditionally, use save_target_globals_default_opts and
48412 restore_target_globals.
48414 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48416 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48417 (rs6000_expand_builtin): Handle mffs and mtfsf.
48418 (rs6000_init_builtins): Define mffs and mtfsf.
48419 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48420 (rs6000_mffs): New pattern.
48421 (rs6000_mtfsf): New pattern.
48423 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48425 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48426 Start narrowing with START. Apply candidate-use pair
48427 and check overall cost in narrowing.
48428 (iv_ca_prune): Pass new argument.
48430 2014-01-10 Jeff Law <law@redhat.com>
48432 PR middle-end/59743
48433 * ree.c (combine_reaching_defs): Ensure the defining statement
48434 occurs before the extension when optimizing extensions with
48435 different source and destination hard registers.
48437 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48440 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48441 vtables into the type inheritance graph.
48443 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48445 PR rtl-optimization/59754
48446 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48447 modes in the REGNO != REGNO case.
48449 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48451 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48453 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48455 PR tree-optimization/59745
48456 * tree-predcom.c (tree_predictive_commoning_loop): Call
48457 free_affine_expand_cache if giving up because components is NULL.
48459 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48460 GC in payload of target_globals struct instead of allocating them on
48461 the heap and the larger structs separately using GC.
48462 * target-globals.h (struct target_globals): Make regs, hard_regs,
48463 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48464 of GTY((skip)) and change type to void *.
48465 (reset_target_globals): Cast loads from those fields to corresponding
48468 2014-01-10 Steve Ellcey <sellcey@mips.com>
48471 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48472 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48473 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48475 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48478 * aarch64-modes.def (CC_Zmode): New flags mode.
48479 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48480 represents an equality.
48481 (aarch64_get_condition_code): Handle CC_Zmode.
48482 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48484 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48486 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48487 extraction in good case.
48489 2014-01-10 Richard Biener <rguenther@suse.de>
48491 PR tree-optimization/59374
48492 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48493 checking after SLP discovery. Mark stmts not participating
48494 in any SLP instance properly.
48496 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48498 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48499 when handling a SET rtx.
48501 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48503 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48504 (cortex-a57): Likewise.
48505 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48507 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48509 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48510 non-iwmmxt builtins.
48512 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48516 * ipa-devirt.c record_target_from_binfo): Take as argument
48517 stack of binfos and lookup matching one for virtual inheritance.
48518 (possible_polymorphic_call_targets_1): Update.
48520 2014-01-10 Huacai Chen <chenhc@lemote.com>
48522 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48523 kernel strings for Loongson-2E/2F/3A.
48525 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48527 PR middle-end/59670
48528 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48529 is_gimple_call before calling gimple_call_internal_p.
48531 2014-01-09 Steve Ellcey <sellcey@mips.com>
48533 * Makefile.in (TREE_FLOW_H): Remove.
48534 (TREE_SSA_H): Add file names from tree-flow.h.
48535 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48536 * tree.h: Remove tree-flow.h reference.
48537 * hash-table.h: Remove tree-flow.h reference.
48538 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48539 reference with tree-ssa-loop.h.
48541 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48543 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48544 default element-order behavior for -maltivec.
48545 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48546 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48547 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48548 when targeting big endian, at least for now.
48549 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48551 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48553 PR middle-end/47735
48554 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48555 var satisfies use_register_for_decl, just take into account type
48556 alignment, rather than decl alignment.
48558 PR tree-optimization/59622
48559 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48560 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48561 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48562 Don't devirtualize for inplace at all. For targets.length () == 1,
48563 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48565 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48567 * config/i386/i386.md (cpu): Remove the unused btver1.
48569 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48571 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48573 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48576 * tree-core.h (struct target_globals): New forward declaration.
48577 (struct tree_target_option): Add globals field.
48578 * tree.h (TREE_TARGET_GLOBALS): Define.
48579 (prepare_target_option_nodes_for_pch): New prototype.
48580 * target-globals.h (struct target_globals): Define even if
48581 !SWITCHABLE_TARGET.
48582 * tree.c (prepare_target_option_node_for_pch,
48583 prepare_target_option_nodes_for_pch): New functions.
48584 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48585 * config/i386/i386.c: Include target-globals.h.
48586 (ix86_set_current_function): Instead of doing target_reinit
48587 unconditionally, use save_target_globals_default_opts and
48588 restore_target_globals.
48590 2014-01-09 Richard Biener <rguenther@suse.de>
48592 PR tree-optimization/59715
48593 * tree-cfg.h (split_critical_edges): Declare.
48594 * tree-cfg.c (split_critical_edges): Export.
48595 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48597 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48599 * cfgexpand.c (expand_stack_vars): Optionally disable
48600 asan stack protection.
48601 (expand_used_vars): Likewise.
48602 (partition_stack_vars): Likewise.
48603 * asan.c (asan_emit_stack_protection): Optionally disable
48604 after return stack usage.
48605 (instrument_derefs): Optionally disable memory access instrumentation.
48606 (instrument_builtin_call): Likewise.
48607 (instrument_strlen_call): Likewise.
48608 (asan_protect_global): Optionally disable global variables protection.
48609 * doc/invoke.texi: Added doc for new options.
48610 * params.def: Added new options.
48611 * params.h: Likewise.
48613 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48615 PR rtl-optimization/59724
48616 * ifcvt.c (cond_exec_process_if_block): Don't call
48617 flow_find_head_matching_sequence with 0 longest_match.
48618 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48619 non-active insns if !stop_after.
48620 (try_head_merge_bb): Revert 2014-01-07 changes.
48622 2014-01-08 Jeff Law <law@redhat.com>
48624 * ree.c (get_sub_rtx): New function, extracted from...
48625 (merge_def_and_ext): Here.
48626 (combine_reaching_defs): Use get_sub_rtx.
48628 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48630 * cgraph.h (varpool_variable_node): Do not choke on null node.
48632 2014-01-08 Catherine Moore <clm@codesourcery.com>
48634 * config/mips/mips.md (simple_return): Attempt to use JRC
48636 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48638 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48640 PR rtl-optimization/59137
48641 * reorg.c (steal_delay_list_from_target): Call update_block for
48643 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48645 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48647 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48648 two duplicate entries.
48650 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48653 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48655 * config/mips/mips.c (mips_truncated_op_cost): New function.
48656 (mips_rtx_costs): Adjust test for BADDU.
48657 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48659 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48661 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48662 (*baddu_si): ...this new pattern.
48664 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48667 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48669 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48671 PR middle-end/57748
48672 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48674 (expand_expr, expand_normal): Adjust.
48675 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48676 inner_reference_p. Use inner_reference_p to expand inner references.
48677 (store_expr): Adjust.
48678 * cfgexpand.c (expand_call_stmt): Adjust.
48680 2014-01-08 Rong Xu <xur@google.com>
48682 * gcov-io.c (gcov_var): Move from gcov-io.h.
48683 (gcov_position): Ditto.
48684 (gcov_is_error): Ditto.
48685 (gcov_rewrite): Ditto.
48686 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48687 only part to libgcc/libgcov.h.
48689 2014-01-08 Marek Polacek <polacek@redhat.com>
48691 PR middle-end/59669
48692 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48694 2014-01-08 Marek Polacek <polacek@redhat.com>
48697 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48699 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48701 PR rtl-optimization/59649
48702 * stor-layout.c (get_mode_bounds): For BImode return
48703 0 and STORE_FLAG_VALUE.
48705 2014-01-08 Richard Biener <rguenther@suse.de>
48707 PR middle-end/59630
48708 * gimple.h (is_gimple_builtin_call): Remove.
48709 (gimple_builtin_call_types_compatible_p): New.
48710 (gimple_call_builtin_p): New overload.
48711 * gimple.c (is_gimple_builtin_call): Remove.
48712 (validate_call): Rename to ...
48713 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48714 check return types.
48715 (validate_type): New static function.
48716 (gimple_call_builtin_p): New overload and adjust.
48717 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48718 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48719 (gimple_fold_stmt_to_constant_1): Likewise.
48720 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48722 2014-01-08 Richard Biener <rguenther@suse.de>
48724 PR middle-end/59471
48725 * gimplify.c (gimplify_expr): Gimplify register-register type
48726 VIEW_CONVERT_EXPRs to separate stmts.
48728 2014-01-07 Jeff Law <law@redhat.com>
48730 PR middle-end/53623
48731 * ree.c (combine_set_extension): Handle case where source
48732 and destination registers in an extension insn are different.
48733 (combine_reaching_defs): Allow source and destination registers
48734 in extension to be different under limited circumstances.
48735 (add_removable_extension): Remove restriction that the
48736 source and destination registers in the extension are the same.
48737 (find_and_remove_re): Emit a copy from the extension's
48738 destination to its source after the defining insn if
48739 the source and destination registers are different.
48741 PR middle-end/59285
48742 * ifcvt.c (merge_if_block): If we are merging a block with more than
48743 one successor with a block with no successors, remove any BARRIER
48744 after the second block.
48746 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48748 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48750 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48753 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48754 for 14-bit register offsets when INT14_OK_STRICT is false.
48756 2014-01-07 Roland Stigge <stigge@antcom.de>
48757 Michael Meissner <meissner@linux.vnet.ibm.com>
48760 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48761 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48763 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48765 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48768 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48770 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48771 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48772 rtx is const0_rtx or not.
48774 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48777 * target-globals.c (save_target_globals): Remove this_fn_optab
48779 * toplev.c: Include optabs.h.
48780 (target_reinit): Temporarily restore the global options if another
48781 set of options are in force.
48783 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48785 PR rtl-optimization/58668
48786 * cfgcleanup.c (flow_find_cross_jump): Don't count
48787 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48788 to determine what is counted.
48789 (flow_find_head_matching_sequence): Use active_insn_p to determine
48791 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48793 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48794 determine what is counted.
48796 PR tree-optimization/59643
48797 * tree-predcom.c (split_data_refs_to_components): If one dr is
48798 read and one write, determine_offset fails and the write isn't
48799 in the bad component, just put the read into the bad component.
48801 2014-01-07 Mike Stump <mikestump@comcast.net>
48802 Jakub Jelinek <jakub@redhat.com>
48805 * tree-core.h (struct tree_optimization_option): Change optabs
48806 type from unsigned char * to void *.
48807 * optabs.c (init_tree_optimization_optabs): Adjust
48808 TREE_OPTIMIZATION_OPTABS initialization.
48810 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48813 * config/i386/i386.h (struct machine_function): Add
48814 no_drap_save_restore field.
48815 * config/i386/i386.c (ix86_save_reg): Use
48816 !cfun->machine->no_drap_save_restore instead of
48817 crtl->stack_realign_needed.
48818 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48819 this function clears frame_pointer_needed. Set
48820 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48821 and DRAP reg is needed.
48823 2014-01-06 Marek Polacek <polacek@redhat.com>
48826 * doc/implement-c.texi: Mention that other integer types are
48827 permitted as bit-field types in strictly conforming mode.
48829 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48831 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48832 is newly allocated.
48834 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48836 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48838 2014-01-06 Martin Jambor <mjambor@suse.cz>
48841 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48843 * ipa-prop.c (ipa_print_node_params): Fix indentation.
48845 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
48849 * var-tracking.c (add_stores): Preserve the value of the source even if
48850 we don't record the store.
48852 2014-01-06 Terry Guo <terry.guo@arm.com>
48854 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
48856 2014-01-05 Iain Sandoe <iain@codesourcery.com>
48859 * config/darwin.c (darwin_function_section): Adjust return values to
48860 correspond to optimisation changes made in r206070.
48862 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
48864 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
48865 from prefetch_block tune setting.
48866 (nocona_cost): Correct size of prefetch block to 64.
48868 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
48870 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
48871 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
48872 used to save the static chain register in the computation of the offset
48873 from which the FP registers need to be restored.
48875 2014-01-04 Jakub Jelinek <jakub@redhat.com>
48877 PR tree-optimization/59519
48878 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
48879 ICE if get_current_def (current_new_name) is already non-NULL, as long
48880 as it is a phi result of some other phi in *new_exit_bb that has
48883 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
48884 or vmovdqu* for misaligned_operand.
48885 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
48886 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
48887 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
48888 aligned_mem for AVX512F masked aligned load and store builtins and for
48889 non-temporal moves.
48891 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
48893 PR tree-optimization/59651
48894 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
48895 Address range for negative step should be added by TYPE_SIZE_UNIT.
48897 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
48899 * config/m68k/m68k.c (handle_move_double): Handle pushes with
48900 overlapping registers also for registers other than the stack pointer.
48902 2014-01-03 Marek Polacek <polacek@redhat.com>
48905 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
48908 2014-01-03 Jakub Jelinek <jakub@redhat.com>
48911 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
48914 * config/i386/i386.md (MODE_SIZE): New mode attribute.
48915 (push splitter): Use <P:MODE_SIZE> instead of
48916 GET_MODE_SIZE (<P:MODE>mode).
48917 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
48918 (mov -1, reg peephole2): Likewise.
48919 * config/i386/sse.md (*mov<mode>_internal,
48920 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
48921 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
48922 *<code><mode>3, *andnot<mode>3<mask_name>,
48923 <mask_codefor><code><mode>3<mask_name>): Likewise.
48924 * config/i386/subst.md (mask_mode512bit_condition,
48925 sd_mask_mode512bit_condition): Likewise.
48927 2014-01-02 Xinliang David Li <davidxl@google.com>
48929 PR tree-optimization/59303
48930 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
48931 (dump_predicates): Better output format.
48932 (pred_equal_p): New function.
48933 (is_neq_relop_p): Ditto.
48934 (is_neq_zero_form_p): Ditto.
48935 (pred_expr_equal_p): Ditto.
48936 (pred_neg_p): Ditto.
48937 (simplify_pred): Ditto.
48938 (simplify_preds_2): Ditto.
48939 (simplify_preds_3): Ditto.
48940 (simplify_preds_4): Ditto.
48941 (simplify_preds): Ditto.
48942 (push_pred): Ditto.
48943 (push_to_worklist): Ditto.
48944 (get_pred_info_from_cmp): Ditto.
48945 (is_degenerated_phi): Ditto.
48946 (normalize_one_pred_1): Ditto.
48947 (normalize_one_pred): Ditto.
48948 (normalize_one_pred_chain): Ditto.
48949 (normalize_preds): Ditto.
48950 (normalize_cond_1): Remove function.
48951 (normalize_cond): Ditto.
48952 (is_gcond_subset_of): Ditto.
48953 (is_subset_of_any): Ditto.
48954 (is_or_set_subset_of): Ditto.
48955 (is_and_set_subset_of): Ditto.
48956 (is_norm_cond_subset_of): Ditto.
48957 (pred_chain_length_cmp): Ditto.
48958 (convert_control_dep_chain_into_preds): Type change.
48959 (find_predicates): Ditto.
48960 (find_def_preds): Ditto.
48961 (destroy_predicates_vecs): Ditto.
48962 (find_matching_predicates_in_rest_chains): Ditto.
48963 (use_pred_not_overlap_with_undef_path_pred): Ditto.
48964 (is_pred_expr_subset): Ditto.
48965 (is_pred_chain_subset_of): Ditto.
48966 (is_included_in): Ditto.
48967 (is_superset_of): Ditto.
48969 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48971 Update copyright years.
48973 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48975 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
48976 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
48977 config/arc/arc.md, config/arc/arc.opt,
48978 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
48979 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
48980 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
48981 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
48982 config/linux-protos.h, config/linux.c, config/winnt-c.c,
48983 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
48984 vtable-verify.c, vtable-verify.h: Use the standard form for the
48987 2014-01-02 Tobias Burnus <burnus@net-b.de>
48989 * gcc.c (process_command): Update copyright notice dates.
48990 * gcov-dump.c: Ditto.
48992 * doc/cpp.texi: Bump @copying's copyright year.
48993 * doc/cppinternals.texi: Ditto.
48994 * doc/gcc.texi: Ditto.
48995 * doc/gccint.texi: Ditto.
48996 * doc/gcov.texi: Ditto.
48997 * doc/install.texi: Ditto.
48998 * doc/invoke.texi: Ditto.
49000 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
49002 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
49004 2014-01-01 Jakub Jelinek <jakub@redhat.com>
49006 * config/i386/sse.md (*mov<mode>_internal): Guard
49007 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
49009 PR rtl-optimization/59647
49010 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
49011 new_rtx into UNSIGNED_FLOAT rtxes.
49013 Copyright (C) 2014 Free Software Foundation, Inc.
49015 Copying and distribution of this file, with or without modification,
49016 are permitted in any medium without royalty provided the copyright
49017 notice and this notice are preserved.