1 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
3 * doc/invoke.texi: Document -Wdiscarded-array-qualifiers.
4 * doc/extend.texi: Document new behavior for pointers to arrays
7 2014-12-19 Jan Hubicka <hubicka@ucw.cz>
9 * hash-table.h (struct pointer_hash): Fix formating.
10 (hash_table_higher_prime_index): Declare pure.
11 (hash_table_mod2, hash_table_mod1, mul_mod): Move inline;
12 assume that uint64_t always exists.
13 (hash_table<Descriptor, Allocator, false>): Use gcc_checking_assert.
14 (hash_table<Descriptor, Allocator, false>::expand ()): Fix formating.
15 (hash_table<Descriptor, Allocator, false>::clear_slot (value_type **slot)):
17 * hash-table.c: Remove #if 0 code.
18 (hash_table_higher_prime_index): Use gcc_assert.
19 (mul_mod, hash-table_mod1, hash_table_mod2): move to hash-table.h
21 2014-12-19 Matthew Fortune <matthew.fortune@imgtec.com>
23 * config.gcc: Support mips*-img-linux* and mips*-img-elf*.
24 * config/mips/mti-linux.h: Support mips32r6 as being the default arch.
25 * config/mips/t-img-elf: New.
26 * config/mips/t-img-linux: New.
28 2014-12-19 Matthew Fortune <matthew.fortune@imgtec.com>
30 * config.gcc: Add mipsisa64r6 and mipsisa32r6 cpu support.
31 * config/mips/constraints.md (ZD): Add r6 restrictions.
32 * config/mips/gnu-user.h (DRIVER_SELF_SPECS): Add MIPS_ISA_LEVEL_SPEC.
33 * config/mips/loongson.md
34 (<u>div<mode>3, <u>mod<mode>3): Move to mips.md.
35 * config/mips/mips-cpus.def (mips32r6, mips64r6): Define.
36 * config/mips/mips-modes.def (CCF): New mode.
37 * config/mips/mips-protos.h
38 (mips_9bit_offset_address_p): New prototype.
39 * config/mips/mips-tables.opt: Regenerate.
40 * config/mips/mips.c (MIPS_JR): Use JALR $, <reg> for R6.
41 (mips_rtx_cost_data): Add pseudo-processors W32 and W64.
42 (mips_9bit_offset_address_p): New function.
43 (mips_rtx_costs): Account for R6 multiply and FMA instructions.
44 (mips_emit_compare): Implement R6 FPU comparisons.
45 (mips_expand_conditional_move): Implement R6 selects.
46 (mips_expand_conditional_trap): Account for removed trap immediate.
47 (mips_expand_block_move): Disable inline move when LWL/LWR are removed.
48 (mips_print_float_branch_condition): Update for R6 FPU branches.
49 (mips_print_operand): Handle CCF mode compares.
50 (mips_interrupt_extra_call_saved_reg_p): Do not attempt to callee-save
52 (mips_hard_regno_mode_ok_p): Support CCF mode.
53 (mips_mode_ok_for_mov_fmt_p): Likewise.
54 (mips_secondary_reload_class): CCFmode can be loaded directly.
55 (mips_set_fast_mult_zero_zero_p): Account for R6 multiply instructions.
56 (mips_option_override): Ensure R6 is used with fp64. Set default
57 mips_nan modes. Check for mips_nan support. Prevent DSP with R6.
58 (mips_conditional_register_usage): Disable MD_REGS for R6. Disable
60 (mips_mulsidi3_gen_fn): Support R6 multiply instructions.
61 * config/mips/mips.h (ISA_MIPS32R6, ISA_MIPS64R6): Define.
62 (TARGET_CPU_CPP_BUILTINS): Rework for mips32/mips64.
63 (ISA_HAS_JR): New macro.
64 (ISA_HAS_HILO): New macro.
65 (ISA_HAS_R6MUL): Likewise.
66 (ISA_HAS_R6DMUL): Likewise.
67 (ISA_HAS_R6DIV): Likewise.
68 (ISA_HAS_R6DDIV): Likewise.
69 (ISA_HAS_CCF): Likewise.
70 (ISA_HAS_SEL): Likewise.
71 (ISA_HAS_COND_TRAPI): Likewise.
72 (ISA_HAS_FP_MADDF_MSUBF): Likewise.
73 (ISA_HAS_LWL_LWR): Likewise.
74 (ISA_HAS_IEEE_754_LEGACY): Likewise.
75 (ISA_HAS_IEEE_754_2008): Likewise.
76 (ISA_HAS_PREFETCH_9BIT): Likewise.
77 (MIPSR6_9BIT_OFFSET_P): New macro.
78 (BASE_DRIVER_SELF_SPECS): Use MIPS_ISA_DRIVER_SELF_SPECS.
79 (DRIVER_SELF_SPECS): Use MIPS_ISA_LEVEL_SPEC.
80 (MULTILIB_ISA_DEFAULT): Handle mips32r6 and mips64r6.
81 (MIPS_ISA_LEVEL_SPEC): Likewise.
82 (MIPS_ISA_SYNCI_SPEC): Likewise.
83 (ISA_HAS_64BIT_REGS): Likewise.
84 (ISA_HAS_BRANCHLIKELY): Likewise.
85 (ISA_HAS_MUL3): Likewise.
86 (ISA_HAS_DMULT): Likewise.
87 (ISA_HAS_DDIV): Likewise.
88 (ISA_HAS_DIV): Likewise.
89 (ISA_HAS_MULT): Likewise.
90 (ISA_HAS_FP_CONDMOVE): Likewise.
91 (ISA_HAS_8CC): Likewise.
92 (ISA_HAS_FP4): Likewise.
93 (ISA_HAS_PAIRED_SINGLE): Likewise.
94 (ISA_HAS_MADD_MSUB): Likewise.
95 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
96 * config/mips/mips.md (processor): Add w32 and w64.
97 (FPCC): New mode iterator.
99 (fpcmp): New mode attribute.
100 (fcond): Add ordered, ltgt and ne codes.
101 (fcond): Update code attribute.
102 (sel): New code attribute.
104 (ctrap<mode>4): Update condition.
105 (*conditional_trap_reg<mode>): New define_insn.
106 (*conditional_trap<mode>): Update condition.
107 (mul<mode>3): Expand R6 multiply instructions.
108 (<su>mulsi3_highpart): Likewise.
109 (<su>muldi3_highpart): Likewise.
110 (mul<mode>3_mul3_loongson): Rename...
111 (mul<mode>3_mul3_hilo): To this. Add R6 mul instruction.
112 (<u>mulsidi3_32bit_r6): New expander.
113 (<u>mulsidi3_32bit): Restrict to pre-r6 multiplies.
114 (<u>mulsidi3_32bit_r4000): Likewise.
115 (<u>mulsidi3_64bit): Likewise.
116 (<su>mulsi3_highpart_internal): Likewise.
117 (mulsidi3_64bit_r6dmul): New instruction.
118 (<su>mulsi3_highpart_r6): Likewise.
119 (<su>muldi3_highpart_r6): Likewise.
120 (fma<mode>4): Likewise.
122 (*sel<code><GPR:mode>_using_<GPR2:mode>): Likewise.
123 (*sel<mode>): Likewise.
124 (<u>div<mode>3): Moved from loongson.md. Add R6 instructions.
125 (<u>mod<mode>3): Likewise.
126 (extvmisalign<mode>): Require ISA_HAS_LWL_LWR.
127 (extzvmisalign<mode>): Likewise.
128 (insvmisalign<mode>): Likewise.
129 (mips_cache): Account for R6 displacement field sizes.
130 (*branch_fp): Rename...
131 (*branch_fp_<mode>): To this. Add CCFmode support.
132 (*branch_fp_inverted): Rename...
133 (*branch_fp_inverted_<mode>): To this. Add CCFmode support.
134 (s<code>_<mode>): Rename...
135 (s<code>_<SCALARF:mode>_using_<FPCC:mode>): To this. Add FCCmode
137 (s<code>_<mode> swapped): Rename...
138 (s<code>_<SCALARF:mode>_using_<FPCC:mode> swapped): To this. Add
139 CCFmode condition support.
140 (mov<mode>cc GPR): Expand R6 selects.
141 (mov<mode>cc FPR): Expand R6 selects.
142 (*tls_get_tp_<mode>_split): Do not .set push for >= mips32r2.
143 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Update similarly to
145 (ASM_SPEC): Add mips32r6, mips64r6.
146 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Update
147 for mips32r6/mips64r6.
148 * doc/invoke.texi: Document -mips32r6,-mips64r6.
149 * doc/md.texi: Update comment for ZD constraint.
151 2014-12-19 Segher Boessenkool <segher@kernel.crashing.org>
154 * combine.c (try_combine): Immediately return if any of I0,I1,I2
157 2014-12-19 Alan Lawrence <alan.lawrence@arm.com>
159 * config/aarch64/aarch64.c (<LOGICAL:optab>_one_cmpl<mode>3):
161 (<NLOGICAL:optab>_one_cmpl<mode>3): with extra SIMD-register variant.
162 (xor_one_cmpl<mode>3): New define_insn_and_split.
164 * config/aarch64/iterators.md (NLOGICAL): New define_code_iterator.
166 2014-12-19 Alan Lawrence <alan.lawrence@arm.com>
168 * config/aarch64/aarch64.md (<optab><mode>3, one_cmpl<mode>2):
169 Add SIMD-register variant.
170 * config/aarch64/iterators.md (Vbtype): Add value for SI.
172 2014-12-19 Alan Lawrence <alan.lawrence@arm.com>
174 * config/aarch64/aarch64.md (subdi3, adddi3_aarch64): Don't penalize
177 2014-12-19 Martin Liska <mliska@suse.cz>
180 * ipa-icf-gimple.c (func_checker::compare_operand): Add missing
181 comparison for volatile flag.
183 2014-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
185 * doc/invoke.texi (ARM options): Remove mention of Advanced RISC
188 2014-12-19 Xingxing Pan <xxingpan@marvell.com>
190 * config/arm/cortex-a9-neon.md (cortex_a9_neon_vmov): Change
191 reservation to cortex_a9_neon_dp.
193 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
195 * config/sh/sh.c (prepare_move_operands): Split HI/QImode load/store
196 to two move insns via r0.
198 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
200 * config/sh/predicates.md (arith_or_int_operand): New predicate.
201 * config/sh/sh.md (addsi3): Use arith_or_int_operand for operand 2.
202 Return fail if operands[0] and operands[1] are overlap when
203 operands[2] is integer constant.
204 (*addsi3_compact): Make it define_insn_and_split which splits
205 reg0 := reg1 + constant to reg0 = constant and reg0 := reg0 + reg1.
207 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
209 * config/sh/sh-protos.h (sh_movsf_ie_ra_split_p): Declare.
210 * config/sh/sh.c (sh_movsf_ie_ra_split_p): New function.
211 * config/sh/sh.md (movsi_ie): Use "mr" constraint for the 8-th
212 altarnative of operand 0.
213 (movesf_ie): Use "X" constraint instead of "Bsc".
214 (movsf_ie_ra): New insn_and_split.
215 (movsf): Use movsfie_ra when lra_in_progress is true.
217 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
219 * config/sh/predicates.md (general_movsrc_operand): Allow only
220 valid plus address expressions.
221 (general_movdst_operand): Likewise.
222 (t_reg_operand): Allow (zero_extend (reg t)).
223 * config/sh/sh-protos.h (sh_hard_regno_caller_save_mode): Declare.
224 * config/sh/sh.c (sh_hard_regno_caller_save_mode): New function.
225 (sh_secondary_reload): Return NO_REGS instead of FPUL_REGS in one
227 * config/sh/sh.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
228 * config/sh/sh.md (untyped_call): Clobber function value
229 registers before call.
231 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
233 * config/sh/sh.c (sh_lra_p): New function.
234 (TARGET_LRA_P): Define.
235 (sh_legitimize_reload_address): Return false if sh_lra_p is true.
236 * config/sh/sh.opt (mlra): New option.
238 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
240 * lra-constraints.c (process_address_1): Try if target can split
241 displacement with targetm.legitimize_address_displacement.
242 * target.def (legitimize_address_displacement): New hook.
243 * targhooks.c (default_legitimize_address_displacement): New function.
244 * targhooks.h (default_legitimize_address_displacement): Declare.
245 * config/sh/sh.c (sh_legitimize_address_displacement): New function.
246 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
247 * doc/tm.texi.in (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): New hook.
248 * doc/tm.texi: Regenerate.
250 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
252 * lra-constraints.c (get_equiv): Don't return memory equivalence
253 when targetm.cannot_substitute_mem_equiv_p is true.
254 * target.def (cannot_substitute_mem_equiv_p): New hook.
255 * config/sh/sh.c (sh_cannot_substitute_mem_equiv_p): New function.
256 (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
257 * doc/tm.texi.in (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): New hook.
258 * doc/tm.texi: Regenerate.
260 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
262 * lra-constraints.c (process_address_1): Swap base_term and
263 index_term if INDEX_REG_CLASS is assigned to base_term already
264 when INDEX_REG_CLASS is a single register class.
266 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
268 * lra-constraints.c (lra-constraints.c): Exchange places of sclass
271 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
273 PR rtl-optimization/64291
274 * lra-remat.c (bad_for_rematerialization_p): Add UNPSEC_VLOATILE.
275 (create_cands): Process only output reload insn with potential
278 2014-12-18 H.J. Lu <hongjiu.lu@intel.com>
280 * config/i386/i386.c (ix86_expand_call): Skip setting up RAX
281 register for -mskip-rax-setup when there are no parameters
282 passed in vector registers.
283 * config/i386/i386.opt (mskip-rax-setup): New option.
284 * doc/invoke.texi: Document -mskip-rax-setup.
286 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
288 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): Handle shift
289 by 64 by moving const0_rtx.
290 (aarch64_ushr_simddi): Delete.
292 * config/aarch64/aarch64.md (enum unspec): Delete UNSPEC_USHR64.
294 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
296 * config/aarch64/aarch64.md (enum "unspec"): Remove UNSPEC_SSHR64.
298 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): Change shift
299 amount to 63 if was 64.
300 (aarch64_sshr_simddi): Remove.
302 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
304 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
306 (aarch64_min_divisions_for_recip_mul): New function.
308 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
310 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
312 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
314 (cortexa53_tunings): Likewise.
315 (cortexa57_tunings): Likewise.
316 (thunderx_tunings): Likewise.
317 (aarch64_override_options): Use new alignment tunings.
319 2014-12-18 Martin Liska <mliska@suse.cz>
321 PR tree-optimization/64330
322 * ipa-icf.c (sem_variable::parse): Add checking
323 for externally visible symbols and do not introduce
324 an alias for an external declaration.
326 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
329 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
332 2014-12-18 Martin Liska <mliska@suse.cz>
335 * ipa-icf.c (sem_function::merge): Check for
336 decl_binds_to_current_def_p is newly added to merge operation.
338 2014-12-18 Bin Cheng <bin.cheng@arm.com>
340 PR tree-optimization/62178
341 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
342 (iv_ca_replace): New function.
343 (try_improve_iv_set): New parameter try_replace_p.
344 Break local optimal fixed-point by calling iv_ca_replace.
345 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
347 2014-12-17 Dehao Chen <dehao@google.com>
349 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
351 (auto_profile): Recompute inline summary after processing cgraph node.
353 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
356 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
357 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
358 accordingly in constructor.
359 (cbranch_trace::branch_condition_rtx_ref): New function.
360 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
361 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
362 in insn using reversed_comparison_code and validate_change instead of
364 (sh_treg_combine::execute): Look for conditional insns in basic blocks
365 in addition to conditional branches.
366 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
368 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
371 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
372 Combine ccreg inversion and cbranch into inverted cbranch.
374 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
376 * lra-constraints.c (process_alt_operands): Remove non
377 allocatable hard regs when considering
378 ira_prohibited_class_mode_regs.
380 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
382 * sreal.h (sreal::normalize): Implement inline.
383 (sreal::normalize_up): New function.
384 (sreal::normalize_down): New function.
385 * sreal.c (sreal::normalize): Remove.
387 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
389 * config/aarch64/aarch64.md (generic_sched): Delete it.
391 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
393 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
394 unused argument warning.
396 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
398 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
399 * dwarf2out.c (enum dw_scalar_form): New.
400 (struct loc_descr_context): New.
401 (add_scalar_info): New.
402 (add_bound_info): Add a context parameter. Use add_scalar_info.
403 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
404 nodes for type-related expressions. Likewise for base declarations.
405 (loc_descriptor_from_tree): Add a context parameter.
406 (subrange_type_die): Update calls to add_bound_info.
407 (tls_mem_loc_descriptor): Likewise.
408 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
409 parameter. Update calls to loc_list_from_tree.
410 (add_subscript_info): Update calls to add_bound_info.
411 (gen_array_type_die): Update calls to loc_list_from_tree and to
413 (descr_info_loc): Remove.
414 (add_descr_info_field): Remove.
415 (gen_descr_array_type_die): Switch add_descr_info_field calls into
416 add_scalar_info/add_bound_info ones.
417 (gen_subprogram_die): Update calls to loc_list_from_tree.
418 (gen_variable_die): Likewise.
420 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
422 * dwarf2out.c (print_loc_descr): New.
424 (print_attribute): New.
425 (print_loc_descr): New.
426 (print_die): Use print_dw_val.
427 (debug_dwarf_loc_descr): New.
428 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
430 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
432 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
433 even when (dwarf_version < 3 && dwarf_strict).
434 (gen_descr_array_die): Do not output DW_AT_data_locationn,
435 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
436 attributes when (dwarf_version < 3 && dwarf_strict).
438 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
440 * dwarf2out.h (enum array_descr_ordering): New.
441 (array_descr_dimen): Add a bounds_type structure field.
442 (struct array_descr_info): Add a field to hold index type information
443 and another one to hold ordering information.
444 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
445 invoking the array descriptor language hook. Initialize the
446 array_descr_info structure before calling the lang-hook.
447 (gen_descr_array_type_die): Use gen_type_die if not processing the main
448 type variant. Replace Fortran-specific code with generic one using
449 this new field. Add a GNAT descriptive type, if any. Output type
450 information for the array bound subrange, if any.
452 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
453 Jakub Jelinek <jakub@redhat.com>
454 Uros Bizjak <ubizjak@gmail.com>
457 * config/i386/i386-opts.h (ix86_align_data): New enum.
458 * config/i386/i386.c (ix86_data_alignment): Return the ABI
459 alignment value for -malign-data=abi, the cachine line size
460 for -malign-data=cacheline and the older GCC compatible
461 alignment value for for -malign-data=compat.
462 * config/i386/i386.opt (malign-data=): New.
463 * doc/invoke.texi: Document -malign-data=.
465 2014-12-17 Marek Polacek <polacek@redhat.com>
468 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
470 2014-12-17 Jakub Jelinek <jakub@redhat.com>
472 PR tree-optimization/64322
473 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
474 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
476 2014-12-17 Tobias Burnus <burnus@net-b.de>
479 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
480 gfc_convert): New enums; moved from fortran/.
482 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
484 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
486 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
488 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
489 return values of const calls as constants.
490 (estimate_function_body_sizes): Expect calls to have false predicates.
492 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
494 * hwint.c (abs_hwi, absu_hwi): Move to ...
495 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
497 2014-12-16 Marek Polacek <polacek@redhat.com>
500 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
501 ((1 << A) & 1) == 0 -> A != 0.
503 2014-12-16 Richard Biener <rguenther@suse.de>
505 * genmatch.c (parser::parser): Initialize capture_ids.
506 (parser::parse_pattern): Properly allocate capture_ids before
507 using them. Set capture_ids to zero when its lifetime is
509 (parser::parse_simplify): Allocate capture_ids only if
512 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
514 * sreal.c: Include math.h later.
516 2014-12-16 Felix Yang <felix.yang@huawei.com>
518 PR rtl-optimization/64240
519 * ddg.c (mark_mem_use): Check *iter instead of *x.
521 2014-12-16 Martin Liska <mliska@suse.cz>
524 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
526 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
528 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
529 to RTL level for the check for PIC register.
531 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
533 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
534 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
535 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
537 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
540 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
543 2014-12-15 DJ Delorie <dj@redhat.com>
545 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
547 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
550 * tree-streamer.c (preload_common_nodes): Skip preloading
551 of main_identifier_node, pid_type and optimization/option nodes.
553 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
555 PR rtl-optimization/63397
556 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
558 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
559 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
560 (ira_reg_cost, ira_mem_cost): Ditto.
561 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
562 (calculate_allocation_cost, do_reload): Use the right
563 format for int64_t values.
565 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
567 * sreal.h (to_double): New method.
568 (shift): Do not ICE on 0.
569 * sreal.c: Include math.h
570 (sreal::to_double): New.
572 2014-12-15 Jakub Jelinek <jakub@redhat.com>
574 PR rtl-optimization/64316
575 * simplify-rtx.c (simplify_relational_operation_1): For
576 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
577 CONST0_RTX instead of const0_rtx.
579 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
582 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
584 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
586 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
587 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
589 * ira.h (struct target_ira): ... here.
590 (ira_prohibited_class_mode_regs): Define.
591 * lra-constraints.c (process_alt_operands): Add one more condition
592 to refuse alternative when reload pseudo of given class can not
593 hold value of given mode.
595 2014-12-15 Richard Biener <rguenther@suse.de>
597 PR tree-optimization/64312
598 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
599 vuse_ssa_val as callback to walk_non_aliased_vuses.
600 (vn_reference_lookup): Likewise.
602 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
604 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
605 *add<mode>3_imm_dot2): Change the constraint for the second
606 alternative for operand 1 from "r" to "b".
608 2014-12-15 Richard Biener <rguenther@suse.de>
610 * vec.h (vec::safe_grow): Guard against a grow to zero size.
612 2014-12-15 Richard Biener <rguenther@suse.de>
615 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
616 fold_binary to compute the constant to multiply with.
618 2014-12-15 Richard Biener <rguenther@suse.de>
621 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
622 invocations on the same loop.
624 2014-12-15 Marek Polacek <polacek@redhat.com>
627 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
629 2014-12-15 Renlin Li <renlin.li@arm.com>
631 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
632 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
634 2014-12-15 Jakub Jelinek <jakub@redhat.com>
637 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
638 call on edge from entry block to single succ instead
639 of after labels of single succ of entry block.
641 2014-12-15 Richard Biener <rguenther@suse.de>
643 PR tree-optimization/64284
644 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
645 the loop for removal if we copied the loop header.
647 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
650 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
651 * ipa.c (set_writeonly_bit): Track if reference was removed.
652 (ipa_discover_readonly_nonaddressable_vars): Return true if any
653 references was removed.
654 * ipa-reference.c (propagate): Return TODO_remove_functions if
655 reference was removed.
657 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
659 * ipa.c (process_references): Fix conditoinal on flag_optimize
661 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
664 * symtab.c (symbol_table::insert_to_assembler_name_hash
665 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
666 DECL_ASSEMBLER_NAME is NULL.
668 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
670 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
672 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
675 * tree.c (virtual_method_call_p): Return false when OTR type has
678 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
680 * cgraphunit.c (analyze_functions): Do not analyze extern inline
681 funtions when not optimizing; skip comdat locals.
683 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
685 PR rtl-optimization/64037
686 * combine.c (setup_incoming_promotions): Pass the argument
687 before any promotions happen to promote_function_mode.
689 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
691 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
693 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
696 * lra-constraints.c (process_alt_operands): Refuse alternative
697 when reload pseudo of given class can not hold value of given
700 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
702 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
703 intermediate walk_tree results for for_incr.
704 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
705 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
707 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
710 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
712 * double-int.c (div_and_round_double): Fix handling of unsigned
713 cases. Use same rounding approach as wide-int.h.
715 2014-12-12 Marek Polacek <polacek@redhat.com>
718 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
720 2014-12-12 Jakub Jelinek <jakub@redhat.com>
722 PR tree-optimization/64269
723 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
724 len2 or diff are too large.
726 2014-12-12 Richard Biener <rguenther@suse.de>
729 * tree-cfg.c (replace_uses_by): Guard assert properly.
731 2014-12-12 Anthony Green <green@moxielogic.com>
733 * config/moxie/moxie.md: Add use of zex instruction.
735 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
737 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
738 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
740 * real.c (HONOR_NANS): Fix indentation.
741 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
742 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
743 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
744 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
746 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
748 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
749 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
750 * omp-low.c (omp_reduction_init): Likewise.
751 * rtlanal.c (may_trap_p_1): Likewise.
752 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
753 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
754 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
755 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
756 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
758 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
760 * ipa-inline.c (ipa_inline): Fix condition on when
761 TODO_remove_unreachable_functions is needed.
763 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
765 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
766 if otr_type has no BINFO.
768 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
770 PR rtl-optimization/63917
771 * ifcvt.c (cc_in_cond): New function.
772 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
773 (noce_process_if_block, check_cond_move_block): Check CC references.
775 2014-12-11 Andrew Pinski <apinski@cavium.com>
777 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
778 * config/aarch64/aarch64.c (generic_tunings): Specify align.
779 (cortexa53_tunings): Likewise.
780 (cortexa57_tunings): Likewise.
781 (thunderx_tunings): Likewise.
782 (aarch64_override_options): Set align_loops, align_jumps,
783 align_functions based on what the tuning struct.
785 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
787 * doc/md.texi (Insn Lengths): Fix description of (pc).
789 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
792 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
793 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
794 * cgraphunit.c (symbol_table::process_new_functions): Add
795 IPA_SSA_AFTER_INLINING.
796 (ipa_passes): Update call of remove_unreachable_nodes.
797 (symbol_table::compile): Remove call of remove_unreachable_nodes.
798 * ipa-inline.c (inline_small_functions): Do not ICE with
800 (ipa_inline): Update symtab->state; fix formatting
801 update call of remove_unreachable_nodes.
802 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
803 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
804 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
805 (remove_unreachable_nodes): Update.
806 * ipa.c (process_references): Keep external references only
808 (walk_polymorphic_call_targets): Keep possible polymorphic call
809 target only when devirtualizing.
810 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
812 (ipa_single_use): Update comment.
813 * ipa-pure-const.c (cdtor_p): New function.
814 (propagate_pure_const): Track if some cdtor was turned pure/const.
815 (execute): Return TODO_remove_functions if needed.
816 * ipa-comdats.c (ipa_comdats): Update comment.
818 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
820 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
822 (gen_inlined_subroutine_die): Same.
823 (gen_block_die): Same.
824 (decls_for_scope): Same.
826 2014-12-11 Renlin Li <renlin.li@arm.com>
828 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
829 AARCH64_FL_FOR_ARCH8.
830 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
831 aarch64-cores.def file only.
833 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
836 * diagnostic.c (diagnostic_action_after_output): Make it extern.
837 Take diagnostic_t argument instead of diagnostic_info. Count also
838 DK_WERROR towards max_errors.
839 (diagnostic_report_diagnostic): Update call according to the above.
840 (error_recursion): Likewise.
841 * diagnostic.h (diagnostic_action_after_output): Declare.
842 * pretty-print.c (pp_formatted_text_data): Delete.
843 (pp_append_r): Call output_buffer_append_r.
844 (pp_formatted_text): Call output_buffer_formatted_text.
845 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
846 * pretty-print.h (output_buffer_formatted_text): New.
847 (output_buffer_append_r): New.
848 (output_buffer_last_position_in_text): New.
850 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
852 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
853 message to say +no only when removing extension.
855 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
857 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
858 for generator file. Add comment indicating it is a generated file.
859 * config/tilepro/mul-tables.c: Update generated file.
860 * config/tilegx/mul-tables.c: Likewise.
862 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
864 * combine.c (try_combine): Do not allow combining a PARALLEL I2
865 with a register move I3 if that I2 is an asm.
867 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
869 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
870 (vrndnq_f32): ... this.
871 (vrndqa_f32): Rename to...
872 (vrndaq_f32): ... this.
873 (vrndqp_f32): Rename to...
874 (vrndpq_f32): ... this.
875 (vrndqm_f32): Rename to...
876 (vrndmq_f32): ... this.
877 (vrndx_f32): New intrinsic.
878 (vrndxq_f32): Likewise.
880 2014-12-11 Marek Polacek <polacek@redhat.com>
882 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
883 (extract_muldiv_1): Likewise.
884 (maybe_canonicalize_comparison_1): Likewise.
885 (fold_comparison): Likewise.
886 (tree_binary_nonnegative_warnv_p): Likewise.
887 (tree_binary_nonzero_warnv_p): Likewise.
888 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
889 * tree-scalar-evolution.c (simple_iv): Likewise.
890 (scev_const_prop): Likewise.
891 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
892 * tree-vect-generic.c (expand_vector_operation): Likewise.
893 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
894 (ANY_INTEGRAL_TYPE_P): Define.
895 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
896 Add ANY_INTEGRAL_TYPE_CHECK.
897 (any_integral_type_check): New function.
899 2014-12-11 Tobias Burnus <burnus@net-b.de>
900 Manuel López-Ibáñez <manu@gcc.gnu.org>
902 * error.c (gfc_get_terminal_width): Renamed from
903 get_terminal_width and use same-named common function.
904 (gfc_error_init_1): Update call.
906 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
908 * gdbhooks.py (class DWDieRefPrinter): New class.
909 (build_pretty_printer): Register dw_die_ref's.
911 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
913 * config.gcc: Support "knl".
914 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
915 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
917 * config/i386/i386.c (m_KNL): Define.
918 (processor_target_table): Add "knl".
920 (ix86_issue_rate): Add PROCESSOR_KNL.
921 (ix86_adjust_cost): Ditto.
922 (ia32_multipass_dfa_lookahead): Ditto.
923 (get_builtin_code_for_version): Handle "knl".
924 (fold_builtin_cpu): Ditto.
925 * config/i386/i386.h (TARGET_KNL): Define.
926 (processor_type): Add PROCESSOR_KNL.
927 * config/i386/i386.md (attr "cpu"): Add knl.
928 * config/i386/x86-tune.def: Add m_KNL.
930 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
932 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
933 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
934 when it is not streamed to the given ltrans.
935 (compute_ltrans_boundary): Make code adding all polymorphic
936 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
937 * common.opt (fdevirtualize-at-ltrans): New flag.
939 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
941 * varpool.c (varpool_node::get_create): Force output of vars with
942 "omp declare target" attribute.
944 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
946 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
947 * real.c: Include rtl.h and options.h.
948 (HONOR_NANS): Define three overloads.
949 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
950 Simplify argument of HONOR_NANS.
951 * fold-const.c (combine_comparisons, fold_truth_not_expr,
952 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
953 fold_comparison, fold_binary_loc): Likewise.
954 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
955 * ipa-inline-analysis.c (add_clause,
956 set_cond_stmt_execution_predicate): Likewise.
957 * match.pd: Likewise.
958 * rtlanal.c (may_trap_p_1): Likewise.
959 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
960 * tree-if-conv.c (parse_predicate): Likewise.
961 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
962 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
963 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
964 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
965 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
967 2014-12-10 Jakub Jelinek <jakub@redhat.com>
969 PR tree-optimization/62021
970 * omp-low.c (simd_clone_adjust_return_type): Use
971 vector of pointer_sized_int_node types instead vector of pointer
973 (simd_clone_adjust_argument_types): Likewise.
975 2014-12-10 Jakub Jelinek <jakub@redhat.com>
976 Evgeny Stupachenko <evstupac@gmail.com>
979 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
980 set dcopy.target to a new pseudo.
982 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
984 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
986 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
988 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
989 config/rs6000/440.md (ppc440-compare): Remove "compare".
990 config/rs6000/476.md (ppc476-compare): Remove "compare".
991 config/rs6000/601.md (ppc601-compare): Remove "compare".
992 config/rs6000/603.md (ppc603-compare): Remove "compare".
993 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
994 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
995 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
996 config/rs6000/8540.md (ppc8540_su): Remove "compare".
997 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
999 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
1000 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
1001 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
1002 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
1003 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
1004 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
1005 config/rs6000/power4.md (power4-compare): Remove "compare".
1006 config/rs6000/power5.md (power5-compare): Remove "compare".
1007 config/rs6000/power6.md (power6-compare): Remove "compare".
1008 config/rs6000/power7.md (power7-compare): Remove "compare".
1009 config/rs6000/power8.md (power8-compare): Remove "compare". Update
1011 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
1013 (is_cracked_insn): Remove TYPE_COMPARE case.
1014 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
1015 config/rs6000/rs6000.md (type): Remove "compare".
1016 (cell_micro): Remove "compare".
1017 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
1019 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1021 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
1022 Change type from "compare" to "two".
1024 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1027 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
1028 (signed_comparison_operator): New.
1029 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
1030 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
1031 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
1032 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
1033 add to addc,adde directly, if !TARGET_POWERPC64.
1034 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
1035 if !TARGET_POWERPC64.
1036 (neg<mode>2): Delete expander.
1037 (*neg<mode>2): Rename to "neg<mode>2".
1038 (addti3, subti3): Delete.
1039 (addti3, subti3): New expanders.
1040 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
1041 (cstore<mode>4_unsigned): New expander.
1042 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
1043 (cstore<mode>4 for FP): Remove superfluous quotes.
1044 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
1045 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
1046 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
1047 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
1048 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
1049 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
1050 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
1051 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
1052 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
1053 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
1054 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
1055 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
1057 (eq<mode>3, ne<mode>3): New.
1058 (*neg_eq_<mode>, *neg_ne_<mode>): New.
1059 (*plus_eq_<mode>, *plus_ne_<mode>): New.
1060 (*minus_eq_<mode>, *minus_ne_<mode>): New.
1062 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1065 * config/rs6000/predicates.md (adde_operand): New.
1066 * config/rs6000/rs6000.md (add<mode>3_carry): New.
1067 (*add<mode>3_imm_carry_pos): New.
1068 (*add<mode>3_imm_carry_0): New.
1069 (*add<mode>3_imm_carry_m1): New.
1070 (*add<mode>3_imm_carry_neg): New.
1071 (add<mode>3_carry_in): New.
1072 (*add<mode>3_carry_in_internal): New.
1073 (add<mode>3_carry_in_0): New.
1074 (add<mode>3_carry_in_m1): New.
1075 (subf<mode>3_carry): New.
1076 (*subf<mode>3_imm_carry_0): New.
1077 (*subf<mode>3_imm_carry_m1): New.
1078 (subf<mode>3_carry_in): New.
1079 (*subf<mode>3_carry_in_internal): New.
1080 (subf<mode>3_carry_in_0): New.
1081 (subf<mode>3_carry_in_m1): New.
1082 (subf<mode>3_carry_in_xx): New.
1084 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1087 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
1089 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
1091 (*add<mode>3_dot, *add<mode>3_dot2): New.
1092 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
1094 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1097 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
1100 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1103 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1104 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
1105 to "b". Increase length.
1106 (splitters for these): Split to cmp+addi instead of addic.
1108 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1111 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
1112 (macho_low_di): Ditto.
1113 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
1114 (tocref<mode>): Ditto.
1116 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
1117 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
1118 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
1119 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
1121 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
1124 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
1125 (rs6000_md_asm_clobbers): New function.
1127 2014-12-10 Felix Yang <felix.yang@huawei.com>
1129 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
1130 declaration of removed function.
1132 2014-12-10 Richard Biener <rguenther@suse.de>
1134 * tree-ssa-loop-im.c
1135 (move_computations_dom_walker::before_dom_children): Clear
1136 SSA_NAME_RANGE_INFO on moved stmts.
1138 2014-12-10 Martin Liska <mliska@suse.cz>
1140 * sreal.c (sreal::shift_right): New implementation
1141 for int64_t as m_sig.
1142 (sreal::normalize): Likewise.
1143 (sreal::to_int): Likewise.
1144 (sreal::operator+): Likewise.
1145 (sreal::operator-): Likewise.
1146 (sreal::operator*): Likewise.
1147 (sreal::operator/): Likewise.
1148 (sreal::signedless_minus): Removed.
1149 (sreal::signedless_plus): Removed.
1150 (sreal::debug): const keyword is added.
1151 * sreal.h (sreal::operator<): New implementation
1152 for int64_t as m_sig.
1153 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
1156 2014-12-10 Martin Liska <mliska@suse.cz>
1158 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
1159 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
1160 replaces loop based on precomputed number of non-debug statements.
1162 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
1164 * config/linux.c (linux_has_ifunc_p): Remove.
1165 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
1167 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
1169 * contrib/check_GNU_style.sh (col): Got rid of cut operation
1170 from the pipe chain and instead added cut inside awk command.
1172 2014-12-10 Richard Biener <rguenther@suse.de>
1174 PR tree-optimization/64191
1175 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
1176 mark clobbers as necessary.
1177 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
1179 2014-12-10 Jakub Jelinek <jakub@redhat.com>
1182 * config/i386/sse.md (vec_dupv4sf): Move after
1183 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
1184 (*vec_dupv4si, *vec_dupv2di): Likewise.
1185 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
1186 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
1188 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
1189 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
1191 * config/i386/i386.c (enum ix86_builtins): Remove
1192 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
1193 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
1194 IX86_BUILTIN_PBROADCASTQ512_MEM.
1195 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
1196 __builtin_ia32_pbroadcastq256_gpr_mask and
1197 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
1198 regardless of OPTION_MASK_ISA_64BIT.
1199 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
1200 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
1201 builtins regardless of whether TARGET_64BIT is defined or not.
1202 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
1203 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
1206 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
1207 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
1209 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1212 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
1214 2014-12-10 Marek Polacek <polacek@redhat.com>
1216 PR tree-optimization/61686
1217 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
1220 2014-12-10 Kito Cheng <kito@0xlab.org>
1222 * doc/libgcc.texi: Update text to match implementation in
1225 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
1227 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
1228 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
1229 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
1232 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1235 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
1238 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1241 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
1242 for BUILT_IN_POW when flag_errno_math is present.
1244 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
1246 * lto-wrapper.c (compile_offload_image): Start processing in_argv
1247 from 0 instead of 1.
1248 (run_gcc): Put offload objects into offload_argv, put LTO objects and
1249 possible preceding arguments into lto_argv.
1250 Pass offload_argv to compile_images_for_offload_targets instead of argv.
1251 Use lto_argv for LTO recompilation instead of argv.
1253 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1255 * doc/install.texi: Describe --with-aix-soname option.
1257 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1259 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
1261 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1264 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
1266 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
1268 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
1269 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
1270 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
1271 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
1272 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
1273 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
1274 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
1275 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
1276 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
1277 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
1278 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
1279 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
1280 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
1281 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
1282 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
1284 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
1285 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
1286 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
1287 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
1288 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
1289 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
1290 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
1291 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
1292 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
1293 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
1294 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
1295 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
1296 to __aarch64_vdup_lane_any.
1297 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
1298 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
1299 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
1300 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1301 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1302 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1303 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1304 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1305 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1306 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1307 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1308 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1309 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1310 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1311 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1312 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1313 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1314 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1315 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1316 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1317 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1318 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1319 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1320 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1321 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1322 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1323 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1324 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1325 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1326 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1327 __aarch64_vget_lane_any.
1329 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1332 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1333 message for SIMD_ARG_CONSTANT.
1335 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1338 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1339 TYPES_BINOPV): Delete.
1340 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1341 AARCH64_SIMD_PATTERN_START.
1342 (aarch64_init_simd_builtins): Register
1343 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1344 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1345 AARCH64_SIMD_PATTERN_START.
1347 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1348 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1350 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1351 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1352 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1353 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1354 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1355 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1356 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1357 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1359 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1362 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1364 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1365 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1366 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1367 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1369 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1370 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1371 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1372 __aarch64_vset_lane_any rather than vset_lane_xxx.
1374 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1376 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1377 earlyclobbering result operand.
1379 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1380 Remove final qualifier_internal.
1381 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1383 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1385 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1387 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1389 (aarch64_reassociation_width): New function.
1390 (generic_tunings): Add reassociation tuning parameters.
1391 (cortexa53_tunings): Likewise.
1392 (cortexa57_tunings): Likewise.
1393 (thunderx_tunings): Likewise.
1395 2014-12-09 Andrew Pinski <apinski@cavium.com>
1396 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1398 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1399 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1400 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1402 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1405 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1407 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1408 implementation into a new overloaded variant taking a
1410 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1412 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1413 this function, taking a dump_file_info *.
1415 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1419 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1421 PR rtl-optimization/64037
1422 * combine.c (setup_incoming_promotions): Pass the argument
1423 before any promotions happen to promote_function_mode.
1425 2014-12-09 Richard Biener <rguenther@suse.de>
1427 PR tree-optimization/64193
1428 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1429 and valueize the VUSE before looking up the def stmt.
1430 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1431 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1432 to walk_non_aliased_vuses.
1433 (vn_reference_lookup): Likewise.
1434 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1435 callback to walk_non_aliased_vuses.
1437 2014-12-09 Richard Biener <rguenther@suse.de>
1440 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1442 2014-12-09 Richard Biener <rguenther@suse.de>
1444 PR tree-optimization/64191
1445 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1446 not relevant (nor are their uses).
1448 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1450 * lto/lto-partition.c (privatize_symbol_name): Correctly
1451 privatize instrumentation clones.
1453 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1455 * lto-cgraph.c (input_cgraph_1): Don't break existing
1456 instrumentation clone references.
1457 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1458 instrumented_version references appropriately.
1460 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1463 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1464 between nodes sharing assembler name.
1466 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1469 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1470 constant moves if -mupper-regs-df.
1472 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1474 (movtd_64bit_nodm): Likewise.
1475 (mov<mode>_32bit, FMOVE128 case): Likewise.
1477 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1479 * simplify-rtx.c (simplify_relational_operation_1): Handle
1480 simplification identities for BICS patterns.
1482 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1484 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1486 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1489 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1490 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1491 TARGET_TOC. Always use rs6000_emit_move.
1493 2014-12-08 Mark Wielaard <mjw@redhat.com>
1496 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1498 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1501 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1503 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1506 * cgraph.h (xstrdup_for_dump): New function.
1507 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1508 within fprintf with xstrdup_for_dump.
1509 (cgraph_edge::make_speculative): Likewise.
1510 (cgraph_edge::resolve_speculation): Likewise.
1511 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1512 (cgraph_node::dump): Likewise.
1513 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1514 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1515 * ipa-inline.c (report_inline_failed_reason): Likewise.
1516 (want_early_inline_function_p): Likewise.
1517 (edge_badness): Likewise.
1518 (update_edge_key): Likewise.
1519 (flatten_function): Likewise.
1520 (inline_always_inline_functions): Likewise.
1521 * ipa-profile.c (ipa_profile): Likewise.
1522 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1523 (ipa_make_edge_direct_to_target): Likewise.
1524 (remove_described_reference): Likewise.
1525 (propagate_controlled_uses): Likewise.
1526 * ipa-utils.c (ipa_merge_profiles): Likewise.
1528 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1531 * ipa-polymorphic-call.c
1532 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1534 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1536 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1538 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1541 2014-12-08 Felix Yang <felix.yang@huawei.com>
1542 Haijian Zhang <z.zhanghaijian@huawei.com>
1543 Jiji Jiang <jiangjiji@huawei.com>
1544 Pengfei Sui <suipengfei@huawei.com>
1546 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1548 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1549 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1550 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1551 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1552 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1553 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1554 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1555 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1556 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1557 vrsubhn_high_u64): Likewise.
1558 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1559 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1560 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1561 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1562 subhn2, rsubhn2, urecpe): New builtins.
1564 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1566 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1567 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1569 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1571 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1572 (expand_vec_perm_vpermi2_vpshub2): New.
1573 (ix86_expand_vec_perm_const_1): Use it.
1574 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1575 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1577 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1579 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1580 return bounds for strchr calls.
1582 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1584 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1585 (chkp_build_returned_bound): Use zero bounds as
1586 returned by calls not returning bounds.
1588 2014-12-08 Richard Biener <rguenther@suse.de>
1590 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1591 (fold_builtin_1): Likewise.
1592 (fold_builtin_3): Likewise.
1593 (fold_builtin_varargs): Likewise.
1594 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1595 (fold_builtin_n): Adjust.
1596 (fold_builtin_stpcpy): Move to gimple-fold.c.
1597 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1598 (gimple_fold_builtin): Fold stpcpy here.
1600 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1602 * symtab.c (symtab_node::verify): Check for section attribute before
1603 asserting something isn't in a section and a comdat group.
1605 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1608 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1610 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1612 * compare-elim.c: Fix head comment.
1613 (conforming_compare): Remove redundant test.
1614 (can_eliminate_compare): New function extracted from...
1615 (before_dom_children): ...here. Use it, replace direct uses of
1616 flag_non_call_exceptions and tidy up.
1617 (maybe_select_cc_mode): Tidy up.
1619 2014-12-07 Felix Yang <felix.yang@huawei.com>
1620 Shanyao Chen <chenshanyao@huawei.com>
1622 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1624 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1626 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1627 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1628 vcntq_u8): Rewrite using builtin functions.
1630 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1632 * symtab.c (symtab_node::equal_address_to): New function.
1633 * cgraph.h (symtab_node::equal_address_to): Declare.
1634 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1635 * c-family/c-common.c: Refuse weaks for symbols that can not change
1638 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1640 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1642 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1643 Sebastian Pop <s.pop@samsung.com>
1644 Brian Rzycki <b.rzycki@samsung.com>
1646 PR tree-optimization/54742
1647 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1648 max-fsm-thread-paths): New.
1650 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1651 max-fsm-thread-paths): Documented.
1653 * tree-cfg.c (split_edge_bb_loc): Export.
1654 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1656 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1657 original value of cond when simplification fails.
1658 (fsm_find_thread_path): New.
1659 (fsm_find_control_statement_thread_paths): New.
1660 (thread_through_normal_block): Call find_control_statement_thread_paths.
1662 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1665 (duplicate_seme_region): New.
1666 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1667 calling duplicate_seme_region.
1669 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1671 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1674 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1675 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1677 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1680 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1681 non-NULL, call maybe_get_dominating_check on it even if g is
1684 2014-12-05 Jeff Law <law@redhat.com>
1686 * doc/md.texi: Note problems using function calls to determine
1687 insn lengths and point readers to a potential workaround.
1689 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1691 * combine.c (is_parallel_of_n_reg_sets)
1692 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1694 2014-12-05 Andrew Pinski <apinski@cavium.com>
1696 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1697 than CF10 so 2 is appended on the code.
1698 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1699 (bswap<mode>2): This so it matches for the optabs.
1701 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1703 * regrename.c (find_best_rename_reg): Rename to ...
1704 (find_rename_reg): This. Also add a parameter to skip tick check.
1705 * regrename.h: Likewise.
1706 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1708 2014-12-05 Martin Jambor <mjambor@suse.cz>
1711 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1712 from bits to bytes after checking they are byte-aligned.
1714 2014-12-05 Renlin Li <renlin.li@arm.com>
1716 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1717 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1718 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1721 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1723 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1724 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1725 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1726 from load_pair<mode>. New alternative to support int/fp
1727 registers in fp/int mode patterns.
1728 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1729 store_pairsf and store_pairdi.
1730 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1731 from store_pair<mode>. New alternative to support int/fp
1732 registers in fp/int mode patterns.
1733 (*load_pair_extendsidi2_aarch64): New pattern.
1734 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1735 (aarch64-ldpstp.md): Include.
1736 * config/aarch64/aarch64-ldpstp.md: New file.
1737 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1739 (extract_base_offset_in_addr): New.
1740 (aarch64_operands_ok_for_ldpstp): New.
1741 (aarch64_operands_adjust_ok_for_ldpstp): New.
1742 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1743 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1744 (fusion_load_store): New functon.
1745 (extract_base_offset_in_addr): New function.
1746 (aarch64_gen_adjusted_ldpstp): New function.
1747 (aarch64_sched_fusion_priority): New function.
1748 (aarch64_operands_ok_for_ldpstp): New function.
1749 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1751 2014-12-05 Olivier Hainque <hainque@adacore.com>
1753 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1754 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1755 DWARF_REG_TO_UNWIND_COLUMN.
1757 2014-12-05 Olivier Hainque <hainque@adacore.com>
1759 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1760 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1761 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1762 account for dwarf register spans.
1764 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1767 * config/i386/i386.md (*jcc_1_bnd): New.
1770 (*jcc_1): Remove bnd prefix.
1774 2014-12-05 Renlin Li <renlin.li@arm.com>
1776 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1778 (aarch64_override_options): Use selected_cpu's tuning.
1780 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1782 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1783 alignment to section name. Increase default alignment to word.
1785 2014-12-05 Martin Jambor <mjambor@suse.cz>
1787 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1788 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1789 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1791 (redirect_edge_duplicating_thunks): Turned into edge method
1792 redirect_callee_duplicating_thunks.
1793 (cgraph_node::expand_all_artificial_thunks): New method.
1794 (create_clone): Call expand_all_artificial_thunks.
1795 * ipa-cp.c (perhaps_add_new_callers): Call
1796 redirect_callee_duplicating_thunks instead of redirect_callee.
1797 Also call expand_all_artificial_thunks.
1799 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1802 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1805 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1807 * diagnostic.h (diagnostic_expand_location): New inline function.
1808 * diagnostic.c (diagnostic_build_prefix): Use it.
1809 (diagnostic_show_locus): Likewise.
1811 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1814 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1815 * configure: Regenerated.
1817 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1819 * diagnostic.c (diagnostic_color_init): New.
1820 * diagnostic.h: Declare.
1821 * gcc.c (driver::global_initializations): Use it.
1822 (driver_handle_option): Handle -fdiagnostics-color_.
1823 * toplev.c: Do not include diagnostic-color.h.
1824 (process_options): Do not initialize color diagnostics here.
1825 * common.opt (fdiagnostics-color=): Add Driver.
1826 * opts-global.c (init_options_once): Initialize color here.
1827 * opts.c (common_handle_option): Use diagnostics_color_init.
1828 * diagnostic-color.h: Fix comment.
1830 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1832 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1834 (buffer): Rename this variable to...
1837 (do_niy): Rename param from "buffer" to "pp".
1838 (dump_decl_name): Likewise.
1839 (dump_function_name): Likewise.
1840 (dump_function_declaration): Likewise.
1841 (dump_array_domain): Likewise.
1842 (dump_omp_clause): Likewise.
1843 (dump_omp_clauses): Likewise.
1844 (dump_location): Likewise.
1845 (dump_block_node): Likewise.
1846 (dump_generic_node): Likewise.
1847 (print_declaration): Likewise.
1848 (print_struct_decl): Likewise.
1849 (print_call_name): Likewise.
1850 (pretty_print_string): Likewise.
1851 (newline_and_indent): Likewise.
1853 (print_generic_decl): Update for renaming of "buffer" to
1855 (print_generic_stmt): Likewise.
1856 (print_generic_stmt_indented): Likewise.
1857 (print_generic_expr): Likewise.
1858 (maybe_init_pretty_print): Likewise.
1860 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1863 * tree-pretty-print.c: Eliminate include of <new>.
1864 (buffer): Convert this variable from a pretty_printer to a
1866 (initialized): Eliminate this variable in favor of the NULL-ness
1868 (print_generic_decl): Update for "buffer" becoming a pointer.
1869 (print_generic_stmt): Likewise.
1870 (print_generic_stmt_indented): Likewise.
1871 (print_generic_expr): Likewise.
1872 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1873 heap and using its non-NULL-ness to ensure idempotency.
1875 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1878 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1879 ipa_add_new_function on function_insertion_hook_holder being
1881 * ipa-reference.c (ipa_reference_c_finalize): Remove
1882 node_removal_hook_holder and node_duplication_hook_holder if
1883 they've been added to symtab.
1884 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1885 before cgraph_c_finalize so that the former can access "symtab".
1887 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1889 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1890 gphi_iterator, and use one in the example.
1891 * doc/gimple.texi (Tuple specific accessors): Add missing
1892 GIMPLE_GOTO section and menu item.
1893 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1894 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1895 description of removed functions.
1896 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1897 gimple_build_call_from_tree, gimple_build_call_vec,
1898 gimple_build_catch, gimple_build_cond,
1899 gimple_build_cond_from_tree, gimple_build_debug_bind,
1900 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1901 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1902 gimple_build_omp_continue, gimple_build_omp_critical,
1903 gimple_build_omp_for, gimple_build_omp_parallel,
1904 gimple_build_omp_sections, gimple_build_omp_single,
1905 gimple_build_return, gimple_build_resx, gimple_build_switch,
1906 gimple_build_try): Update return type within description to
1907 reflect changes in gimple.h to using gimple subclasses.
1908 (gimple_build_asm_vec): Update return type, params and
1910 (gimple_asm_ninputs): Update param.
1911 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1912 gimple_asm_set_input_op, gimple_asm_output_op
1913 gimple_asm_set_output_op, gimple_asm_clobber_op,
1914 gimple_asm_set_clobber_op, gimple_asm_string,
1915 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1916 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1917 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1918 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1919 gimple_call_return_type, gimple_call_set_chain,
1920 gimple_call_set_tail, gimple_call_tail_p,
1921 gimple_call_copy_skip_args, gimple_catch_types,
1922 gimple_catch_types_ptr, gimple_catch_handler,
1923 gimple_catch_set_types, gimple_catch_set_handler,
1924 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1925 gimple_cond_true_label, gimple_cond_set_true_label,
1926 gimple_cond_set_false_label, gimple_cond_false_label,
1927 gimple_cond_make_false, gimple_cond_make_true,
1928 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1929 gimple_eh_must_not_throw_fndecl,
1930 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1931 gimple_label_set_label, gimple_goto_set_dest,
1932 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1933 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1934 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1935 gimple_omp_continue_control_def,
1936 gimple_omp_continue_control_def_ptr,
1937 gimple_omp_continue_set_control_def,
1938 gimple_omp_continue_control_use,
1939 gimple_omp_continue_control_use_ptr,
1940 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1941 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1942 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1943 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1944 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1945 gimple_omp_parallel_data_arg_ptr,
1946 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1947 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1948 gimple_resx_set_region, gimple_return_retval,
1949 gimple_return_set_retval, gimple_switch_num_labels,
1950 gimple_switch_set_num_labels, gimple_switch_index,
1951 gimple_switch_set_index, gimple_switch_label,
1952 gimple_switch_set_label, gimple_switch_default_label,
1953 gimple_switch_set_default_label, gimple_try_set_eval,
1954 gimple_try_set_cleanup): Update initial param within description
1955 to reflect changes in gimple.h to using gimple subclasses.
1956 (Adding a new GIMPLE statement code): Update to reflect gimple
1957 statement subclassing.
1959 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1960 H.J. Lu <hongjiu.lu@intel.com>
1962 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1963 Linux/x86-64 linker supports PIE with copy reloc.
1964 * config.in: Regenerated.
1965 * configure: Likewise.
1967 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1968 pc-relative address for undefined, non-weak, non-function
1969 symbol reference in 64-bit PIE if linker supports PIE with
1972 * doc/sourcebuild.texi: Document pie_copyreloc target.
1974 2014-12-04 Marek Polacek <polacek@redhat.com>
1977 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1978 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1980 2014-12-04 Tobias Burnus <burnus@net-b.de>
1982 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1984 2014-12-04 Richard Biener <rguenther@suse.de>
1986 * doc/match-and-simplify.texi: Update for recent changes.
1988 2014-12-04 Martin Jambor <mjambor@suse.cz>
1990 * ipa-prop.h (ipa_alignment): New type.
1991 (ipa_jump_func): New field alignment.
1992 (ipcp_transformation_summary) New type.
1993 (ipcp_grow_transformations_if_necessary): Declare.
1994 (ipa_node_agg_replacements): Removed.
1995 (ipcp_transformations): Declare.
1996 (ipcp_get_transformation_summary): New function.
1997 (ipa_get_agg_replacements_for_node): Use it.
1998 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1999 (print_all_lattices): Also print alignment.
2000 (alignment_bottom_p): New function.
2001 (set_alignment_to_bottom): Likewise.
2002 (set_all_contains_variable): Also set alignment to bottom.
2003 (initialize_node_lattices): Likewise.
2004 (propagate_alignment_accross_jump_function): New function.
2005 (propagate_constants_accross_call): Call it.
2006 (ipcp_store_alignment_results): New function.
2007 (ipcp_driver): Call it.
2008 * ipa-prop.c (ipa_node_agg_replacements): Removed.
2009 (ipcp_transformations): New.
2010 (ipa_print_node_jump_functions_for_edge): Also print alignment.
2011 (ipa_set_jf_unknown): New function.
2012 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
2013 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
2014 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
2015 (ipcp_grow_transformations_if_necessary): New function.
2016 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
2017 (ipa_node_removal_hook): Likewise.
2018 (ipa_node_duplication_hook): Also duplicate alignment results.
2019 (ipa_write_jump_function): Also stream alignments.
2020 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
2022 (write_agg_replacement_chain): Renamed to
2023 write_ipcp_transformation_info, also stream alignments.
2024 (read_agg_replacement_chain): Renamed to
2025 read_ipcp_transformation_info, also stream alignments.
2026 (ipa_prop_write_all_agg_replacement): Renamed to
2027 ipcp_write_transformation_summaries. Stream always.
2028 (ipa_prop_read_all_agg_replacement): Renamed to
2029 ipcp_read_transformation_summaries.
2030 (ipcp_update_alignments): New function.
2031 (ipcp_transform_function): Call it, free also alignments.
2033 2014-12-04 Richard Biener <rguenther@suse.de>
2035 * gimple-fold.c (replace_stmt_with_simplification): Properly
2036 fail when maybe_push_res_to_seq fails.
2038 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2040 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
2042 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2044 * doc/install.texi: Remove mentions of cloog and ppl.
2045 * doc/invoke.texi: Likewise
2047 2014-12-04 Jakub Jelinek <jakub@redhat.com>
2050 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
2051 Handle COMPOUND_EXPR.
2053 2014-12-04 Richard Biener <rguenther@suse.de>
2055 * builtins.c (target_newline): Export.
2056 (target_percent_s_newline): Likewise.
2057 (fold_builtin_1): Do not fold printf functions here.
2058 (fold_builtin_2): Likewise.
2059 (fold_builtin_3): Likewise, do not fold strncat.
2060 (fold_builtin_strncat): Move to gimple-fold.c.
2061 (fold_builtin_printf): Likewise.
2062 * builtins.h (target_newline): Declare.
2063 (target_percent_s_newline): Likewise.
2064 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
2065 builtins.c and gimplify.
2066 (gimple_fold_builtin_printf): Likewise.
2067 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
2068 vprintf, printf_chk and vprintf_chk here.
2070 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
2072 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
2073 (floatunssidf2_internal): Same.
2074 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
2075 (rs6000_emit_int_cmove): Same.
2076 (rs6000_sched_reorder): Same.
2077 (altivec_expand_vec_perm_const): Same.
2078 (rs6000_expand_vec_perm_const_1): Same.
2080 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2082 PR rtl-optimization/64010
2083 * reload.c (push_reload): Before reusing a register contained
2084 in an operand as input reload register, ensure that it is not
2085 used in CALL_INSN_FUNCTION_USAGE.
2087 2014-12-03 Ulrich Drepper <drepper@gmail.com>
2089 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
2092 2014-12-03 Jakub Jelinek <jakub@redhat.com>
2094 * expmed.c (expand_mult): Use std::swap.
2097 * expmed.c (expand_widening_mult): Return const0_rtx if
2100 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
2101 (gimple_build_assign): Document the new overloads.
2103 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2106 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
2107 not create LO_SUM address for constant addresses if the type can
2108 go in Altivec registers.
2110 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2113 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
2114 (pp_flush): Flush only if flush_p.
2115 (pp_really_flush): New.
2116 * pretty-print.h (struct output_buffer): Add flush_p.
2117 (pp_really_flush): Declare.
2119 2014-12-03 Jakub Jelinek <jakub@redhat.com>
2121 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
2122 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
2123 (GENGTYPE_OBJS): New.
2124 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
2125 Remove explicit dependencies.
2126 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
2127 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
2128 instead of -DGENERATOR_FILE.
2129 (CFLAGS-errors.o): New.
2130 * gengtype.c: Instead of testing GENERATOR_FILE define, test
2131 HOST_GENERATOR_FILE. If defined, include config.h and define
2132 GENERATOR_FILE afterwards, otherwise include bconfig.h.
2133 * gengtype-parse.c: Likewise.
2134 * gengtype-state.c: Likewise.
2135 * gengtype-lex.l: Likewise.
2136 * errors.c: Likewise.
2138 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
2140 * config/epiphany/epiphany.c (epiphany_override_options):
2141 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
2142 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
2143 reverse_condition_maybe_unordered if flag_finite_math_only is set.
2145 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
2149 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
2150 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
2151 when architecture is older than ARMv7.
2153 2014-12-03 Richard Biener <rguenther@suse.de>
2155 * builtins.c (target_percent_c): Export.
2156 (fold_builtin_fprintf): Move to gimple-fold.c.
2157 (fold_builtin_2): Do not fold fprintf functions.
2158 (fold_builtin_3): Likewise.
2159 (fold_builtin_4): Remove.
2160 (fold_builtin_n): Do not call fold_builtin_4.
2161 * builtins.h (target_percent_c): Declare.
2162 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
2163 builtins.c and gimplify.
2164 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
2165 fprintf_chk and vfprintf_chk here.
2167 2014-12-03 Martin Jambor <mjambor@suse.cz>
2170 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
2171 type sizes before view_converting.
2173 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
2175 PR rtl-optimization/64151
2176 PR rtl-optimization/64156
2177 * ira-costs.c (scan_one_insn): Revert r218266.
2179 2014-12-03 Richard Biener <rguenther@suse.de>
2181 * builtins.c (fold_builtin_fpclassify): Change to take
2182 array of arguments instead of CALL_EXPR tree.
2183 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
2184 (fold_builtin_n): Dispatch to fold_builtin_varargs.
2185 (fold_call_expr): Always use fold_builtin_n.
2186 (fold_builtin_call_array): Change to not build the unfolded call,
2187 always use fold_builtin_n.
2188 (fold_builtin_varargs): Change to take array of arguments instead
2190 (fold_call_stmt): Always use fold_builtin_n.
2191 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
2192 * fold-const.c (fold_build_call_array_loc): Build the call
2193 if fold_builtin_call_array returned NULL_TREE.
2194 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
2195 a CALL_EXPR and use fold_builtin_call_array instead of
2198 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
2200 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
2201 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
2202 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
2203 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
2204 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
2205 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
2206 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
2207 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
2208 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
2209 Change VDQ to VDQ_I.
2211 (mul<mode>3): Change VDQM to VDQ_BHSI.
2212 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
2213 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
2214 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
2216 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
2217 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
2218 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
2219 Change VDW to VD_BHSI.
2220 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
2221 Change VDIC to VD_BHSI.
2223 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
2224 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
2225 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
2227 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
2228 VDIC, VDQQHS): Remove.
2229 (Vwtype): Update comment (changing VDW to VD_BHSI).
2231 2014-12-03 Richard Biener <rguenther@suse.de>
2234 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
2235 * match.pd: ... here as patterns.
2237 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
2239 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
2240 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
2241 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
2244 2014-12-03 Tom de Vries <tom@codesourcery.com>
2246 PR rtl-optimization/63957
2247 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
2248 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
2250 (get_call_reg_set_usage): Same.
2251 * lra-assigns.c (lra_assign): Same.
2252 * lra-constraints.c (need_for_call_save_p): Same.
2253 * lra-lives.c (process_bb_lives): Same.
2254 * lra.c (lra): Same.
2255 * calls.c (expand_call): Same.
2256 (emit_library_call_value_1): Same.
2257 * config/arm/arm.c (arm_option_override): Same.
2258 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
2260 * target.def (call_fusage_contains_non_callee_clobbers): Replace
2261 fuse-caller-save with fipa-ra.
2262 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
2265 2014-12-03 Yury Gribov <y.gribov@samsung.com>
2267 * sanopt.c (maybe_get_single_definition): New function.
2268 (maybe_get_dominating_check): Ditto.
2269 (can_remove_asan_check): Ditto.
2270 (struct tree_map_traits): New struct.
2271 (struct sanopt_ctx): Use custom traits for asan_check_map.
2272 (maybe_optimize_ubsan_null_ifn): Move code to
2273 maybe_get_dominating_check.
2274 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
2275 into account when optimizing.
2276 (sanopt_optimize_walker): Optimize ASan checks even when
2279 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
2281 * config/i386/constraints.md (Yr): New.
2282 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
2283 (REG_CLASS_NAMES): Likewise.
2284 (REG_CLASS_CONTENTS): Likewise.
2285 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
2286 which use only NO_REX_SSE_REGS.
2287 (vec_set<mode>_0): Likewise.
2288 (*vec_setv4sf_sse4_1): Likewise.
2289 (sse4_1_insertps): Likewise.
2290 (*sse4_1_extractps): Likewise.
2291 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
2292 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
2293 (*sse4_1_<code><mode>3<mask_name>): Likewise.
2294 (*sse4_1_<code><mode>3): Likewise.
2295 (*sse4_1_eqv2di3): Likewise.
2296 (sse4_2_gtv2di3): Likewise.
2297 (*vec_extractv4si): Likewise.
2298 (*vec_concatv2si_sse4_1): Likewise.
2299 (vec_concatv2di): Likewise.
2300 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2301 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2302 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2303 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2304 (<sse4_1_avx2>_mpsadbw): Likewise.
2305 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2306 (<sse4_1_avx2>_pblendvb): Likewise.
2307 (sse4_1_pblendw): Likewise.
2308 (sse4_1_phminposuw): Likewise.
2309 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2310 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2311 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2312 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2313 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2314 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2315 (sse4_1_ptest): Likewise.
2316 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2317 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2318 * config/i386/subst.md (mask_prefix4): New.
2319 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2321 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2323 PR rtl-optimization/52714
2324 * combine.c (try_combine): Allow combining two insns into two
2325 new insns if at least one of those is a noop.
2327 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2329 * target.def (fusion_priority): Wrap code with @smallexample.
2330 * doc/tm.texi: Regenerated.
2332 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2334 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2337 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2339 * asan.c: (asan_finish_file): Use default priority for constructors
2342 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2345 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2346 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2348 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2351 * config/i386/i386.c (decide_alg): Stop only if there aren't
2352 any usable algorithms.
2354 2014-12-02 Tom de Vries <tom@codesourcery.com>
2356 PR rtl-optimization/63718
2357 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2360 2014-12-02 Richard Biener <rguenther@suse.de>
2362 * match.pd: When combining divisions exclude the degenerate
2363 case involving INT_MIN from overflow handling.
2365 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2367 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2369 2014-12-02 Martin Jambor <mjambor@suse.cz>
2372 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2373 (cgraph_edge_brings_value_p): New parameter dest, use
2374 same_node_or_its_all_contexts_clone_p and check availability.
2375 (cgraph_edge_brings_value_p): Likewise.
2376 (get_info_about_necessary_edges): New parameter dest, pass it to
2377 cgraph_edge_brings_value_p. Update caller.
2378 (gather_edges_for_value): Likewise.
2379 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2380 both the destination and availability.
2382 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2385 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2386 using post-reload splitter. Use peephole2 pass instead.
2387 (call_value_osf_tlsldm): Ditto.
2388 (TLS_CALL): New int iterator.
2389 (tls): New int attribute.
2390 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2391 and call_value_tlsldm using TLS_CALL int iterator.
2393 2014-12-02 Richard Biener <rguenther@suse.de>
2394 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2396 * genmatch.c: Include hash-set.h.
2397 (fatal_at): Add source_location overload.
2398 (parser::record_operlist): New method.
2399 (parser::push_simplify): Likewise.
2400 (parser::oper_lists_set): New member.
2401 (parser::oper_lists): Likewise.
2402 (parser::parse_operation): Record seen operator list references.
2403 (parser::parse_c_expr): Likewise.
2404 (parser::parse_simplify): Init oper_lists_set and oper_lists
2405 and use push_simplify.
2406 (parser::parser): Init oper_lists_set and oper_lists.
2408 2014-12-02 Richard Biener <rguenther@suse.de>
2410 * match.pd: Restrict division combining to trunc_div and
2413 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2415 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2416 Remove NULL last argument from create_tmp_var calls.
2417 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2418 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2419 * config/i386/i386.c (add_condition_to_bb,
2420 ix86_atomic_assign_expand_fenv): Likewise.
2421 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2422 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2423 * config/aarch64/aarch64-builtins.c
2424 (aarch64_atomic_assign_expand_fenv): Likewise.
2425 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2427 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2428 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2429 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2431 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2432 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2433 the order of first two arguments.
2434 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2435 Likewise. Remove last NULL_TREE argument.
2437 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2439 PR rtl-optimization/59278
2440 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2442 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2444 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2446 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2448 * combine.c (is_parallel_of_n_reg_sets): New function.
2449 (can_split_parallel_of_n_reg_sets): New function.
2450 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2451 two insns if possible.
2453 2014-12-01 Tobias Burnus <burnus@net-b.de>
2454 Jack Howarth <howarth@bromo.med.uc.edu>
2457 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2459 * doc/install.texi (ISL): Permit ISL 0.14.
2460 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2461 Conditionally use ISL 0.13+ functions.
2462 * graphite-interchange.c: Make 'extern "C"' conditional.
2463 * graphite-isl-ast-to-gimple.c: Ditto.
2464 * graphite-poly.c: Ditto.
2465 * graphite-sese-to-poly.c: Ditto.
2466 * config.in: Regenerate.
2467 * gcc/configure: Regenerate.
2469 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2471 * combine.c (distribute_links): Handle multiple SETs.
2473 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2475 * combine.c (struct insn_link): New field `regno'.
2476 (alloc_insn_link): New parameter `regno'. Use it.
2477 (find_single_use): Check the new field.
2478 (can_combine_def_p, can_combine_use_p): New functions. Split
2480 (create_log_links): ... here. Correct data type of `regno'.
2481 Adjust call to alloc_insn_link.
2482 (adjust_for_new_dest): Find regno, use it in call to
2484 (try_combine): Check reg_used_between_p when combining a PARALLEL
2485 as earlier insn. Adjust call to alloc_insn_link.
2486 (distribute_links): Check the new field.
2488 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2491 * real.c (real_from_string): Add missing mpfr_clear.
2493 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2496 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2497 release of stmts by converting it to an auto_vec.
2499 2014-12-01 Richard Biener <rguenther@suse.de>
2501 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2502 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2503 bootstrap with old GCC.
2504 (generic-match.o-warn): Likewise.
2506 2014-12-01 Richard Biener <rguenther@suse.de>
2508 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2509 Properly handle FIXED_CST shifts by INTEGER_CST.
2510 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2511 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2512 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2513 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2514 (fold_binary_loc): ... here. Call const_binop overload
2517 2014-12-01 Marek Polacek <polacek@redhat.com>
2518 Jakub Jelinek <jakub@redhat.com>
2521 * ubsan.c (instrument_object_size): Stop searching if the base
2522 occurs in abnormal phi.
2524 2014-12-01 Marek Polacek <polacek@redhat.com>
2527 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2529 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2531 * gimple.h (gimple_build_assign_stat): Remove prototype.
2532 (gimple_build_assign): Remove define. Add overload prototypes
2533 with tree lhs and either a tree rhs, or enum tree_code and
2534 1, 2 or 3 tree operands.
2535 * gimple.c (gimple_build_assign_stat): Renamed to...
2536 (gimple_build_assign): ... this. Add overloads with
2537 enum tree_code and 1, 2 or 3 tree operands.
2538 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2539 Rename the 3 operand overload to ...
2540 (gimple_build_assign_1): ... this. Make it static inline.
2541 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2542 instead of gimple_build_assign_with_ops, swap the order of first
2543 two arguments and adjust formatting where necessary.
2544 * tree-vect-slp.c (vect_get_constant_vectors,
2545 vect_create_mask_and_perm): Likewise.
2546 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2547 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2548 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2549 * tsan.c (instrument_builtin_call): Likewise.
2550 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2551 chkp_generate_extern_var_bounds): Likewise.
2552 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2553 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2554 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2555 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2556 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2557 gimple_mod_subtract): Likewise.
2558 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2559 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2560 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2561 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2562 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2563 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2564 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2565 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2566 adjust_bool_pattern_cast, adjust_bool_pattern,
2567 vect_recog_bool_pattern): Likewise.
2568 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2569 insert_initializers, introduce_cast_before_cand,
2570 replace_one_candidate): Likewise.
2571 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2572 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2573 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2575 * tree-tailcall.c (adjust_return_value_with_ops,
2576 update_accumulator_with_ops): Likewise.
2577 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2578 * tree-ssa-reassoc.c (build_and_add_sum,
2579 optimize_range_tests_to_bit_test, update_ops,
2580 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2581 negate_value, repropagate_negates, attempt_builtin_powi,
2582 reassociate_bb): Likewise.
2583 * tree-vect-loop.c (vect_is_simple_reduction_1,
2584 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2586 * ipa-split.c (split_function): Likewise.
2587 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2588 abs_replacement, neg_replacement): Likewise.
2589 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2590 * tree-vrp.c (simplify_truth_ops_using_ranges,
2591 simplify_float_conversion_using_ranges,
2592 simplify_internal_call_using_ranges): Likewise.
2593 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2594 * tree-vect-generic.c (expand_vector_divmod,
2595 optimize_vector_constructor): Likewise.
2596 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2597 instrument_bool_enum_load): Likewise.
2598 * tree-ssa-loop-manip.c (create_iv): Likewise.
2599 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2600 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2601 expand_cilk_for, simd_clone_adjust): Likewise.
2602 * trans-mem.c (expand_transaction): Likewise.
2603 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2604 vect_setup_realignment, vect_permute_load_chain,
2605 vect_shift_permute_load_chain): Likewise.
2606 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2607 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2608 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2609 vectorizable_shift, vectorizable_operation, vectorizable_store,
2610 permute_vec_elements, vectorizable_load): Likewise.
2612 2014-12-01 Richard Biener <rguenther@suse.de>
2615 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2616 htab_hash_pointer to not break PCH.
2618 2014-12-01 Richard Biener <rguenther@suse.de>
2620 PR tree-optimization/15346
2621 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2622 add -Wno-unused-but-set-variable.
2623 * match.pd: Combine two successive divisions.
2625 2014-12-01 Richard Biener <rguenther@suse.de>
2628 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2630 * fold-const.c (fold_binary_loc): Remove transforms here.
2632 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2634 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2635 the return address in $18 ahead of passing arguments to FPRs.
2637 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2640 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2641 values in array domain.
2643 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2645 PR tree-optimization/63941
2646 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2647 DOM_BB has non-true predicate, conditionally set non-true predicate
2650 2014-12-01 Martin Jambor <mjambor@suse.cz>
2653 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2654 value of the argument to the type of the value in the condition.
2656 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2660 * config/sh/sh.c (sh_unspec_insn_p,
2661 sh_insn_operands_modified_between_p): New functions.
2662 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2663 are modified or if it has side effects, may trap or is volatile.
2665 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2667 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2668 create_tmp_reg): Add default NULL value to last argument.
2669 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2670 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2671 last argument from create_tmp_var_raw, create_tmp_var,
2672 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2673 * tree-ssa-strlen.c (get_string_length): Likewise.
2674 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2675 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2676 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2677 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2678 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2679 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2680 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2681 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2682 * tsan.c (instrument_expr, instrument_builtin_call,
2683 instrument_func_entry): Likewise.
2684 * varpool.c (add_new_static_var): Likewise.
2685 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2686 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2687 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2688 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2689 gimplify_omp_atomic, gimplify_expr): Likewise.
2690 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2691 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2692 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2693 vect_loop_versioning): Likewise.
2694 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2695 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2696 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2697 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2698 vect_recog_over_widening_pattern): Likewise.
2699 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2701 * tree-cfg.c (make_blocks): Likewise.
2702 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2704 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2705 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2707 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2708 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2709 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2710 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2711 * tree-ssa-reassoc.c (build_and_add_sum,
2712 optimize_range_tests_to_bit_test, update_ops,
2713 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2714 negate_value, repropagate_negates): Likewise.
2715 * tree-vect-loop.c (vect_is_simple_reduction_1,
2716 vect_create_epilog_for_reduction): Likewise.
2717 * ipa-split.c (split_function): Likewise.
2718 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2719 declare_return_variable, tree_function_versioning): Likewise.
2720 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2721 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2723 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2724 neg_replacement): Likewise.
2725 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2727 * tree-vrp.c (simplify_truth_ops_using_ranges,
2728 simplify_float_conversion_using_ranges,
2729 simplify_internal_call_using_ranges): Likewise.
2730 * tree-switch-conversion.c (emit_case_bit_tests,
2731 build_one_array, build_arrays, gen_def_assigns): Likewise.
2732 * gimple-fold.c (gimple_fold_builtin_memory_op,
2733 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2734 * tree-vect-generic.c (expand_vector_divmod,
2735 optimize_vector_constructor): Likewise.
2736 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2737 ubsan_expand_objsize_ifn, instrument_si_overflow,
2738 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2739 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2740 * tree-ssa-loop-manip.c (create_iv,
2741 tree_transform_and_unroll_loop): Likewise.
2742 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2743 lower_rec_input_clauses, lower_lastprivate_clauses,
2744 expand_parallel_call, expand_omp_for_static_chunk,
2745 expand_omp_atomic_pipeline, expand_omp_target,
2746 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2747 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2748 lower_depend_clauses, lower_omp_target, lower_omp_1,
2749 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2750 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2751 create_call_for_reduction_1, separate_decls_in_region,
2752 create_parallel_loop): Likewise.
2753 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2754 handle_scalar_deps_crossing_scop_limits): Likewise.
2755 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2756 expand_assign_tm, expand_call_tm, expand_transaction,
2757 ipa_tm_insert_gettmclone_call): Likewise.
2758 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2760 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2761 vectorizable_call, vectorizable_simd_clone_call,
2762 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2763 vectorizable_load): Likewise.
2765 2014-11-29 Tobias Burnus <burnus@net-b.de>
2766 Manuel López-Ibáñez <manu@gcc.gnu.org>
2768 * opt-functions.awk (lang_enabled_by): Support || for
2770 * optc-gen.awk: Ditto.
2771 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2774 2014-11-28 Mike Stump <mikestump@comcast.net>
2776 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2777 (bitmap_ior_and_compl): Likewise.
2779 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2782 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2785 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2788 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2789 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2791 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2793 PR rtl-optimization/64087
2794 * lra-lives.c (process_bb_lives): Add debug output.
2795 (lra_create_live_ranges): Don't remove dead insn on the second
2796 call of lra_create_live_ranges_1.
2798 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2800 PR rtl-optimization/64037
2801 * combine.c (setup_incoming_promotions): Pass the argument
2802 before any promotions happen to promote_function_mode.
2804 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2806 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2807 permutations to loads group of size 3.
2809 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2811 * config/arm/arm.md (copysignsf3): New pattern.
2812 (copysigndf3): Likewise.
2814 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2815 Ilya Verbin <ilya.verbin@intel.com>
2817 * omp-low.c (lower_omp_critical): Mark critical sections
2818 inside target functions as offloadable.
2820 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2822 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2823 file contains sections with LTO and offload IR, respectively.
2825 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2827 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2828 (symbol_table::compile): Set flag_generate_offload if there is something
2830 * common.opt (flag_generate_offload): New Variable declaration.
2831 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2832 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2833 flag_generate_offload is set.
2834 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2835 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2837 * toplev.c (compile_file): Emit LTO marker if offload info has been
2838 previously emitted. Do not emit lto_slim marker if
2839 flag_generate_offload is without flag_generate_lto.
2840 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2842 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2844 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2845 * config/arm/arm-tables.opt: Regenerate.
2846 * config/arm/arm-tune.md: Regenerate.
2847 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2848 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2851 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2853 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2854 Include cortex-a17.md.
2855 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2856 * config/arm/arm-cores.def (cortex-a17): New entry.
2857 * config/arm/arm-tables.opt: Regenerate.
2858 * config/arm/arm-tune.md: Regenerate.
2859 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2860 * config/arm/cortex-a17.md: New file.
2861 * config/arm/cortex-a17-neon.md: New file.
2862 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2863 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2865 2014-11-28 Richard Biener <rguenther@suse.de>
2868 * genmatch.c (dt_node::gen_kids_1): New function, split out
2869 from dt_node::gen_kids.
2870 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2871 (decision_tree::find_node): Treat DT_TRUE as barrier for
2872 node CSE on the same level.
2873 (dt_node::append_node): Do not keep DT_TRUE last.
2874 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2876 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2878 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2881 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2883 * config/i386/i386.md (preferred_for_size): New attribute
2884 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2885 attribute to conditionally disable alternative 1.
2886 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2887 and prefered_for_speed attributes to conditionally disable
2889 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2890 preferred_for_size attribute to conditionally disable
2891 alternatives 3 and 4.
2892 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2893 preferred_for_size and prefered_for_speed attributes to conditionally
2894 disable alternatives 3 and 4.
2895 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2897 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2899 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2901 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2904 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2906 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2908 2014-11-27 Martin Liska <mliska@suse.cz>
2909 David Malcolm <dmalcolm@redhat.com>
2911 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2913 (sem_function::bb_dict_test): Likewise.
2914 * ipa-icf.h: Likewise.
2916 2014-11-27 Richard Biener <rguenther@suse.de>
2919 * fold-const.c (const_unop): Re-instantiate missing condition
2920 before calling fold_abs_const.
2922 PR tree-optimization/64088
2923 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2924 the stmt break from the loop over use operands.
2926 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2928 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2930 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2931 (fold_builtin_cpu): Ditto.
2932 * doc/extend.texi: Documment it.
2934 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2937 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2938 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2939 not only if modifier is EXPAND_INITIALIZER, but whenever
2940 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2942 PR tree-optimization/64024
2943 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2944 field. Add simd_clone_info field.
2945 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2946 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2947 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2948 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2949 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2950 base and linear_step from analysis phase and use it during transform
2951 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2952 multiplied by linear_step.
2953 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2956 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2957 if it is CONSTANT_P other than CONST_INT.
2959 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2962 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2964 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2965 make it TARGET_EITHER.
2966 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2967 and move HFmode handling from consttable_4 to it.
2968 (consttable_4): Move HFmode handling to consttable_2 pattern.
2969 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2970 (consttable_2): Ditto.
2972 2014-11-27 Richard Biener <rguenther@suse.de>
2974 * tree-ssa-sccvn.c (try_to_simplify): Allow
2975 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2977 2014-11-27 Richard Biener <rguenther@suse.de>
2979 PR tree-optimization/64083
2980 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2981 forcibly mark loop for removal the wrong way.
2983 2014-11-27 Richard Biener <rguenther@suse.de>
2986 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2987 and instead return false when !fstrict-aliasing.
2989 2014-11-27 Richard Biener <rguenther@suse.de>
2991 PR tree-optimization/61634
2992 * tree-vect-slp.c: Include gimple-walk.h.
2993 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2994 down the SLP tree for one scalar statement.
2995 (vect_detect_hybrid_slp_1): New walker function.
2996 (vect_detect_hybrid_slp_2): Likewise.
2997 (vect_detect_hybrid_slp): Properly handle pattern statements
2998 in a pre-scan over all loop stmts.
3000 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3003 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3004 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3005 aarch64_convert_mode, aarch64_gen_ccmp_first,
3006 aarch64_gen_ccmp_next): New functions.
3007 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
3009 2014-11-26 Jakub Jelinek <jakub@redhat.com>
3011 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
3012 without -pie or -shared, error on -fsanitize=thread -static instead.
3014 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
3017 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
3018 (cgraph_node::function_or_virtual_thunk_symbol): New function.
3019 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
3020 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
3021 Add new optional parameter exclude_virtual_thunks.
3022 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
3023 optional parameter exclude_virtual_thunks.
3024 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
3025 (cgraph_node::set_pure_flag): Likewise.
3026 (cgraph_node::function_symbol): Simplified.
3027 (cgraph_node::function_or_virtual_thunk_symbol): New function.
3028 * ipa-pure-const.c (analyze_function): For virtual thunks set
3029 pure_const_state to IPA_NEITHER.
3030 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
3032 2014-11-26 Richard Biener <rguenther@suse.de>
3035 * tree-data-ref.c (split_constant_offset_1): Do not follow
3036 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3038 2014-11-26 Richard Biener <rguenther@suse.de>
3040 * fold-const.h (const_unop): Declare.
3041 (const_binop): Likewise.
3042 * fold-const.c (const_binop): Export overload that expects
3043 a type parameter and dispatches to fold_relational_const as well.
3044 Check both operand kinds for guarding the transforms.
3045 (const_unop): New function, with constant folding from fold_unary_loc.
3046 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
3047 Remove constant folding done there from the simplifications.
3048 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
3049 (fold_negate_expr): Remove dead code from the REAL_CST case.
3050 Avoid building garbage in the COMPLEX_CST case.
3051 * gimple-match-head.c (gimple_resimplify1): Dispatch to
3053 (gimple_resimplify2): Dispatch to const_binop.
3054 (gimple_simplify): Likewise.
3056 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
3059 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
3060 debug statement when searching for a new position for
3061 bounds load/creation statement.
3063 2014-11-26 Marek Polacek <polacek@redhat.com>
3066 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
3067 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
3068 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
3070 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
3073 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
3074 proper size for function_code bitfield.
3075 (pack_ts_function_decl_value_fields): Likewise.
3077 2014-11-21 Mark Wielaard <mjw@redhat.com>
3079 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
3080 * opts.c (common_handle_option): Accept -gdwarf-5.
3081 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
3082 DW_LANG_C_plus_plus_14.
3083 (lower_bound_default): Likewise. Plus DW_LANG_C11.
3084 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
3085 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
3086 (output_compilation_unit_header): Output at most a DWARFv4 header.
3087 (output_skeleton_debug_sections): Likewise.
3088 (output_line_info): Likewise.
3089 (output_aranges): Document header version number.
3091 2014-11-26 Richard Biener <rguenther@suse.de>
3093 * gimple-fold.c (get_symbol_constant_value): Allow all
3094 GIMPLE register type zero-constants.
3096 2014-11-26 Mark Wielaard <mjw@redhat.com>
3098 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
3099 function decl has TREE_THIS_VOLATILE.
3101 2014-11-26 Richard Biener <rguenther@suse.de>
3103 PR tree-optimization/62238
3104 * tree-predcom.c (ref_at_iteration): Unshare the expression
3105 before gimplifying it.
3106 (prepare_initializers_chain): Discard unused seq.
3108 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
3110 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
3113 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
3115 * ira-lives.c (process_bb_node_lives): Make code with conditional
3116 REAL_PIC_OFFSET_TABLE_REGNUM.
3118 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
3121 * ira-lives.c (process_bb_node_lives): Check and remove conflict
3122 of pic pseudo with pic hard reg.
3124 2014-11-25 Rohit <rohitarulraj@freescale.com>
3127 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
3128 added GCC hard register numbers for SPE high registers.
3130 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
3132 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
3133 before removing it, not after.
3135 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
3137 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
3140 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
3142 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
3145 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
3147 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
3148 (rest of file): Replace those with code resp. CODE.
3150 2014-11-25 Tom de Vries <tom@codesourcery.com>
3152 * tree-cfg.c (verify_sese): New function.
3153 (move_sese_region_to_fn): Call verify_sese.
3154 * tree-cfg.h (verify_sese): Declare.
3156 2014-11-25 Richard Biener <rguenther@suse.de>
3159 * lto-streamer-out.c (output_struct_function_base): Stream
3161 * lto-streamer-in.c (input_struct_function_base): Likewise.
3163 2014-11-25 Martin Liska <mliska@suse.cz>
3167 * sreal.c (sreal::operator+): Addition fixed.
3168 (sreal::signedless_plus): Negative numbers are
3170 (sreal::operator-): Subtraction is fixed.
3171 (sreal::signedless_minus): Negative numbers are
3173 * sreal.h (sreal::operator<): Equal negative numbers
3174 are compared correctly.
3175 (sreal::shift): New checking asserts are introduced.
3178 2014-11-25 Richard Biener <rguenther@suse.de>
3180 PR tree-optimization/61927
3181 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
3182 of group and pattern analysis to the one in GCC 4.8.
3184 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
3185 Jakub Jelinek <jakub@redhat.com>
3187 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
3189 * lto-wrapper.c (append_offload_options): Likewise.
3191 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
3193 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
3194 load the static chain if the call was originally direct.
3196 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
3199 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
3200 devirtualization is disabled.
3202 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3205 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3206 Altivec & -16 mask if the type is not valid for Altivec registers.
3207 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3208 reg) that occurs during push_reload processing.
3210 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3211 alternative for moving constant vectors which are easy altivec
3212 constants to GPRs. Set the length attribute each of the
3215 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
3216 work in progress patch was committed instead of the fixes for
3218 * config/rs6000/rs6000.c: Likewise.
3220 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3223 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
3224 and -fno-devirtualize more carefully.
3225 (can_remove_node_now_p): Update.
3227 2014-11-24 Andrew Pinski <apinski@cavium.com>
3230 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
3232 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3234 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
3236 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3238 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
3239 Refactor by combining switch statements and make arrays into scalars.
3241 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
3244 * dbxout.c: Include stringpool.h
3245 (dbxout_type) [default]: Ignore auto type.
3247 2014-11-24 Richard Biener <rguenther@suse.de>
3249 PR tree-optimization/63679
3250 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
3251 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
3252 to properly leave off at -1.
3253 (fully_constant_vn_reference_p): Generalize folding from
3254 constant initializers.
3255 (vn_reference_lookup_3): When looking through aggregate copies
3256 handle offsetted reads and try simplifying the result to
3258 * gimple-fold.h (fold_ctor_reference): Export.
3259 * gimple-fold.c (fold_ctor_reference): Likewise.
3261 2014-11-24 Petr Murzin <petr.murzin@intel.com>
3263 * simplify-rtx.c (simplify_ternary_operation): Simplify
3264 vec_merge (vec_duplicate (vec_select)).
3266 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3268 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
3269 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
3270 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
3272 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3274 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
3275 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
3276 (cortexa57_tunings): Likewise.
3277 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
3279 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3281 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
3282 in the not conditional jump case.
3283 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3284 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3286 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3288 * config/aarch64/aarch64.c: Include tm-constrs.h
3289 (AARCH64_FUSE_ADRP_ADD): Define.
3290 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
3291 (cortexa53_tunings): Likewise.
3292 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
3294 2014-11-24 Martin Liska <mliska@suse.cz>
3296 * ipa-inline.c (edge_badness): long is replaced by sreal
3297 as fibonacci_heap template type.
3298 (update_edge_key): Likewise.
3299 (inline_small_functions): Likewise.
3301 2014-11-24 Martin Liska <mliska@suse.cz>
3303 * predict.c (propagate_freq): More elegant sreal API is used.
3304 (estimate_bb_frequencies): Precomputed constants replaced by integer
3306 * sreal.c (sreal::normalize): New function.
3307 (sreal::to_int): Likewise.
3308 (sreal::operator+): Likewise.
3309 (sreal::operator-): Likewise.
3310 (sreal::signedless_plus): Likewise.
3311 (sreal::signedless_minus): Likewise.
3312 (sreal::operator/): Negative number support is added.
3313 * sreal.h: Definition of new functions added.
3314 (inline sreal operator<<): New function.
3315 (inline sreal operator>>): Likewise.
3317 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3319 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3321 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3322 (cortexa53_tunings): Likewise.
3323 (cortexa57_tunings): Likewise.
3324 (thunderx_tunings): Likewise.
3325 (aarch64_macro_fusion_p): New function.
3326 (aarch_macro_fusion_pair_p): Likewise.
3327 (TARGET_SCHED_MACRO_FUSION_P): Define.
3328 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3329 (AARCH64_FUSE_MOV_MOVK): Likewise.
3330 (AARCH64_FUSE_NOTHING): Likewise.
3332 2014-11-24 Martin Liska <mliska@suse.cz>
3335 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3336 with replace_key method.
3337 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3338 (fibonacci_heap::replace_key_data): Likewise.
3339 (fibonacci_heap::replace_key): New method that can even increment key,
3340 this operation costs O(log N).
3341 (fibonacci_heap::extract_min): New argument.
3342 (fibonacci_heap::delete_node): Likewise.
3344 2014-11-24 Richard Biener <rguenther@suse.de>
3346 PR tree-optimization/55334
3347 * function.h (struct function): Add last_clique member.
3348 * tree-inline.c (remap_dependence_clique): New function.
3349 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3350 (copy_tree_body_r): Likewise.
3351 (copy_cfg_body): Free dependence map.
3352 (copy_gimple_seq_and_replace_locals): Likewise.
3353 * tree-pretty-print.c (dump_generic_node): Dump
3355 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3356 to answer alias query.
3357 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3358 tree-pretty-print.h and gimple-walk.h.
3359 (struct variable_info): Add is_restrict_var flag and ruid
3361 (new_var_info): Initialize is_restrict_var.
3362 (make_constraint_from_restrict): Likewise.
3363 (create_variable_info_for): Exclude restricts from global vars
3365 (intra_create_variable_infos): But not those from parameters.
3366 (visit_loadstore): New function.
3367 (maybe_set_dependence_info): Likewise.
3368 (compute_dependence_clique): Likewise.
3369 (compute_may_aliases): Call compute_dependence_clique.
3370 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3372 (dr_may_alias_p): Use recorded dependence info to answer
3374 * tree-core.h (struct tree_base): Add clique, base struct in
3376 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3377 (MR_DEPENDENCE_BASE): Likewise.
3378 * tree-inline.h (dependence_hasher): New hash-map kind.
3379 (struct copy_body_data): Add dependence_map pointer.
3380 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3381 throwing away dependence info.
3382 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3383 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3385 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3388 * config/sh/sh_optimize_sett_clrt.cc
3389 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3390 of void. Abort at complex edges.
3391 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3394 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3397 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3399 * configure: Regenerated.
3400 * config.in: Regenerated.
3402 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3404 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3405 clones as having abstract origin used.
3406 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3408 (clone_inlined_nodes): Copy abstract originflag.
3409 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3410 abstract origin node.
3412 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3414 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3415 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3416 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3418 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3422 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3423 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3424 Adjust related comments throughout the file.
3426 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3430 * config/sh/sh.c (sh_is_logical_t_store_expr,
3431 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3432 (sh_split_movrt_negc_to_movt_xor): New function.
3433 (sh_find_set_of_reg): Move to ...
3434 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3435 to template function.
3436 (set_of_reg): Use rtx_insn* for insn member.
3437 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3438 rtx_insn* for insn argument.
3439 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3440 sequence using new sh_split_movrt_negc_to_movt_xor function.
3441 (movrt_xor): Allow also for SH2A.
3442 (*movt_movrt): Delete insns and splits.
3444 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3446 PR tree-optimization/60770
3447 * tree-sra.c (clobber_subtree): New function.
3448 (sra_modify_constructor_assign): Call it.
3450 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3453 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3455 (process_bb_lives): Rename dead_insn_p on remove_p
3456 and global_live_info_p on dead_insn_p. Calculate local live info
3457 unconditionally. Remove last argument in calls mark_regno_live and
3458 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3459 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3460 Return bool. Rename global_live_info_p on dead_insn_p. Return
3461 flag of live info change.
3462 (lra_create_live_ranges): New.
3464 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3468 * internal-fn.c (expand_arith_overflow_result_store,
3469 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3470 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3471 adjust arguments to those functions. Use unsignedp = true for
3472 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3474 PR tree-optimization/64006
3475 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3476 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3477 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3478 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3479 immediate uses would change their value ranges and return
3480 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3481 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3482 interesting for vrp.
3484 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3487 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3488 Altivec & -16 mask if the type is not valid for Altivec registers.
3489 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3490 reg) that occurs during push_reload processing.
3492 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3493 alternative for moving constant vectors which are easy altivec
3494 constants to GPRs. Set the length attribute each of the
3497 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3499 * configure.ac: When checking for MIPS .module support ensure that
3500 o32 FPXX is supported to avoid a second configure check.
3501 * configure: Regenerate.
3503 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3505 * config/aarch64/iterators.md (VS): New mode iterator.
3506 (vsi2qi): New mode attribute.
3508 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3509 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3510 * config/aarch64/aarch64-builtins.c
3511 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3513 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3516 * configure: Regenerated.
3518 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3520 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3522 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3524 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3525 OPTION_MASK_ISA_PCOMMIT_SET): New.
3526 (ix86_handle_option): Handle OPT_mpcommit.
3527 * config.gcc: Add pcommitintrin.h
3528 * config/i386/pcommitintrin.h: New file.
3529 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3530 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3531 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3533 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3534 (PTA_PCOMMIT): Define.
3535 (ix86_option_override_internal): Handle new option.
3536 (ix86_valid_target_attribute_inner_p): Add pcommit.
3537 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3538 (bdesc_special_args): Add __builtin_ia32_pcommit.
3539 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3540 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3541 (pcommit): New instruction.
3542 * config/i386/i386.opt: Add mpcommit.
3543 * config/i386/x86intrin.h: Include pcommitintrin.h.
3545 2014-11-20 Mark Wielaard <mjw@redhat.com>
3548 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3549 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3550 (darwin_override_options): Likewise.
3551 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3553 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3555 * dbxout.c (get_lang_number): Likewise.
3556 (dbxout_type): Likewise.
3557 (dbxout_symbol_location): Likewise.
3558 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3559 also for DW_LANG_{C,C99,ObjC}.
3560 (highest_c_language): New function.
3561 (gen_compile_unit_die): Call highest_c_language to merge LTO
3562 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3563 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3564 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3565 * langhooks.h (struct lang_hooks): Add version comment to name.
3566 (lang_GNU_C): New function declaration.
3567 (lang_GNU_CXX): Likewise.
3568 * langhooks.c (lang_GNU_C): New function.
3569 (lang_GNU_CXX): Likewise.
3570 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3572 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3574 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3575 OPTION_MASK_ISA_CLWB_SET): New.
3576 (ix86_handle_option): Handle OPT_mclwb.
3577 * config.gcc: Add clwbintrin.h.
3578 * config/i386/clwbintrin.h: New file.
3579 * config/i386/cpuid.h (bit_CLWB): Define.
3580 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3581 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3583 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3585 (ix86_option_override_internal): Handle new option.
3586 (ix86_valid_target_attribute_inner_p): Add clwb.
3587 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3588 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3589 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3590 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3591 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3592 (clwb): New instruction.
3593 * config/i386/i386.opt: Add mclwb.
3594 * config/i386/x86intrin.h: Include clwbintrin.h.
3596 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3598 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3599 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3600 (ix86_handle_option): Handle OPT_mavx512vbmi.
3601 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3602 * config/i386/avx512vbmiintrin.h: New file.
3603 * config/i386/avx512vbmivlintrin.h: Ditto.
3604 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3605 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3606 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3608 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3609 (PTA_AVX512VBMI): Define.
3610 (ix86_option_override_internal): Handle new options.
3611 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3612 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3613 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3614 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3615 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3616 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3617 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3618 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3619 IX86_BUILTIN_VPERMI2VARQI128.
3620 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3621 __builtin_ia32_vpmultishiftqb256_mask,
3622 __builtin_ia32_vpmultishiftqb128_mask,
3623 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3624 __builtin_ia32_vpermt2varqi512_maskz,
3625 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3626 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3627 __builtin_ia32_vpermt2varqi256_maskz,
3628 __builtin_ia32_vpermt2varqi128_mask,
3629 __builtin_ia32_vpermt2varqi128_maskz,
3630 __builtin_ia32_vpermi2varqi256_mask,
3631 __builtin_ia32_vpermi2varqi128_mask.
3632 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3633 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3634 * config/i386/i386.opt: Add mavx512vbmi.
3635 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3636 avx512vbmivlintrin.h.
3637 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3638 (VI1_AVX512VL): New iterator.
3639 (<avx512>_permvar<mode><mask_name>): Use it.
3640 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3641 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3642 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3643 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3644 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3645 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3646 (vpmultishiftqb<mode><mask_name>): Ditto.
3648 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3650 PR rtl-optimization/63952
3651 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3652 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3653 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3655 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3657 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3658 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3659 (ix86_handle_option): Handle OPT_mavx512ifma.
3660 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3661 * config/i386/avx512ifmaintrin.h: New file.
3662 * config/i386/avx512ifmaivlntrin.h: Ditto.
3663 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3664 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3666 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3668 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3669 (PTA_AVX512IFMA): Define.
3670 (ix86_option_override_internal): Handle new options.
3671 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3672 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3673 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3674 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3675 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3676 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3677 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3678 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3679 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3680 __builtin_ia32_vpmadd52luq512_maskz,
3681 __builtin_ia32_vpmadd52huq512_mask,
3682 __builtin_ia32_vpmadd52huq512_maskx,
3683 __builtin_ia32_vpmadd52luq256_mask,
3684 __builtin_ia32_vpmadd52luq256_maskz,
3685 __builtin_ia32_vpmadd52huq256_mask,
3686 __builtin_ia32_vpmadd52huq256_maskz,
3687 __builtin_ia32_vpmadd52luq128_mask,
3688 __builtin_ia32_vpmadd52luq128_maskz,
3689 __builtin_ia32_vpmadd52huq128_mask,
3690 __builtin_ia32_vpmadd52huq128_maskz,
3691 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3692 * config/i386/i386.opt: Add mavx512ifma.
3693 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3694 avx512ifmavlintrin.h.
3695 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3697 (VPMADD52): New iterator.
3698 (vpmadd52type): New attribute.
3699 (vpamdd52huq<mode>_maskz): New.
3700 (vpamdd52luq<mode>_maskz): Ditto.
3701 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3702 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3704 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3707 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3708 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3710 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3712 * config/mips/mips.c (mips_process_sync_loop): Place a
3713 nop in the delay slot of the branch likely instruction.
3714 (mips_output_sync_loop): Ensure mips_branch_likely is
3715 set before calling mips_output_sync_loop.
3716 (mips_sync_loop_insns): Likewise.
3718 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3721 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3722 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3725 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3727 Forward-port from 2014-10-30 4_9-branch r216934
3730 * config/avr/avr-protos.h (regmask): New inline function.
3731 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3732 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3733 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3734 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3735 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3736 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3737 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3738 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3739 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3740 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3741 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3742 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3743 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3746 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3749 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3750 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3752 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3754 * config/aarch64/aarch64-simd.md
3755 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3756 output mnemonic and operands.
3757 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3758 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3760 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3762 * config/i386/i386.c (ix86_option_override_internal): Increase
3763 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3765 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3768 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3769 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3770 replace for V16QI, V16HI and V32QI modes.
3771 (ix86_expand_vec_perm_const_1): Add new expand.
3773 2014-11-21 Nick Clifton <nickc@redhat.com>
3775 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3776 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3777 (rl78_expand_prologue): Save the ES register in interrupt handlers
3779 (rl78_expand_epilogue): Restore the ES register if necessary.
3780 (rl78_start_function): Mention if the function uses the ES
3782 (rl78_lo16): Record the use of the ES register.
3783 (transcode_memory_rtx): Likewise.
3785 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3787 PR tree-optimization/61773
3788 * tree-ssa-strlen.c (get_string_length): Don't assert
3789 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3792 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3793 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3794 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3796 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3798 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3799 HOST_WIDE_INT_M1U instead of ~0.
3800 (includes_rldicr_lshift_p): Likewise.
3802 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3804 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3805 we need to look into its operand to determine if it is a valid
3808 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3810 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3811 vaarg_p argument and create correct CFI info.
3812 (nds32_expand_prologue): Pass true or false to
3813 nds32_emit_stack_push_multiple function.
3815 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3817 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3818 as RTX_FRAME_RELATED_P rtx.
3820 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3822 * config/nds32/nds32.opt (march): Add help message.
3824 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3826 * tree-vrp.c (test_for_singularity): New parameter
3827 strict_overflow_p. Set *strict_overflow_p to true if signed
3828 overflow must be undefined for the return value to satisfy the
3830 (simplify_cond_using_ranges): Don't perform the simplification
3831 if it violates overflow rules.
3833 2014-11-20 Marek Polacek <polacek@redhat.com>
3835 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3837 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3839 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3840 condition would be removed due to undefined behaviour.
3842 2014-11-20 Andrew Pinski <apinski@cavium.com>
3846 * ipa-polymorphic-call.c (possible_placement_new):
3847 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3848 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3849 (extr_type_from_vtbl_ptr_store): Likewise.
3851 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3853 * config/rs6000/constraints.md: Avoid signed integer overflows.
3854 * config/rs6000/predicates.md: Likewise.
3855 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3856 (includes_rldic_lshift_p): Likewise.
3857 (includes_rldicr_lshift_p): Likewise.
3858 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3859 * loop-iv.c (determine_max_iter): Likewise.
3860 (iv_number_of_iterations): Likewise.
3861 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3862 * varasm.c (get_section_anchor): Likewise.
3864 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3867 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3868 expression to aarch64_simd_lane_bounds.
3869 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3871 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3872 call to aarch64_simd_lane_bounds.
3873 (aarch64_get_lanedi): Likewise.
3874 (aarch64_ld2_lane<mode>): Likewise.
3875 (aarch64_ld3_lane<mode>): Likewise.
3876 (aarch64_ld4_lane<mode>): Likewise.
3877 (aarch64_im_lane_boundsi): Likewise.
3878 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3879 parameter. Report calling function in error message if exp is non-NULL.
3881 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3884 * config/sh/sh.c: Use signed char for signed field.
3886 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3888 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3891 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3893 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3894 tree-scalar-evolution.c: Replace htab with hash_table.
3896 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3898 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3899 (lto_free_function_in_decl_state): Likewise.
3900 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3901 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3902 (lto_file_decl_data_num_ ## name ## s): Likewise.
3903 (struct lto_tree_ref_table): Remove.
3904 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3906 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3908 * hash-map.h (hash_map::iterator): New class.
3909 (hash_map::begin): New method.
3910 (hash_map::end): Likewise.
3911 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3912 replace splay_tree with hash_map.
3914 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3916 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3917 (hash_table::alloc_entries): new method.
3918 (hash_table::expand): Call alloc_entries.
3919 (hash_table::empty): Likewise.
3921 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3923 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3924 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3926 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3928 * doc/gty.texi: Document the new cache gty attribute.
3929 * gengtype.c (finish_cache_funcs): New function.
3930 (write_roots): Call gt_clear_cache on global variables with the cache
3932 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3933 * ggc.h (gt_clear_caches): New declaration.
3934 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3936 (gt_cleare_cache): New function.
3937 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3939 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3941 * combine.c (try_combine): Prefer to delete dead SETs inside
3942 a PARALLEL over keeping them.
3944 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3946 * combine.c (combine_validate_cost): Always print the insn costs
3949 2014-11-20 Richard Henderson <rth@redhat.com>
3952 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3953 for DECL_STATIC_CHAIN.
3955 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3957 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3959 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3960 aarch64_cannot_force_const_mem, aarch64_classify_address,
3961 aarch64_classify_symbolic_expression): Fixup call to
3962 aarch64_classify_symbol.
3963 (aarch64_classify_symbol): Add range-checking for
3964 symbol + offset addressing for tiny and small models.
3966 2014-11-20 Richard Biener <rguenther@suse.de>
3969 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3970 Guard with single-use operand 0.
3972 2014-11-20 Richard Biener <rguenther@suse.de>
3974 PR tree-optimization/63677
3975 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3976 (avail_exprs_stack): Make a vector of pairs.
3977 (struct hash_expr_elt): Replace stmt member with vop member.
3978 (expr_elt_hasher::equal): Simplify.
3979 (initialize_hash_element): Adjust.
3980 (initialize_hash_element_from_expr): Likewise.
3981 (dom_opt_dom_walker::thread_across_edge): Likewise.
3982 (record_cond): Likewise.
3983 (dom_opt_dom_walker::before_dom_children): Likewise.
3984 (print_expr_hash_elt): Likewise.
3985 (remove_local_expressions_from_table): Restore previous state
3987 (record_equivalences_from_stmt): Record &x + CST as constant
3988 &MEM[&x, CST] for further propagation.
3989 (vuse_eq): New function.
3990 (lookup_avail_expr): For loads use the alias oracle to see
3991 whether a candidate from the expr hash is usable.
3992 (avail_expr_hash): Do not hash VUSEs.
3994 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3997 * config/arm/arm.md (*movhi_insn): Use right formatting
4000 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
4003 * function.c (assign_parms): Move init of pic_offset_table_rtx
4005 * cfgexpand.c (expand_used_vars): ...here.
4007 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
4009 * tree.c (free_lang_data_in_type): If BINFO has no important
4010 information in it, set it to NULL.
4011 (get_binfo_at_offset): Do not walk fields, only bases.
4012 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
4014 * ipa-polymorphic-call.c (record_known_type): Likewise.
4016 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4019 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
4020 congruence_class_group *.
4022 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
4025 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
4026 Output "b" and "nb" suffix for FP mode.
4028 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
4031 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
4032 out DECL_FUNCTION_SPECIFIC_TARGET
4033 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
4034 in DECL_FUNCTION_SPECIFIC_TARGET.
4036 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4039 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
4041 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4044 * lra.c (lra): After creating live ranges in preparation for call
4045 to lra_inheritance, set live_p to true.
4047 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4050 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
4052 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
4054 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4057 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
4058 vec<> to auto_vec<> to fix a leak.
4060 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4063 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
4065 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4068 * ira-costs.c (ira_costs_c_finalize): New function.
4069 * ira.h (ira_costs_c_finalize): New prototype.
4070 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
4072 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4075 * ipa-reference.c (ipa_reference_c_finalize): Release
4076 optimization_summary_obstack.
4078 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4081 * toplev.c (toplev::finalize): Free opts_obstack.
4083 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4086 * toplev.c (toplev::finalize): Clean up save_decoded_options.
4088 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4092 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
4093 local bbs_in_hot_partition from vec<> to auto_vec<>.
4095 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4098 * config/alpha/alpha.c (alpha_option_override): Remove static from
4099 "handle_trap_shadows_info" and "align_insns_info".
4100 * config/i386/i386.c (ix86_option_override): Likewise for
4101 "insert_vzeroupper_info".
4102 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
4103 "rl78_devirt_info" and "rl78_move_elim_info".
4104 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
4105 "analyze_swaps_info".
4106 * context.c (gcc::context::~context): New.
4107 * context.h (gcc::context::~context): New.
4108 * dumpfile.c (dump_files): Add "false" initializers for new field
4110 (gcc::dump_manager::~dump_manager): New.
4111 (gcc::dump_manager::dump_register): Add param "take_ownership".
4112 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
4113 (gcc::dump_manager::~dump_manager): New.
4114 (gcc::dump_manager::dump_register): Add param "take_ownership".
4115 * pass_manager.h (gcc::pass_manager::operator delete): New.
4116 (gcc::pass_manager::~pass_manager): New.
4117 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
4118 new "owns_strings" argument to dump_register.
4119 (pass_manager::operator delete): New.
4120 (delete_pass_tree): New function.
4121 (pass_manager::~pass_manager): New.
4122 * statistics.c (statistics_early_init): Pass "false" to
4123 new "owns_strings" argument to dump_register.
4124 * toplev.c (toplev::finalize): Clean up the context and thus the
4127 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4130 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
4131 obstack_free when cleaning up valid_mode_changes_obstack.
4133 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4136 * opts.c (finalize_options_struct): New.
4137 * opts.h (finalize_options_struct): New.
4138 * toplev.c (toplev::finalize): Call finalize_options_struct
4139 on global_options and global_options_set.
4141 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4142 Jakub Jelinek <jakub@redhat.com>
4146 * gcc.c (process_command): Don't check for input/output
4147 filename equality if output is HOST_BIT_BUCKET.
4148 * toplev.c (init_asm_output): Likewise.
4150 2014-11-19 David Malcolm <dmalcolm@redhat.com>
4152 Merger of git branch "gimple-classes-v2-option-3".
4154 * ChangeLog.gimple-classes: New.
4156 * coretypes.h (struct gcond): Add forward decl.
4157 (struct gdebug): Likewise.
4158 (struct ggoto): Likewise.
4159 (struct glabel): Likewise.
4160 (struct gswitch): Likewise.
4161 (struct gassign): Likewise.
4162 (struct gasm): Likewise.
4163 (struct gcall): Likewise.
4164 (struct gtransaction): Likewise.
4165 (struct greturn): Likewise.
4166 (struct gbind): Likewise.
4167 (struct gcatch): Likewise.
4168 (struct geh_filter): Likewise.
4169 (struct geh_mnt): Likewise.
4170 (struct geh_else): Likewise.
4171 (struct gresx): Likewise.
4172 (struct geh_dispatch): Likewise.
4173 (struct gphi): Likewise.
4174 (struct gtry): Likewise.
4175 (struct gomp_atomic_load): Likewise.
4176 (struct gomp_atomic_store): Likewise.
4177 (struct gomp_continue): Likewise.
4178 (struct gomp_critical): Likewise.
4179 (struct gomp_for): Likewise.
4180 (struct gomp_parallel): Likewise.
4181 (struct gomp_task): Likewise.
4182 (struct gomp_sections): Likewise.
4183 (struct gomp_single): Likewise.
4184 (struct gomp_target): Likewise.
4185 (struct gomp_teams): Likewise.
4187 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
4188 for renaming of gimple subclasses.
4190 * gdbhooks.py: Update.
4192 * gimple-iterator.c (gsi_for_phi): New.
4193 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4195 * gimple-iterator.h (struct gphi_iterator): New subclass of
4196 gimple_stmt_iterator.
4197 (gsi_for_phi): New prototype.
4198 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4200 (gsi_next_nonvirtual_phi): Strengthen param from
4201 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
4204 * gsstruct.def: Update for renamings of classes.
4206 * gimple.c (gimple_build_return): Strengthen return type from
4207 gimple to greturn *.
4208 (gimple_call_reset_alias_info): Strengthen param to gcall *.
4209 (gimple_build_call_1): Strengthen return type from gimple to
4211 (gimple_build_call_vec): Likewise.
4212 (gimple_build_call): Likewise.
4213 (gimple_build_call_valist): Likewise.
4214 (gimple_build_call_internal_1): Likewise.
4215 (gimple_build_call_internal): Likewise.
4216 (gimple_build_call_internal_vec): Likewise.
4217 (gimple_build_call_from_tree): Likewise.
4218 (gimple_build_assign_stat): Strengthen return type from gimple to
4220 (gimple_build_assign_with_ops): Likewise.
4221 (gimple_build_assign_with_ops): Likewise.
4222 (gimple_build_cond): Strengthen return type from gimple to
4224 (gimple_build_cond_from_tree): Likewise.
4225 (gimple_cond_set_condition_from_tree): Require a gcond *.
4226 (gimple_build_label): Strengthen return type from gimple to
4228 (gimple_build_goto): Strengthen return type from gimple to
4230 (gimple_build_bind): Strengthen return type from gimple to
4232 (gimple_build_asm_1): Strengthen return type from gimple to
4234 (gimple_build_asm_vec): Likewise.
4235 (gimple_build_catch): Strengthen return type from gimple to
4237 (gimple_build_eh_filter): Strengthen return type from gimple to
4239 (gimple_build_eh_must_not_throw): Strengthen return type from
4240 gimple to geh_mnt *.
4241 (gimple_build_eh_else): Strengthen return type from gimple to
4243 (gimple_build_try): Update for renaming of gimple_statement_try to
4245 (gimple_build_resx): Strengthen return type from gimple to
4247 (gimple_build_switch_nlabels): Strengthen return type from gimple
4249 (gimple_build_switch): Likewise.
4250 (gimple_build_eh_dispatch): Strengthen return type from gimple to
4252 (gimple_build_debug_bind_stat): Strengthen return type from gimple
4254 (gimple_build_debug_source_bind_stat): Strengthen return type from
4256 (gimple_build_omp_critical): Strengthen return type from gimple to
4258 (gimple_build_omp_for): Strengthen return type from gimple to
4260 (gimple_build_omp_parallel): Strengthen return type from gimple to
4262 (gimple_build_omp_task): Strengthen return type from gimple to
4264 (gimple_build_omp_continue): Strengthen return type from gimple to
4266 (gimple_build_omp_sections): Strengthen return type from gimple to
4268 (gimple_build_omp_single): Strengthen return type from gimple to
4270 (gimple_build_omp_target): Strengthen return type from gimple to
4272 (gimple_build_omp_teams): Strengthen return type from gimple to
4274 (gimple_build_omp_atomic_load): Strengthen return type from gimple
4275 to gomp_atomic_load *.
4276 (gimple_build_omp_atomic_store): Strengthen return type from gimple
4277 to gomp_atomic_store *.
4278 (gimple_build_transaction): Strengthen return type from gimple
4280 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
4281 (gimple_call_fnspec): Require a const gcall *.
4282 (gimple_call_arg_flags): Likewise.
4283 (gimple_call_return_flags): Likewise.
4284 (gimple_set_bb): Add a checked cast.
4285 (gimple_copy): Within the cases, add locals of the appropriate
4286 subclass and use in place of "stmt" and "copy" for typesafety.
4287 (gimple_has_side_effects): Add a checked cast.
4288 (gimple_could_trap_p_1): Likewise.
4289 (gimple_call_copy_skip_args): Require a gcall *, and return one.
4290 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4291 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
4292 dyn_cast, introducing local "return_stmt" and using ti in place
4295 * gimple.h (gimple_vec): Eliminate this typedef.
4296 (struct gimple_statement_call): Rename to...
4297 (struct gcall): ...this.
4298 (struct gimple_statement_bind): Rename to...
4299 (struct gbind): ...this.
4300 (struct gimple_statement_catch): Rename to...
4301 (struct gcatch): ...this.
4302 (struct gimple_statement_eh_filter): Rename to...
4303 (struct geh_filter): ...this.
4304 (struct gimple_statement_eh_else): Rename to...
4305 (struct geh_else): ...this.
4306 (struct gimple_statement_eh_mnt): Rename to...
4307 (struct geh_mnt): ...this.
4308 (struct gimple_statement_phi): Rename to...
4309 (struct gphi): ...this.
4310 (struct gimple_statement_resx): Rename to...
4311 (struct gresx): ...this.
4312 (struct gimple_statement_eh_dispatch): Rename to...
4313 (struct geh_dispatch): ...this.
4314 (struct gimple_statement_try): Rename to...
4315 (struct gtry): ...this.
4316 (struct gimple_statement_asm): Rename to...
4317 (struct gasm): ...this.
4318 (struct gimple_statement_omp_critical): Rename to...
4319 (struct gomp_critical): ...this.
4320 (struct gimple_statement_omp_for): Rename to...
4321 (struct gomp_for): ...this.
4322 (struct gimple_statement_omp_parallel): Rename to...
4323 (struct gomp_parallel): ...this.
4324 (struct gimple_statement_omp_target): Rename to...
4325 (struct gomp_target): ...this.
4326 (struct gimple_statement_omp_task): Rename to...
4327 (struct gomp_task): ...this.
4328 (struct gimple_statement_omp_sections): Rename to...
4329 (struct gomp_sections): ...this.
4330 (struct gimple_statement_omp_continue): Rename to...
4331 (struct gomp_continue): ...this.
4332 (struct gimple_statement_omp_single): Rename to...
4333 (struct gomp_single): ...this.
4334 (struct gimple_statement_omp_teams): Rename to...
4335 (struct gomp_teams): ...this.
4336 (struct gimple_statement_omp_atomic_load): Rename to...
4337 (struct gomp_atomic_load): ...this.
4338 (struct gimple_statement_omp_atomic_store :): Rename to...
4339 (struct gomp_atomic_store :): ...this.
4340 (struct gimple_statement_transaction): Rename to...
4341 (struct gtransaction): ...this.
4342 (struct gcond): New subclass.
4343 (struct gdebug): New subclass.
4344 (struct ggoto): New subclass.
4345 (struct glabel): New subclass.
4346 (struct gswitch): New subclass.
4347 (struct gassign): New subclass.
4348 (struct greturn): New subclass.
4349 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4350 (is_a_helper <gasm *>::test): ...this.
4351 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4352 (is_a_helper <gbind *>::test): ...this.
4353 (is_a_helper <gassign *>::test): New.
4354 (is_a_helper <gimple_statement_call *>::test): Rename to...
4355 (is_a_helper <gcall *>::test): ...this.
4356 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4357 (is_a_helper <gcatch *>::test): ...this.
4358 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4359 (is_a_helper <gresx *>::test): ...this.
4360 (is_a_helper <gcond *>::test): New.
4361 (is_a_helper <gdebug *>::test): New.
4362 (is_a_helper <ggoto *>::test): New.
4363 (is_a_helper <glabel *>::test): New.
4364 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4365 (is_a_helper <geh_dispatch *>::test): ...this.
4366 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4367 (is_a_helper <geh_else *>::test): ...this.
4368 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4369 (is_a_helper <geh_filter *>::test): ...this.
4370 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4371 (is_a_helper <geh_mnt *>::test): ...this.
4372 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4373 (is_a_helper <gomp_atomic_load *>::test): ...this.
4374 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4375 (is_a_helper <gomp_atomic_store *>::test): ...this.
4376 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4377 (is_a_helper <gomp_continue *>::test): ...this.
4378 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4379 (is_a_helper <gomp_critical *>::test): ...this.
4380 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4381 (is_a_helper <gomp_for *>::test): ...this.
4382 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4383 (is_a_helper <gomp_parallel *>::test): ...this.
4384 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4385 (is_a_helper <gomp_target *>::test): ...this.
4386 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4387 (is_a_helper <gomp_sections *>::test): ...this.
4388 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4389 (is_a_helper <gomp_single *>::test): ...this.
4390 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4391 (is_a_helper <gomp_teams *>::test): ...this.
4392 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4393 (is_a_helper <gomp_task *>::test): ...this.
4394 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4395 (is_a_helper <gphi *>::test): ...this.
4396 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4397 (is_a_helper <gtransaction *>::test): ...this.
4398 (is_a_helper <greturn *>::test): New.
4399 (is_a_helper <gswitch *>::test): New.
4400 (is_a_helper <gimple_statement_try *>::test): Rename to...
4401 (is_a_helper <gtry *>::test): ...this.
4402 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4403 (is_a_helper <const gasm *>::test): ...this.
4404 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4405 (is_a_helper <const gbind *>::test): ...this.
4406 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4407 (is_a_helper <const gcall *>::test): ...this.
4408 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4409 (is_a_helper <const gcatch *>::test): ...this.
4410 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4411 (is_a_helper <const gresx *>::test): ...this.
4412 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4413 (is_a_helper <const geh_dispatch *>::test): ...this.
4414 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4415 (is_a_helper <const geh_filter *>::test): ...this.
4416 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4418 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4419 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4421 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4422 (is_a_helper <const gimple_statement_omp_continue *>::test):
4424 (is_a_helper <const gomp_continue *>::test): ...this.
4425 (is_a_helper <const gimple_statement_omp_critical *>::test):
4427 (is_a_helper <const gomp_critical *>::test): ...this.
4428 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4429 (is_a_helper <const gomp_for *>::test): ...this.
4430 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4432 (is_a_helper <const gomp_parallel *>::test): ...this.
4433 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4434 (is_a_helper <const gomp_target *>::test): ...this.
4435 (is_a_helper <const gimple_statement_omp_sections *>::test):
4437 (is_a_helper <const gomp_sections *>::test): ...this.
4438 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4439 (is_a_helper <const gomp_single *>::test): ...this.
4440 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4441 (is_a_helper <const gomp_teams *>::test): ...this.
4442 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4443 (is_a_helper <const gomp_task *>::test): ...this.
4444 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4445 (is_a_helper <const gphi *>::test): ...this.
4446 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4447 (is_a_helper <const gtransaction *>::test): ...this.
4448 (gimple_build_return): Strengthen return type to greturn *.
4449 (gimple_call_reset_alias_info): Require a gcall *.
4450 (gimple_build_call_vec): Return a gcall *.
4451 (gimple_build_call): Likewise.
4452 (gimple_build_call_valist): Likewise.
4453 (gimple_build_call_internal): Likewise.
4454 (gimple_build_call_internal_vec): Likewise.
4455 (gimple_build_call_from_tree): Likewise.
4456 (gimple_build_assign_stat): Return a gassign *.
4457 (gimple_build_assign_with_ops): Likewise.
4458 (gimple_build_cond): Return a gcond *.
4459 (gimple_build_cond_from_tree): Likewise.
4460 (gimple_cond_set_condition_from_tree): Require a gcond *.
4461 (gimple_build_label): Return a glabel *.
4462 (gimple_build_goto): Return a ggoto *.
4463 (gimple_build_bind): Return a gbind *.
4464 (gimple_build_asm_vec): Return a gasm *.
4465 (gimple_build_catch): Return a gcatch *.
4466 (gimple_build_eh_filter): Return a geh_filter *.
4467 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4468 (gimple_build_eh_else): Return a geh_else *.
4469 (gimple_build_try): Return a gtry *.
4470 (gimple_build_resx): Return a gresx *.
4471 (gimple_build_switch_nlabels): Return a gswitch *.
4472 (gimple_build_switch): Return a gswitch *.
4473 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4474 (gimple_build_debug_bind_stat): Return a gdebug *.
4475 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4476 (gimple_build_omp_critical): Return a gomp_critical *.
4477 (gimple_build_omp_for): Return a gomp_for *.
4478 (gimple_build_omp_parallel): Return a gomp_parallel *.
4479 (gimple_build_omp_task): Return a gomp_task *.
4480 (gimple_build_omp_continue): Return a gomp_continue *.
4481 (gimple_build_omp_sections): Return a gomp_sections *.
4482 (gimple_build_omp_single): Return a gomp_single *.
4483 (gimple_build_omp_target): Return a gomp_target *.
4484 (gimple_build_omp_teams): Return a gomp_teams *.
4485 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4486 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4487 (gimple_build_transaction): Return a gtransaction *.
4488 (gimple_call_arg_flags): Require a const gcall *.
4489 (gimple_call_return_flags): Likewise.
4490 (gimple_call_copy_skip_args): Require and return a gcall *.
4491 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4492 (gimple_seq_first_stmt_as_a_bind): New.
4493 (gimple_assign_nontemporal_move_p): Require a const gassign *
4494 rather than a const_gimple.
4495 (gimple_call_internal_fn): Update for renaming to gcall.
4496 (gimple_call_fntype): Likewise.
4497 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4498 (gimple_call_set_fn): Likewise.
4499 (gimple_call_set_internal_fn): Likewise.
4500 (gimple_call_set_chain): Likewise.
4501 (gimple_call_set_tail): Likewise.
4502 (gimple_call_tail_p): Likewise.
4503 (gimple_call_set_return_slot_opt): Likewise.
4504 (gimple_call_return_slot_opt_p): Likewise.
4505 (gimple_call_set_from_thunk): Likewise.
4506 (gimple_call_from_thunk_p): Likewise.
4507 (gimple_call_set_va_arg_pack): Likewise.
4508 (gimple_call_va_arg_pack_p): Likewise.
4509 (gimple_call_set_nothrow): Likewise.
4510 (gimple_call_nothrow_p): Likewise.
4511 (gimple_call_set_alloca_for_var): Likewise.
4512 (gimple_call_alloca_for_var_p): Likewise.
4513 (gimple_call_use_set): Likewise.
4514 (gimple_call_clobber_set): Likewise.
4515 (gimple_call_return_type): Require a const gcall * rather than a
4517 (gimple_call_chain_ptr): Likewise.
4518 (gimple_call_copy_flags): Require a pair of gcall *.
4519 (gimple_cond_set_code): Require a gcond * rather than a gimple
4520 (gimple_cond_set_lhs): Likewise.
4521 (gimple_cond_set_rhs): Likewise.
4522 (gimple_cond_set_true_label): Likewise.
4523 (gimple_cond_set_false_label): Likewise.
4524 (gimple_cond_make_false): Likewise.
4525 (gimple_cond_make_true): Likewise.
4526 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4528 (gimple_cond_rhs_ptr): Likewise.
4529 (gimple_cond_true_label): Likewise.
4530 (gimple_cond_false_label): Likewise.
4531 (gimple_cond_true_p): Likewise.
4532 (gimple_cond_false_p): Likewise.
4533 (gimple_cond_set_condition): Likewise.
4534 (gimple_label_label): Require a const glabel *.
4535 (gimple_label_set_label): Require a glabel *.
4536 (gimple_goto_set_dest): Require a ggoto *.
4537 (gimple_bind_vars): Require a const gbind *.
4538 (gimple_bind_block): Likewise.
4539 (gimple_bind_set_vars): Require a gbind *.
4540 (gimple_bind_append_vars): Likewise.
4541 (gimple_bind_body_ptr): Likewise.
4542 (gimple_bind_body): Likewise.
4543 (gimple_bind_set_body): Likewise.
4544 (gimple_bind_add_stmt): Likewise.
4545 (gimple_bind_add_seq): Likewise.
4546 (gimple_bind_set_block): Likewise.
4547 (gimple_asm_ninputs): Require a const gasm *.
4548 (gimple_asm_noutputs): Likewise.
4549 (gimple_asm_nclobbers): Likewise.
4550 (gimple_asm_nlabels): Likewise.
4551 (gimple_asm_input_op): Likewise.
4552 (gimple_asm_input_op_ptr): Likewise.
4553 (gimple_asm_output_op): Likewise.
4554 (gimple_asm_output_op_ptr): Likewise.
4555 (gimple_asm_clobber_op): Likewise.
4556 (gimple_asm_label_op): Likewise.
4557 (gimple_asm_string): Likewise.
4558 (gimple_asm_volatile_p): Likewise.
4559 (gimple_asm_input_p): Likewise.
4560 (gimple_asm_set_input_op): Require a gasm *.
4561 (gimple_asm_set_output_op): Likewise.
4562 (gimple_asm_set_clobber_op): Likewise.
4563 (gimple_asm_set_label_op): Likewise.
4564 (gimple_asm_set_volatile): Likewise.
4565 (gimple_asm_set_input): Likewise.
4566 (gimple_catch_types): Require a const gcatch *.
4567 (gimple_catch_types_ptr): Require a gcatch *.
4568 (gimple_catch_handler_ptr): Likewise.
4569 (gimple_catch_handler): Likewise.
4570 (gimple_catch_set_types): Likewise.
4571 (gimple_catch_set_handler): Likewise.
4572 (gimple_eh_filter_types): Update for renaming of subclass to
4574 (gimple_eh_filter_types_ptr): Likewise.
4575 (gimple_eh_filter_failure_ptr): Likewise.
4576 (gimple_eh_filter_set_types): Require a geh_filter *.
4577 (gimple_eh_filter_set_failure): Likewise.
4578 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4579 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4580 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4581 (gimple_eh_else_n_body): Likewise.
4582 (gimple_eh_else_e_body_ptr): Likewise.
4583 (gimple_eh_else_e_body): Likewise.
4584 (gimple_eh_else_set_n_body): Likewise.
4585 (gimple_eh_else_set_e_body): Likewise.
4586 (gimple_try_set_kind): Require a gtry *.
4587 (gimple_try_set_catch_is_cleanup): Likewise.
4588 (gimple_try_set_eval): Likewise.
4589 (gimple_try_set_cleanup): Likewise.
4590 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4591 (gimple_try_cleanup_ptr): Likewise.
4592 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4593 (gimple_phi_num_args): Likewise.
4594 (gimple_phi_result): Likewise.
4595 (gimple_phi_result_ptr): Likewise.
4596 (gimple_phi_arg): Likewise.
4597 (gimple_phi_set_result): Require a gphi *.
4598 (gimple_phi_set_arg): Likewise.
4599 (gimple_phi_arg_def_ptr): Likewise.
4600 (gimple_phi_arg_edge): Likewise.
4601 (gimple_phi_arg_location): Likewise.
4602 (gimple_phi_arg_location_from_edge): Likewise.
4603 (gimple_phi_arg_set_location): Likewise.
4604 (gimple_phi_arg_has_location): Likewise.
4605 (gimple_resx_region): Require a const gresx *.
4606 (gimple_resx_set_region): Require a gresx *.
4607 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4608 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4609 (gimple_switch_num_labels): Require a const gswitch *.
4610 (gimple_switch_set_num_labels): Likewise.
4611 (gimple_switch_index): Likewise.
4612 (gimple_switch_index_ptr): Likewise.
4613 (gimple_switch_label): Likewise.
4614 (gimple_switch_default_label): Likewise.
4615 (gimple_switch_set_index): Require a gswitch *.
4616 (gimple_switch_set_label): Likewise.
4617 (gimple_switch_set_default_label): Likewise.
4618 (gimple_omp_critical_name): Require a const gomp_critical *.
4619 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4620 (gimple_omp_critical_set_name): Likewise.
4621 (gimple_omp_for_set_kind): Require a gomp_for *.
4622 (gimple_omp_for_set_combined_p): Likewise.
4623 (gimple_omp_for_set_combined_into_p): Likewise.
4624 (gimple_omp_for_clauses): Update for renaming of subclass to
4626 (gimple_omp_for_clauses_ptr): Likewise.
4627 (gimple_omp_for_set_clauses): Likewise.
4628 (gimple_omp_for_collapse): Likewise.
4629 (gimple_omp_for_index): Likewise.
4630 (gimple_omp_for_index_ptr): Likewise.
4631 (gimple_omp_for_set_index): Likewise.
4632 (gimple_omp_for_initial): Likewise.
4633 (gimple_omp_for_initial_ptr): Likewise.
4634 (gimple_omp_for_set_initial): Likewise.
4635 (gimple_omp_for_final): Likewise.
4636 (gimple_omp_for_final_ptr): Likewise.
4637 (gimple_omp_for_set_final): Likewise.
4638 (gimple_omp_for_incr): Likewise.
4639 (gimple_omp_for_incr_ptr): Likewise.
4640 (gimple_omp_for_set_incr): Likewise.
4641 (gimple_omp_for_pre_body): Likewise.
4642 (gimple_omp_for_set_pre_body): Likewise.
4643 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4645 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4646 (gimple_omp_parallel_set_clauses): Likewise.
4647 (gimple_omp_parallel_child_fn_ptr): Likewise.
4648 (gimple_omp_parallel_set_child_fn): Likewise.
4649 (gimple_omp_parallel_data_arg_ptr): Likewise.
4650 (gimple_omp_parallel_set_data_arg): Likewise.
4651 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4652 (gimple_omp_parallel_data_arg): Likewise.
4653 (gimple_omp_task_clauses): Update for renaming of subclass to
4655 (gimple_omp_task_clauses_ptr): Likewise.
4656 (gimple_omp_task_set_clauses): Likewise.
4657 (gimple_omp_task_child_fn): Likewise.
4658 (gimple_omp_task_child_fn_ptr): Likewise.
4659 (gimple_omp_task_set_child_fn): Likewise.
4660 (gimple_omp_task_data_arg): Likewise.
4661 (gimple_omp_task_data_arg_ptr): Likewise.
4662 (gimple_omp_task_set_data_arg): Likewise.
4663 (gimple_omp_taskreg_clauses): Whitespace fixes.
4664 (gimple_omp_taskreg_clauses_ptr): Likewise.
4665 (gimple_omp_taskreg_set_clauses): Likewise.
4666 (gimple_omp_taskreg_child_fn): Likewise.
4667 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4668 (gimple_omp_taskreg_set_child_fn): Likewise.
4669 (gimple_omp_taskreg_data_arg): Likewise.
4670 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4671 (gimple_omp_taskreg_set_data_arg): Likewise.
4672 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4674 (gimple_omp_task_copy_fn_ptr): Likewise.
4675 (gimple_omp_task_set_copy_fn): Likewise.
4676 (gimple_omp_task_arg_size): Likewise.
4677 (gimple_omp_task_arg_size_ptr): Likewise.
4678 (gimple_omp_task_set_arg_size): Likewise.
4679 (gimple_omp_task_arg_align): Likewise.
4680 (gimple_omp_task_arg_align_ptr): Likewise.
4681 (gimple_omp_task_set_arg_align): Likewise.
4682 (gimple_omp_single_clauses): Update for renaming of subclass to
4684 (gimple_omp_single_clauses_ptr): Likewise.
4685 (gimple_omp_single_set_clauses): Likewise.
4686 (gimple_omp_target_clauses): Update for renaming of subclass to
4688 (gimple_omp_target_clauses_ptr): Likewise.
4689 (gimple_omp_target_set_clauses): Require a gomp_target *.
4690 (gimple_omp_target_set_kind): Likewise.
4691 (gimple_omp_target_child_fn_ptr): Likewise.
4692 (gimple_omp_target_set_child_fn): Likewise.
4693 (gimple_omp_target_data_arg_ptr): Likewise.
4694 (gimple_omp_target_set_data_arg): Likewise.
4695 (gimple_omp_target_child_fn): Require a const gomp_target *.
4696 (gimple_omp_target_data_arg): Likewise.
4697 (gimple_omp_teams_clauses): Update for renaming of subclass to
4699 (gimple_omp_teams_clauses_ptr): Likewise.
4700 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4701 (gimple_omp_sections_clauses): Update for renaming of subclass to
4703 (gimple_omp_sections_clauses_ptr): Likewise.
4704 (gimple_omp_sections_set_clauses): Likewise.
4705 (gimple_omp_sections_control): Likewise.
4706 (gimple_omp_sections_control_ptr): Likewise.
4707 (gimple_omp_sections_set_control): Likewise.
4708 (gimple_omp_for_set_cond): Likewise.
4709 (gimple_omp_for_cond): Likewise.
4710 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4711 (gimple_omp_atomic_store_val_ptr): Likewise.
4712 (gimple_omp_atomic_load_set_lhs): Likewise.
4713 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4714 (gimple_omp_atomic_load_lhs): Likewise.
4715 (gimple_omp_atomic_load_rhs): Likewise.
4716 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4717 (gimple_omp_atomic_load_set_rhs): Likewise.
4718 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4719 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4720 (gimple_omp_continue_control_use): Likewise.
4721 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4722 (gimple_omp_continue_set_control_def): Likewise.
4723 (gimple_omp_continue_control_use_ptr): Likewise.
4724 (gimple_omp_continue_set_control_use): Likewise.
4725 (gimple_transaction_body_ptr): Require a gtransaction *.
4726 (gimple_transaction_body): Likewise.
4727 (gimple_transaction_label_ptr): Likewise.
4728 (gimple_transaction_label): Require a const gtransaction *.
4729 (gimple_transaction_subcode): Likewise.
4730 (gimple_transaction_set_body): Require a gtransaction *.
4731 (gimple_transaction_set_label): Likewise.
4732 (gimple_transaction_set_subcode): Likewise.
4733 (gimple_return_retval_ptr): Require a const greturn *.
4734 (gimple_return_retval): Likewise.
4735 (gimple_return_set_retval): Require a greturn *.
4736 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4737 "stmt" for typesafety.
4739 * asan.c: Use gimple subclasses.
4740 * auto-profile.c: Likewise.
4741 * builtins.c: Likewise.
4742 * builtins.h: Likewise.
4743 * cfgexpand.c: Likewise.
4744 * cfgloop.c: Likewise.
4745 * cfgloopmanip.c: Likewise.
4746 * cgraph.c: Likewise.
4747 * cgraph.h: Likewise.
4748 * cgraphbuild.c: Likewise.
4749 * cgraphclones.c: Likewise.
4750 * cgraphunit.c: Likewise.
4752 * gimple-builder.c: Likewise.
4753 * gimple-builder.h: Likewise.
4754 * gimple-fold.c: Likewise.
4755 * gimple-low.c: Likewise.
4756 * gimple-pretty-print.c: Likewise.
4757 * gimple-ssa-isolate-paths.c: Likewise.
4758 * gimple-ssa-strength-reduction.c: Likewise.
4759 * gimple-streamer-in.c: Likewise.
4760 * gimple-streamer-out.c: Likewise.
4761 * gimple-walk.c: Likewise.
4762 * gimplify-me.c: Likewise.
4763 * gimplify.c: Likewise.
4764 * gimplify.h: Likewise.
4765 * graphite-scop-detection.c: Likewise.
4766 * graphite-sese-to-poly.c: Likewise.
4767 * internal-fn.c: Likewise.
4768 * internal-fn.def:: Likewise.
4769 * internal-fn.h: Likewise.
4770 * ipa-icf-gimple.c: Likewise.
4771 * ipa-icf-gimple.h: Likewise.
4772 * ipa-icf.c: Likewise.
4773 * ipa-inline-analysis.c: Likewise.
4774 * ipa-prop.c: Likewise.
4775 * ipa-prop.h: Likewise.
4776 * ipa-pure-const.c: Likewise.
4777 * ipa-split.c: Likewise.
4778 * lto-streamer-in.c: Likewise.
4779 * lto-streamer-out.c: Likewise.
4780 * omp-low.c: Likewise.
4781 * predict.c: Likewise.
4782 * sanopt.c: Likewise.
4784 * ssa-iterators.h: Likewise.
4786 * trans-mem.c: Likewise.
4787 * tree-call-cdce.c: Likewise.
4788 * tree-cfg.c: Likewise.
4789 * tree-cfg.h: Likewise.
4790 * tree-cfgcleanup.c: Likewise.
4791 * tree-chkp.c: Likewise.
4792 * tree-chkp.h: Likewise.
4793 * tree-complex.c: Likewise.
4794 * tree-data-ref.c: Likewise.
4795 * tree-dfa.c: Likewise.
4796 * tree-eh.c: Likewise.
4797 * tree-eh.h: Likewise.
4798 * tree-emutls.c: Likewise.
4799 * tree-if-conv.c: Likewise.
4800 * tree-inline.c: Likewise.
4801 * tree-inline.h: Likewise.
4802 * tree-into-ssa.c: Likewise.
4803 * tree-into-ssa.h: Likewise.
4804 * tree-loop-distribution.c: Likewise.
4805 * tree-nrv.c: Likewise.
4806 * tree-object-size.c: Likewise.
4807 * tree-outof-ssa.c: Likewise.
4808 * tree-parloops.c: Likewise.
4809 * tree-phinodes.c: Likewise.
4810 * tree-phinodes.h: Likewise.
4811 * tree-predcom.c: Likewise.
4812 * tree-profile.c: Likewise.
4813 * tree-scalar-evolution.c: Likewise.
4814 * tree-scalar-evolution.h
4815 * tree-sra.cn_function):
4816 * tree-ssa-alias.c: Likewise.
4817 * tree-ssa-alias.h: Likewise.
4818 * tree-ssa-ccp.c: Likewise.
4819 * tree-ssa-coalesce.c: Likewise.
4820 * tree-ssa-copy.c: Likewise.
4821 * tree-ssa-copyrename.c: Likewise.
4822 * tree-ssa-dce.c: Likewise.
4823 * tree-ssa-dom.c: Likewise.
4824 * tree-ssa-forwprop.c: Likewise.
4825 * tree-ssa-ifcombine.c: Likewise.
4826 * tree-ssa-live.c: Likewise.
4827 * tree-ssa-loop-im.c: Likewise.
4828 * tree-ssa-loop-ivcanon.c: Likewise.
4829 * tree-ssa-loop-ivopts.c: Likewise.
4830 * tree-ssa-loop-manip.c: Likewise.
4831 * tree-ssa-loop-niter.c: Likewise.
4832 * tree-ssa-loop-prefetch.c: Likewise.
4833 * tree-ssa-loop-unswitch.c: Likewise.
4834 * tree-ssa-math-opts.c: Likewise.
4835 * tree-ssa-operands.c: Likewise.
4836 * tree-ssa-phiopt.c: Likewise.
4837 * tree-ssa-phiprop.c: Likewise.
4838 * tree-ssa-pre.c: Likewise.
4839 * tree-ssa-propagate.c: Likewise.
4840 * tree-ssa-propagate.h: Likewise.
4841 * tree-ssa-reassoc.c: Likewise.
4842 * tree-ssa-sccvn.c: Likewise.
4843 * tree-ssa-sccvn.h: Likewise.
4844 * tree-ssa-sink.c: Likewise.
4846 * tree-ssa-structalias.c
4847 * tree-ssa-tail-merge.c: Likewise.
4848 * tree-ssa-ter.c: Likewise.
4849 * tree-ssa-threadedge.c: Likewise.
4850 * tree-ssa-threadedge.h: Likewise.
4851 * tree-ssa-threadupdate.c: Likewise.
4852 * tree-ssa-uncprop.c: Likewise.
4853 * tree-ssa-uninit.c: Likewise.
4854 * tree-ssa.c: Likewise.
4855 * tree-stdarg.c: Likewise.
4856 * tree-switch-conversion.c: Likewise.
4857 * tree-tailcall.c: Likewise.
4858 * tree-vect-data-refs.c: Likewise.
4859 * tree-vect-generic.c: Likewise.
4860 * tree-vect-loop-manip.c: Likewise.
4861 * tree-vect-loop.c: Likewise.
4862 * tree-vect-patterns.c: Likewise.
4863 * tree-vect-slp.c: Likewise.
4864 * tree-vect-stmts.c: Likewise.
4865 * tree-vectorizer.h: Likewise.
4866 * tree-vrp.c: Likewise.
4868 * ubsan.c: Likewise.
4869 * value-prof.c: Likewise.
4870 * value-prof.h: Likewise.
4871 * vtable-verify.c: Likewise.
4873 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4875 * config/rs6000/constraints.md: Avoid signed integer overflows.
4876 * config/rs6000/predicates.md: Likewise.
4878 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4881 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4883 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4886 * ira.c (ira): Update preferred class.
4888 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4890 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4891 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4892 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4893 inline overload to use it. Add unary arg overload.
4894 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4895 (gimple_assign_set_rhs_from_tree): Use
4896 gimple_assign_set_rhs_with_ops instead of
4897 gimple_assign_set_rhs_with_ops_1.
4898 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4899 (gimple_assign_set_rhs_with_ops): ... this.
4900 * ipa-split.c (split_function): Remove last NULL argument
4901 from gimple_build_assign_with_ops call.
4902 * tree-ssa-loop-im.c
4903 (move_computations_dom_walker::before_dom_children): Likewise.
4904 * tsan.c (instrument_builtin_call): Likewise.
4905 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4906 vectorizable_conversion, vectorizable_load): Likewise.
4907 * tree-vect-loop.c (vect_is_simple_reduction_1,
4908 get_initial_def_for_induction): Likewise.
4909 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4910 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4911 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4912 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4913 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4914 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4915 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4916 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4917 neg_replacement): Likewise.
4918 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4919 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4920 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4921 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4922 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4923 simd_clone_adjust): Likewise.
4924 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4925 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4926 replace_one_candidate): Likewise.
4927 * gimple-builder.c (build_type_cast): Likewise.
4928 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4929 (forward_propagate_addr_expr_1): Remove last NULL argument
4930 from gimple_assign_set_rhs_with_ops call.
4931 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4932 instead of gimple_assign_set_rhs_with_ops_1.
4933 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4934 argument from gimple_build_assign_with_ops call.
4935 (repropagate_negates): Remove last NULL argument from
4936 gimple_assign_set_rhs_with_ops call.
4937 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4938 last NULL argument from gimple_build_assign_with_ops call.
4939 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4940 from gimple_assign_set_rhs_with_ops call.
4941 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4942 Remove last NULL argument from gimple_build_assign_with_ops call.
4943 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4944 of gimple_assign_set_rhs_with_ops_1.
4945 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4946 instead of gimple_assign_set_rhs_with_ops_1.
4947 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4948 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4949 from gimple_build_assign_with_ops call.
4950 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4951 from gimple_assign_set_rhs_with_ops call.
4952 * tree-vrp.c (simplify_truth_ops_using_ranges,
4953 simplify_bit_ops_using_ranges): Remove last NULL argument from
4954 gimple_assign_set_rhs_with_ops call.
4955 (simplify_float_conversion_using_ranges,
4956 simplify_internal_call_using_ranges): Remove last NULL argument from
4957 gimple_build_assign_with_ops call.
4959 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4962 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4965 2014-11-19 Marek Polacek <polacek@redhat.com>
4968 * ubsan.c (instrument_object_size): Check for MEM_REF.
4970 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4973 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4974 ifdef ENABLE_OFFLOADING.
4975 * omp-low.c (create_omp_child_function): Likewise.
4976 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4977 with ifdef ENABLE_OFFLOADING.
4978 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4979 offload_vars with ifdef ENABLE_OFFLOADING.
4981 2014-11-19 Felix Yang <felix.yang@huawei.com>
4982 Shanyao Chen <chenshanyao@huawei.com>
4985 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4986 (define_attr "arch_enabled"): Add test for the above.
4987 (*movhi_insn_arch4): Add new alternative.
4989 2014-11-19 Richard Henderson <rth@redhat.com>
4991 * c-family/c-common.c (c_common_reswords): Add
4992 __builtin_call_with_static_chain.
4993 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4994 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4995 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4997 * calls.c (prepare_call_address): Allow decl or type for first arg.
4998 (expand_call): Pass type to prepare_call_address if no decl.
4999 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
5000 the function doesn't use it; fold it otherwise.
5001 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
5002 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
5005 * targhooks.c (default_static_chain): Remove check for
5007 * config/moxie/moxie.c (moxie_static_chain): Likewise.
5008 * config/i386/i386.c (ix86_static_chain): Allow decl or type
5009 as the first argument.
5010 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
5011 of the unused first parameter.
5012 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
5014 * target.def (static_chain): Likewise.
5016 2014-11-19 Renlin Li <renlin.li@arm.com>
5018 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5019 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
5020 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
5022 2014-11-19 Marek Polacek <polacek@redhat.com>
5025 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
5026 !TYPE_OVERFLOW_SANITIZED.
5027 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
5028 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
5031 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
5033 * collect2.c (main): Don't call fatal_error before
5034 diagnostic_initialize.
5035 * lto-wrapper.c (main): Likewise.
5037 2014-11-19 Tom de Vries <tom@codesourcery.com>
5039 PR tree-optimization/62167
5040 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
5042 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
5045 2014-11-19 Jakub Jelinek <jakub@redhat.com>
5047 PR tree-optimization/63915
5048 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
5049 true instead of false as last argument to gsi_replace.
5052 * internal-fn.c (expand_ubsan_result_store): New function.
5053 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
5054 Use it instead of just emit_move_insn.
5056 2014-11-19 Richard Biener <rguenther@suse.de>
5058 PR tree-optimization/63844
5059 * omp-low.c (fixup_child_record_type): Use a restrict qualified
5060 referece type for the receiver parameter.
5062 2014-11-19 Jakub Jelinek <jakub@redhat.com>
5065 * ubsan.c: Include tree-eh.h.
5066 (instrument_bool_enum_load): Handle loads that can throw.
5068 PR rtl-optimization/63843
5069 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
5070 optimization of ashiftrt of subreg of lshiftrt, check that code
5073 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
5075 * attribs.c (decl_attributes): Remove always true condition,
5076 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
5078 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5081 * target.def (use_by_pieces_infrastructure_p): Take unsigned
5082 HOST_WIDE_INT as the size parameter.
5083 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
5084 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
5085 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
5086 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
5087 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
5088 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
5089 * config/aarch64/aarch64.c
5090 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
5091 * doc/tm.texi: Regenerate.
5093 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
5095 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
5096 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
5097 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
5098 (good_cloning_opportunity_p): Likewise.
5099 (ipa-cp gate): Enable ipa-cp with LTO.
5100 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
5101 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
5103 * ipa-inline-transform.c (inline_transform): Check if there are inlines
5104 to apply even at -O0.
5105 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
5106 (analyze_functions): Build type inheritance graph.
5107 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
5108 (want_early_inline_function_p, want_inline_small_function_p):
5110 (check_callers): Likewise.
5111 (edge_badness): Likewise.
5112 (inline_small_functions): Always be ready for indirect inlining
5114 (ipa_inline): Always use want_inline_function_to_all_callers_p.
5115 (early_inline_small_functions): Use opt_for_fn.
5116 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
5117 (estimate_function_body_sizes): Likewise.
5118 (compute_inline_parameters): Likewise.
5119 (estimate_edge_devirt_benefit): Likewise.
5120 (inline_analyze_function): Likewise.
5121 * ipa-devirt.c (ipa_devirt): Likewise.
5122 (gate): Use in_lto_p.
5123 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
5124 (try_make_edge_direct_virtual_call): Likewise.
5125 (update_indirect_edges_after_inlining): Likewise.
5126 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
5127 * common.opt (findirect-inlining): Turn into optimization.
5128 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
5129 (pure_const_generate_summary): Likewise.
5130 (gate_pure_const): Always enable with in_lto_p.
5132 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
5134 * config/mips/mips.md (compression): Add `micromips32' setting.
5135 (enabled, length): Handle it.
5136 (shift_compression): Replace `micromips' with `micromips32' in
5137 the `compression' attribute.
5138 (*add<mode>3, sub<mode>3): Likewise.
5140 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
5142 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
5143 range, a jump otherwise.
5145 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5147 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
5149 (cortex_a15_gp_to_vfp): ...This.
5150 (cortex_a15_fp_to_gp): ...And this.
5151 Define and comment bypass from vfp operations to fp->gp moves.
5153 2014-11-18 Martin Liska <mliska@suse.cz>
5155 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
5157 2014-11-18 Martin Liska <mliska@suse.cz>
5159 * bt-load.c (add_btr_def): New fibonacci_heap is used.
5160 (migrate_btr_defs): Likewise.
5162 2014-11-18 Martin Liska <mliska@suse.cz>
5164 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
5166 2014-11-18 Martin Liska <mliska@suse.cz>
5168 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
5169 (find_traces): Likewise.
5170 (find_traces_1_round): Likewise.
5172 2014-11-18 Martin Liska <mliska@suse.cz>
5174 * fibonacci_heap.h: New file.
5175 (fibonacci_heap::insert): Created from fibheap_insert.
5176 (fibonacci_heap::empty): Created from fibheap_empty.
5177 (fibonacci_heap::nodes): Created from fibheap_nodes.
5178 (fibonacci_heap::min_key): Created from fibheap_min_key.
5179 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
5180 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
5181 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
5182 (fibonacci_heap::min): Created from fibheap_min.
5183 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
5184 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
5185 (fibonacci_heap::union_with): Created from fibheap_union.
5186 * ipa-inline.c (update_edge_key): New heap API is used.
5187 (update_caller_keys): Likewise.
5188 (update_callee_keys): Likewise.
5189 (lookup_recursive_calls): Likewise.
5190 (recursive_inlining): Likewise.
5191 (add_new_edges_to_heap): Likewise.
5192 (heap_edge_removal_hook): Likewise.
5193 (inline_small_functions): Likewise.
5195 2014-11-18 Marek Polacek <polacek@redhat.com>
5198 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
5199 put it into TYPE_NAME and TYPE_STUB_DECL.
5200 * ubsan.c (ubsan_type_descriptor_type): New variable.
5201 Function renamed to ...
5202 (ubsan_get_type_descriptor_type): ... this. Cache
5203 return value in ubsan_type_descriptor_type variable.
5204 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
5205 TYPE_NAME and TYPE_STUB_DECL.
5206 (ubsan_get_source_location_type): Create a TYPE_DECL for
5207 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
5208 (ubsan_type_descriptor, ubsan_create_data): Call
5209 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
5210 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
5212 2014-11-18 Felix Yang <felix.yang@huawei.com>
5214 * config/aarch64/aarch64.c (doloop_end): New pattern.
5215 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
5217 2014-11-18 Jason Merrill <jason@redhat.com>
5219 * tree.c (warn_deprecated_use): Show declaration with inform.
5221 2014-11-18 Richard Biener <rguenther@suse.de>
5223 PR tree-optimization/63914
5224 * tree-ssa-ccp.c (canonicalize_value): Remove float value
5226 (valid_lattice_transition): Allow (partial) transition
5227 from NaN to non-NaN if !HONOR_NANS.
5228 (set_lattice_value): Check for valid lattice transitions
5229 only when checking is enabled.
5231 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
5233 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
5235 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
5237 * config/arm/neon-testgen.ml (emit_prologue): Handle new
5238 compile_test_optim argument.
5239 (emit_automatics): Rename to emit_variables. Support variable
5240 indentation of its output.
5241 (compile_test_optim): New function.
5242 (test_intrinsic): Call compile_test_optim.
5243 * config/arm/neon.ml (features): Add Compiler_optim.
5244 (ops): Add Compiler_optim feature to Vbic and Vorn.
5245 (type_in_crypto_only): Replace 'or' by '||'.
5246 (reinterp): Likewise.
5247 (reinterpq): Likewise.
5249 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
5251 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
5252 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
5253 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
5254 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
5255 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
5256 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
5257 pointer dereference.
5259 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
5261 * tree.c (element_mode, integer_truep): New functions.
5262 * tree.h (element_mode, integer_truep): Declare them.
5263 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
5264 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
5265 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
5266 fold_strip_sign_ops): Use element_mode.
5267 (fold_binary_loc): Use element_mode and element_precision.
5268 * match.pd: Use integer_truep, element_mode, element_precision,
5269 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
5270 vectors. Simplify A/-A.
5272 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5274 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
5275 manual swapping implementation.
5276 (movcond_addsi): Likewise.
5277 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
5278 (arm_select_dominance_cc_mode): Likewise.
5279 (arm_reload_out_hi): Likewise.
5280 (gen_operands_ldrd_strd): Likewise.
5281 (output_move_double): Likewise.
5282 (arm_print_operand_address): Likewise.
5283 (thumb_output_move_mem_multiple): Likewise.
5286 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5288 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
5289 (COPYSIGNF_QUALIFIERS): Likewise.
5290 (CREATE_QUALIFIERS): Likewise.
5291 (DUP_QUALIFIERS): Likewise.
5292 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5293 (FLOAT_NARROW_QUALIFIERS): Likewise.
5294 (REINTERP_QUALIFIERS): Likewise.
5295 (RINT_QUALIFIERS): Likewise.
5296 (SPLIT_QUALIFIERS): Likewise.
5297 (FIXCONV_QUALIFIERS): Likewise.
5298 (SCALARMUL_QUALIFIERS): Likewise.
5299 (SCALARMULL_QUALIFIERS): Likewise.
5300 (SCALARMULH_QUALIFIERS): Likewise.
5301 (SELECT_QUALIFIERS): Likewise.
5302 (VTBX_QUALIFIERS): Likewise.
5303 (SHIFTIMM_QUALIFIERS): Likewise.
5304 (SCALARMAC_QUALIFIERS): Likewise.
5305 (LANEMUL_QUALIFIERS): Likewise.
5306 (LANEMULH_QUALIFIERS): Likewise.
5307 (LANEMULL_QUALIFIERS): Likewise.
5308 (SHIFTACC_QUALIFIERS): Likewise.
5309 (SHIFTINSERT_QUALIFIERS): Likewise.
5310 (VTBL_QUALIFIERS): Likewise.
5311 (LOADSTRUCT_QUALIFIERS): Likewise.
5312 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5313 (STORESTRUCT_QUALIFIERS): Likewise.
5314 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5315 (neon_builtin_type_mode): Delete.
5316 (v8qi_UP): Map to V8QImode.
5317 (v8qi_UP): Map to V8QImode.
5318 (v4hi_UP): Map to V4HImode.
5319 (v4hf_UP): Map to V4HFmode.
5320 (v2si_UP): Map to V2SImode.
5321 (v2sf_UP): Map to V2SFmode.
5322 (di_UP): Map to DImode.
5323 (v16qi_UP): Map to V16QImode.
5324 (v8hi_UP): Map to V8HImode.
5325 (v4si_UP): Map to V4SImode.
5326 (v4sf_UP): Map to V4SFmode.
5327 (v2di_UP): Map to V2DImode.
5328 (ti_UP): Map to TImode.
5329 (ei_UP): Map to EImode.
5330 (oi_UP): Map to OImode.
5331 (neon_itype): Delete.
5332 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5333 (VAR1): Update accordingly.
5334 (arm_init_neon_builtins): Use machine_mode directly.
5335 (neon_dereference_pointer): Likewise.
5336 (arm_expand_neon_args): Use qualifiers to decide operand types.
5337 (arm_expand_neon_builtin): Likewise.
5338 * config/arm/arm_neon_builtins.def: Remap operation type for
5341 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5343 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5344 (enum arm_simd_type): Likewise.
5345 (struct arm_simd_type_info): Likewise
5346 (arm_mangle_builtin_scalar_type): Likewise.
5347 (arm_mangle_builtin_vector_type): Likewise.
5348 (arm_mangle_builtin_type): Likewise.
5349 (arm_simd_builtin_std_type): Likewise.
5350 (arm_lookup_simd_builtin_type): Likewise.
5351 (arm_simd_builtin_type): Likewise.
5352 (arm_init_simd_builtin_types): Likewise.
5353 (arm_init_simd_builtin_scalar_types): Likewise.
5354 (arm_init_neon_builtins): Rewrite using qualifiers.
5355 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5356 * config/arm/arm-simd-builtin-types.def: New file.
5357 * config/arm/t-arm (arm-builtins.o): Depend on it.
5358 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5359 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5360 (int16x4_t): Likewise.
5361 (int32x2_t): Likewise.
5362 (float16x4_t): Likewise.
5363 (float32x2_t): Likewise.
5364 (poly8x8_t): Likewise.
5365 (poly16x4_t): Likewise.
5366 (uint8x8_t): Likewise.
5367 (uint16x4_t): Likewise.
5368 (uint32x2_t): Likewise.
5369 (int8x16_t): Likewise.
5370 (int16x8_t): Likewise.
5371 (int32x4_t): Likewise.
5372 (int64x2_t): Likewise.
5373 (float32x4_t): Likewise.
5374 (poly8x16_t): Likewise.
5375 (poly16x8_t): Likewise.
5376 (uint8x16_t): Likewise.
5377 (uint16x8_t): Likewise.
5378 (uint32x4_t): Likewise.
5379 (uint64x2_t): Likewise.
5381 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5383 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5384 (neon_itype): Add new types corresponding to the types used in
5386 (arm_unop_qualifiers): New.
5387 (arm_bswap_qualifiers): Likewise.
5388 (arm_binop_qualifiers): Likewise.
5389 (arm_ternop_qualifiers): Likewise.
5390 (arm_getlane_qualifiers): Likewise.
5391 (arm_lanemac_qualifiers): Likewise.
5392 (arm_setlane_qualifiers): Likewise.
5393 (arm_combine_qualifiers): Likewise.
5394 (arm_load1_qualifiers): Likewise.
5395 (arm_load1_lane_qualifiers): Likewise.
5396 (arm_store1_qualifiers): Likewise.
5397 (arm_storestruct_lane_qualifiers): Likewise.
5398 (UNOP_QUALIFIERS): Likewise.
5399 (DUP_QUALIFIERS): Likewise.
5400 (SPLIT_QUALIFIERS): Likewise.
5401 (CONVERT_QUALIFIERS): Likewise.
5402 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5403 (FLOAT_NARROW_QUALIFIERS): Likewise.
5404 (RINT_QUALIFIERS): Likewise.
5405 (COPYSIGNF_QUALIFIERS): Likewise.
5406 (CREATE_QUALIFIERS): Likewise.
5407 (REINTERP_QUALIFIERS): Likewise.
5408 (BSWAP_QUALIFIERS): Likewise.
5409 (BINOP_QUALIFIERS): Likewise.
5410 (FIXCONV_QUALIFIERS): Likewise.
5411 (SCALARMUL_QUALIFIERS): Likewise.
5412 (SCALARMULL_QUALIFIERS): Likewise.
5413 (SCALARMULH_QUALIFIERS): Likewise.
5414 (TERNOP_QUALIFIERS): Likewise.
5415 (SELECT_QUALIFIERS): Likewise.
5416 (VTBX_QUALIFIERS): Likewise.
5417 (GETLANE_QUALIFIERS): Likewise.
5418 (SHIFTIMM_QUALIFIERS): Likewise.
5419 (LANEMAC_QUALIFIERS): Likewise.
5420 (SCALARMAC_QUALIFIERS): Likewise.
5421 (SETLANE_QUALIFIERS): Likewise.
5422 (SHIFTINSERT_QUALIFIERS): Likewise.
5423 (SHIFTACC_QUALIFIERS): Likewise.
5424 (LANEMUL_QUALIFIERS): Likewise.
5425 (LANEMULL_QUALIFIERS): Likewise.
5426 (LANEMULH_QUALIFIERS): Likewise.
5427 (COMBINE_QUALIFIERS): Likewise.
5428 (VTBL_QUALIFIERS): Likewise.
5429 (LOAD1_QUALIFIERS): Likewise.
5430 (LOADSTRUCT_QUALIFIERS): Likewise.
5431 (LOAD1LANE_QUALIFIERS): Likewise.
5432 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5433 (STORE1_QUALIFIERS): Likewise.
5434 (STORESTRUCT_QUALIFIERS): Likewise.
5435 (STORE1LANE_QUALIFIERS): Likewise.
5436 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5437 (neon_builtin_datum): Keep track of qualifiers.
5440 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5442 * config/arm/arm-builtins.c (VAR1): Add a comma.
5443 (VAR2): Rewrite in terms of VAR1.
5444 (VAR3-10): Likewise.
5445 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5446 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5448 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5450 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5451 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5452 * config/arm/arm-builtins.c: New.
5453 * config/arm/t-arm (arm_builtins.o): New.
5454 * config/arm/arm-protos.h (arm_expand_builtin): New.
5455 (arm_builtin_decl): Likewise.
5456 (arm_init_builtins): Likewise.
5457 (arm_atomic_assign_expand_fenv): Likewise.
5458 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5459 (arm_init_builtins): Likewise.
5460 (arm_init_iwmmxt_builtins): Likewise
5461 (safe_vector_operand): Likewise
5462 (arm_expand_binop_builtin): Likewise
5463 (arm_expand_unop_builtin): Likewise
5464 (arm_expand_builtin): Likewise
5465 (arm_builtin_decl): Likewise
5466 (insn_flags): Remove static.
5467 (tune_flags): Likewise.
5468 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5469 (arm_init_neon_builtins): Likewise.
5470 (struct builtin_description): Likewise.
5471 (arm_init_iwmmxt_builtins): Likewise.
5472 (arm_init_fp16_builtins): Likewise.
5473 (arm_init_crc32_builtins): Likewise.
5474 (arm_init_builtins): Likewise.
5475 (arm_builtin_decl): Likewise.
5476 (safe_vector_operand): Likewise.
5477 (arm_expand_ternop_builtin): Likewise.
5478 (arm_expand_binop_builtin): Likewise.
5479 (arm_expand_unop_builtin): Likewise.
5480 (neon_dereference_pointer): Likewise.
5481 (arm_expand_neon_args): Likewise.
5482 (arm_expand_neon_builtin): Likewise.
5483 (neon_split_vcombine): Likewise.
5484 (arm_expand_builtin): Likewise.
5485 (arm_builtin_vectorized_function): Likewise.
5486 (arm_atomic_assign_expand_fenv): Likewise.
5488 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5490 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5491 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5492 (FL_ARCH3M): Likewise.
5493 (FL_MODE26): Likewise.
5494 (FL_MODE32): Likewise.
5495 (FL_ARCH4): Likewise.
5496 (FL_ARCH5): Likewise.
5497 (FL_THUMB): Likewise.
5498 (FL_LDSCHED): Likewise.
5499 (FL_STRONG): Likewise.
5500 (FL_ARCH5E): Likewise.
5501 (FL_XSCALE): Likewise.
5502 (FL_ARCH6): Likewise.
5503 (FL_VFPV2): Likewise.
5504 (FL_WBUF): Likewise.
5505 (FL_ARCH6K): Likewise.
5506 (FL_THUMB2): Likewise.
5507 (FL_NOTM): Likewise.
5508 (FL_THUMB_DIV): Likewise.
5509 (FL_VFPV3): Likewise.
5510 (FL_NEON): Likewise.
5511 (FL_ARCH7EM): Likewise.
5512 (FL_ARCH7): Likewise.
5513 (FL_ARM_DIV): Likewise.
5514 (FL_ARCH8): Likewise.
5515 (FL_CRC32): Likewise.
5516 (FL_SMALLMUL): Likewise.
5517 (FL_IWMMXT): Likewise.
5518 (FL_IWMMXT2): Likewise.
5519 (FL_TUNE): Likewise.
5520 (FL_FOR_ARCH2): Likewise.
5521 (FL_FOR_ARCH3): Likewise.
5522 (FL_FOR_ARCH3M): Likewise.
5523 (FL_FOR_ARCH4): Likewise.
5524 (FL_FOR_ARCH4T): Likewise.
5525 (FL_FOR_ARCH5): Likewise.
5526 (FL_FOR_ARCH5T): Likewise.
5527 (FL_FOR_ARCH5E): Likewise.
5528 (FL_FOR_ARCH5TE): Likewise.
5529 (FL_FOR_ARCH5TEJ): Likewise.
5530 (FL_FOR_ARCH6): Likewise.
5531 (FL_FOR_ARCH6J): Likewise.
5532 (FL_FOR_ARCH6K): Likewise.
5533 (FL_FOR_ARCH6Z): Likewise.
5534 (FL_FOR_ARCH6ZK): Likewise.
5535 (FL_FOR_ARCH6T2): Likewise.
5536 (FL_FOR_ARCH6M): Likewise.
5537 (FL_FOR_ARCH7): Likewise.
5538 (FL_FOR_ARCH7A): Likewise.
5539 (FL_FOR_ARCH7VE): Likewise.
5540 (FL_FOR_ARCH7R): Likewise.
5541 (FL_FOR_ARCH7M): Likewise.
5542 (FL_FOR_ARCH7EM): Likewise.
5543 (FL_FOR_ARCH8A): Likewise.
5544 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5546 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5548 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5549 parameter, rearrange switch statement accordingly.
5550 (arm_evpc_neon_vrev): Remove "Magic Word".
5551 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5552 rounding, or signed/unsigned variants.
5553 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5554 (vcondu<mode><mode>): Likewise.
5555 (neon_vadd): Remove "Magic Word" operand.
5556 (neon_vaddl): Remove "Magic Word" operand, convert to use
5557 signed/unsigned iterator.
5558 (neon_vaddw): Likewise.
5559 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5560 (neon_vqadd): Remove "Magic Word" operand, convert to use
5561 signed/unsigned iterator.
5562 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5563 over "rounding" forms.
5564 (neon_vmul): Remove "Magic Word" operand, iterate over
5565 polynomial/float instruction forms.
5566 (neon_vmla): Remove "Magic Word" operand.
5567 (neon_vfma): Likewise.
5568 (neon_vfms): Likewise.
5569 (neon_vmls): Likewise.
5570 (neon_vmlal): Remove "Magic Word" operand, iterate over
5571 signed/unsigned forms.
5572 (neon_vmlsl): Likewise.
5573 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5575 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5576 signed/unsigned forms.
5577 (neon_vqdmlsl): Likewise.
5578 (neon_vmull): Likewise.
5579 (neon_vqdmull): Remove "Magic Word" operand.
5580 (neon_vsub): Remove "Magic Word" operand.
5581 (neon_vsubl): Remove "Magic Word" operand, convert to use
5582 signed/unsigned iterator.
5583 (neon_vsubw): Likewise.
5584 (neon_vhsub): Likewise.
5585 (neon_vqsub): Likewise.
5586 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5587 over "rounding" forms.
5588 (neon_vceq): Remove "Magic Word" operand.
5589 (neon_vcge): Likewise.
5590 (neon_vcgeu): Likewise.
5591 (neon_vcgt): Likewise.
5592 (neon_vcgtu): Likewise.
5593 (neon_vcle): Likewise.
5594 (neon_vclt): Likewise.
5595 (neon_vcage): Likewise.
5596 (neon_vcagt): Likewise.
5597 (neon_vabd): Remove "Magic Word" operand, iterate over
5598 signed/unsigned forms, and split out...
5599 (neon_vabdf): ...this as new.
5600 (neon_vabdl): Remove "Magic Word" operand, iterate over
5601 signed/unsigned forms.
5602 (neon_vaba): Likewise.
5603 (neon_vmax): Remove "Magic Word" operand, iterate over
5604 signed/unsigned and max/min forms, and split out...
5605 (neon_v<maxmin>f): ...this as new.
5606 (neon_vmin): Delete.
5607 (neon_vpadd): Remove "Magic Word" operand.
5608 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5609 signed/unsigned variants.
5610 (neon_vpadal): Likewise.
5611 (neon_vpmax): Remove "Magic Word" operand, iterate over
5612 signed/unsigned and max/min forms, and split out...
5613 (neon_vp<maxmin>f): ...this as new.
5614 (neon_vpmin): Delete.
5615 (neon_vrecps): Remove "Magic Word" operand.
5616 (neon_vrsqrts): Likewise.
5617 (neon_vabs): Likewise.
5618 (neon_vqabs): Likewise.
5619 (neon_vneg): Likewise.
5620 (neon_vqneg): Likewise.
5621 (neon_vcls): Likewise.
5622 (neon_vcnt): Likewise.
5623 (neon_vrecpe): Likewise.
5624 (neon_vrsqrte): Likewise.
5625 (neon_vmvn): Likewise.
5626 (neon_vget_lane): Likewise.
5627 (neon_vget_laneu): New.
5628 (neon_vget_lanedi): Remove "Magic Word" operand.
5629 (neon_vget_lanev2di): Likewise.
5630 (neon_vcvt): Remove "Magic Word" operand, iterate over
5631 signed/unsigned variants.
5632 (neon_vcvt_n): Likewise.
5633 (neon_vmovn): Remove "Magic Word" operand.
5634 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5635 signed/unsigned variants.
5636 (neon_vmovun): Remove "Magic Word" operand.
5637 (neon_vmovl): Remove "Magic Word" operand, iterate over
5638 signed/unsigned variants.
5639 (neon_vmul_lane): Remove "Magic Word" operand.
5640 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5641 signed/unsigned variants.
5642 (neon_vqdmull_lane): Remove "Magic Word" operand.
5643 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5645 (neon_vmla_lane): Remove "Magic Word" operand.
5646 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5647 signed/unsigned variants.
5648 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5649 (neon_vmls_lane): Likewise.
5650 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5651 signed/unsigned variants.
5652 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5653 (neon_vmul_n): Remove "Magic Word" operand.
5654 (neon_vmull_n): Rename to...
5655 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5656 (neon_vmullu_n): New.
5657 (neon_vqdmull_n): Remove "Magic Word" operand.
5658 (neon_vqdmulh_n): Likewise.
5659 (neon_vqrdmulh_n): New.
5660 (neon_vmla_n): Remove "Magic Word" operand.
5661 (neon_vmls_n): Likewise.
5662 (neon_vmlal_n): Rename to...
5663 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5664 (neon_vmlalu_n): New.
5665 (neon_vqdmlal_n): Remove "Magic Word" operand.
5666 (neon_vmlsl_n): Rename to...
5667 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5668 (neon_vmlslu_n): New.
5669 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5670 (neon_vrev64): Remove "Magic Word" operand.
5671 (neon_vrev32): Likewise.
5672 (neon_vrev16): Likewise.
5673 (neon_vshl): Remove "Magic Word" operand, iterate over
5674 signed/unsigned and "rounding" forms.
5675 (neon_vqshl): Likewise.
5676 (neon_vshr_n): Likewise.
5677 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5679 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5680 signed/unsigned and "rounding" forms.
5681 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5683 (neon_vshl_n): Remove "Magic Word" operand.
5684 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5685 signed/unsigned variants.
5686 (neon_vqshlu_n): Remove "Magic Word" operand.
5687 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5688 signed/unsigned variants.
5689 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5690 signed/unsigned and "rounding" forms.
5691 * config/arm/iterators.md (VPF): New.
5698 (VMLAL_LANE): Likewise.
5700 (VMLSL_LANE): Likewise.
5701 (VQDMULH): Likewise,
5702 (VQDMULH_LANE): Likewise.
5704 (VMULL_LANE): Likewise.
5712 (VMAXMIN): Likewise.
5713 (VMAXMINF): Likewise.
5716 (VPMAXMIN): Likewise.
5717 (VPMAXMINF): Likewise.
5718 (VCVT_US): Likewise.
5719 (VCVT_US_N): Likewise.
5725 (VSHRN_N): Likewise.
5726 (VQSHRN_N): Likewise.
5727 (VQSHRUN_N): Likewise.
5728 (VQSHL_N): Likewise.
5729 (VSHLL_N): Likewise.
5735 (shift_op): Likewise.
5736 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5737 (vaddls): ...this and...
5739 (vaddw): Split to...
5740 (vaddws): ...this and...
5742 (vhadd): Split to...
5743 (vhadds): ...this and...
5744 (vhaddu): ...this and...
5745 (vrhadds): ...this and...
5747 (vqadd): Split to...
5748 (vqadds): ...this and...
5750 (vaddhn): Split to itself and...
5753 (vmulf): ...this and...
5755 (vmlal): Split to...
5756 (vmlals): ...this and...
5758 (vmlsl): Split to...
5759 (vmlsls): ...this and...
5761 (vqdmulh): Split to itself and...
5762 (vqrdmulh): ...this.
5763 (vmull): Split to...
5764 (vmullp): ...this and...
5765 (vmulls): ...this and...
5767 (vmull_n): Split to...
5768 (vmulls_n): ...this and...
5769 (vmullu_n): ...this.
5770 (vmull_lane): Split to...
5771 (vmulls_lane): ...this and...
5772 (vmullu_lane): ...this.
5773 (vqdmulh_n): Split to itself and...
5774 (vqrdmulh_n): ...this.
5775 (vqdmulh_lane): Split to itself and...
5776 (vqrdmulh_lane): ...this.
5778 (vshls): ...this and...
5779 (vshlu): ...this and...
5780 (vrshls): ...this and...
5782 (vqshl): Split to...
5783 (vqshls): ...this and...
5784 (vqrshlu): ...this and...
5785 (vqrshls): ...this and...
5787 (vshr_n): Split to...
5788 (vshrs_n): ...this and...
5789 (vshru_n): ...this and...
5790 (vrshrs_n): ...this and...
5791 (vrshru_n): ...this.
5792 (vshrn_n): Split to itself and...
5793 (vrshrn_n): ...this.
5794 (vqshrn_n): Split to...
5795 (vqshrns_n): ...this and...
5796 (vqshrnu_n): ...this and...
5797 (vqrshrns_n): ...this and...
5798 (vqrshrnu_n): ...this.
5799 (vqshrun_n): Split to itself and...
5800 (vqrshrun_n): ...this.
5801 (vqshl_n): Split to...
5802 (vqshl_s_n): ...this and...
5803 (vqshl_u_n): ...this.
5804 (vshll_n): Split to...
5805 (vshlls_n): ...this and...
5806 (vshllu_n): ...this.
5807 (vsra_n): Split to...
5808 (vsras_n): ...this and...
5809 (vsrau_n): ...this and.
5810 (vrsras_n): ...this and...
5811 (vrsrau_n): ...this and.
5812 (vsubl): Split to...
5813 (vsubls): ...this and...
5815 (vsubw): Split to...
5816 (vsubws): ...this and...
5818 (vqsub): Split to...
5819 (vqsubs): ...this and...
5821 (vhsub): Split to...
5822 (vhsubs): ...this and...
5824 (vsubhn): Split to itself and...
5827 (vabds): ...this and...
5828 (vabdu): ...this and...
5830 (vabdl): Split to...
5831 (vabdls): ...this and...
5834 (vabas): ...this and...
5835 (vabau): ...this and...
5836 (vabal): Split to...
5837 (vabals): ...this and...
5840 (vmaxs): ...this and...
5841 (vmaxu): ...this and...
5844 (vmins): ...this and...
5845 (vminu): ...this and...
5847 (vpmax): Split to...
5848 (vpmaxs): ...this and...
5849 (vpmaxu): ...this and...
5851 (vpmin): Split to...
5852 (vpmins): ...this and...
5853 (vpminu): ...this and...
5855 (vpaddl): Split to...
5856 (vpaddls): ...this and...
5858 (vpadal): Split to...
5859 (vpadals): ...this and...
5862 (vqmovn): Split to...
5863 (vqmovns): ...this and...
5865 (vmovl): Split to...
5866 (vmovls): ...this and...
5868 (vmlal_lane): Split to...
5869 (vmlals_lane): ...this and...
5870 (vmlalu_lane): ...this.
5871 (vmlsl_lane): Split to...
5872 (vmlsls_lane): ...this and...
5873 (vmlslu_lane): ...this.
5874 (vmlal_n): Split to...
5875 (vmlals_n): ...this and...
5876 (vmlalu_n): ...this.
5877 (vmlsl_n): Split to...
5878 (vmlsls_n): ...this and...
5879 (vmlslu_n): ...this.
5880 (vext): Make type "SHIFTINSERT".
5882 (vcvts): ...this and...
5884 (vcvt_n): Split to...
5885 (vcvts_n): ...this and...
5887 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5888 (vaddl_s16): Likewise.
5889 (vaddl_s32): Likewise.
5890 (vaddl_u8): Likewise.
5891 (vaddl_u16): Likewise.
5892 (vaddl_u32): Likewise.
5893 (vaddw_s8): Likewise.
5894 (vaddw_s16): Likewise.
5895 (vaddw_s32): Likewise.
5896 (vaddw_u8): Likewise.
5897 (vaddw_u16): Likewise.
5898 (vaddw_u32): Likewise.
5899 (vhadd_s8): Likewise.
5900 (vhadd_s16): Likewise.
5901 (vhadd_s32): Likewise.
5902 (vhadd_u8): Likewise.
5903 (vhadd_u16): Likewise.
5904 (vhadd_u32): Likewise.
5905 (vhaddq_s8): Likewise.
5906 (vhaddq_s16): Likewise.
5907 (vhaddq_s32): Likewise.
5908 (vhaddq_u8): Likewise.
5909 (vhaddq_u16): Likewise.
5910 (vrhadd_s8): Likewise.
5911 (vrhadd_s16): Likewise.
5912 (vrhadd_s32): Likewise.
5913 (vrhadd_u8): Likewise.
5914 (vrhadd_u16): Likewise.
5915 (vrhadd_u32): Likewise.
5916 (vrhaddq_s8): Likewise.
5917 (vrhaddq_s16): Likewise.
5918 (vrhaddq_s32): Likewise.
5919 (vrhaddq_u8): Likewise.
5920 (vrhaddq_u16): Likewise.
5921 (vrhaddq_u32): Likewise.
5922 (vqadd_s8): Likewise.
5923 (vqadd_s16): Likewise.
5924 (vqadd_s32): Likewise.
5925 (vqadd_s64): Likewise.
5926 (vqadd_u8): Likewise.
5927 (vqadd_u16): Likewise.
5928 (vqadd_u32): Likewise.
5929 (vqadd_u64): Likewise.
5930 (vqaddq_s8): Likewise.
5931 (vqaddq_s16): Likewise.
5932 (vqaddq_s32): Likewise.
5933 (vqaddq_s64): Likewise.
5934 (vqaddq_u8): Likewise.
5935 (vqaddq_u16): Likewise.
5936 (vqaddq_u32): Likewise.
5937 (vqaddq_u64): Likewise.
5938 (vaddhn_s16): Likewise.
5939 (vaddhn_s32): Likewise.
5940 (vaddhn_s64): Likewise.
5941 (vaddhn_u16): Likewise.
5942 (vaddhn_u32): Likewise.
5943 (vaddhn_u64): Likewise.
5944 (vraddhn_s16): Likewise.
5945 (vraddhn_s32): Likewise.
5946 (vraddhn_s64): Likewise.
5947 (vraddhn_u16): Likewise.
5948 (vraddhn_u32): Likewise.
5949 (vraddhn_u64): Likewise.
5950 (vmul_p8): Likewise.
5951 (vmulq_p8): Likewise.
5952 (vqdmulh_s16): Likewise.
5953 (vqdmulh_s32): Likewise.
5954 (vqdmulhq_s16): Likewise.
5955 (vqdmulhq_s32): Likewise.
5956 (vqrdmulh_s16): Likewise.
5957 (vqrdmulh_s32): Likewise.
5958 (vqrdmulhq_s16): Likewise.
5959 (vqrdmulhq_s32): Likewise.
5960 (vmull_s8): Likewise.
5961 (vmull_s16): Likewise.
5962 (vmull_s32): Likewise.
5963 (vmull_u8): Likewise.
5964 (vmull_u16): Likewise.
5965 (vmull_u32): Likewise.
5966 (vmull_p8): Likewise.
5967 (vqdmull_s16): Likewise.
5968 (vqdmull_s32): Likewise.
5969 (vmla_s8): Likewise.
5970 (vmla_s16): Likewise.
5971 (vmla_s32): Likewise.
5972 (vmla_f32): Likewise.
5973 (vmla_u8): Likewise.
5974 (vmla_u16): Likewise.
5975 (vmla_u32): Likewise.
5976 (vmlaq_s8): Likewise.
5977 (vmlaq_s16): Likewise.
5978 (vmlaq_s32): Likewise.
5979 (vmlaq_f32): Likewise.
5980 (vmlaq_u8): Likewise.
5981 (vmlaq_u16): Likewise.
5982 (vmlaq_u32): Likewise.
5983 (vmlal_s8): Likewise.
5984 (vmlal_s16): Likewise.
5985 (vmlal_s32): Likewise.
5986 (vmlal_u8): Likewise.
5987 (vmlal_u16): Likewise.
5988 (vmlal_u32): Likewise.
5989 (vqdmlal_s16): Likewise.
5990 (vqdmlal_s32): Likewise.
5991 (vmls_s8): Likewise.
5992 (vmls_s16): Likewise.
5993 (vmls_s32): Likewise.
5994 (vmls_f32): Likewise.
5995 (vmls_u8): Likewise.
5996 (vmls_u16): Likewise.
5997 (vmls_u32): Likewise.
5998 (vmlsq_s8): Likewise.
5999 (vmlsq_s16): Likewise.
6000 (vmlsq_s32): Likewise.
6001 (vmlsq_f32): Likewise.
6002 (vmlsq_u8): Likewise.
6003 (vmlsq_u16): Likewise.
6004 (vmlsq_u32): Likewise.
6005 (vmlsl_s8): Likewise.
6006 (vmlsl_s16): Likewise.
6007 (vmlsl_s32): Likewise.
6008 (vmlsl_u8): Likewise.
6009 (vmlsl_u16): Likewise.
6010 (vmlsl_u32): Likewise.
6011 (vqdmlsl_s16): Likewise.
6012 (vqdmlsl_s32): Likewise.
6013 (vfma_f32): Likewise.
6014 (vfmaq_f32): Likewise.
6015 (vfms_f32): Likewise.
6016 (vfmsq_f32): Likewise.
6017 (vsubl_s8): Likewise.
6018 (vsubl_s16): Likewise.
6019 (vsubl_s32): Likewise.
6020 (vsubl_u8): Likewise.
6021 (vsubl_u16): Likewise.
6022 (vsubl_u32): Likewise.
6023 (vsubw_s8): Likewise.
6024 (vsubw_s16): Likewise.
6025 (vsubw_s32): Likewise.
6026 (vsubw_u8): Likewise.
6027 (vsubw_u16): Likewise.
6028 (vsubw_u32): Likewise.
6029 (vhsub_s8): Likewise.
6030 (vhsub_s16): Likewise.
6031 (vhsub_s32): Likewise.
6032 (vhsub_u8): Likewise.
6033 (vhsub_u16): Likewise.
6034 (vhsub_u32): Likewise.
6035 (vhsubq_s8): Likewise.
6036 (vhsubq_s16): Likewise.
6037 (vhsubq_s32): Likewise.
6038 (vhsubq_u8): Likewise.
6039 (vhsubq_u16): Likewise.
6040 (vhsubq_u32): Likewise.
6041 (vqsub_s8): Likewise.
6042 (vqsub_s16): Likewise.
6043 (vqsub_s32): Likewise.
6044 (vqsub_s64): Likewise.
6045 (vqsub_u8): Likewise.
6046 (vqsub_u16): Likewise.
6047 (vqsub_u32): Likewise.
6048 (vqsub_u64): Likewise.
6049 (vqsubq_s8): Likewise.
6050 (vqsubq_s16): Likewise.
6051 (vqsubq_s32): Likewise.
6052 (vqsubq_s64): Likewise.
6053 (vqsubq_u8): Likewise.
6054 (vqsubq_u16): Likewise.
6055 (vqsubq_u32): Likewise.
6056 (vqsubq_u64): Likewise.
6057 (vsubhn_s16): Likewise.
6058 (vsubhn_s32): Likewise.
6059 (vsubhn_s64): Likewise.
6060 (vsubhn_u16): Likewise.
6061 (vsubhn_u32): Likewise.
6062 (vsubhn_u64): Likewise.
6063 (vrsubhn_s16): Likewise.
6064 (vrsubhn_s32): Likewise.
6065 (vrsubhn_s64): Likewise.
6066 (vrsubhn_u16): Likewise.
6067 (vrsubhn_u32): Likewise.
6068 (vrsubhn_u64): Likewise.
6069 (vceq_s8): Likewise.
6070 (vceq_s16): Likewise.
6071 (vceq_s32): Likewise.
6072 (vceq_f32): Likewise.
6073 (vceq_u8): Likewise.
6074 (vceq_u16): Likewise.
6075 (vceq_u32): Likewise.
6076 (vceq_p8): Likewise.
6077 (vceqq_s8): Likewise.
6078 (vceqq_s16): Likewise.
6079 (vceqq_s32): Likewise.
6080 (vceqq_f32): Likewise.
6081 (vceqq_u8): Likewise.
6082 (vceqq_u16): Likewise.
6083 (vceqq_u32): Likewise.
6084 (vceqq_p8): Likewise.
6085 (vcge_s8): Likewise.
6086 (vcge_s16): Likewise.
6087 (vcge_s32): Likewise.
6088 (vcge_f32): Likewise.
6089 (vcge_u8): Likewise.
6090 (vcge_u16): Likewise.
6091 (vcge_u32): Likewise.
6092 (vcgeq_s8): Likewise.
6093 (vcgeq_s16): Likewise.
6094 (vcgeq_s32): Likewise.
6095 (vcgeq_f32): Likewise.
6096 (vcgeq_u8): Likewise.
6097 (vcgeq_u16): Likewise.
6098 (vcgeq_u32): Likewise.
6099 (vcle_s8): Likewise.
6100 (vcle_s16): Likewise.
6101 (vcle_s32): Likewise.
6102 (vcle_f32): Likewise.
6103 (vcle_u8): Likewise.
6104 (vcle_u16): Likewise.
6105 (vcle_u32): Likewise.
6106 (vcleq_s8): Likewise.
6107 (vcleq_s16): Likewise.
6108 (vcleq_s32): Likewise.
6109 (vcleq_f32): Likewise.
6110 (vcleq_u8): Likewise.
6111 (vcleq_u16): Likewise.
6112 (vcleq_u32): Likewise.
6113 (vcgt_s8): Likewise.
6114 (vcgt_s16): Likewise.
6115 (vcgt_s32): Likewise.
6116 (vcgt_f32): Likewise.
6117 (vcgt_u8): Likewise.
6118 (vcgt_u16): Likewise.
6119 (vcgt_u32): Likewise.
6120 (vcgtq_s8): Likewise.
6121 (vcgtq_s16): Likewise.
6122 (vcgtq_s32): Likewise.
6123 (vcgtq_f32): Likewise.
6124 (vcgtq_u8): Likewise.
6125 (vcgtq_u16): Likewise.
6126 (vcgtq_u32): Likewise.
6127 (vclt_s8): Likewise.
6128 (vclt_s16): Likewise.
6129 (vclt_s32): Likewise.
6130 (vclt_f32): Likewise.
6131 (vclt_u8): Likewise.
6132 (vclt_u16): Likewise.
6133 (vclt_u32): Likewise.
6134 (vcltq_s8): Likewise.
6135 (vcltq_s16): Likewise.
6136 (vcltq_s32): Likewise.
6137 (vcltq_f32): Likewise.
6138 (vcltq_u8): Likewise.
6139 (vcltq_u16): Likewise.
6140 (vcltq_u32): Likewise.
6141 (vcage_f32): Likewise.
6142 (vcageq_f32): Likewise.
6143 (vcale_f32): Likewise.
6144 (vcaleq_f32): Likewise.
6145 (vcagt_f32): Likewise.
6146 (vcagtq_f32): Likewise.
6147 (vcalt_f32): Likewise.
6148 (vcaltq_f32): Likewise.
6149 (vtst_s8): Likewise.
6150 (vtst_s16): Likewise.
6151 (vtst_s32): Likewise.
6152 (vtst_u8): Likewise.
6153 (vtst_u16): Likewise.
6154 (vtst_u32): Likewise.
6155 (vtst_p8): Likewise.
6156 (vtstq_s8): Likewise.
6157 (vtstq_s16): Likewise.
6158 (vtstq_s32): Likewise.
6159 (vtstq_u8): Likewise.
6160 (vtstq_u16): Likewise.
6161 (vtstq_u32): Likewise.
6162 (vtstq_p8): Likewise.
6163 (vabd_s8): Likewise.
6164 (vabd_s16): Likewise.
6165 (vabd_s32): Likewise.
6166 (vabd_f32): Likewise.
6167 (vabd_u8): Likewise.
6168 (vabd_u16): Likewise.
6169 (vabd_u32): Likewise.
6170 (vabdq_s8): Likewise.
6171 (vabdq_s16): Likewise.
6172 (vabdq_s32): Likewise.
6173 (vabdq_f32): Likewise.
6174 (vabdq_u8): Likewise.
6175 (vabdq_u16): Likewise.
6176 (vabdq_u32): Likewise.
6177 (vabdl_s8): Likewise.
6178 (vabdl_s16): Likewise.
6179 (vabdl_s32): Likewise.
6180 (vabdl_u8): Likewise.
6181 (vabdl_u16): Likewise.
6182 (vabdl_u32): Likewise.
6183 (vaba_s8): Likewise.
6184 (vaba_s16): Likewise.
6185 (vaba_s32): Likewise.
6186 (vaba_u8): Likewise.
6187 (vaba_u16): Likewise.
6188 (vaba_u32): Likewise.
6189 (vabaq_s8): Likewise.
6190 (vabaq_s16): Likewise.
6191 (vabaq_s32): Likewise.
6192 (vabaq_u8): Likewise.
6193 (vabaq_u16): Likewise.
6194 (vabaq_u32): Likewise.
6195 (vabal_s8): Likewise.
6196 (vabal_s16): Likewise.
6197 (vabal_s32): Likewise.
6198 (vabal_u8): Likewise.
6199 (vabal_u16): Likewise.
6200 (vabal_u32): Likewise.
6201 (vmax_s8): Likewise.
6202 (vmax_s16): Likewise.
6203 (vmax_s32): Likewise.
6204 (vmax_f32): Likewise.
6205 (vmax_u8): Likewise.
6206 (vmax_u16): Likewise.
6207 (vmax_u32): Likewise.
6208 (vmaxq_s8): Likewise.
6209 (vmaxq_s16): Likewise.
6210 (vmaxq_s32): Likewise.
6211 (vmaxq_f32): Likewise.
6212 (vmaxq_u8): Likewise.
6213 (vmaxq_u16): Likewise.
6214 (vmaxq_u32): Likewise.
6215 (vmin_s8): Likewise.
6216 (vmin_s16): Likewise.
6217 (vmin_s32): Likewise.
6218 (vmin_f32): Likewise.
6219 (vmin_u8): Likewise.
6220 (vmin_u16): Likewise.
6221 (vmin_u32): Likewise.
6222 (vminq_s8): Likewise.
6223 (vminq_s16): Likewise.
6224 (vminq_s32): Likewise.
6225 (vminq_f32): Likewise.
6226 (vminq_u8): Likewise.
6227 (vminq_u16): Likewise.
6228 (vminq_u32): Likewise.
6229 (vpadd_s8): Likewise.
6230 (vpadd_s16): Likewise.
6231 (vpadd_s32): Likewise.
6232 (vpadd_f32): Likewise.
6233 (vpadd_u8): Likewise.
6234 (vpadd_u16): Likewise.
6235 (vpadd_u32): Likewise.
6236 (vpaddl_s8): Likewise.
6237 (vpaddl_s16): Likewise.
6238 (vpaddl_s32): Likewise.
6239 (vpaddl_u8): Likewise.
6240 (vpaddl_u16): Likewise.
6241 (vpaddl_u32): Likewise.
6242 (vpaddlq_s8): Likewise.
6243 (vpaddlq_s16): Likewise.
6244 (vpaddlq_s32): Likewise.
6245 (vpaddlq_u8): Likewise.
6246 (vpaddlq_u16): Likewise.
6247 (vpaddlq_u32): Likewise.
6248 (vpadal_s8): Likewise.
6249 (vpadal_s16): Likewise.
6250 (vpadal_s32): Likewise.
6251 (vpadal_u8): Likewise.
6252 (vpadal_u16): Likewise.
6253 (vpadal_u32): Likewise.
6254 (vpadalq_s8): Likewise.
6255 (vpadalq_s16): Likewise.
6256 (vpadalq_s32): Likewise.
6257 (vpadalq_u8): Likewise.
6258 (vpadalq_u16): Likewise.
6259 (vpadalq_u32): Likewise.
6260 (vpmax_s8): Likewise.
6261 (vpmax_s16): Likewise.
6262 (vpmax_s32): Likewise.
6263 (vpmax_f32): Likewise.
6264 (vpmax_u8): Likewise.
6265 (vpmax_u16): Likewise.
6266 (vpmax_u32): Likewise.
6267 (vpmin_s8): Likewise.
6268 (vpmin_s16): Likewise.
6269 (vpmin_s32): Likewise.
6270 (vpmin_f32): Likewise.
6271 (vpmin_u8): Likewise.
6272 (vpmin_u16): Likewise.
6273 (vpmin_u32): Likewise.
6274 (vrecps_f32): Likewise.
6275 (vrecpsq_f32): Likewise.
6276 (vrsqrts_f32): Likewise.
6277 (vrsqrtsq_f32): Likewise.
6278 (vshl_s8): Likewise.
6279 (vshl_s16): Likewise.
6280 (vshl_s32): Likewise.
6281 (vshl_s64): Likewise.
6282 (vshl_u8): Likewise.
6283 (vshl_u16): Likewise.
6284 (vshl_u32): Likewise.
6285 (vshl_u64): Likewise.
6286 (vshlq_s8): Likewise.
6287 (vshlq_s16): Likewise.
6288 (vshlq_s32): Likewise.
6289 (vshlq_s64): Likewise.
6290 (vshlq_u8): Likewise.
6291 (vshlq_u16): Likewise.
6292 (vshlq_u32): Likewise.
6293 (vshlq_u64): Likewise.
6294 (vrshl_s8): Likewise.
6295 (vrshl_s16): Likewise.
6296 (vrshl_s32): Likewise.
6297 (vrshl_s64): Likewise.
6298 (vrshl_u8): Likewise.
6299 (vrshl_u16): Likewise.
6300 (vrshl_u32): Likewise.
6301 (vrshl_u64): Likewise.
6302 (vrshlq_s8): Likewise.
6303 (vrshlq_s16): Likewise.
6304 (vrshlq_s32): Likewise.
6305 (vrshlq_s64): Likewise.
6306 (vrshlq_u8): Likewise.
6307 (vrshlq_u16): Likewise.
6308 (vrshlq_u32): Likewise.
6309 (vrshlq_u64): Likewise.
6310 (vqshl_s8): Likewise.
6311 (vqshl_s16): Likewise.
6312 (vqshl_s32): Likewise.
6313 (vqshl_s64): Likewise.
6314 (vqshl_u8): Likewise.
6315 (vqshl_u16): Likewise.
6316 (vqshl_u32): Likewise.
6317 (vqshl_u64): Likewise.
6318 (vqshlq_s8): Likewise.
6319 (vqshlq_s16): Likewise.
6320 (vqshlq_s32): Likewise.
6321 (vqshlq_s64): Likewise.
6322 (vqshlq_u8): Likewise.
6323 (vqshlq_u16): Likewise.
6324 (vqshlq_u32): Likewise.
6325 (vqshlq_u64): Likewise.
6326 (vqrshl_s8): Likewise.
6327 (vqrshl_s16): Likewise.
6328 (vqrshl_s32): Likewise.
6329 (vqrshl_s64): Likewise.
6330 (vqrshl_u8): Likewise.
6331 (vqrshl_u16): Likewise.
6332 (vqrshl_u32): Likewise.
6333 (vqrshl_u64): Likewise.
6334 (vqrshlq_s8): Likewise.
6335 (vqrshlq_s16): Likewise.
6336 (vqrshlq_s32): Likewise.
6337 (vqrshlq_s64): Likewise.
6338 (vqrshlq_u8): Likewise.
6339 (vqrshlq_u16): Likewise.
6340 (vqrshlq_u32): Likewise.
6341 (vqrshlq_u64): Likewise.
6342 (vshr_n_s8): Likewise.
6343 (vshr_n_s16): Likewise.
6344 (vshr_n_s32): Likewise.
6345 (vshr_n_s64): Likewise.
6346 (vshr_n_u8): Likewise.
6347 (vshr_n_u16): Likewise.
6348 (vshr_n_u32): Likewise.
6349 (vshr_n_u64): Likewise.
6350 (vshrq_n_s8): Likewise.
6351 (vshrq_n_s16): Likewise.
6352 (vshrq_n_s32): Likewise.
6353 (vshrq_n_s64): Likewise.
6354 (vshrq_n_u8): Likewise.
6355 (vshrq_n_u16): Likewise.
6356 (vshrq_n_u32): Likewise.
6357 (vshrq_n_u64): Likewise.
6358 (vrshr_n_s8): Likewise.
6359 (vrshr_n_s16): Likewise.
6360 (vrshr_n_s32): Likewise.
6361 (vrshr_n_s64): Likewise.
6362 (vrshr_n_u8): Likewise.
6363 (vrshr_n_u16): Likewise.
6364 (vrshr_n_u32): Likewise.
6365 (vrshr_n_u64): Likewise.
6366 (vrshrq_n_s8): Likewise.
6367 (vrshrq_n_s16): Likewise.
6368 (vrshrq_n_s32): Likewise.
6369 (vrshrq_n_s64): Likewise.
6370 (vrshrq_n_u8): Likewise.
6371 (vrshrq_n_u16): Likewise.
6372 (vrshrq_n_u32): Likewise.
6373 (vrshrq_n_u64): Likewise.
6374 (vshrn_n_s16): Likewise.
6375 (vshrn_n_s32): Likewise.
6376 (vshrn_n_s64): Likewise.
6377 (vshrn_n_u16): Likewise.
6378 (vshrn_n_u32): Likewise.
6379 (vshrn_n_u64): Likewise.
6380 (vrshrn_n_s16): Likewise.
6381 (vrshrn_n_s32): Likewise.
6382 (vrshrn_n_s64): Likewise.
6383 (vrshrn_n_u16): Likewise.
6384 (vrshrn_n_u32): Likewise.
6385 (vrshrn_n_u64): Likewise.
6386 (vqshrn_n_s16): Likewise.
6387 (vqshrn_n_s32): Likewise.
6388 (vqshrn_n_s64): Likewise.
6389 (vqshrn_n_u16): Likewise.
6390 (vqshrn_n_u32): Likewise.
6391 (vqshrn_n_u64): Likewise.
6392 (vqrshrn_n_s16): Likewise.
6393 (vqrshrn_n_s32): Likewise.
6394 (vqrshrn_n_s64): Likewise.
6395 (vqrshrn_n_u16): Likewise.
6396 (vqrshrn_n_u32): Likewise.
6397 (vqrshrn_n_u64): Likewise.
6398 (vqshrun_n_s16): Likewise.
6399 (vqshrun_n_s32): Likewise.
6400 (vqshrun_n_s64): Likewise.
6401 (vqrshrun_n_s16): Likewise.
6402 (vqrshrun_n_s32): Likewise.
6403 (vqrshrun_n_s64): Likewise.
6404 (vshl_n_s8): Likewise.
6405 (vshl_n_s16): Likewise.
6406 (vshl_n_s32): Likewise.
6407 (vshl_n_s64): Likewise.
6408 (vshl_n_u8): Likewise.
6409 (vshl_n_u16): Likewise.
6410 (vshl_n_u32): Likewise.
6411 (vshl_n_u64): Likewise.
6412 (vshlq_n_s8): Likewise.
6413 (vshlq_n_s16): Likewise.
6414 (vshlq_n_s32): Likewise.
6415 (vshlq_n_s64): Likewise.
6416 (vshlq_n_u8): Likewise.
6417 (vshlq_n_u16): Likewise.
6418 (vshlq_n_u32): Likewise.
6419 (vshlq_n_u64): Likewise.
6420 (vqshl_n_s8): Likewise.
6421 (vqshl_n_s16): Likewise.
6422 (vqshl_n_s32): Likewise.
6423 (vqshl_n_s64): Likewise.
6424 (vqshl_n_u8): Likewise.
6425 (vqshl_n_u16): Likewise.
6426 (vqshl_n_u32): Likewise.
6427 (vqshl_n_u64): Likewise.
6428 (vqshlq_n_s8): Likewise.
6429 (vqshlq_n_s16): Likewise.
6430 (vqshlq_n_s32): Likewise.
6431 (vqshlq_n_s64): Likewise.
6432 (vqshlq_n_u8): Likewise.
6433 (vqshlq_n_u16): Likewise.
6434 (vqshlq_n_u32): Likewise.
6435 (vqshlq_n_u64): Likewise.
6436 (vqshlu_n_s8): Likewise.
6437 (vqshlu_n_s16): Likewise.
6438 (vqshlu_n_s32): Likewise.
6439 (vqshlu_n_s64): Likewise.
6440 (vqshluq_n_s8): Likewise.
6441 (vqshluq_n_s16): Likewise.
6442 (vqshluq_n_s32): Likewise.
6443 (vqshluq_n_s64): Likewise.
6444 (vshll_n_s8): Likewise.
6445 (vshll_n_s16): Likewise.
6446 (vshll_n_s32): Likewise.
6447 (vshll_n_u8): Likewise.
6448 (vshll_n_u16): Likewise.
6449 (vshll_n_u32): Likewise.
6450 (vsra_n_s8): Likewise.
6451 (vsra_n_s16): Likewise.
6452 (vsra_n_s32): Likewise.
6453 (vsra_n_s64): Likewise.
6454 (vsra_n_u8): Likewise.
6455 (vsra_n_u16): Likewise.
6456 (vsra_n_u32): Likewise.
6457 (vsra_n_u64): Likewise.
6458 (vsraq_n_s8): Likewise.
6459 (vsraq_n_s16): Likewise.
6460 (vsraq_n_s32): Likewise.
6461 (vsraq_n_s64): Likewise.
6462 (vsraq_n_u8): Likewise.
6463 (vsraq_n_u16): Likewise.
6464 (vsraq_n_u32): Likewise.
6465 (vsraq_n_u64): Likewise.
6466 (vrsra_n_s8): Likewise.
6467 (vrsra_n_s16): Likewise.
6468 (vrsra_n_s32): Likewise.
6469 (vrsra_n_s64): Likewise.
6470 (vrsra_n_u8): Likewise.
6471 (vrsra_n_u16): Likewise.
6472 (vrsra_n_u32): Likewise.
6473 (vrsra_n_u64): Likewise.
6474 (vrsraq_n_s8): Likewise.
6475 (vrsraq_n_s16): Likewise.
6476 (vrsraq_n_s32): Likewise.
6477 (vrsraq_n_s64): Likewise.
6478 (vrsraq_n_u8): Likewise.
6479 (vrsraq_n_u16): Likewise.
6480 (vrsraq_n_u32): Likewise.
6481 (vrsraq_n_u64): Likewise.
6482 (vabs_s8): Likewise.
6483 (vabs_s16): Likewise.
6484 (vabs_s32): Likewise.
6485 (vabs_f32): Likewise.
6486 (vabsq_s8): Likewise.
6487 (vabsq_s16): Likewise.
6488 (vabsq_s32): Likewise.
6489 (vabsq_f32): Likewise.
6490 (vqabs_s8): Likewise.
6491 (vqabs_s16): Likewise.
6492 (vqabs_s32): Likewise.
6493 (vqabsq_s8): Likewise.
6494 (vqabsq_s16): Likewise.
6495 (vqabsq_s32): Likewise.
6496 (vneg_s8): Likewise.
6497 (vneg_s16): Likewise.
6498 (vneg_s32): Likewise.
6499 (vneg_f32): Likewise.
6500 (vnegq_s8): Likewise.
6501 (vnegq_s16): Likewise.
6502 (vnegq_s32): Likewise.
6503 (vnegq_f32): Likewise.
6504 (vqneg_s8): Likewise.
6505 (vqneg_s16): Likewise.
6506 (vqneg_s32): Likewise.
6507 (vqnegq_s8): Likewise.
6508 (vqnegq_s16): Likewise.
6509 (vqnegq_s32): Likewise.
6510 (vmvn_s8): Likewise.
6511 (vmvn_s16): Likewise.
6512 (vmvn_s32): Likewise.
6513 (vmvn_u8): Likewise.
6514 (vmvn_u16): Likewise.
6515 (vmvn_u32): Likewise.
6516 (vmvn_p8): Likewise.
6517 (vmvnq_s8): Likewise.
6518 (vmvnq_s16): Likewise.
6519 (vmvnq_s32): Likewise.
6520 (vmvnq_u8): Likewise.
6521 (vmvnq_u16): Likewise.
6522 (vmvnq_u32): Likewise.
6523 (vmvnq_p8): Likewise.
6524 (vcls_s8): Likewise.
6525 (vcls_s16): Likewise.
6526 (vcls_s32): Likewise.
6527 (vclsq_s8): Likewise.
6528 (vclsq_s16): Likewise.
6529 (vclsq_s32): Likewise.
6530 (vclz_s8): Likewise.
6531 (vclz_s16): Likewise.
6532 (vclz_s32): Likewise.
6533 (vclz_u8): Likewise.
6534 (vclz_u16): Likewise.
6535 (vclz_u32): Likewise.
6536 (vclzq_s8): Likewise.
6537 (vclzq_s16): Likewise.
6538 (vclzq_s32): Likewise.
6539 (vclzq_u8): Likewise.
6540 (vclzq_u16): Likewise.
6541 (vclzq_u32): Likewise.
6542 (vcnt_s8): Likewise.
6543 (vcnt_u8): Likewise.
6544 (vcnt_p8): Likewise.
6545 (vcntq_s8): Likewise.
6546 (vcntq_u8): Likewise.
6547 (vcntq_p8): Likewise.
6548 (vrecpe_f32): Likewise.
6549 (vrecpe_u32): Likewise.
6550 (vrecpeq_f32): Likewise.
6551 (vrecpeq_u32): Likewise.
6552 (vrsqrte_f32): Likewise.
6553 (vrsqrte_u32): Likewise.
6554 (vrsqrteq_f32): Likewise.
6555 (vrsqrteq_u32): Likewise.
6556 (vget_lane_s8): Likewise.
6557 (vget_lane_s16): Likewise.
6558 (vget_lane_s32): Likewise.
6559 (vget_lane_f32): Likewise.
6560 (vget_lane_u8): Likewise.
6561 (vget_lane_u16): Likewise.
6562 (vget_lane_u32): Likewise.
6563 (vget_lane_p8): Likewise.
6564 (vget_lane_p16): Likewise.
6565 (vget_lane_s64): Likewise.
6566 (vget_lane_u64): Likewise.
6567 (vgetq_lane_s8): Likewise.
6568 (vgetq_lane_s16): Likewise.
6569 (vgetq_lane_s32): Likewise.
6570 (vgetq_lane_f32): Likewise.
6571 (vgetq_lane_u8): Likewise.
6572 (vgetq_lane_u16): Likewise.
6573 (vgetq_lane_u32): Likewise.
6574 (vgetq_lane_p8): Likewise.
6575 (vgetq_lane_p16): Likewise.
6576 (vgetq_lane_s64): Likewise.
6577 (vgetq_lane_u64): Likewise.
6578 (vcvt_s32_f32): Likewise.
6579 (vcvt_f32_s32): Likewise.
6580 (vcvt_f32_u32): Likewise.
6581 (vcvt_u32_f32): Likewise.
6582 (vcvtq_s32_f32): Likewise.
6583 (vcvtq_f32_s32): Likewise.
6584 (vcvtq_f32_u32): Likewise.
6585 (vcvtq_u32_f32): Likewise.
6586 (vcvt_n_s32_f32): Likewise.
6587 (vcvt_n_f32_s32): Likewise.
6588 (vcvt_n_f32_u32): Likewise.
6589 (vcvt_n_u32_f32): Likewise.
6590 (vcvtq_n_s32_f32): Likewise.
6591 (vcvtq_n_f32_s32): Likewise.
6592 (vcvtq_n_f32_u32): Likewise.
6593 (vcvtq_n_u32_f32): Likewise.
6594 (vmovn_s16): Likewise.
6595 (vmovn_s32): Likewise.
6596 (vmovn_s64): Likewise.
6597 (vmovn_u16): Likewise.
6598 (vmovn_u32): Likewise.
6599 (vmovn_u64): Likewise.
6600 (vqmovn_s16): Likewise.
6601 (vqmovn_s32): Likewise.
6602 (vqmovn_s64): Likewise.
6603 (vqmovn_u16): Likewise.
6604 (vqmovn_u32): Likewise.
6605 (vqmovn_u64): Likewise.
6606 (vqmovun_s16): Likewise.
6607 (vqmovun_s32): Likewise.
6608 (vqmovun_s64): Likewise.
6609 (vmovl_s8): Likewise.
6610 (vmovl_s16): Likewise.
6611 (vmovl_s32): Likewise.
6612 (vmovl_u8): Likewise.
6613 (vmovl_u16): Likewise.
6614 (vmovl_u32): Likewise.
6615 (vmul_lane_s16): Likewise.
6616 (vmul_lane_s32): Likewise.
6617 (vmul_lane_f32): Likewise.
6618 (vmul_lane_u16): Likewise.
6619 (vmul_lane_u32): Likewise.
6620 (vmulq_lane_s16): Likewise.
6621 (vmulq_lane_s32): Likewise.
6622 (vmulq_lane_f32): Likewise.
6623 (vmulq_lane_u16): Likewise.
6624 (vmulq_lane_u32): Likewise.
6625 (vmla_lane_s16): Likewise.
6626 (vmla_lane_s32): Likewise.
6627 (vmla_lane_f32): Likewise.
6628 (vmla_lane_u16): Likewise.
6629 (vmla_lane_u32): Likewise.
6630 (vmlaq_lane_s16): Likewise.
6631 (vmlaq_lane_s32): Likewise.
6632 (vmlaq_lane_f32): Likewise.
6633 (vmlaq_lane_u16): Likewise.
6634 (vmlaq_lane_u32): Likewise.
6635 (vmlal_lane_s16): Likewise.
6636 (vmlal_lane_s32): Likewise.
6637 (vmlal_lane_u16): Likewise.
6638 (vmlal_lane_u32): Likewise.
6639 (vqdmlal_lane_s16): Likewise.
6640 (vqdmlal_lane_s32): Likewise.
6641 (vmls_lane_s16): Likewise.
6642 (vmls_lane_s32): Likewise.
6643 (vmls_lane_f32): Likewise.
6644 (vmls_lane_u16): Likewise.
6645 (vmls_lane_u32): Likewise.
6646 (vmlsq_lane_s16): Likewise.
6647 (vmlsq_lane_s32): Likewise.
6648 (vmlsq_lane_f32): Likewise.
6649 (vmlsq_lane_u16): Likewise.
6650 (vmlsq_lane_u32): Likewise.
6651 (vmlsl_lane_s16): Likewise.
6652 (vmlsl_lane_s32): Likewise.
6653 (vmlsl_lane_u16): Likewise.
6654 (vmlsl_lane_u32): Likewise.
6655 (vqdmlsl_lane_s16): Likewise.
6656 (vqdmlsl_lane_s32): Likewise.
6657 (vmull_lane_s16): Likewise.
6658 (vmull_lane_s32): Likewise.
6659 (vmull_lane_u16): Likewise.
6660 (vmull_lane_u32): Likewise.
6661 (vqdmull_lane_s16): Likewise.
6662 (vqdmull_lane_s32): Likewise.
6663 (vqdmulhq_lane_s16): Likewise.
6664 (vqdmulhq_lane_s32): Likewise.
6665 (vqdmulh_lane_s16): Likewise.
6666 (vqdmulh_lane_s32): Likewise.
6667 (vqrdmulhq_lane_s16): Likewise.
6668 (vqrdmulhq_lane_s32): Likewise.
6669 (vqrdmulh_lane_s16): Likewise.
6670 (vqrdmulh_lane_s32): Likewise.
6671 (vmul_n_s16): Likewise.
6672 (vmul_n_s32): Likewise.
6673 (vmul_n_f32): Likewise.
6674 (vmul_n_u16): Likewise.
6675 (vmul_n_u32): Likewise.
6676 (vmulq_n_s16): Likewise.
6677 (vmulq_n_s32): Likewise.
6678 (vmulq_n_f32): Likewise.
6679 (vmulq_n_u16): Likewise.
6680 (vmulq_n_u32): Likewise.
6681 (vmull_n_s16): Likewise.
6682 (vmull_n_s32): Likewise.
6683 (vmull_n_u16): Likewise.
6684 (vmull_n_u32): Likewise.
6685 (vqdmull_n_s16): Likewise.
6686 (vqdmull_n_s32): Likewise.
6687 (vqdmulhq_n_s16): Likewise.
6688 (vqdmulhq_n_s32): Likewise.
6689 (vqdmulh_n_s16): Likewise.
6690 (vqdmulh_n_s32): Likewise.
6691 (vqrdmulhq_n_s16): Likewise.
6692 (vqrdmulhq_n_s32): Likewise.
6693 (vqrdmulh_n_s16): Likewise.
6694 (vqrdmulh_n_s32): Likewise.
6695 (vmla_n_s16): Likewise.
6696 (vmla_n_s32): Likewise.
6697 (vmla_n_f32): Likewise.
6698 (vmla_n_u16): Likewise.
6699 (vmla_n_u32): Likewise.
6700 (vmlaq_n_s16): Likewise.
6701 (vmlaq_n_s32): Likewise.
6702 (vmlaq_n_f32): Likewise.
6703 (vmlaq_n_u16): Likewise.
6704 (vmlaq_n_u32): Likewise.
6705 (vmlal_n_s16): Likewise.
6706 (vmlal_n_s32): Likewise.
6707 (vmlal_n_u16): Likewise.
6708 (vmlal_n_u32): Likewise.
6709 (vqdmlal_n_s16): Likewise.
6710 (vqdmlal_n_s32): Likewise.
6711 (vmls_n_s16): Likewise.
6712 (vmls_n_s32): Likewise.
6713 (vmls_n_f32): Likewise.
6714 (vmls_n_u16): Likewise.
6715 (vmls_n_u32): Likewise.
6716 (vmlsq_n_s16): Likewise.
6717 (vmlsq_n_s32): Likewise.
6718 (vmlsq_n_f32): Likewise.
6719 (vmlsq_n_u16): Likewise.
6720 (vmlsq_n_u32): Likewise.
6721 (vmlsl_n_s16): Likewise.
6722 (vmlsl_n_s32): Likewise.
6723 (vmlsl_n_u16): Likewise.
6724 (vmlsl_n_u32): Likewise.
6725 (vqdmlsl_n_s16): Likewise.
6726 (vqdmlsl_n_s32): Likewise.
6728 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6730 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6731 Add cost of alu.arith in simple SImode case.
6733 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6735 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6738 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6740 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6741 (common_handle_option): Move code to finish_options.
6743 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6746 * stor-layout.c (min_align_of_type): Respect user alignment
6749 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6751 * passes.c (remove_cgraph_node_from_order): New.
6752 (do_per_function_toporder): Register cgraph removal
6755 2014-11-17 Terry Guo <terry.guo@arm.com>
6757 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6758 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6759 (generic_vfp): Likewise.
6760 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6762 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6764 PR rtl-optimization/63906
6765 * lra-remat.c (operand_to_remat): Check SP and
6766 frame_pointer_required.
6768 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6770 * doc/invoke.texi (floop-unroll-and-jam): Document
6771 (loop-unroll-jam-size): Likewise.
6772 (loop-unroll-jam-depth): Likewise.
6773 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6774 (getScheduleForBandList): Replaced unsafe union_map reuse.
6776 2014-11-17 Andrew Pinski <apinski@cavium.com>
6778 * config/aarch64/thunderx.md: Remove copyright which should not
6781 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6782 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6784 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6785 Altivec style vector loads that ignore the bottom 3 bits of the
6787 (rs6000_debug_addr_mask): New function to print the addr_mask
6788 values if debugging.
6789 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6791 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6792 vector loads that ignore the bottom 3 bits of the address. Allow
6793 pre-increment and pre-decrement on floating point, even if the
6794 -mupper-regs-{sf,df} options were used.
6795 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6796 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6797 placement for direct move support.
6798 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6799 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6800 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6801 depending on the underlying cpu.
6802 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6803 (rs6000_secondary_reload_toc_costs): Helper function to identify
6804 costs of a TOC load for secondary reload support.
6805 (rs6000_secondary_reload_memory): Helper function for secondary
6806 reload, to determine if a particular memory operation is directly
6807 handled by the hardware, or if it needs support from secondary
6808 reload to create a valid address.
6809 (rs6000_secondary_reload): Rework code, to be clearer. If the
6810 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6811 reload scalar values, since the FPR registers have D-form
6812 addressing. Move most of the code handling memory to the function
6813 rs6000_secondary_reload_memory, and use the reg_addr structure to
6814 determine what type of address modes are supported. Print more
6815 debug information if -mdebug=addr.
6816 (rs6000_secondary_reload_inner): Rework entire function to be more
6817 general. Use the reg_addr bits to determine what type of
6818 addressing is supported.
6819 (rs6000_preferred_reload_class): Rework. Move constant handling
6820 into a single place. Prefer using FLOAT_REGS for scalar floating
6822 (rs6000_secondary_reload_class): Use a FPR register to move a
6823 value from an Altivec register to a GPR, and vice versa. Move VSX
6824 handling above traditional floating point.
6826 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6827 Delete some spaces in the constraints.
6828 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6829 allow using FPR registers to load/store an Altivec register for
6830 scalar floating point types.
6831 (SF->SF move peephole2): Likewise.
6832 (DFmode splitter): Add a define_split to move floating point
6833 constants to the constant pool before register allocation.
6834 Normally constants are put into the pool immediately, but
6835 -ffast-math delays putting them into the constant pool for the
6836 reciprocal approximation support.
6837 (SFmode splitter): Likewise.
6839 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6840 (-mupper-regs-sf): Likewise.
6842 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6843 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6845 (-mupper-regs): New combination option that sets -mupper-regs-sf
6846 and -mupper-regs-df by default if the cpu supports the instructions.
6848 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6849 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6851 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6852 to return true if the operand is a floating point constant that
6853 must be put into the constant pool, before register allocation
6856 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6857 -mupper-regs-df by default.
6858 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6859 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6860 various -mcpu=... options.
6861 (power7 cpu): Enable -mupper-regs-df by default.
6863 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6866 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6868 * ira-conflicts.c (build_conflict_bit_table): Add the current
6869 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6871 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6873 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6874 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6875 (devirtualization_time_bonus): Use it.
6876 (ipcp_discover_new_direct_edges): Likewise.
6877 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6878 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6880 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6882 * tree.c (free_lang_data_in_decl): Set
6883 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6885 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6887 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6888 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6890 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6892 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6893 (cgraph_node::cannot_return_p): Likewise.
6894 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6895 (cgraph_edge::maybe_hot_p): Likewise.
6897 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6899 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6900 (optimize_function_for_size_p): Likewise.
6901 (probably_never_executed): Likewise; replace cfun by fun.
6903 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6905 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6906 variant reading from memory and assembling to ld1.
6908 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6909 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6910 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6911 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6912 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6913 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6914 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6916 2014-11-17 Jason Merrill <jason@redhat.com>
6918 * tree-inline.c (copy_fn): New.
6919 * tree-inline.h: Declare it.
6921 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6923 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6924 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6925 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6926 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6927 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6928 * config/aarch64/iterators.md (VD1): Remove.
6930 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6932 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6933 AARCH64_FL_CRYPTO from feature flags.
6934 (cortex-a57): Likewise.
6935 (cortex-a57.cortex-a53): Likewise.
6937 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6939 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6940 DECL_FUNCTION_SPECIFIC_TARGET.
6941 * i386.c (ix86_set_current_function): Handle explicit default options.
6943 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6945 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6947 (expand_builtin_mempcpy_with_bounds): Likewise.
6948 (expand_builtin_memset_with_bounds): Likewise.
6950 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6952 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6953 ipa-ref.h, plugin-api.h.
6954 (get_string_length): Handle calls with bounds.
6955 (adjust_last_stmt): Likewise.
6956 (handle_builtin_strchr): Likewise.
6957 (handle_builtin_strcpy): Likewise.
6958 (handle_builtin_memcpy): Likewise.
6959 (handle_builtin_strcat): Likewise.
6961 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6963 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6964 (chkp_get_nochk_fndecl): New.
6965 (chkp_optimize_string_function_calls): New.
6966 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6967 * tree-cfg.h (insert_cond_bb): New.
6968 * tree-cfg.c (insert_cond_bb): New.
6970 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6972 * tree-core.h (built_in_class): Add builtin codes to be used
6973 by Pointer Bounds Checker for instrumented builtin functions.
6974 * tree-streamer-in.c: Include ipa-chkp.h.
6975 (streamer_get_builtin_tree): Created instrumented decl if
6977 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6978 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6980 (chkp_maybe_clone_builtin_fndecl): New.
6981 (chkp_maybe_create_clone): Support builtin function decls.
6982 (chkp_versioning): Clone builtin functions.
6983 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6984 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6985 (chkp_replace_function_pointer): Likewise.
6986 * builtins.c (expand_builtin_memcpy_args): New.
6987 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6988 (expand_builtin_memcpy_with_bounds): New.
6989 (expand_builtin_mempcpy_with_bounds): New.
6990 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6991 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6992 (expand_builtin_memset_with_bounds): New.
6993 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6994 (expand_builtin_with_bounds): New.
6995 * builtins.h (expand_builtin_with_bounds): New.
6996 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6998 2014-11-17 Dodji Seketeli <dodji@redhat.com>
7000 * gimple.h (gimple_set_visited, gimple_visited_p)
7001 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
7002 comments to these accessors.
7004 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
7006 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
7007 Set avr_log_details to "all".
7009 2014-11-17 Richard Biener <rguenther@suse.de>
7012 * match.pd: Guard X / CST -> X * CST' transform against
7015 2014-11-17 Terry Guo <terry.guo@arm.com>
7017 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
7020 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
7022 * ifcvt.c (HAVE_cbranchcc4): Define.
7023 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
7024 Use HAVE_cbranchcc4.
7026 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7028 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
7029 aarch64_convert_mode, aarch64_gen_ccmp_first,
7030 aarch64_gen_ccmp_next): New functions.
7031 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
7033 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7035 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
7036 * aarch64.c (aarch64_nzcv_codes): New data.
7037 (aarch64_ccmp_mode_to_code): New.
7038 (aarch64_print_operand): Output nzcv.
7039 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
7041 (cstore<mode>4): Handle ccmp_cc_register.
7042 * config/aarch64/predicates.md (const0_operand): New.
7044 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7046 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
7047 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
7048 extacted from aarch64_get_condition_code.
7049 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
7050 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
7052 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7054 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
7055 aarch64_ccmp_operand): New constraints.
7057 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7059 * Makefile.in: Add ccmp.o.
7062 * expr.c: include "ccmp.h"
7063 (expand_cond_expr_using_cmove): Handle VOIDmode.
7064 (expand_expr_real_1): Try to expand ccmp.
7066 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7068 * cfgexpand.c (expand_gimple_cond): Check ccmp.
7069 * expmed.c (emit_cstore): Make it global.
7070 * expmed.h: #include "insn-codes.h"
7071 (emit_cstore): New prototype.
7072 * expr.c (expand_operands): Make it global.
7073 * expr.h (expand_operands): New prototype.
7074 * optabs.c (get_rtx_code): Make it global.
7075 * optabs.h (get_rtx_code): New prototype.
7077 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7079 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
7080 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
7081 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
7083 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
7086 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
7087 Always combine comparisons or conversions from booleans.
7089 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
7091 * ipa-polymorphic-call.c
7092 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
7093 (ipa_polymorphic_call_context::meet_speculation_with): New function.
7094 (ipa_polymorphic_call_context::combine_with): Handle types in
7095 construction better.
7096 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
7098 (ipa_polymorphic_call_context::meet_with): New function.
7099 * cgraph.h (class ipa_polymorphic_call_context): Add
7100 meet_width, meet_speculation_with; constify speculation_consistent_p.
7101 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
7102 with incomming context.
7103 (propagate_context_accross_jump_function): Likewise; be more cureful.
7104 about set_contains_variable.
7105 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
7106 (find_more_scalar_values_for_callers_subset): Fix.
7107 (find_more_contexts_for_caller_subset): Perform meet operation.
7109 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
7111 * passes.c (execute_one_pass): Do not apply all transforms prior
7112 every simple IPA pass.
7113 * cgraphunit.c: Do not include fibheap.h
7114 (expand_thunk): Use get_untransformed_body.
7115 (cgraph_node::expand): Likewise.
7116 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
7117 * cgraph.c (release_function_body): Do not push cfun when CFG
7119 (cgraph_node::get_untransformed_body): Break out from ...
7120 (cgraph_node::get_body): ... here; add code to apply all transforms.
7121 * cgraph.h (cgraph_node): Add get_untransformed_body.
7122 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
7123 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
7124 * tree-inline.c (expand_call_inline): LIkewise.
7125 * i386.c (ix86_reset_to_default_globals): Break out from ...
7126 (ix86_set_current_function): ... here;
7127 (ix86_reset_previous_fndecl): Use it.
7128 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
7130 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
7132 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
7133 * doc/tm.texi: Regenerate.
7135 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
7137 * config/sh/sh.c: Do not include algorithm.
7138 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
7140 (sh_emit_compare_and_branch): Ditto.
7141 (sh_emit_compare_and_set): Ditto.
7142 * config/sh/sh.md (replacement peephole2): Ditto.
7143 (cstore4_media): Ditto.
7146 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
7148 * lra-remat.c (cand_transf_func): Process regno for
7149 rematerialization too.
7150 * lra.c (lra): Switch on rematerialization pass.
7152 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
7154 * lra.c (lra): Switch off rematerialization pass.
7156 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
7158 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
7159 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
7160 instead of builtins.
7161 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
7163 (_mm_sqrt_sd): Fix comment.
7164 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7165 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7166 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7167 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
7168 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
7169 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
7170 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
7171 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
7172 Use vector extensions instead of builtins.
7173 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
7174 _mm_mullo_epi32): Likewise.
7175 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
7177 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
7178 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
7179 Use vector extensions instead of builtins.
7180 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
7181 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
7182 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
7183 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
7184 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
7185 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
7186 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
7187 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
7189 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
7190 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
7191 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
7192 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
7193 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
7194 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
7195 _mm512_div_ps): Use vector extensions instead of builtins.
7196 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
7197 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
7198 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
7199 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
7202 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
7204 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
7205 * lto-streamer.h (cl_optimization_stream_out,
7206 cl_optimization_stream_in): Declare.
7207 * optc-save-gen.awk: Generate cl_optimization LTO streaming
7208 and hashing routines.
7209 * opth-gen.awk: Add prototype of cl_optimization_hash.
7210 * tree-streamer-in.c (unpack_ts_optimization): Remove.
7211 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
7212 * tree-streamer-out.c (pack_ts_optimization): Remove.
7213 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
7215 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
7217 * common.opt (flag_loop_unroll_and_jam): New flag.
7218 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
7220 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
7221 * graphite-poly.h (struct poly_bb:map_sepclass): New field
7222 * graphite-poly.c (new_poly_bb): Initialization for new field.
7223 (apply_poly_transforms): Support for unroll and jam flag.
7224 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
7226 (generate_luj_sepclass_opt): Build the separation class option.
7227 (generate_luj_options): Set unroll and jam options.
7228 (set_options): Support for unroll and jam options.
7229 (scop_to_isl_ast): Likewise
7230 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
7231 computing the separating class map.
7232 (optimize_isl): Support for the separating class map.
7233 (apply_schedule_map_to_scop): Likewise.
7234 (getScheduleMap): Likewise.
7235 (getScheduleForBand): Likewise.
7236 (getScheduleForBandList): Likewise.
7237 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
7238 * toplev.c (process_options) Likewise.
7240 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7242 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
7244 (replace_loop_annotate): ...here. Call it on the header and on the
7245 latch block, if any. Restore proper behavior of final cleanup.
7247 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7249 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
7250 for max-completely-peeled-insns limit.
7252 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7254 * ipa-prop.h (ipa_known_type_data): Remove.
7255 (ipa_binfo_from_known_type_jfunc): Remove.
7257 2014-11-14 Andrew Pinski <apinski@cavium.com>
7259 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
7261 * config/aarch64/aarch64.md: Include thunderx.md.
7262 (generic_sched): Set to no for thunderx.
7263 * config/aarch64/thunderx.md: New file.
7265 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7267 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
7270 * config/rs6000/vector.md (VEC_R): Move secondary reload support
7271 insns to rs6000.md from vector.md.
7272 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
7273 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
7274 (vec_reload_and_plus_<mptrsize>): Likewise.
7276 * config/rs6000/rs6000.md (Fa): New mode attribute to give
7277 constraint for the Altivec registers for a type.
7278 (RELOAD): New mode iterator for all of the types that have
7279 secondary reload address support to load up a base register.
7280 (extendsfdf2_fpr): Use correct constraint.
7281 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
7283 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
7284 Generate the non-VSX instruction if all registers were FPRs. Do
7285 not use the patterns in vsx.md for scalar operations.
7286 (floatsi<mode>2_lfiwax_mem): Likewise.
7287 (floatunssi<mode>2_lfiwzx): Likewise.
7288 (floatunssi<mode>2_lfiwzx_mem): Likewise.
7289 (fix_trunc<mode>di2_fctidz): Likewise.
7290 (fixuns_trunc<mode>di2_fctiduz): Likewise.
7291 (fctiwz_<mode>): Likewise.
7292 (fctiwuz_<mode>): Likewise.
7294 (floatdidf2_fpr): Likewise.
7295 (floatdidf2_mem): Likewise.
7296 (floatunsdidf2): Likewise.
7297 (floatunsdidf2_fcfidu): Likewise.
7298 (floatunsdidf2_mem): Likewise.
7299 (floatdisf2_fcfids): Likewise.
7300 (floatdisf2_mem): Likewise.
7301 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7302 it more obvious that the code is for pre-ISA 2.06 machines.
7303 (floatdisf2_internal2): Likewise.
7304 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7305 Generate the non-VSX instruction if all registers were FPRs. Do
7306 not use the patterns in vsx.md for scalar operations.
7307 (floatunsdisf2_mem): Likewise.
7308 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7309 handlers here from vector.md, and expand the types we generate
7310 reload handlers for.
7311 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7312 (vec_reload_and_plus_<mptrsize>): Likewise.
7314 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7315 vector forms of the instructions. Move VSX scalar forms to
7316 rs6000.md, and add support for -mupper-regs-sf.
7317 (vsx_floatuns<VSi><mode>2): Likewise.
7318 (vsx_fix_trunc<mode><VSi>2): Likewise.
7319 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7320 (vsx_float_fix_<mode>2): Delete DF version, rename to
7321 vsx_float_fix_v2df2.
7322 (vsx_float_fix_v2df2): Likewise.
7324 2014-11-14 Martin Jambor <mjambor@suse.cz>
7326 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7327 (ipa_pass_through_data): Removed field type_preserved.
7328 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7329 (ipa_jump_func): Removed field known_type.
7330 (ipa_get_jf_known_type_offset): Removed.
7331 (ipa_get_jf_known_type_base_type): Likewise.
7332 (ipa_get_jf_known_type_component_type): Likewise.
7333 (ipa_get_jf_ancestor_type): Likewise.
7334 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7335 (ipa_get_jf_pass_through_result): Likewise.
7336 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7337 (values_equal_for_ipcp_p): Removed BINFO handling.
7338 (ipa_get_indirect_edge_target_1): Updated comment.
7339 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7340 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7341 (ipa_set_jf_known_type): Removed.
7342 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7344 (ipa_set_jf_arith_pass_through): Likewise.
7345 (ipa_set_ancestor_jf): Likewise.
7346 (ipa_binfo_from_known_type_jfunc): Removed.
7347 (prop_type_change_info): Removed fields known_current_type and
7348 multiple_types_encountered.
7349 (extr_type_from_vtbl_ptr_store): Removed.
7350 (check_stmt_for_type_change): Do not attempt to identify changed type.
7351 (detect_type_change_from_memory_writes): Do not set the removed fields,
7352 always set jfunc to unknown.
7353 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7354 (compute_complex_ancestor_jump_func): Likewise.
7355 (compute_known_type_jump_func): Removed.
7356 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7357 change. Do not comute known type jump functions.
7358 (combine_known_type_and_ancestor_jfs): Removed.
7359 (update_jump_functions_after_inlining): Removed handling of
7360 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7361 (ipa_write_jump_function): Do not stream removed fields or known type
7363 (ipa_read_jump_function): Likewise.
7365 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7367 * lra-int.h (lra_create_live_ranges): Add parameter.
7368 * lra-lives.c (temp_bitmap): Move higher.
7369 (initiate_live_solver): Move temp_bitmap initialization into
7370 lra_live_ranges_init.
7371 (finish_live_solver): Move temp_bitmap clearing into
7373 (process_bb_lives): Add parameter. Use it to control live info
7374 update and dead insn elimination. Pass it to mark_regno_live and
7376 (lra_create_live_ranges): Add parameter. Pass it to
7378 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7379 initiate_live_solver and finish_live_solver.
7380 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7381 Use temp_bitmap to update avail_cands.
7382 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7383 check with lra_need_for_spill_p after live range pass. Switch on
7384 rematerialization pass.
7386 2014-11-14 Martin Jambor <mjambor@suse.cz>
7388 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7389 agg_preserved flag instead.
7390 (ipa_get_jf_ancestor_type_preserved): Likewise.
7391 (ipa_node_params): Rename known_vals to known_csts, update all users.
7392 New field known_contexts.
7393 (ipa_get_indirect_edge_target): Update prototype.
7394 (ipcp_poly_ctx_values_pool): Declare.
7395 (ipa_context_from_jfunc): Likewise.
7396 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7397 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7398 parameter newline of method dump.
7399 * ipa-cp.c (ctxlat): New field.
7400 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7401 (ipcp_poly_ctx_values_pool):New variable.
7402 (ipa_get_poly_ctx_lat): New function.
7403 (print_ipcp_constant_value): New overloaded function for contexts.
7404 (print_all_lattices): Also print contexts.
7405 (ipa_topo_info): New field contexts;
7406 (set_all_contains_variable): Also set the flag in the context lattice.
7407 (initialize_node_lattices): Likewise for flag bottom.
7408 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7409 (ipa_value_from_jfunc): Likewise.
7410 (ipa_context_from_jfunc): New function.
7411 (values_equal_for_ipcp_p): New overloaded function for contexts.
7412 (allocate_and_init_ipcp_value): Construct the value.
7413 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7414 (propagate_scalar_accross_jump_function): Removed handling of
7415 KNOWN_TYPE jump functions.
7416 (propagate_context_accross_jump_function): New function.
7417 (propagate_constants_accross_call): Also propagate contexts.
7418 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7419 (ipa_get_indirect_edge_target): Likewise.
7420 (devirtualization_time_bonus): Likewise.
7421 (gather_context_independent_values): Create and populate known_contexts
7422 vector rather than known_binfos.
7423 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7424 (estimate_local_effects): Likewise.
7425 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7427 (ipcp_propagate_stage): Also propagate effects of contexts.
7428 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7429 ipa_get_indirect_edge_target_1.
7430 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7431 (create_specialized_node): Work on contexts rather than BINFOs.
7432 (find_more_contexts_for_caller_subset): New function.
7433 (known_contexts_useful_p): New function.
7434 (copy_useful_known_contexts): Likewise.
7435 (modify_known_vectors_with_val): Likewise.
7436 (ipcp_val_in_agg_replacements_p): Renamed to
7437 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7439 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7440 (decide_about_value): Work on contexts rather than BINFOs.
7441 (decide_whether_version_node): Likewise.
7442 (ipcp_driver): Initialize the new alloc pool.
7443 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7444 printing of edge contexts.
7445 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7446 type_preserved to false.
7447 (update_jump_functions_after_inlining): Use access function instead of
7448 reading agg_preserved directly. Store combined context in the ancestor
7450 (try_make_edge_direct_virtual_call): Work on contexts rather than
7452 (update_indirect_edges_after_inlining): Get context from
7453 ipa_context_from_jfunc.
7454 (ipa_free_node_params_substructures): Free also known_contexts.
7455 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7456 (ipa_free_all_structures_after_iinln): Likewise.
7457 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7458 contexts rather than BINFOs.
7459 (estimate_edge_devirt_benefit): Likewise.
7460 (estimate_edge_size_and_time): Likewise.
7461 (estimate_calls_size_and_time): Likewise.
7462 (estimate_node_size_and_time): Likewise.
7463 (estimate_ipcp_clone_size_and_time): Likewise.
7464 (do_estimate_edge_time): Likewise.
7465 (do_estimate_edge_size): Likewise.
7466 (do_estimate_edge_hints): Likewise.
7467 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7468 parameter newline, ouput newline only when it is set.
7469 (ipa_polymorphic_call_context::equal_to): New method.
7471 2014-11-14 Martin Jambor <mjambor@suse.cz>
7473 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7474 users converted to the same specialization as the using class/function
7475 or specialization on tree.
7476 (ipcp_value): Likewise.
7477 (ipcp_lattice): Likewise.
7478 (ipcp_agg_lattice): Now derived from tree specialization of
7480 (values_topo): Moved to new class value_topo_info.
7481 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7482 Updated all callers.
7483 (print_lattice): Turned into ipcp_lattice::print. Updated all
7485 (value_topo_info): New class template.
7486 (ipa_topo_info): New field constants. New constructor.
7487 (build_toporder_info): Do not clear stack_top, only checkign assert
7489 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7490 Updated all callers.
7491 (set_lattice_contains_variable): Turned into
7492 ipcp_lattice::set_contains_variable. Updated all callers.
7493 (add_value_source): Turned into ipcp_value::add_source. Updated all
7495 (allocate_and_init_ipcp_value): New function.
7496 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7497 parameter got default a value. Updated all callers.
7498 (add_scalar_value_to_lattice): Removed, users converted to using
7499 ipcp_lattice::add_value with default value of the last parameter.
7500 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7502 (propagate_effects): Made method of value_topo_info.
7503 (cgraph_edge_brings_value_p): Now a template function.
7504 (get_info_about_necessary_edges): Likewise.
7505 (gather_edges_for_value): Likewise.
7506 (perhaps_add_new_callers): Likewise.
7507 (decide_about_value): Likewise.
7508 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7510 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7512 * doc/install.texi (--with-diagnostics-color=): Document.
7514 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7515 IFN_GOMP_SIMD_LANE without lhs as useless.
7517 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7518 (varying_state): Add true for can_free.
7519 (check_call): For builtin or internal !nonfreeing_call_p set
7521 (check_stmt): For asm volatile and asm with "memory" set
7523 (analyze_function): Clear local->can_free initially, continue
7524 calling check_stmt until all flags are computed, dump can_free
7526 (pure_const_write_summary): Write can_free flag.
7527 (pure_const_read_summary): Read it back.
7528 (propagate_pure_const): Propagate also can_free flag, set
7529 w->nonfreeing_fn if it is false after propagation.
7530 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7531 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7532 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7533 Also return true for IFN_ABNORMAL_DISPATCHER.
7534 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7535 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7536 (input_overwrite_node): Read it back.
7538 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7539 Marek Polacek <polacek@redhat.com>
7541 * sanopt.c: Include tree-ssa-operands.h.
7542 (struct sanopt_info): Add has_freeing_call_p,
7543 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7544 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7545 being_visited_p fields.
7546 (struct sanopt_ctx): Add asan_check_map field.
7547 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7548 maybe_optimize_asan_check_ifn): New functions.
7549 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7551 (pass_sanopt::execute): Call sanopt_optimize even for
7553 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7556 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7558 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7559 'if (extract_scalar_result)' to the only place that it is true.
7561 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7563 * config.gcc (default_gnu_indirect_function): Set to yes
7564 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7567 2014-11-14 Felix Yang <felix.yang@huawei.com>
7568 Jiji Jiang <jiangjiji@huawei.com>
7570 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7571 VALL mode iterator instead of VALLDI.
7573 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7575 * optc-save-gen.awk: Output cl_target_option_eq,
7576 cl_target_option_hash, cl_target_option_stream_out,
7577 cl_target_option_stream_in functions.
7578 * opth-gen.awk: Output prototypes for
7579 cl_target_option_eq and cl_target_option_hash.
7580 * lto-streamer.h (cl_target_option_stream_out,
7581 cl_target_option_stream_in): Declare.
7582 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7583 (cl_option_hash_eq): Use cl_target_option_eq.
7584 * tree-streamer-in.c (unpack_value_fields): Stream in
7586 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7587 DECL_FUNCTION_SPECIFIC_TARGET.
7588 (hash_tree): Hash TREE_TARGET_OPTION; visit
7589 DECL_FUNCTION_SPECIFIC_TARGET.
7590 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7592 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7594 2014-11-14 Richard Biener <rguenther@suse.de>
7596 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7597 valueization hook defaulted to no_follow_ssa_edges.
7598 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7599 2nd valueization hook to gimple_simplify.
7600 * tree-ssa-ccp.c (valueize_op_1): New function to be
7601 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7603 * tree-vrp.c (vrp_valueize_1): New function to be
7604 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7605 (vrp_visit_assignment_or_call): Adjust.
7607 2014-11-14 Marek Polacek <polacek@redhat.com>
7609 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7610 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7611 folding with TYPE_OVERFLOW_SANITIZED.
7613 2014-11-14 Marek Polacek <polacek@redhat.com>
7616 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7617 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7618 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7620 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7621 instrument BUILT_IN_UNREACHABLE here.
7622 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7624 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7625 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7626 SANITIZE_UNREACHABLE.
7627 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7628 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7630 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7632 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7633 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7635 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7637 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7639 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7640 vect_create_epilog_for_reduction): Likewise.
7641 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7643 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7646 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7647 numerical immediate handling to...
7648 (aarch64_internal_mov_immediate): ...this. New.
7649 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7650 (aarch64_mov_operand_p): Relax predicate.
7651 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7652 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7654 (*movdi_aarch64): Likewise.
7656 2014-11-14 Richard Biener <rguenther@suse.de>
7658 * match.pd: Implement more binary patterns exercised by
7660 * fold-const.c (sing_bit_p): Export.
7661 (exact_inverse): Likewise.
7662 (fold_binary_loc): Remove patterns here.
7663 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7664 * fold-const.h (sing_bit_p): Declare.
7665 (exact_inverse): Likewise.
7667 2014-11-14 Marek Polacek <polacek@redhat.com>
7669 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7671 2014-11-14 Richard Biener <rguenther@suse.de>
7673 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7674 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7675 (parser::parse_op): Allow to iterate over predicates.
7677 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7679 * configure.ac (--with-diagnostics-color): New configure
7680 option, default to --with-diagnostics-color=auto.
7681 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7682 to determine -fdiagnostics-color= option default.
7683 * doc/invoke.texi (-fdiagnostics-color=): Document new
7685 * configure: Regenerated.
7686 * config.in: Regenerated.
7688 2014-11-13 Teresa Johnson <tejohnson@google.com>
7690 PR tree-optimization/63841
7691 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7693 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7695 * timevar.def (TV_SCHED_FUSION): New time var.
7696 * passes.def (pass_sched_fusion): New pass.
7697 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7698 (extract_base_offset_in_addr, fusion_load_store): New.
7699 (arm_sched_fusion_priority): New.
7700 (arm_option_override): Disable scheduling fusion by default
7701 on non-armv7 processors or ldrd/strd isn't preferred.
7702 * sched-int.h (struct _haifa_insn_data): New field.
7703 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7704 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7705 (pass_data_sched_fusion, pass_sched_fusion): New.
7706 (make_pass_sched_fusion): New.
7707 * haifa-sched.c (sched_fusion): New.
7708 (insn_cost): Handle sched_fusion.
7709 (priority): Handle sched_fusion by calling target hook.
7710 (enum rfs_decision): New enum value.
7711 (rfs_str): New element for RFS_FUSION.
7712 (rank_for_schedule): Support sched_fusion.
7713 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7714 (schedule_block, fix_tick_ready): Handle sched_fusion.
7715 * common.opt (flag_schedule_fusion): New.
7716 * tree-pass.h (make_pass_sched_fusion): New.
7717 * target.def (fusion_priority): New.
7718 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7719 * doc/tm.texi: Regenerated.
7720 * doc/invoke.texi (-fschedule-fusion): New.
7722 2014-11-13 Rong Xu <xur@google.com>
7725 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7726 footer, instead of unconditionally overwritten.
7728 2014-11-14 Martin Jambor <mjambor@suse.cz>
7730 * cgraph.h (clear_outer_type): Make public. Fix comment.
7731 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7732 clear_outer_type when resetting the context.
7734 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7737 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7738 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7740 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7742 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7743 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7744 * tree-inline.c (estimate_operator_cost): Likewise.
7745 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7748 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7749 against VEC_RSHIFT_EXPR.
7751 * optabs.h (expand_vec_shift_expr): Remove.
7752 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7753 (expand_vec_shift_expr): Remove.
7754 * tree.def (VEC_RSHIFT_EXPR): Remove
7756 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7758 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7759 (shift_amt_for_vec_perm_mask): New.
7760 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7761 and mask appropriate.
7763 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7764 (have_whole_vector_shift): New.
7765 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7766 looking for vec_shr_optab.
7767 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7768 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7769 instead of VEC_RSHIFT_EXPRs.
7771 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7773 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7775 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7776 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7778 * tree_vec_data_refs.c (vect_permute_load_chain,
7779 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7780 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7782 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7784 (vect_gen_perm_mask_checked): New.
7785 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7786 (vect_gen_perm_mask_any): ...this.
7787 (perm_mask_for_reverse): Call can_vec_perm_p and
7788 vect_gen_perm_mask_checked.
7790 2014-11-13 Felix Yang <felix.yang@huawei.com>
7792 * ipa-utils.h: Fix typo in comments.
7793 * ipa-profile.c: Likewise.
7794 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7796 2014-11-13 Teresa Johnson <tejohnson@google.com>
7798 PR tree-optimization/63841
7799 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7801 2014-11-13 Teresa Johnson <tejohnson@google.com>
7803 PR tree-optimization/63841
7804 * tree.c (initializer_zerop): A clobber does not zero initialize.
7806 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7808 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7809 does not match the operand mode expected by the insn pattern.
7811 2014-11-13 Richard Biener <rguenther@suse.de>
7813 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7814 and inverted_tcc_comparison_with_nans operator lists.
7815 Use tcc_comparison in the truth_valued_p predicate definition.
7816 Restrict logical_inverted_value with bit_xor to integral types.
7817 Build a boolean true for simplifying x |^ !x because of
7818 vector types. Implement patterns from forward_propagate_comparison
7819 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7820 (get_prop_dest_stmt): Likewise.
7821 (pass_forwprop::execute): Do not call it.
7822 * fold-const.c (fold_unary_loc): Remove the pattern here.
7824 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7825 Andrey Turetskiy <andrey.turetskiy@intel.com>
7827 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7829 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7830 accelerator compiler.
7831 * config/i386/intelmic-mkoffload.c: New file.
7832 * config/i386/t-intelmic: Ditto.
7834 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7835 Andrey Turetskiy <andrey.turetskiy@intel.com>
7836 Ilya Verbin <ilya.verbin@intel.com>
7838 * common.opt (foffload, foffload-abi): New options.
7839 * config/i386/i386.c (ix86_offload_options): New static function.
7840 (TARGET_OFFLOAD_OPTIONS): Define.
7841 * coretypes.h (enum offload_abi): New enum.
7842 * doc/tm.texi: Regenerate.
7843 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7844 * gcc.c (offload_targets): New static variable.
7845 (handle_foffload_option): New static function.
7846 (driver_handle_option): Handle OPT_foffload_.
7847 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7848 according to offload_targets.
7849 * hooks.c (hook_charptr_void_null): New hook.
7850 * hooks.h (hook_charptr_void_null): Declare.
7851 * lto-opts.c: Include lto-section-names.h.
7852 (lto_write_options): Append options from target offload_options hook and
7853 store them to offload_lto section. Do not store target-specific,
7854 driver and diagnostic options in offload_lto section.
7855 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7857 (append_compiler_options, append_linker_options)
7858 (append_offload_options): New static functions.
7859 (compile_offload_image): Add new arguments with options.
7860 Call append_compiler_options and append_offload_options.
7861 (compile_images_for_offload_targets): Add new arguments with options.
7862 (find_and_merge_options): New static function.
7863 (run_gcc): Outline options handling into the new functions:
7864 find_and_merge_options, append_compiler_options, append_linker_options.
7865 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7866 Forbid OPT_foffload_abi_ for non-offload compiler.
7867 * target.def (offload_options): New target hook.
7869 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7870 Bernd Schmidt <bernds@codesourcery.com>
7871 Andrey Turetskiy <andrey.turetskiy@intel.com>
7872 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7874 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7875 (process_command): Tweak path construction for the possibility
7876 of being configured as an offload compiler.
7877 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7878 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7879 (driver::set_up_specs): Tweak path construction for the possibility of
7880 being configured as an offload compiler.
7881 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7882 (offload_names, offloadbegin, offloadend): New static variables.
7883 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7884 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7885 New static functions.
7886 (run_gcc): Determine whether offload sections are present. If so, run
7887 compile_images_for_offload_targets and return the names of new generated
7888 objects to linker. If there are offload sections, but no LTO sections,
7889 then return the copies of input objects without link-time recompilation.
7891 2014-11-13 Richard Biener <rguenther@suse.de>
7893 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7895 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7896 Bernd Schmidt <bernds@codesourcery.com>
7897 Andrey Turetskiy <andrey.turetskiy@intel.com>
7898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7900 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7901 * cgraphunit.c: Include omp-low.h.
7902 * doc/tm.texi: Regenerate.
7903 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7904 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7905 * lto-cgraph.c (output_offload_tables): New function.
7906 (input_offload_tables): Likewise.
7907 * lto-section-in.c (lto_section_name): Add "offload_table".
7908 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7909 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7910 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7911 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7912 (output_offload_tables, input_offload_tables): Declare.
7913 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7914 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7915 (expand_omp_target): Add child_fn into offload_funcs vector.
7916 (add_decls_addresses_to_decl_constructor): New function.
7917 (omp_finish_file): Likewise.
7918 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7919 * target.def (record_offload_symbol): New DEFHOOK.
7920 * toplev.c: Include omp-low.h.
7921 (compile_file): Call omp_finish_file.
7922 * varpool.c: Include omp-low.h.
7923 (varpool_node::get_create): Add decl into offload_vars vector.
7925 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7926 Ilya Tocar <ilya.tocar@intel.com>
7927 Andrey Turetskiy <andrey.turetskiy@intel.com>
7928 Bernd Schmidt <bernds@codesourcery.com>
7930 * cgraph.c: Include context.h.
7931 (cgraph_node::create): Set node->offloadable and g->have_offload if
7932 decl have "omp declare target" attribute.
7933 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7934 * cgraphunit.c: Include lto-section-names.h.
7935 (ipa_passes): Call ipa_write_summaries if there is something to write to
7936 OFFLOAD_SECTION_NAME_PREFIX sections.
7937 (symbol_table::compile): Set flag_generate_lto if there is something to
7939 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7940 * context.c (gcc::context::context): Initialize have_offload with false.
7941 * context.h (class context): Add have_offload flag.
7942 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7944 (inline_free_summary): Always remove hooks.
7945 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7946 from non-offloadable nodes while streaming a node into offload section.
7947 (reachable_from_other_partition_p): Likewise.
7948 (select_what_to_stream): New function.
7949 (compute_ltrans_boundary): Do not call
7950 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7951 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7952 (section_name_prefix): Declare.
7953 * lto-streamer.c (section_name_prefix): New variable.
7954 (lto_get_section_name): Use section_name_prefix instead of
7955 LTO_SECTION_NAME_PREFIX.
7956 * lto-streamer.h (select_what_to_stream): Declare.
7957 * omp-low.c: Include context.h.
7958 (is_targetreg_ctx): New function.
7959 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7960 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7961 is_targetreg_ctx function. Replace usage of "omp declare target"
7962 attribute with a cgraph_node flag offloadable.
7963 (expand_omp_target): Set mark_force_output for offloadable functions.
7964 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7965 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7966 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7967 if the node should not be streamed out.
7968 * tree-pass.h (ipa_write_summaries): New bool argument.
7969 * varpool.c: Include context.h.
7970 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7971 decl have "omp declare target" attribute.
7973 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7974 Thomas Schwinge <thomas@codesourcery.com>
7975 Ilya Verbin <ilya.verbin@intel.com>
7976 Andrey Turetskiy <andrey.turetskiy@intel.com>
7978 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7979 (enable_as_accelerator): New variables substituted by configure.
7980 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7981 being configured as an offload compiler.
7982 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7984 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7985 install for the offload compiler.
7986 * config.in: Regenerate.
7987 * configure: Regenerate.
7988 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7989 (enable_as_accelerator): Compute new variables.
7990 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7991 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7992 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7993 * doc/install.texi (Options specification): Document
7994 --enable-as-accelerator-for and --enable-offload-targets.
7996 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7998 PR tree-optimization/63828
7999 * ipa-polymorphic-call.c (possible_placement_new): Check
8000 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
8002 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
8004 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
8005 (REVERSIBLE_CC_MODE): Fix example.
8006 (REVERSE_CONDITION): Fix typo.
8007 * doc/tm.texi: Regenerate.
8009 2014-11-13 Tom de Vries <tom@codesourcery.com>
8011 * omp-low.c (pass_data_expand_omp): Set properties_provided to
8013 (pass_expand_omp::gate): Remove function. Move gate expression to ...
8014 (pass_expand_omp::execute): ... here, as new variable gate. Add early
8015 exit if gate is false.
8016 (pass_data pass_data_expand_omp_ssa): New pass_data.
8017 (class pass_expand_omp_ssa): New pass.
8018 (make_pass_expand_omp_ssa): New function.
8019 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
8020 instead of NEXT_PASS.
8021 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
8022 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
8023 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
8024 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
8025 cfun->omp_expand_needed.
8026 * tree-pass.h: Add define PROP_gimple_eomp.
8027 (make_pass_expand_omp_ssa): Declare.
8029 2014-11-13 Marek Polacek <polacek@redhat.com>
8031 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
8032 * fold-const.c (fold_binary_loc): Use it.
8033 * match.pd: Likewise.
8035 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8037 * lra-lives.c (struct bb_data): Rename to ...
8038 (struct bb_data_pseudos): ... this.
8039 (initiate_live_solver): Update struct name.
8041 2014-11-13 Richard Biener <rguenther@suse.de>
8043 * match.pd: Implement conditional expression patterns.
8044 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
8046 (combine_cond_exprs): Remove.
8047 (pass_forwprop::execute): Do not call combine_cond_exprs.
8048 * fold-const.c (fold_ternary_loc): Remove patterns here.
8049 (pedantic_omit_one_operand_loc): Remove.
8051 2014-12-13 Richard Biener <rguenther@suse.de>
8054 * match.pd: Implement bswap patterns for transforms checked by
8055 gcc.dg/builtin-bswap-8.c.
8057 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
8059 * lra.c (lra): Switch off rematerialization pass.
8061 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
8063 * common.opt (flra-remat): New.
8064 * opts.c (default_options_table): Add entry for flra_remat.
8065 * timevar_def (TV_LRA_REMAT): New.
8066 * doc/invoke.texi (-flra-remat): Add description of the new
8068 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
8069 lra-saves.c. Add lra-remat.c.
8070 * Makefile.in (OBJS): Add lra-remat.o.
8071 * lra-remat.c: New file.
8072 * lra.c: Add info about the rematerialization pass in the top
8074 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
8075 Process unallocatable regs too.
8076 (lra_constraint_new_insn_uid_start): Remove.
8077 (lra): Add code for calling rematerialization sub-pass.
8078 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
8079 (lra_constrain_insn, lra_remat): New prototypes.
8080 (lra_eliminate_regs_1): Add parameter.
8081 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
8082 Process unallocatable hard regs too.
8083 (process_bb_lives): Ditto.
8084 * lra-spills.c (remove_pseudos): Add argument to
8085 lra_eliminate_regs_1 call.
8086 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
8087 for sp offset calculation.
8088 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
8089 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
8091 (process_insn_for_elimination): Add argument for
8092 eliminate_regs_in_insn call.
8093 * lra-constraints.c (get_equiv_with_elimination): Add argument
8094 for lra_eliminate_regs_1 call.
8095 (process_addr_reg): Add parameter. Use it.
8096 (process_address_1): Ditto. Add argument for process_addr_reg
8098 (process_address): Ditto.
8099 (curr_insn_transform): Add parameter. Use it. Add argument for
8100 process_address calls.
8101 (lra_constrain_insn): New function.
8102 (lra_constraints): Add argument for curr_insn_transform call.
8104 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8106 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
8107 (print_ignored_options): Fix quoting.
8108 * opts.c (common_handle_option): Likewise.
8109 (set_debug_level): Likewise.
8110 * toplev.c (process_options): Likewise.
8112 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8115 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
8116 chain instead of node->indirect_calls. Put !can_throw into
8117 conditions of all the loops.
8119 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
8121 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
8122 set pic_offset_table_rtx.
8124 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
8126 * common/config/mips/mips-common.c (mips_handle_option): Ensure
8127 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
8128 * config.gcc (--with-fp-32): New option.
8129 (--with-odd-spreg-32): Likewise.
8130 * config.in (HAVE_AS_DOT_MODULE): New config define.
8131 * config/mips/mips-protos.h
8132 (mips_secondary_memory_needed): New prototype.
8133 (mips_hard_regno_caller_save_mode): Likewise.
8134 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
8135 (mips_get_arg_info): Assert that V2SFmode is only handled specially
8136 with TARGET_PAIRED_SINGLE_FLOAT.
8137 (mips_return_mode_in_fpr_p): Likewise.
8138 (mips16_call_stub_mode_suffix): Likewise.
8139 (mips_get_reg_raw_mode): New static function.
8140 (mips_return_fpr_pair): O32 return values span two registers.
8141 (mips16_build_call_stub): Likewise.
8142 (mips_function_value_regno_p): Support both FP return registers.
8143 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
8144 specific cases for TARGET_FPXX to move via memory.
8145 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
8146 than UNITS_PER_FPREG 'span' one register.
8147 (mips_dwarf_frame_reg_mode): New static function.
8148 (mips_file_start): Switch to using .module instead of .gnu_attribute.
8149 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
8150 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
8151 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
8152 slots with two CFI directives even for O32 FP64.
8153 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
8154 saving/restoring callee-saved registers.
8155 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
8156 (mips_secondary_memory_needed): New function.
8157 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
8158 odd-numbered single-precision registers when using TARGET_FLOATXX.
8159 Implement -modd-spreg and defaults.
8160 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
8161 callee-saved behaviour.
8162 (mips_hard_regno_caller_save_mode): Implement.
8163 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
8164 (TARGET_GET_RAW_ARG_MODE): Define target hook.
8165 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
8166 * config/mips/mips.h (TARGET_FLOAT32): New macro.
8167 (TARGET_O32_FP64A_ABI): Likewise.
8168 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
8169 _MIPS_SPFPSET builtin define.
8170 (MIPS_FPXX_OPTION_SPEC): New macro.
8171 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
8172 --with-odd-spreg-32=* to -m[no-]odd-spreg.
8173 (ISA_HAS_ODD_SPREG): New macro.
8174 (ISA_HAS_MXHC1): True for anything other than -mfp32.
8175 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
8176 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
8177 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
8178 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8179 (SECONDARY_MEMORY_NEEDED): Likewise.
8180 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
8181 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
8182 FP64A ABI extensions.
8183 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
8185 * config/mips/mips.opt (mfpxx): New target option.
8186 (modd-spreg): Likewise.
8187 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
8188 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
8190 * config/mips/t-mti-elf: Remove fp64 multilib.
8191 * config/mips/t-mti-linux: Likewise.
8192 * configure.ac: Detect .module support.
8193 * configure: Regenerate.
8194 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
8195 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
8198 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
8201 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
8203 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
8204 (x86_output_mi_thunk): Set PIC register to %r11. Call
8205 ix86_init_large_pic_reg to initialize PIC register.
8207 2014-11-12 Kai Tietz <ktietz@redhat.com>
8209 * sdbout.c (sdbout_symbol): Eliminate register only
8210 if decl isn't a global variable.
8212 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
8214 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
8216 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
8217 qualifier_lane_index.
8218 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
8219 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
8220 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
8222 (aarch64_types_getlane_qualifiers): Rename to...
8223 (aarch64_types_binop_imm_qualifiers): ...this.
8224 (TYPES_SHIFTIMM): Follow renaming.
8225 (TYPES_GETLANE): Rename to...
8226 (TYPE_GETREG): ...this.
8228 (aarch64_types_setlane_qualifiers): Rename to...
8229 (aarch64_type_ternop_imm_qualifiers): ...this.
8230 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
8231 (TYPES_SETLANE): Follow renaming above, and rename self to...
8232 (TYPE_SETREG): ...this.
8234 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
8235 (aarch64_simd_expand_args): Add range check and endianness-flip.
8237 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
8239 * config/aarch64/aarch64-simd.md
8240 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
8241 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
8242 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
8244 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
8245 (aarch64_sq<r>dmulh_lane<mode>): ...this.
8247 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
8248 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
8250 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
8251 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
8253 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
8254 (aarch64_sqdmull_lane<mode>): ...this.
8256 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
8257 (aarch64_sqdmull_laneq<mode>): ...this.
8259 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
8260 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
8261 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
8262 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
8264 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
8265 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
8266 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
8267 bounds check and lane flip.
8269 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
8270 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
8271 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
8273 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
8274 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
8275 renaming of TERNOP_LANE to QUADOP_LANE.
8277 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
8278 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
8279 qualifiers to TERNOP_LANE.
8281 2014-11-12 Tobias Burnus <burnus@net-b.de>
8283 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
8284 * configure.ac: Ditto.
8285 * graphite-interchange.c: Remove HAVE_CLOOG block.
8286 * config.in: Regenerate.
8287 * configure: Regenerate.
8289 2014-11-12 Jiong Wang <jiong.wang@arm.com>
8291 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
8293 (EPILOGUE_USES): Guard the check by epilogue_completed.
8294 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
8296 (aarch64_can_eliminate): Check LR_REGNUM liveness.
8298 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8300 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8302 2014-11-12 Marek Polacek <polacek@redhat.com>
8304 * fold-const.c (fold_binary_loc): Don't fold if the result
8306 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8307 -(-A) -> A): Likewise.
8309 2014-11-12 Richard Biener <rguenther@suse.de>
8311 Merge from match-and-simplify branch
8312 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8314 * genmatch.c (user_id): Add new member is_oper_list.
8315 (user_id::user_id): Add new default argument.
8316 (parser::parse_operator_list): New function.
8317 (parser::parse_for): Allow operator-list.
8318 (parser::parse_pattern): Call parser::parse_operator_list.
8319 (parser::parse_operation): Reject operator-list.
8320 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8322 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8324 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8326 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8328 * genmatch.c (parser::parse_op): Check if predicate is used in
8331 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8333 * genmatch.c (parser::parse_for): Make sure to have a valid
8334 token to report errors at.
8336 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8338 * genmatch.c (parser): Add new member parsing_match_operand.
8339 (parser::parse_operation): Check for conditional convert in result
8341 (parser::parse_expr): Check for commutative operator in result operand.
8342 Check for :type in match operand.
8343 (parser::parse_simplify): Set/unset parsing_match_operand.
8344 (parser::parser): Initialize parsing_match_operand.
8346 2014-10-28 Richard Biener <rguenther@suse.de>
8348 * genmatch.c (parser::parse_for): Properly check for already
8351 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8353 * genmatch.c (error_cb): Adjust for printing warnings.
8354 (warning_at): New function.
8355 (user_id): Add new member used.
8356 (get_operator): Mark user_id as used.
8357 (parse_for): Warn for unused operators.
8359 2014-11-12 Richard Biener <rguenther@suse.de>
8361 * match.pd: Implement simple complex operations cancelling.
8362 * fold-const.c (fold_unary_loc): Remove them here.
8364 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8366 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8367 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8368 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8370 2014-11-12 Richard Biener <rguenther@suse.de>
8372 * genmatch.c (::gen_transform): Add capture_info and
8373 expand_compares arguments.
8374 (struct expr): Add is_generic flag.
8375 (lower_cond): New functions lowering [VEC_]COND_EXPR
8376 conditions to a GENERIC and a GIMPLE variant.
8377 (lower): Call lower_cond.
8378 (cmp_operand): Also compare the is_generic flag.
8379 (capture_info::cinfo): Add cond_expr_cond_p flag.
8380 (capture_info::capture_info): Pass down whether the
8381 expression argument is a COND_EXPR condition.
8382 (capture_info::walk_match): Likewise, mark captures
8383 capturing COND_EXPR conditions with cond_expr_cond_p.
8384 (expr::gen_transform): Pass down whether we need to
8385 expand compares from COND_EXPR conditions.
8386 (capture::gen_transform): Expand compares substituted
8387 from COND_EXPR conditions into non-COND_EXPR conditions.
8388 (dt_operand::gen_gimple_expr): Handle explicitely marked
8389 GENERIC expressions as generic.
8390 (dt_simplify::gen): Pass whether we need to expand
8391 conditions to gen_transform. Handle capture results
8392 which are from COND_EXPR conditions.
8393 (main): Pass gimple flag down to lower.
8395 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8398 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8399 * builtins.c (fold_builtin_arith_overflow): New function.
8400 (fold_builtin_3): Use it.
8401 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8402 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8403 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8404 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8405 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8406 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8407 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8408 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8409 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8410 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8411 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8412 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8413 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8414 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8415 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8416 * expr.c (write_complex_part): Remove prototype, no longer static.
8417 * expr.h (write_complex_part): New prototype.
8418 * function.c (aggregate_value_p): For internal functions return 0.
8419 * gimple-fold.c (arith_overflowed_p): New functions.
8420 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8421 * gimple-fold.h (arith_overflowed_p): New prototype.
8422 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8423 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8425 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8426 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8428 * gimplify.c (gimplify_call_expr): Handle gimplification of
8429 internal calls with lhs.
8430 * internal-fn.c (get_range_pos_neg, get_min_precision,
8431 expand_arith_overflow_result_store): New functions.
8432 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8433 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8434 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8435 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8436 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8437 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8438 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8439 0 as first argument expansion.
8440 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8441 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8442 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8443 Handle MUL_OVERFLOW expansion.
8444 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8446 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8447 expand_neg_overflow, prepare arguments for it.
8448 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8450 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8451 expand_MUL_OVERFLOW): New functions.
8452 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8454 * tree-vrp.c (check_for_binary_op_overflow): New function.
8455 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8456 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8457 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8459 * optabs.def (umulv4_optab): New optab.
8460 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8461 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8462 * doc/extend.texi (Integer Overflow Builtins): Document
8463 __builtin_*_overflow.
8465 2014-11-12 Richard Biener <rguenther@suse.de>
8467 * genmatch.c (capture_info::capture_info): Add missing
8469 (capture_info::walk_match): Fix COND_EXPR handling.
8470 (capture_info::walk_result): Likewise.
8472 2014-11-12 Richard Biener <rguenther@suse.de>
8475 * match.pd: Add missing conversion to the -(T)-X pattern.
8477 2014-11-12 Richard Biener <rguenther@suse.de>
8480 * hash-table.h: Include ggc.h also for generator programs.
8481 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8482 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8484 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8486 PR tree-optimization/63761
8487 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8488 rather than taking it as a parameter. Add some comments to explain the
8489 gsi_move_before in case of load and why canonicalization of bswap into
8490 a rotation is only done for 16bit values.
8491 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8492 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8493 are already in canonical form. Adapt bswap_replace to removal of its
8496 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8498 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8499 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8500 (for_each_rtx_in_insn): Delete.
8501 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8502 * df-core.c: Remove reference to for_each_rtx in comment.
8504 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8506 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8507 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8508 * doc/aarch64-acle-intrinsics.texi: Remove.
8509 * doc/arm-acle-intrinsics.texi: Remove.
8510 * doc/arm-neon-intrinsics.texi: Remove.
8511 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8512 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8513 Extension section. Add references to public ACLE specification.
8515 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8517 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8518 void and adjust accordingly.
8519 (register_edge_assert_for_1): Likewise.
8520 (register_edge_assert_for): Likewise.
8521 (find_conditional_asserts): Likewise.
8522 (find_switch_asserts): Likewise.
8523 (find_assert_locations_1): Likewise.
8524 (find_assert_locations): Likewise.
8525 (insert_range_insertions): Inspect the need_assert_for bitmap.
8527 2014-11-11 Andrew Pinski <apinski@cavium.com>
8530 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8532 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8533 at the end of the file.
8535 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8536 Manuel López-Ibáñez <manu@gcc.gnu.org>
8539 * diagnostic-core.h: Add prototype for fatal_error.
8540 * diagnostic.c (fatal_error): New function fatal_error.
8541 * gcc.c (store_arg): Remove have_o_argbuf_index.
8542 (process_command): Check if input and output files are the same.
8543 * toplev.c (init_asm_output): Check if input and output files are
8546 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8548 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8550 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8553 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8554 smaller than 8 bytes.
8555 (sparc_function_arg_1): Tweak.
8556 (sparc_function_value_1): Tweak.
8558 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8560 * ChangeLog.jit: New.
8561 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8562 sphinx is installed, falling back to "texinfo" otherwise.
8563 (FULL_DRIVER_NAME): New variable, adapted from the
8564 install-driver target. New target, a symlink within the builddir,
8565 linked to "xgcc", for use when running the JIT library from the
8567 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8568 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8570 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8571 sphinx is installed, falling back to "texinfo" otherwise.
8572 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8573 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8574 * configure: Regenerate.
8575 * doc/install.texi (--enable-host-shared): Specify that this is
8576 required when building libgccjit.
8577 (Tools/packages necessary for modifying GCC): Add Sphinx.
8578 * timevar.def (TV_JIT_REPLAY): New.
8583 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8586 * configure: Regenerate.
8588 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8590 * config/aarch64/aarch64-simd.md
8591 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8592 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8593 are punning between float vectors and integer vectors.
8595 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8597 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8598 open-coded swap with std::swap to swap values.
8599 (alpha_emit_setcc): Ditto.
8600 (alpha_emit_conditional_move): Ditto.
8601 (alpha_split_tmode_pair): Ditto.
8603 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8605 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8606 permutations on power of 2 cases.
8608 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8610 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8611 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8613 2014-11-11 Richard Biener <rguenther@suse.de>
8615 * tree-core.h (pedantic_lvalues): Remove.
8616 * fold-const.c (pedantic_lvalues): Likewise.
8617 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8619 2014-11-11 Martin Liska <mliska@suse.cz>
8623 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8625 (sem_variable::merge): Likewise.
8626 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8628 2014-11-11 Richard Biener <rguenther@suse.de>
8630 * match.pd: Implement patterns from associate_plusminus
8631 and factor in differences from the fold-const.c implementation.
8632 * fold-const.c (fold_binary_loc): Remove patterns here.
8633 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8634 (pass_forwprop::execute): Don't call it.
8635 * tree.c (tree_nop_conversion_p): New function, factored
8636 from tree_nop_conversion.
8637 * tree.h (tree_nop_conversion_p): Declare.
8639 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8641 * system.h: Include algorithm and utility.
8642 * rtl.h: Do not include utility here.
8643 * wide-int.h: Ditto.
8644 * tree-vect-data-refs.c (swap): Remove template.
8645 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8647 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8651 * system.h: Include <string> before "safe-ctype.h"
8652 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8653 calls to min/max with wi namespace.
8654 * ipa-chkp.c: Don't include <string>.
8656 2014-11-11 Terry Guo <terry.guo@arm.com>
8658 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8659 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8661 (*thumb1_movhf): Likewise.
8663 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8665 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8666 instead of INT64_MAX.
8668 2014-11-11 Tobias Burnus <burnus@net-b.de>
8670 * doc/install.texi (Prerequisites): Remove CLooG.
8672 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8674 * ipa-inline.c (edge_badness): Adjust.
8675 (inline_small_functions): Likewise.
8676 * predict.c (propagate_freq): Likewise.
8677 (estimate_bb_frequencies): Likewise.
8678 * sreal.c (sreal::dump): Rename from dump_sreal.
8680 (copy): Remove function.
8681 (sreal::shift_right): Rename from sreal_sift_right.
8682 (sreal::normalize): Rename from normalize.
8683 (sreal_init): Remove function.
8684 (sreal::to_int): Rename from sreal_to_int.
8685 (sreal_compare): Remove function.
8686 (sreal::operator+): Rename from sreal_add.
8687 (sreal::operator-): Rename from sreal_sub.
8688 (sreal::operator*): Rename from sreal_mul.
8689 (sreal::operator/): Rename from sreal_div.
8690 * sreal.h (class sreal): Adjust.
8691 (inline sreal &operator+=): New operator.
8692 (inline sreal &operator-=): Likewise.
8693 (inline sreal &operator/=): Likewise.
8694 (inline sreal &operator*=): Likewise.
8695 (inline bool operator!=): Likewise.
8696 (inline bool operator>): Likewise.
8697 (inline bool operator<=): Likewise.
8698 (inline bool operator>=): Likewise.
8700 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8702 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8703 less than MAX_PENDING_LIST_LENGTH.
8704 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8706 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8708 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8709 swap with std::swap to swap values.
8710 (ix86_fixup_binary_operands): Ditto.
8711 (ix86_binary_operator_ok): Ditto.
8712 (ix86_prepare_fp_compare_args): Ditto.
8713 (ix86_expand_branch): Ditto.
8714 (ix86_expand_carry_flag_compare): Ditto.
8715 (ix86_expand_int_movcc): Ditto.
8716 (ix86_prepare_sse_fp_compare_args): Ditto.
8717 (ix86_expand_sse_fp_minmax): Ditto.
8718 (ix86_expand_int_vcond): Ditto.
8719 (ix86_split_long_move): Ditto.
8720 (ix86_expand_sse_comi): Ditto.
8721 (ix86_expand_sse_compare_and_jump): Ditto.
8722 (ix86_expand_sse_compare_mask): Ditto.
8723 * config/i386/i386.md (*add<mode>_1): Ditto.
8724 (addsi_1_zext): Ditto.
8727 (*add<mode>_2): Ditto.
8728 (*addsi_2_zext): Ditto.
8729 (*add<mode>_3): Ditto.
8730 (*addsi_3_zext): Ditto.
8731 (*add<mode>_5): Ditto.
8732 (absneg splitter): Ditto.
8734 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8737 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8740 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8741 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8742 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8743 be reloaded through memory.
8747 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8748 Martin Liska <mliska@suse.cz>
8750 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8751 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8752 gimple_call_chain, gimple_call_fntype and call flags.
8754 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8756 PR rtl-optimization/63620
8757 PR rtl-optimization/63799
8758 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8759 and setting PIC pseudo insns.
8760 (lra_create_live_ranges): Fix the typo.
8762 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8765 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8766 SSA copies whose source and destination names both occur in
8769 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8771 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8772 * common.opt: Remove using of fgraphite-code-generator flag.
8773 * flag-types.h: Likewise.
8774 * graphite.c: Remove using of CLooG.
8775 * graphite-blocking.c: Likewise.
8776 * graphite-dependences.c: Likewise.
8777 * graphite-poly.c: Likewise.
8778 * graphite-poly.h: Likewise.
8779 * graphite-scop-detection.c: Likewise.
8780 * graphite-sese-to-poly.c: Likewise.
8781 * graphite-clast-to-gimple.c: Removed.
8782 * graphite-clast-to-gimple.h: Likewise.
8783 * graphite-htab.h: Likewise.
8785 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8787 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8790 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8792 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8793 (frv_io_handle_use): Use find_all_hard_regs.
8795 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8797 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8798 than an rtx *. Take the regstate_t directly rather than via a void *.
8799 Return a bool rather than an int. Iterate over all subrtxes here.
8800 (frv_registers_conflict_p): Update accordingly.
8802 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8804 * config/frv/frv.c: Include rtl-iter.h.
8805 (frv_acc_group_1): Delete.
8806 (frv_acc_group): Use FOR_EACH_SUBRTX.
8808 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8810 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8811 (frv_clear_registers_used): Delete.
8812 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8814 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8817 * calls.c (initialize_argument_information): When emitting thunk call
8818 use original memory placement of the argument.
8820 2014-11-10 Renlin Li <renlin.li@arm.com>
8823 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8825 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8827 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8828 bswaphi if available.
8830 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8832 * config/nvptx/nvptx.c: New file.
8833 * config/nvptx/nvptx.h: New file.
8834 * config/nvptx/nvptx-protos.h: New file.
8835 * config/nvptx/nvptx.md: New file.
8836 * config/nvptx/t-nvptx: New file.
8837 * config/nvptx/nvptx.opt: New file.
8838 * common/config/nvptx/nvptx-common.c: New file.
8839 * config.gcc: Handle nvptx-*-*.
8841 2014-11-10 Richard Biener <rguenther@suse.de>
8843 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8844 released operands on the free list.
8846 2014-11-10 Richard Biener <rguenther@suse.de>
8848 * match.pd: Implement pattern from simplify_mult.
8849 * tree-ssa-forwprop.c (simplify_mult): Remove.
8850 (pass_forwprop::execute): Do not call simplify_mult.
8852 2014-11-10 Richard Biener <rguenther@suse.de>
8854 PR tree-optimization/63800
8855 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8856 we can restore the previous availability in after_dom_children.
8857 (eliminate_dom_walker::after_dom_children): Restore
8858 previous availability.
8860 2014-11-10 Richard Biener <rguenther@suse.de>
8863 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8864 properly treat the embedded multiplication as commutative
8865 when looking for feeding negates.
8867 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8869 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8871 2014-11-10 Martin Liska <mliska@suse.cz>
8873 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8874 for the test because of default char signedness
8875 on powerpc64 target.
8877 2014-11-10 Richard Biener <rguenther@suse.de>
8879 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8880 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8881 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8883 2014-11-10 Richard Biener <rguenther@suse.de>
8885 * match.pd: Move rest of the conversion combining patterns
8886 from tree-ssa-forwprop.c.
8887 * tree-ssa-forwprop.c (combine_conversions): Remove.
8888 (pass_forwprop::execute): Do not call it.
8890 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8892 * gimple-low.c (lower_function_body): Clear the location of the first
8893 inserted representative return if it also fills in for the fallthru.
8895 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8897 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8898 that bb is always executed to early exit. Use predicate of
8899 cd-equivalent block for join blocks if it exists.
8900 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8901 (tree_if_conversion): Free post-dominance information.
8903 2014-11-09 Jason Merrill <jason@redhat.com>
8905 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8906 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8907 (_mm_mask_cvtusepi32_storeu_epi16)
8908 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8910 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8912 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8914 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8916 PR rtl-optimization/63620
8917 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8918 name. Move to lra.c. Make it external.
8919 (substitute_pseudo_within_insn): Ditto.
8920 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8922 (undo_optional_reloads): Ditto.
8923 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8925 (lra_substitute_pseudo_within_insn): Ditto.
8926 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8927 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8928 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8930 (struct bb_data, bb_data_t, bb_data): New.
8931 (get_bb_data, get_bb_data_by_index): Ditto.
8932 (all_hard_regs_bitmap): New.
8933 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8934 (initiate_live_solver, finish_live_solver): New.
8935 (process_bb_lives): Change return type. Add code updating local
8936 live data and removing dead insns. Pass new argument to
8937 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8938 life info. Return the result.
8939 (lra_create_live_ranges): Add code to do global pseudo live
8941 (lra_live_ranges_init): Call initiate_live_solver.
8942 (lra_live_ranges_finish): Call finish_live_solver.
8943 * lra.c (lra_dump_bitmap_with_title): New.
8944 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8945 from lra-constraints.c.
8947 2014-11-09 Richard Biener <rguenther@suse.de>
8949 * match.pd: Add patterns convering two conversions in a row
8951 * fold-const.c (fold_unary_loc): Remove them here.
8952 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8953 * genmatch.c (dt_node::gen_kids): Check whether we may
8954 follow SSA use-def chains.
8956 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8958 * config/aarch64/aarch64.c: Include rtl-iter.h.
8959 (aarch64_tls_operand_p_1): Delete.
8960 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8962 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8964 * config/arm/arm.c (arm_note_pic_base): Delete.
8965 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8967 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8969 * config/arm/arm.c: Include rtl-iter.h.
8970 (arm_tls_referenced_p_1): Delete.
8971 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8973 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8975 * config/arm/aarch-common.c: Include rtl-iter.h.
8976 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8977 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8978 (arm_get_set_operands): Pass the insn pattern rather than the
8980 (arm_no_early_store_addr_dep): Likewise.
8982 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8984 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8986 (thumb_set_return_address): Likewise.
8988 2014-11-07 Jeff Law <law@redhat.com>
8990 PR tree-optimization/61515
8991 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8992 stack rather than looking at every SSA_NAME's value.
8994 2014-11-07 Richard Biener <rguenther@suse.de>
8996 PR tree-optimization/63605
8997 * fold-const.c (fold_binary_loc): Properly use element_precision
8998 for types that may not be scalar.
9000 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
9003 * config/i386/i386.md (builtin_setjmp_receiver): Use
9004 pic_offset_table_rtx for PIC register.
9005 (nonlocal_goto_receiver): Delete.
9007 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
9009 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
9010 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
9012 2014-11-07 Martin Liska <mliska@suse.cz>
9015 * cgraphunit.c (cgraph_node::create_wrapper):
9016 TREE_ADDRESSABLE is set to false for a newly created thunk.
9018 2014-11-07 Martin Liska <mliska@suse.cz>
9021 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
9022 Missing checking for CASE_LOW and CASE_HIGH added.
9024 2014-11-07 Martin Liska <mliska@suse.cz>
9027 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
9028 is correctly handled for thunks created by IPA ICF.
9030 2014-11-07 Jiong Wang <jiong.wang@arm.com>
9031 2014-11-07 Richard Biener <rguenther@suse.de>
9033 PR tree-optimization/63676
9034 * gimple-fold.c (fold_gimple_assign): Do not fold node when
9035 TREE_CLOBBER_P be true.
9037 2014-11-07 Richard Biener <rguenther@suse.de>
9040 * match.pd: Guard conflicting GENERIC pattern properly.
9042 2014-11-07 Richard Biener <rguenther@suse.de>
9044 * match.pd: Add patterns for POINTER_PLUS_EXPR association
9045 and special patterns from tree-ssa-forwprop.c
9046 * fold-const.c (fold_binary_loc): Remove them here.
9047 * tree-ssa-forwprop.c (to_purge): New global bitmap.
9048 (fwprop_set_lattice_val): New function.
9049 (fwprop_invalidate_lattice): Likewise.
9050 (remove_prop_source_from_use): Instead of purging dead EH
9051 edges record blocks to do that in to_purge.
9052 (tidy_after_forward_propagate_addr): Likewise.
9053 (forward_propagate_addr_expr): Invalidate the lattice for
9054 SSA names we release.
9055 (simplify_conversion_from_bitmask): Likewise.
9056 (simplify_builtin_call): Likewise.
9057 (associate_pointerplus_align): Remove.
9058 (associate_pointerplus_diff): Likewise.
9059 (associate_pointerplus): Likewise.
9060 (fold_all_stmts): Merge with ...
9061 (pass_forwprop::execute): ... the original loop over all
9062 basic-blocks. Delay purging dead EH edges and invalidate
9063 the lattice for SSA names we release.
9065 2014-11-07 Terry Guo <terry.guo@arm.com>
9067 * config/arm/arm.opt (masm-syntax-unified): New option.
9068 * doc/invoke.texi (-masm-syntax-unified): Document new option.
9069 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
9070 (ASM_APP_ON): Redefined.
9071 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
9072 code always use UAL syntax.
9073 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
9074 * config/arm/thumb1.md: Likewise.
9076 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
9078 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
9079 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
9082 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
9084 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
9085 Set default_mips_arch and default_mips_abi instead of tm_defines.
9086 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
9088 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
9089 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
9090 based on MIPS_ABI_DEFAULT.
9091 (STANDARD_STARTFILE_PREFIX_2): Ditto.
9093 2014-11-06 Joseph Myers <joseph@codesourcery.com>
9095 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
9096 cases of extended identifiers.
9098 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
9100 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
9102 2014-11-06 DJ Delorie <dj@redhat.com>
9104 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
9106 (movhicc_<code>_<mode>): Likewise.
9107 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
9109 (m32c_eh_return_data_regno): Change to using memregs to avoid
9110 tying up all the compute regs.
9111 (m32c_legitimate_address_p) Subregs are not valid addresses.
9113 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
9115 * function.c (thread_prologue_and_epilogue_insns): No longer static.
9116 * function.h (thread_prologue_and_epilogue_insns): Declare.
9118 * target.def (assemble_undefined_decl): New hooks.
9119 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
9120 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
9121 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
9122 * doc/tm.texi: Regenerate.
9123 * output.h (assemble_undefined_decl): Declare.
9124 (get_fnname_from_decl): Declare.
9125 * varasm.c (assemble_undefined_decl): New function.
9126 (get_fnname_from_decl): New function.
9127 * final.c (rest_of_handle_final): Use it.
9128 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
9129 for nodes without a definition.
9131 * target.def (call_args, end_call_args): New hooks.
9132 * hooks.c (hook_void_rtx_tree): New empty function.
9133 * hooks.h (hook_void_rtx_tree): Declare.
9134 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
9135 * doc/tm.texi: Regenerate.
9136 * calls.c (expand_call): Slightly rearrange the code. Use the two new
9138 (expand_library_call_value_1): Use the two new hooks.
9140 * expr.c (use_reg_mode): Just return for pseudo registers.
9142 * combine.c (try_combine): Don't allow a call as one of the source
9145 * target.def (decl_end): New hook.
9146 * varasm.c (assemble_variable_contents, assemble_constant_contents):
9148 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
9149 * doc/tm.texi: Regenerate.
9151 2014-11-06 Renlin Li <renlin.li@arm.com>
9153 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
9154 (processor): New architecture_version field.
9155 (aarch64_override_options): Initialize aarch64_architecture_version.
9156 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
9157 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
9159 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9161 * params.def (sra-max-scalarization-size-Ospeed): New.
9162 (sra-max-scalarization-size-Osize): Likewise.
9163 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
9164 (sra-max-scalarization-size-Osize): Likewise.
9165 * toplev.c (process_options): Set default values for new
9167 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
9168 * targhooks.c (get_move_ratio): Remove static designator.
9169 * target.h (get_move_ratio): Declare.
9171 2014-11-06 Marek Polacek <polacek@redhat.com>
9173 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
9174 Remove vector limit.
9176 2014-11-06 Richard Biener <rguenther@suse.de>
9178 * match.pd: Implement bitwise binary and unary simplifications
9179 from tree-ssa-forwprop.c.
9180 * fold-const.c (fold_unary_loc): Remove them here.
9181 (fold_binary_loc): Likewise.
9182 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
9183 (truth_valued_ssa_name): Likewise.
9184 (lookup_logical_inverted_value): Likewise.
9185 (simplify_bitwise_binary_1): Likewise.
9186 (hoist_conversion_for_bitop_p): Likewise.
9187 (simplify_bitwise_binary_boolean): Likewise.
9188 (simplify_bitwise_binary): Likewise.
9189 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
9190 and simplify_bitwise_binary.
9191 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
9192 (decision_tree::insert): Also insert non-expressions.
9194 2014-11-06 Hale Wang <hale.wang@arm.com>
9196 * config/arm/arm-cores.def: Add support for
9197 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9198 cortex-m1.small-multiply.
9199 * config/arm/arm-tables.opt: Regenerate.
9200 * config/arm/arm-tune.md: Regenerate.
9201 * config/arm/arm.c: Update the rtx-costs for MUL.
9202 * config/arm/bpabi.h: Handle
9203 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9204 cortex-m1.small-multiply.
9205 * doc/invoke.texi: Document
9206 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9207 cortex-m1.small-multiply.
9209 2014-11-06 Hale Wang <hale.wang@arm.com>
9211 * config/arm/arm.c: Add cortex-m7 tune.
9212 * config/arm/arm-cores.def: Use cortex-m7 tune.
9214 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
9217 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
9218 (ix86_encode_section_info): Do not check for non-automatic varibles
9219 when setting SYMBOL_FLAG_FAR_ADDR flag.
9220 (x86_64_elf_select_section): Do not check ix86_cmodel here.
9221 (x86_64_elf_unique_section): Ditto.
9222 (x86_elf_aligned_common): Emit tab before .largecomm.
9224 2014-11-05 Joseph Myers <joseph@codesourcery.com>
9226 PR preprocessor/9449
9227 * doc/cpp.texi (Character sets, Tokenization)
9228 (Implementation-defined behavior): Don't refer to UCNs in
9229 identifiers requiring -fextended-identifiers.
9230 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
9231 by default for C99 and later and C++.
9232 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
9233 identifiers needing -fextended-identifiers.
9235 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
9237 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
9238 for 512-bit wide modes.
9239 (expand_vec_perm_1): Use correct versions of patterns.
9240 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
9241 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
9243 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
9249 * tree-chkp-opt.c: New.
9252 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
9254 (GTFILES): Add tree-chkp.c.
9255 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9256 * tree.def (POINTER_BOUNDS_TYPE): New.
9257 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9258 (POINTER_BOUNDS_MODE): New.
9259 (make_pointer_bounds_mode): New.
9260 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9261 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9262 (layout_type): Support POINTER_BOUNDS_TYPE.
9263 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9264 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9265 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9266 (type_contains_placeholder_1): Likewise.
9267 (build_common_tree_nodes): Initialize
9268 pointer_bounds_type_node.
9269 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9270 (pointer_bounds_type_node): New.
9271 (POINTER_BOUNDS_P): New.
9272 (BOUNDED_TYPE_P): New.
9274 (CALL_WITH_BOUNDS_P): New.
9275 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
9276 (gimple_call_with_bounds_p): New.
9277 (gimple_call_set_with_bounds): New.
9278 (gimple_return_retbnd): New.
9279 (gimple_return_set_retbnd): New
9280 * gimple.c (gimple_build_return): Increase number of ops
9281 for return statement.
9282 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
9284 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9285 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
9286 * gimplify.c (gimplify_init_constructor): Avoid infinite
9287 loop during gimplification of bounds initializer.
9288 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
9289 (special_function_p): Use original decl name when analyzing
9290 instrumentation clone.
9291 (arg_data): Add fields special_slot, pointer_arg and
9293 (store_bounds): New.
9294 (emit_call_1): Propagate instrumentation flag for CALL.
9295 (initialize_argument_information): Compute pointer_arg,
9296 pointer_offset and special_slot for pointer bounds arguments.
9297 (finalize_must_preallocate): Preallocate when storing bounds
9299 (compute_argument_addresses): Skip pointer bounds.
9300 (expand_call): Store bounds into tables separately. Return
9301 result joined with resulting bounds.
9302 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9303 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9304 (expand_return): Add returned bounds arg. Handle returned bounds.
9305 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9306 (gimple_expand_cfg): Reset rtx bounds map.
9307 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9308 (expand_assignment): Handle returned bounds.
9309 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9310 target argument. Handle bounds returned by calls.
9311 (store_expr): Now wraps store_expr_with_bounds.
9312 * expr.h (store_expr_with_bounds): New.
9313 * function.c: Include tree-chkp.h, rtl-chkp.h.
9314 (bounds_parm_data): New.
9315 (use_register_for_decl): Do not registerize decls used for bounds
9317 (assign_parms_augmented_arg_list): Add bounds of the result
9318 structure pointer as the second argument.
9319 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9321 (assign_parm_is_stack_parm): Likewise.
9322 (assign_parm_load_bounds): New.
9323 (assign_bounds): New.
9324 (assign_parms): Load bounds and determine a location for
9326 (diddle_return_value_1): New.
9327 (diddle_return_value): Handle returned bounds.
9328 * function.h (rtl_data): Add field for returned bounds.
9329 * varasm.c: Include tree-chkp.h.
9330 (output_constant): Support POINTER_BOUNDS_TYPE.
9331 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9332 (ultimate_transparent_alias_target): Move up.
9333 (make_decl_rtl): For instrumented function use
9334 name of the original decl.
9335 (assemble_start_function): Mark function as global
9336 in case it is instrumentation clone of the global
9338 (do_assemble_alias): Follow transparent alias chain
9339 for identifier. Check if original alias is public.
9340 (maybe_assemble_visibility): Use visibility of the
9341 original function for instrumented version.
9342 (default_unique_section): Likewise.
9343 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9344 (init_emit_once): Build pointer bounds zero constants.
9345 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9346 * target.def (builtin_chkp_function): New.
9347 (chkp_bound_type): New.
9348 (chkp_bound_mode): New.
9349 (chkp_make_bounds_constant): New.
9350 (chkp_initialize_bounds): New.
9351 (load_bounds_for_arg): New.
9352 (store_bounds_for_arg): New.
9353 (load_returned_bounds): New.
9354 (store_returned_bounds): New.
9355 (chkp_function_value_bounds): New.
9356 (setup_incoming_vararg_bounds): New.
9357 (function_arg): Update hook description with new possible return
9359 * targhooks.h (default_load_bounds_for_arg): New.
9360 (default_store_bounds_for_arg): New.
9361 (default_load_returned_bounds): New.
9362 (default_store_returned_bounds): New.
9363 (default_chkp_bound_type): New.
9364 (default_chkp_bound_mode): New.
9365 (default_builtin_chkp_function): New.
9366 (default_chkp_function_value_bounds): New.
9367 (default_chkp_make_bounds_constant): New.
9368 (default_chkp_initialize_bounds): New.
9369 (default_setup_incoming_vararg_bounds): New.
9370 * targhooks.c (default_load_bounds_for_arg): New.
9371 (default_store_bounds_for_arg): New.
9372 (default_load_returned_bounds): New.
9373 (default_store_returned_bounds): New.
9374 (default_chkp_bound_type): New.
9375 (default_chkp_bound_mode); New.
9376 (default_builtin_chkp_function): New.
9377 (default_chkp_function_value_bounds): New.
9378 (default_chkp_make_bounds_constant): New.
9379 (default_chkp_initialize_bounds): New.
9380 (default_setup_incoming_vararg_bounds): New.
9381 * builtin-types.def (BT_BND): New.
9382 (BT_FN_PTR_CONST_PTR): New.
9383 (BT_FN_CONST_PTR_CONST_PTR): New.
9384 (BT_FN_BND_CONST_PTR): New.
9385 (BT_FN_CONST_PTR_BND): New.
9386 (BT_FN_PTR_CONST_PTR_SIZE): New.
9387 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9388 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9389 (BT_FN_VOID_CONST_PTR_SIZE): New.
9390 (BT_FN_VOID_PTR_BND): New.
9391 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9392 (BT_FN_BND_CONST_PTR_SIZE): New.
9393 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9394 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9395 * chkp-builtins.def: New.
9396 * builtins.def: include chkp-builtins.def.
9397 (DEF_CHKP_BUILTIN): New.
9398 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9399 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9400 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9401 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9402 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9403 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9404 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9405 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9406 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9407 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9408 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9409 (std_expand_builtin_va_start): Init bounds for va_list.
9410 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9411 __CHKP__ macro when Pointer Bounds Checker is on.
9412 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9413 * passes.def (pass_ipa_chkp_versioning): New.
9414 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9415 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9416 (pass_chkp_instrumentation_passes): New.
9417 (pass_ipa_chkp_produce_thunks): New.
9418 (pass_local_optimization_passes): New.
9419 (pass_chkp_opt): New.
9420 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9421 (make_pass_ipa_chkp_produce_thunks): New.
9422 (make_pass_chkp): New.
9423 (make_pass_chkp_opt): New.
9424 (make_pass_early_local_passes): Renamed to ...
9425 (make_pass_build_ssa_passes): This.
9426 (make_pass_chkp_instrumentation_passes): New.
9427 (make_pass_local_optimization_passes): New.
9428 * passes.c (pass_manager::execute_early_local_passes): Execute
9429 early passes in three steps.
9430 (execute_all_early_local_passes): Renamed to ...
9431 (execute_build_ssa_passes): This.
9432 (pass_data_early_local_passes): Renamed to ...
9433 (pass_data_build_ssa_passes): This.
9434 (pass_early_local_passes): Renamed to ...
9435 (pass_build_ssa_passes): This.
9436 (pass_data_chkp_instrumentation_passes): New.
9437 (pass_chkp_instrumentation_passes): New.
9438 (pass_data_local_optimization_passes): New.
9439 (pass_local_optimization_passes): New.
9440 (make_pass_early_local_passes): Renamed to ...
9441 (make_pass_build_ssa_passes): This.
9442 (make_pass_chkp_instrumentation_passes): New.
9443 (make_pass_local_optimization_passes): New.
9444 * c-family/c.opt (fcheck-pointer-bounds): New.
9445 (fchkp-check-incomplete-type): New.
9446 (fchkp-zero-input-bounds-for-main): New.
9447 (fchkp-first-field-has-own-bounds): New.
9448 (fchkp-narrow-bounds): New.
9449 (fchkp-narrow-to-innermost-array): New.
9450 (fchkp-optimize): New.
9451 (fchkp-use-fast-string-functions): New.
9452 (fchkp-use-nochk-string-functions): New.
9453 (fchkp-use-static-bounds): New.
9454 (fchkp-use-static-const-bounds): New.
9455 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9456 (fchkp-check-read): New.
9457 (fchkp-check-write): New.
9458 (fchkp-store-bounds): New.
9459 (fchkp-instrument-calls): New.
9460 (fchkp-instrument-marked-only): New.
9462 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9463 (handle_bnd_legacy): New.
9464 (handle_bnd_instrument): New.
9465 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9466 and bnd_instrument. Fix documentation.
9467 (c_common_format_attribute_table): Likewsie.
9468 * toplev.c: include tree-chkp.h.
9469 (process_options): Check Pointer Bounds Checker is supported.
9470 (compile_file): Add chkp_finish_file call.
9471 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9472 to handle instrumentation clones properly.
9473 (propagate_constants_accross_call): Do not propagate
9474 through instrumentation thunks.
9475 * ipa-pure-const.c (propagate_pure_const): Support
9477 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9478 * ipa-split.c: Include tree-chkp.h.
9480 (split_part_set_ssa_name_p): New.
9481 (consider_split): Do not split retbnd and retval
9483 (insert_bndret_call_after): new.
9484 (split_function): Propagate Pointer Bounds Checker
9485 instrumentation marks and handle returned bounds.
9486 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9487 into bit field and add with_bounds field.
9488 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9489 with_bounds field for instrumented calls.
9490 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9491 CALL_WITH_BOUNDS_P flag for calls.
9492 * tree-ssa-ccp.c: Include tree-chkp.h.
9493 (insert_clobber_before_stack_restore): Handle
9494 BUILT_IN_CHKP_BNDRET calls.
9495 * tree-ssa-dce.c: Include tree-chkp.h.
9496 (propagate_necessity): For free call fed by alloc check
9497 bounds are also provided by the same alloc.
9498 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9500 * tree-inline.c: Include tree-chkp.h.
9501 (declare_return_variable): Add arg holding
9502 returned bounds slot. Create and initialize returned bounds var.
9503 (remap_gimple_stmt): Handle returned bounds.
9504 Return sequence of statements instead of a single statement.
9505 (insert_init_stmt): Add declaration.
9506 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9507 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9508 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9509 (expand_call_inline): Handle returned bounds. Add bounds copy
9510 for generated mem to mem assignments.
9511 * tree-inline.h (copy_body_data): Add fields retbnd and
9513 * value-prof.c: Include tree-chkp.h.
9514 (gimple_ic): Support returned bounds.
9515 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9516 with "chkp ctor" and "bnd_legacy" attributes.
9517 (symtab_remove_unreachable_nodes): Keep initial values for
9518 pointer bounds to be used for checks eliminations.
9519 (process_references): Handle IPA_REF_CHKP.
9520 (walk_polymorphic_call_targets): Likewise.
9521 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9522 instrumented 'main' as externally visible.
9523 (function_and_variable_visibility): Filter instrumentation
9525 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9527 (cgraph_node): Add instrumented_version, orig_decl and
9528 instrumentation_clone fields.
9529 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9530 (varpool_node): Add need_bounds_init field.
9531 (cgraph_local_p): New.
9532 * cgraph.c: Include tree-chkp.h.
9533 (cgraph_node::remove): Fix instrumented_version
9534 of the referenced node if any.
9535 (cgraph_node::dump): Dump instrumentation_clone and
9536 instrumented_version fields.
9537 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9538 references and instrumentation thunks.
9539 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9540 all not instrumented instrumentation clones alive.
9541 (cgraph_redirect_edge_call_stmt_to_callee): Support
9543 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9545 (cgraph_rebuild_references): Likewise.
9546 * cgraphunit.c: Include tree-chkp.h.
9547 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9549 (varpool_finalize_decl): Register statically initialized decls
9550 in Pointer Bounds Checker.
9551 (walk_polymorphic_call_targets): Do not mark generated call to
9552 __builtin_unreachable as with_bounds.
9553 (output_weakrefs): If there are both instrumented and original
9554 versions, output only one of them.
9555 (cgraph_node::expand_thunk): Set with_bounds flag
9556 for created call statement.
9557 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9558 (ipa_ref): increase size of use field.
9559 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9560 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9561 (ctor_for_folding): Do not fold constant bounds vars.
9562 * lto-streamer.h (LTO_minor_version): Change minor version from
9564 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9566 (lto_output_node): Output instrumentation_clone,
9567 thunk.add_pointer_bounds_args and orig_decl field.
9568 (lto_output_ref): Adjust to new ipa_ref::use field size.
9569 (input_overwrite_node): Read instrumentation_clone field.
9570 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9572 (input_ref): Adjust to new ipa_ref::use field size.
9573 (input_cgraph_1): Compute instrumented_version fields and restore
9574 IDENTIFIER_TRANSPARENT_ALIAS chains.
9575 (lto_output_varpool_node): Output
9576 need_bounds_init value.
9577 (input_varpool_node): Read need_bounds_init value.
9578 * lto-partition.c (add_symbol_to_partition_1): Keep original
9579 and instrumented versions together.
9580 (privatize_symbol_name): Restore transparent alias chain if required.
9581 (add_references_to_partition): Add references to pointer bounds vars.
9582 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9583 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9584 (gen_type_die_with_usage): Skip pointer bounds.
9585 (dwarf2out_global_decl): Likewise.
9586 (is_base_type): Support POINTER_BOUNDS_TYPE.
9587 (gen_formal_types_die): Skip pointer bounds.
9588 (gen_decl_die): Likewise.
9589 * var-tracking.c (vt_add_function_parameters): Skip
9591 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9593 (sem_variable::merge): Reset need_bounds_init flag.
9594 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9596 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9597 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9598 (TARGET_LOAD_RETURNED_BOUNDS): New.
9599 (TARGET_STORE_RETURNED_BOUNDS): New.
9600 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9601 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9602 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9603 (TARGET_CHKP_BOUND_TYPE): New.
9604 (TARGET_CHKP_BOUND_MODE): New.
9605 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9606 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9607 * doc/tm.texi: Regenerated.
9608 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9611 * doc/invoke.texi (-mmpx): New.
9613 (chkp-max-ctor-size): New.
9614 * config/i386/constraints.md (w): New.
9617 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9618 * config/i386/i386-modes.def (BND32): New.
9620 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9621 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9622 (regclass_map): Add bound registers.
9623 (dbx_register_map): Likewise.
9624 (dbx64_register_map): Likewise.
9625 (svr4_dbx_register_map): Likewise.
9626 (isa_opts): Add -mmpx.
9628 (ix86_option_override_internal): Support MPX ISA.
9629 (ix86_conditional_register_usage): Support bound registers.
9630 (ix86_code_end): Add MPX bnd prefix.
9631 (output_set_got): Likewise.
9632 (print_reg): Avoid prefixes for bound registers.
9633 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9634 (ix86_print_operand_punct_valid_p): Likewise.
9635 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9637 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9638 (ix86_class_likely_spilled_p): Add bound regs support.
9639 (ix86_hard_regno_mode_ok): Likewise.
9640 (x86_order_regs_for_local_alloc): Likewise.
9641 (ix86_bnd_prefixed_insn_p): New.
9642 (ix86_builtins): Add
9643 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9644 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9645 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9646 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9647 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9648 IX86_BUILTIN_BNDUPPER.
9649 (builtin_isa): Add leaf_p and nothrow_p fields.
9650 (def_builtin): Initialize leaf_p and nothrow_p.
9651 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9654 (bdesc_mpx_const): New.
9655 (ix86_init_mpx_builtins): New.
9656 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9657 (ix86_emit_cmove): New.
9658 (ix86_emit_move_max): New.
9659 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9660 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9661 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9662 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9663 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9664 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9665 (ix86_function_value_bounds): New.
9666 (ix86_builtin_mpx_function): New.
9667 (ix86_get_arg_address_for_bt): New.
9668 (ix86_load_bounds): New.
9669 (ix86_store_bounds): New.
9670 (ix86_load_returned_bounds): New.
9671 (ix86_store_returned_bounds): New.
9672 (ix86_mpx_bound_mode): New.
9673 (ix86_make_bounds_constant): New.
9674 (ix86_initialize_bounds):
9675 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9676 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9677 (TARGET_LOAD_RETURNED_BOUNDS): New.
9678 (TARGET_STORE_RETURNED_BOUNDS): New.
9679 (TARGET_CHKP_BOUND_MODE): New.
9680 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9681 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9682 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9683 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9684 (ix86_option_override_internal): Do not
9685 support x32 with MPX.
9686 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9688 (function_arg_advance_32): Return number of used integer
9690 (function_arg_advance_64): Likewise.
9691 (function_arg_advance_ms_64): Likewise.
9692 (ix86_function_arg_advance): Handle pointer bounds.
9693 (ix86_function_arg): Likewise.
9694 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9695 possible function value.
9696 (ix86_function_value_1): Handle pointer bounds type/mode
9697 (ix86_return_in_memory): Likewise.
9698 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9699 (ix86_expand_call): Generate returned bounds.
9700 (ix86_setup_incoming_vararg_bounds): New.
9701 (ix86_va_start): Initialize bounds for pointers in va_list.
9702 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9703 * config/i386/i386.h (TARGET_MPX): New.
9704 (TARGET_MPX_P): New.
9705 (FIRST_PSEUDO_REGISTER): Fix to new value.
9706 (FIXED_REGISTERS): Add bound registers.
9707 (CALL_USED_REGISTERS): Likewise.
9708 (REG_ALLOC_ORDER): Likewise.
9709 (HARD_REGNO_NREGS): Likewise.
9710 (VALID_BND_REG_MODE): New.
9711 (FIRST_BND_REG): New.
9712 (LAST_BND_REG): New.
9713 (reg_class): Add BND_REGS.
9714 (REG_CLASS_NAMES): Likewise.
9715 (REG_CLASS_CONTENTS): Likewise.
9717 (ANY_BND_REG_P): New.
9719 (HI_REGISTER_NAMES): Add bound registers.
9720 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9722 * config/i386/i386.md (UNSPEC_BNDMK): New.
9723 (UNSPEC_BNDMK_ADDR): New.
9724 (UNSPEC_BNDSTX): New.
9725 (UNSPEC_BNDLDX): New.
9726 (UNSPEC_BNDLDX_ADDR): New.
9727 (UNSPEC_BNDCL): New.
9728 (UNSPEC_BNDCU): New.
9729 (UNSPEC_BNDCN): New.
9730 (UNSPEC_MPX_FENCE): New.
9731 (UNSPEC_SIZEOF): New.
9734 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9735 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9736 (prefix_rep): Check for bnd prefix.
9737 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9738 (length_nobnd): New.
9739 (length): Use length_nobnd when specified.
9740 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9745 (*jcc_1): Add MPX bnd prefix.
9748 (*indirect_jump): Likewise.
9749 (*tablejump_1): Likewise.
9750 (simple_return_internal): Likewise.
9751 (simple_return_internal_long): Likewise.
9752 (simple_return_pop_internal): Likewise.
9753 (simple_return_indirect_internal): Likewise.
9757 (*mov<mode>_internal_mpx): New.
9758 (<mode>_<bndcheck>): New.
9759 (*<mode>_<bndcheck>): New.
9764 move_size_reloc_<mode>): New.
9765 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9766 (address_mpx_no_index_operand): New.
9767 (bnd_mem_operator): New.
9768 (symbol_operand): New.
9769 (x86_64_immediate_size_operand): New.
9770 * config/i386/i386.opt (mmpx): New.
9771 * config/i386/i386-builtin-types.def (BND): New.
9773 (BND_FTYPE_PCVOID_ULONG): New.
9774 (VOID_FTYPE_BND_PCVOID): New.
9775 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9776 (BND_FTYPE_PCVOID_PCVOID): New.
9777 (BND_FTYPE_PCVOID): New.
9778 (BND_FTYPE_BND_BND): New.
9779 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9780 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9781 (ULONG_FTYPE_VOID): New.
9782 (PVOID_FTYPE_BND): New.
9784 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9786 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9787 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9788 pass_cleanup_barriers, pass_delay_slots,
9789 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9790 pass_shorten_branches, pass_est_nothrow_function_flags,
9791 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9792 into pass_late_compilation.
9793 (pass_late_compilation): Add.
9794 * passes.c (pass_data_late_compilation, pass_late_compilation,
9795 make_pass_late_compilation): New.
9796 * timevar.def (TV_LATE_COMPILATION): New.
9798 * target.def (omit_struct_return_reg): New data hook.
9799 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9800 * doc/tm.texi: Regenerate.
9801 * function.c (expand_function_end): Use it.
9803 * target.def (no_register_allocation): New data hook.
9804 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9805 * doc/tm.texi: Regenerate.
9806 * ira.c (gate_ira): New function.
9807 (pass_data_ira): Set has_gate.
9808 (pass_ira): Add a gate function.
9809 (pass_data_reload): Likewise.
9810 (pass_reload): Add a gate function.
9812 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9813 no register allocation happens on the target and return.
9814 * final.c (alter_subreg): Ensure register is not a pseudo before
9815 calling simplify_subreg.
9816 (output_operand): Assert that x isn't a pseudo only if doing
9817 register allocation.
9819 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9822 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9825 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9827 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9828 * rtl.h (SUBREG_P): New macro added.
9830 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9832 * config/aarch64/aarch64-builtins.c
9833 (aarch64_build_scalar_type): Remove.
9834 (aarch64_scalar_builtin_types, aarch64_simd_type,
9835 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9836 aarch64_mangle_builtin_vector_type,
9837 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9838 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9839 aarch64_init_simd_builtin_types,
9840 aarch64_init_simd_builtin_scalar_types): New.
9841 (aarch64_init_simd_builtins): Refactor.
9842 (aarch64_init_crc32_builtins): Fixup with qualifier.
9843 * config/aarch64/aarch64-protos.h
9844 (aarch64_mangle_builtin_type): Export.
9845 * config/aarch64/aarch64-simd-builtin-types.def: New.
9846 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9847 (aarch64_mangle_type): Refactor.
9848 * config/aarch64/arm_neon.h: Declare vector types based on
9850 * config/aarch64/t-aarch64: Update dependency.
9852 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9854 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9855 atomic_update_decl): Guard declaration with #ifdef.
9857 2014-11-04 Marek Polacek <polacek@redhat.com>
9859 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9861 2014-11-04 Marek Polacek <polacek@redhat.com>
9863 * Makefile.in (OBJS): Add sanopt.o.
9864 (GTFILES): Add sanopt.c.
9865 * asan.h (asan_expand_check_ifn): Declare.
9866 * asan.c (asan_expand_check_ifn): No longer static.
9867 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9868 * sanopt.c: ...here. New file.
9870 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9871 Wilco Dijkstra <wilco.dijkstra@arm.com>
9874 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9877 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9879 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9880 also verify that mode is equal to the mode of op0.
9882 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9883 emit into a sequence instead.
9885 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9887 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9889 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9891 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9892 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9893 (reduc_smax_<mode> *2): Rename to...
9894 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9895 (reduc_umin_<mode> *2): Rename to...
9896 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9897 (reduc_umax_<mode> *2): Rename to...
9898 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9900 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9902 config/arm/neon.md (reduc_plus_*): Rename to...
9903 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9905 2014-11-04 Michael Collison <michael.collison@linaro.org>
9907 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9908 to support constraints for CONST_INT in atomic operations.
9909 * config/aarch64/atomics.md
9910 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9911 (atomic_nand<mode>): Likewise.
9912 (atomic_fetch_<atomic_optab><mode>): Likewise.
9913 (atomic_fetch_nand<mode>): Likewise.
9914 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9915 (atomic_nand_fetch<mode>): Likewise.
9917 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9919 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9920 of __ARM_FEATURE_IDIV.
9922 2014-11-04 Marek Polacek <polacek@redhat.com>
9924 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9926 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9928 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9930 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9933 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9934 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9935 Allow CC mode if HAVE_cbranchcc4.
9937 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9939 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9940 with -fdump-go-spec. Anonymous substructures are now flattened and
9941 replaced by their fields (record) or the first named, non-bitfield
9944 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9946 * input.c (expand_location_to_spelling_point): Fix typo.
9947 (expansion_point_location_if_in_system_header): Fix comment.
9949 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9951 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9953 2014-11-03 Richard Biener <rguenther@suse.de>
9955 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9956 like ordinary operations.
9957 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9960 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9962 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9964 * configure, config.h.in: Regenerate.
9965 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9966 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9967 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9968 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9969 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9970 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9971 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9972 (atomic_update_decl): New static variables.
9973 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9974 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9975 and __atomic_feupdateenv for soft-float and no-FPRs.
9977 2014-11-03 Richard Biener <rguenther@suse.de>
9979 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9980 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9981 * fold-const.c (fold_unary_loc): Remove them here.
9982 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9983 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9984 GIMPLE_UNARY_RHS case.
9985 (gimple_fold_stmt_to_constant_1): Likewise.
9986 (replace_stmt_with_simplification): Fix inverted comparison.
9988 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9990 PR tree-optimization/60770
9991 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9992 statement should be removed.
9993 (maybe_register_def): Likewise. Replace clobbers with default
9995 (rewrite_dom_walker::before_dom_children): Remove statement if
9996 rewrite_update_stmt says so.
9997 * tree-ssa-live.c: Include tree-ssa.h.
9998 (set_var_live_on_entry): Do not mark undefined variables as live.
9999 (verify_live_on_entry): Do not check undefined variables.
10000 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
10001 of partially undefined variables.
10002 * tree-ssa.c (ssa_undefined_value_p): Likewise.
10003 (execute_update_addresses_taken): Do not drop clobbers.
10005 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
10007 PR tree-optimization/63666
10008 * fold-const.c: Include "optabs.h".
10009 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
10010 can_vec_perm_p permutation to one that is not.
10012 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
10014 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
10016 2014-11-03 Andrew Pinski <apinski@cavium.com>
10018 * config/mips/mips-cpus.def (octeon3): New cpu.
10019 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
10020 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
10021 of the comparison no longer matches mode of the operands.
10022 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
10023 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
10024 (TARGET_OCTEON2): Likewise.
10025 (TUNE_OCTEON): Add Octeon3.
10026 * config/mips/mips.md (processor): Add octeon3.
10027 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
10028 (octeon_arith): Add octeon3.
10029 (octeon_condmove): Remove.
10030 (octeon_condmove_o1): New reservation.
10031 (octeon_condmove_o2): New reservation.
10032 (octeon_condmove_o3_int_on_cc): New reservation.
10033 (octeon_load_o2): Add octeon3.
10034 (octeon_cop_o2): Likewise.
10035 (octeon_store): Likewise.
10036 (octeon_brj_o2): Likewise.
10037 (octeon_imul3_o2): Likewise.
10038 (octeon_imul_o2): Likewise.
10039 (octeon_mfhilo_o2): Likewise.
10040 (octeon_imadd_o2): Likewise.
10041 (octeon_idiv_o2_si): Likewise.
10042 (octeon_idiv_o2_di): Likewise.
10043 (octeon_fpu): Add to the automaton.
10044 (octeon_fpu): New cpu unit.
10045 (octeon_condmove_o2): Check for non floating point modes.
10046 (octeon_load_o2): Add prefetchx.
10047 (octeon_cop_o2): Don't check for octeon3.
10048 (octeon3_faddsubcvt): New reservation.
10049 (octeon3_fmul): Likewise.
10050 (octeon3_fmadd): Likewise.
10051 (octeon3_div_sf): Likewise.
10052 (octeon3_div_df): Likewise.
10053 (octeon3_sqrt_sf): Likewise.
10054 (octeon3_sqrt_df): Likewise.
10055 (octeon3_rsqrt_sf): Likewise.
10056 (octeon3_rsqrt_df): Likewise.
10057 (octeon3_fabsnegmov): Likewise.
10058 (octeon_fcond): Likewise.
10059 (octeon_fcondmov): Likewise.
10060 (octeon_fpmtc1): Likewise.
10061 (octeon_fpmfc1): Likewise.
10062 (octeon_fpload): Likewise.
10063 (octeon_fpstore): Likewise.
10064 * config/mips/mips-tables.opt: Regenerate.
10065 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
10067 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
10069 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
10070 Allow CC mode if HAVE_cbranchcc4.
10072 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
10074 * config/arc/arc.c (write_ext_corereg_1): Delete.
10075 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
10077 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
10079 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
10080 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
10082 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
10084 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
10085 (small_data_pattern_1): Delete.
10086 (small_data_pattern): Use FOR_EACH_SUBRTX.
10088 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
10090 * config/arc/arc.c: Include rtl-iter.h.
10091 (arc_rewrite_small_data_1): Delete.
10092 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
10094 2014-11-02 Michael Collison <michael.collison@linaro.org>
10096 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
10097 to support vector modes.
10098 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
10100 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
10102 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
10103 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
10104 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
10105 * optabs.c: (gen_move_insn): Move to expr.c.
10106 * expr.h: Move protypes and enums to optabs.h.
10107 * expr.c: (gen_move_insn): Relocate from optabs.c.
10108 * genemit.c (main): Include insn-codes.h.
10109 * gengtype.c (open_base_files): Include insn-codes.h.
10110 * asan.c: Include insn-codes.h.
10111 * bb-reorder.c: Ditto.
10112 * builtins.c: Ditto.
10114 * cfgexpand.c: Ditto.
10115 * cilk-common.c: Ditto.
10116 * combine.c: Ditto.
10122 * function.c: Ditto.
10124 * internal-fn.c: Ditto.
10125 * loop-unroll.c: Ditto.
10127 * modulo-sched.c: Ditto.
10128 * omp-low.c: Ditto.
10129 * postreload.c: Ditto.
10132 * reload1.c: Ditto.
10133 * shrink-wrap.c: Ditto.
10134 * simplify-rtx.c: Ditto.
10136 * target-globals.c: Ditto.
10137 * targhooks.c: Ditto.
10139 * tree-if-conv.c: Ditto.
10140 * tree-ssa-forwprop.c: Ditto.
10141 * tree-ssa-loop-prefetch.c: Ditto.
10142 * tree-ssa-math-opts.c: Ditto.
10143 * tree-ssa-phiopt.c: Ditto.
10144 * tree-ssa-reassoc.c: Ditto.
10145 * tree-switch-conversion.c: Ditto.
10146 * tree-vect-data-refs.c: Ditto.
10147 * tree-vect-generic.c: Ditto.
10148 * tree-vect-loop.c: Ditto.
10149 * tree-vect-patterns.c: Ditto.
10150 * tree-vect-slp.c: Ditto.
10151 * tree-vect-stmts.c: Ditto.
10152 * tree-vrp.c: Ditto.
10153 * value-prof.c: Ditto.
10154 * config/aarch64/aarch64-builtins.c: Ditto.
10155 * config/alpha/alpha.c: Ditto.
10156 * config/arm/arm.c: Ditto.
10157 * config/cris/cris.c: Ditto.
10158 * config/epiphany/epiphany.c: Ditto.
10159 * config/frv/frv.c: Ditto.
10160 * config/h8300/h8300.c: Ditto.
10161 * config/ia64/ia64.c: Ditto.
10162 * config/iq2000/iq2000.c: Ditto.
10163 * config/m32c/m32c.c: Ditto.
10164 * config/mep/mep.c: Ditto.
10165 * config/microblaze/microblaze.c: Ditto.
10166 * config/mips/mips.c: Ditto.
10167 * config/mn10300/mn10300.c: Ditto.
10168 * config/moxie/moxie.c: Ditto.
10169 * config/msp430/msp430.c: Ditto.
10170 * config/nios2/nios2.c: Ditto.
10171 * config/pa/pa.c: Ditto.
10172 * config/rl78/rl78.c: Ditto.
10173 * config/rs6000/rs6000.c: Ditto.
10174 * config/rx/rx.c: Ditto.
10175 * config/s390/s390.c: Ditto.
10176 * config/sh/sh.c: Ditto.
10177 * config/sh/sh_treg_combine.cc: Ditto.
10178 * config/spu/spu.c: Ditto.
10179 * config/stormy16/stormy16.c: Ditto.
10180 * config/tilegx/mul-tables.c: Ditto.
10181 * config/tilegx/tilegx.c: Ditto.
10182 * config/tilepro/mul-tables.c: Ditto.
10183 * config/tilepro/tilepro.c: Ditto.
10184 * config/vax/vax.c: Ditto.
10186 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10188 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
10189 (CLEAR_BY_PIECES_P): Likewise.
10190 (SET_BY_PIECES_P): Likewise.
10191 (STORE_BY_PIECES_P): Likewise.
10192 * doc/tm.texi: Regenerate.
10193 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
10194 SET_BY_PIECES_P, STORE_BY_PIECES_P.
10195 * expr.c (MOVE_BY_PIECES_P): Remove.
10196 (CLEAR_BY_PIECES_P): Likewise.
10197 (SET_BY_PIECES_P): Likewise.
10198 (STORE_BY_PIECES_P): Likewise.
10199 (can_move_by_pieces): Rewrite in terms of
10200 targetm.use_by_pieces_infrastructure_p.
10201 (emit_block_move_hints): Likewise.
10202 (can_store_by_pieces): Likewise.
10203 (store_by_pieces): Likewise.
10204 (clear_storage_hints): Likewise.
10205 (emit_push_insn): Likewise.
10206 (expand_constructor): Likewise.
10208 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10210 * config/aarch64/aarch64.c
10211 (aarch64_use_by_pieces_infrastructre_p): New.
10212 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
10213 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
10215 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10217 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
10218 (STORE_BY_PIECES_P): Likewise.
10219 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10220 (mips_move_by_pieces_p): Rename to...
10221 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
10222 parameters, use the default hook implementation as a
10225 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10227 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10228 (sh_use_by_pieces_infrastructure_p): Likewise.
10229 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
10230 (STORE_BY_PIECES_P): Likewise.
10231 (SET_BY_PIECES_P): Likewise.
10233 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10235 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10236 (arc_use_by_pieces_infrastructure_p): Likewise.
10237 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
10238 (CAN_MOVE_BY_PIECES): Likewise.
10240 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10242 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
10243 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
10244 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
10245 (CLEAR_BY_PIECES): Likewise.
10246 (SET_BY_PIECES): Likewise.
10247 (STORE_BY_PIECES): Likewise.
10249 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10251 * target.def (use_by_pieces_infrastructure_p): New.
10252 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
10254 (STORE_BY_PIECES_P): Likewise.
10255 (CLEAR_BY_PIECES_P): Likewise.
10256 (SET_BY_PIECES_P): Likewise.
10257 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
10258 * doc/tm.texi: Regenerate.
10259 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
10260 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
10261 (STORE_BY_PIECES_P): Likewise.
10262 (CLEAR_BY_PIECES_P): Likewise.
10263 (SET_BY_PIECES_P): Likewise.
10264 (STORE_MAX_PIECES): Move to...
10265 * defaults.h (STORE_MAX_PIECES): ...here.
10266 * targhooks.c (get_move_ratio): New.
10267 (default_use_by_pieces_infrastructure_p): Likewise.
10268 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
10269 * target.h (by_pieces_operation): New.
10271 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10274 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
10275 assignment to 'nargs' variable.
10277 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10280 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
10281 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
10282 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
10283 be reloaded through memory.
10287 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10289 PR rtl-optimization/63659
10290 * ree.c (update_reg_equal_equiv_notes): New function.
10291 (combine_set_extension, transform_ifelse): Use it.
10293 2014-10-31 Jeff Law <law@redhat.com>
10295 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
10296 and Jonny Grant (collect2).
10298 2014-10-31 Richard Biener <rguenther@suse.de>
10300 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10301 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10303 (fold_builtin_expect): Likewise.
10304 (integer_valued_real_p): Likewise.
10305 * cfgexpand.c (expand_debug_expr): Likewise.
10306 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10307 (find_foldable_builtin_expect): Likewise.
10308 * trans-mem.c (thread_private_new_memory): Likewise.
10309 * tree-affine.c (aff_combination_expand): Likewise.
10310 * tree-data-ref.c (initialize_matrix_A): Likewise.
10311 * tree-inline.c (copy_bb): Likewise.
10312 * tree-pretty-print.c (dump_function_name): Likewise.
10313 (print_call_name): Likewise.
10314 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10315 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10316 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10317 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10318 (vect_recog_widen_mult_pattern): Likewise.
10319 (vect_operation_fits_smaller_type): Likewise.
10320 * tree-vrp.c (find_assert_locations_1): Likewise.
10321 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10322 converts to NOP_EXPR.
10324 2014-10-31 Richard Biener <rguenther@suse.de>
10326 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10327 CONVERT_EXPRs in generated code.
10328 (dt_simplify::gen): Likewise.
10330 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10333 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10334 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10335 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10336 using mcount in 32bit PIC mode.
10337 (ix86_elim_entry_set_got): New.
10338 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10339 in PROLOGUE, delete initial if possible.
10341 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10343 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10344 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10346 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10348 PR tree-optimization/63259
10349 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10350 rotation left if it is a 16 bit byte swap.
10351 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10352 and RROTATE_EXPR statements if it is a byte rotation.
10354 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10357 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10358 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10359 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10361 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10364 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10365 to avoid alloc-dealloc mismatch with new, called in
10366 ipa_icf::sem_function::init.
10368 2014-10-30 Felix Yang <felix.yang@huawei.com>
10370 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10371 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10372 (xtensa_reorg, xtensa_reorg_loops): New.
10373 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10374 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10375 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10376 (xtensa_doloop_hooks): Define.
10377 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10378 (zero_cost_loop_start): Rewritten.
10379 (zero_cost_loop_end): Likewise.
10381 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10383 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10385 2014-10-30 Richard Biener <rguenther@suse.de>
10387 * genmatch.c: Remove <map>, <utility> and <string> includes.
10388 Include ggc.h and hash-map.h.
10389 (ggc_internal_cleared_alloc): Provide stub definition.
10390 (ggc_free): Likewise.
10391 (struct capture_id_map_hasher): New traits for hash_map.
10392 (cid_map_t): New typedef.
10393 (everywhere else): Replace std::map use with cid_map_t.
10394 * hash-map.h (hash_map::elements): New member function.
10395 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10396 hash-map.h and $(GGC_H) as dependency.
10398 2014-10-30 Richard Biener <rguenther@suse.de>
10400 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10401 uses inside TREE_TYPE ().
10402 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10403 (find_candidates_dom_walker::before_dom_children): Likewise.
10404 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10405 (replace_profitable_candidates): Likewise.
10406 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10407 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10408 * convert.c (convert_to_integer): Use CASE_CONVERT.
10410 2014-10-30 Richard Biener <rguenther@suse.de>
10412 * match.pd: Implement more patterns that simplify to a single value.
10413 * fold-const.c (fold_binary_loc): Remove them here.
10414 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10415 (fwprop_ssa_val): Remove restriction on single uses.
10417 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10419 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10421 2014-10-30 Martin Liska <mliska@suse.cz>
10425 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10426 (func_checker::compare_gimple_label): Simlified comparison introduced.
10427 * ipa-icf-gimple.h: Missing comment added.
10429 2014-10-30 Jeff Law <law@redhat.com>
10431 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10432 argument from rtx to rtx_insn *.
10433 (compute_movmem_length, compute_clrmem_length): Likewise.
10434 (copy_fp_args, length_fp_args): Likewise.
10435 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10436 "insn" from rtx to rtx_insn *.
10437 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10438 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10439 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10440 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10441 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10442 (compute_movmem_length, compute_clrmem_length): Likewise.
10443 (copy_fp-args, length_fp_args): Likewise.
10445 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10447 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10449 (CUMULATIVE_ARGS): Guard against target includes.
10450 (machine_function): Likewise.
10452 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10454 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10455 recog state after aarch64_prev_real_insn call.
10457 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10459 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10461 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10463 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10464 (struct machine_function): Gate definition on
10465 !defined(USED_FOR_TARGET).
10467 2014-10-29 DJ Delorie <dj@redhat.com>
10469 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10471 2014-10-29 Martin Liska <mliska@suse.cz>
10474 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10475 to local declarations.
10476 * function.c (add_local_decl): Implementation moved from header
10477 file, assert introduced for tree type.
10478 * function.h: Likewise.
10480 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10482 * godump.c (go_format_type): Represent "float _Complex" and
10483 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10485 2014-10-29 Richard Biener <rguenther@suse.de>
10487 * match.pd: Implement a first set of conversion patterns.
10488 * fold-const.c (fold_unary_loc): Remove them here.
10489 * tree-ssa-forwprop.c (simplify_vce): Remove.
10490 (pass_forwprop::execute): Do not call simplify_vce.
10492 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10494 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10495 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10496 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10497 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10498 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10499 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10500 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10501 config/arc/arc.h, config/arc/predicates.md,
10502 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10503 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10504 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10505 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10506 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10507 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10508 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10509 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10510 config/darwin-protos.h, config/darwin.c,
10511 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10512 config/epiphany/epiphany.md, config/fr30/fr30.c,
10513 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10514 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10515 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10516 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10517 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10518 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10519 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10520 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10521 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10522 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10523 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10524 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10525 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10526 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10527 config/mips/mips-protos.h, config/mips/mips.c,
10528 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10529 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10530 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10531 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10532 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10533 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10534 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10535 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10536 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10537 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10538 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10539 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10540 config/s390/predicates.md, config/s390/s390-protos.h,
10541 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10542 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10543 config/sh/sh.md, config/sparc/predicates.md,
10544 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10545 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10546 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10547 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10548 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10549 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10550 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10551 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10552 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10553 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10554 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10555 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10556 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10557 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10558 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10559 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10560 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10561 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10562 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10563 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10564 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10565 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10566 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10567 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10568 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10569 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10570 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10571 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10572 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10573 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10574 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10575 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10576 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10577 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10578 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10579 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10580 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10581 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10582 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10583 var-tracking.c, varasm.c: Remove redundant enum from
10585 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10586 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10589 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10591 PR rtl-optimization/63340 (part 2)
10592 * rtl.h (invalid_mode_change_p): Delete.
10593 (valid_mode_changes_for_regno): New function.
10594 * reginfo.c (invalid_mode_change_p): Delete.
10595 (valid_mode_changes_for_regno): New function.
10596 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10597 classes to registers that are allowed by valid_mode_changes_for_regno.
10598 (setup_regno_cost_classes_by_mode): Likewise.
10599 (print_allocno_costs): Remove invalid_mode_change_p test.
10600 (print_pseudo_costs, find_costs_and_classes): Likewise.
10602 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10604 PR rtl-optimization/63340 (part 1)
10605 * ira-costs.c (all_cost_classes): New variable.
10606 (complete_cost_classes): New function, split out from...
10607 (setup_cost_classes): ...here.
10608 (initiate_regno_cost_classes): Set up all_cost_classes.
10609 (restrict_cost_classes): New function.
10610 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10611 registers that are valid for the register's mode.
10612 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10613 restriction of all_cost_classes to a particular mode.
10614 (print_allocno_costs): Remove contains_reg_of_mode check.
10615 (print_pseudo_costs, find_costs_and_classes): Likewise.
10617 2014-10-29 Richard Biener <rguenther@suse.de>
10619 PR tree-optimization/63666
10620 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10621 accessing out-of-bound elements.
10623 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10625 Anna Tikhonova <anna.tikhonova@intel.com>
10626 Ilya Tocar <ilya.tocar@intel.com>
10627 Andrey Turetskiy <andrey.turetskiy@intel.com>
10628 Ilya Verbin <ilya.verbin@intel.com>
10629 Kirill Yukhin <kirill.yukhin@intel.com>
10630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10632 * config/i386/i386.md
10633 (movhi_internal): Always detect maskmov.
10634 (movqi_internal): Fix target check.
10636 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10637 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10638 Anna Tikhonova <anna.tikhonova@intel.com>
10639 Ilya Tocar <ilya.tocar@intel.com>
10640 Andrey Turetskiy <andrey.turetskiy@intel.com>
10641 Ilya Verbin <ilya.verbin@intel.com>
10642 Kirill Yukhin <kirill.yukhin@intel.com>
10643 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10645 * config/i386/avx512bwintrin.h: Add new intrinsics.
10646 * config/i386/avx512vlbwintrin.h: Ditto.
10647 * config/i386/avx512vlintrin.h: Ditto.
10649 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10651 * godump.c (precision_to_units): New helper function.
10652 (go_append_artificial_name): Ditto.
10653 (go_append_decl_name): Ditto.
10654 (go_append_bitfield): Ditto.
10655 (go_get_uinttype_for_precision): Ditto.
10656 (go_append_padding): Ditto.
10657 (go_force_record_alignment): Ditto.
10658 (go_format_type): Represent unions with an array of uints of the size
10659 of the alignment in go. This fixes the 'random' size of the union's
10660 representation using just the first field.
10661 (go_format_type): Add argument that indicates whether a record is
10662 nested (used for generation of artificial go names).
10663 (go_output_fndecl): Adapt to new go_format_type signature.
10664 (go_output_typedef): Ditto.
10665 (go_output_var): Ditto.
10666 (go_output_var): Prefer to output type as alias (typedef).
10667 (go_format_type): Bitfields in records are simulated as arrays of bytes
10670 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10672 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10674 * cgraph.h: Flatten. Remove all include files.
10675 (symbol_table::initialize): Move to cgraph.c.
10676 * cgraph.c: Adjust include files.
10677 (symbol_table::initialize): Relocate from cgraph.h.
10678 * gengtype.c (open_base_files): Adjust include files.
10679 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10681 * ipa-inline.h: Remove all include files.
10682 * ipa-prop.h: Ditto.
10683 * ipa-reference.h: Ditto.
10684 * ipa-utils.h: Ditto:
10685 * lto-streamer.h: Remove cgraph.h from include list.
10686 * asan.c: Adjust include files.
10687 * auto-profile.c: Ditto.
10688 * bb-reorder.c: Ditto.
10690 * cfgexpand.c: Ditto.
10691 * cgraphbuild.c: Ditto.
10692 * cgraphclones.c: Ditto.
10693 * cgraphunit.c: Ditto.
10694 * combine.c: Ditto.
10695 * coverage.c: Ditto.
10696 * data-streamer.c: Ditto.
10697 * data-streamer-in.c: Ditto.
10698 * data-streamer-out.c: Ditto.
10700 * dwarf2out.c: Ditto.
10704 * fold-const.c: Ditto.
10705 * ggc-page.c: Ditto.
10706 * gimple-fold.c: Ditto.
10707 * gimple-iterator.c: Ditto.
10708 * gimple-pretty-print.c: Ditto.
10709 * gimple-streamer-in.c: Ditto.
10710 * gimple-streamer-out.c: Ditto.
10711 * gimplify.c: Ditto.
10713 * ipa-comdats.c: Ditto.
10715 * ipa-devirt.c: Ditto.
10716 * ipa-icf.c: Ditto.
10717 * ipa-icf-gimple.c: Ditto.
10718 * ipa-inline-analysis.c: Ditto.
10719 * ipa-inline.c: Ditto.
10720 * ipa-inline-transform.c: Ditto.
10721 * ipa-polymorphic-call.c: Ditto.
10722 * ipa-profile.c: Ditto.
10723 * ipa-prop.c: Ditto.
10724 * ipa-pure-const.c: Ditto.
10725 * ipa-ref.c: Ditto.
10726 * ipa-reference.c: Ditto.
10727 * ipa-split.c: Ditto.
10728 * ipa-utils.c: Ditto.
10729 * ipa-visibility.c: Ditto.
10730 * langhooks.c: Ditto.
10731 * lto-cgraph.c: Ditto.
10732 * lto-compress.c: Ditto.
10733 * lto-opts.c: Ditto.
10734 * lto-section-in.c: Ditto.
10735 * lto-section-out.c: Ditto.
10736 * lto-streamer.c: Ditto.
10737 * lto-streamer-in.c: Ditto.
10738 * lto-streamer-out.c: Ditto.
10739 * omp-low.c: Ditto.
10740 * opts-global.c: Ditto.
10742 * predict.c: Ditto.
10743 * print-tree.c: Ditto.
10744 * profile.c: Ditto.
10746 * stor-layout.c: Ditto.
10749 * trans-mem.c: Ditto.
10751 * tree-cfg.c: Ditto.
10752 * tree-eh.c: Ditto.
10753 * tree-emutls.c: Ditto.
10754 * tree-inline.c: Ditto.
10755 * tree-nested.c: Ditto.
10756 * tree-pretty-print.c: Ditto.
10757 * tree-profile.c: Ditto.
10758 * tree-sra.c: Ditto.
10759 * tree-ssa-alias.c: Ditto.
10760 * tree-ssa-loop-ivcanon.c: Ditto.
10761 * tree-ssa-loop-ivopts.c: Ditto.
10762 * tree-ssa-pre.c: Ditto.
10763 * tree-ssa-structalias.c: Ditto.
10764 * tree-streamer.c: Ditto.
10765 * tree-streamer-in.c: Ditto.
10766 * tree-streamer-out.c: Ditto.
10767 * tree-switch-conversion.c: Ditto.
10768 * tree-tailcall.c: Ditto.
10769 * tree-vect-data-refs.c: Ditto.
10770 * tree-vectorizer.c: Ditto.
10771 * tree-vect-stmts.c: Ditto.
10774 * value-prof.c: Ditto.
10776 * varpool.c: Ditto.
10777 * config/arm/arm.c: Ditto.
10778 * config/bfin/bfin.c: Ditto.
10779 * config/c6x/c6x.c: Ditto.
10780 * config/cris/cris.c: Ditto.
10781 * config/darwin.c: Ditto.
10782 * config/darwin-c.c: Ditto.
10783 * config/i386/i386.c: Ditto.
10784 * config/i386/winnt.c: Ditto.
10785 * config/microblaze/microblaze.c: Ditto.
10786 * config/mips/mips.c: Ditto.
10787 * config/rs6000/rs6000.c: Ditto.
10788 * config/rx/rx.c: Ditto.
10790 2014-10-28 Richard Biener <rguenther@suse.de>
10792 * gimple-fold.h (follow_single_use_edges): Declare.
10793 * gimple-fold.c (follow_single_use_edges): New function.
10794 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10795 * tree-ssa-propagate.c
10796 (substitute_and_fold_dom_walker::before_dom_children): Allow
10797 following single-use edges when folding stmts we propagated into.
10799 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10800 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10801 Anna Tikhonova <anna.tikhonova@intel.com>
10802 Ilya Tocar <ilya.tocar@intel.com>
10803 Andrey Turetskiy <andrey.turetskiy@intel.com>
10804 Ilya Verbin <ilya.verbin@intel.com>
10805 Kirill Yukhin <kirill.yukhin@intel.com>
10806 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10808 * config/i386/avx512bwintrin.h: New.
10809 * config/i386/avx512dqintrin.h: Ditto.
10810 * config/i386/avx512vlbwintrin.h: Ditto.
10811 * config/i386/avx512vldqintrin.h: Ditto.
10812 * config/i386/avx512vlintrin.h: Ditto.
10813 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10814 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10816 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10818 Anna Tikhonova <anna.tikhonova@intel.com>
10819 Ilya Tocar <ilya.tocar@intel.com>
10820 Andrey Turetskiy <andrey.turetskiy@intel.com>
10821 Ilya Verbin <ilya.verbin@intel.com>
10822 Kirill Yukhin <kirill.yukhin@intel.com>
10823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10825 * config/i386/i386.c
10826 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10827 avx_shufpd256_mask, avx_vpermilv2df_mask.
10829 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10831 Anna Tikhonova <anna.tikhonova@intel.com>
10832 Ilya Tocar <ilya.tocar@intel.com>
10833 Andrey Turetskiy <andrey.turetskiy@intel.com>
10834 Ilya Verbin <ilya.verbin@intel.com>
10835 Kirill Yukhin <kirill.yukhin@intel.com>
10836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10838 * config/i386/i386.c
10839 (ix86_init_mmx_sse_builtins):
10840 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10841 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10842 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10843 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10844 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10845 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10846 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10847 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10848 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10849 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10850 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10851 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10852 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10853 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10854 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10855 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10856 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10857 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10859 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10861 Anna Tikhonova <anna.tikhonova@intel.com>
10862 Ilya Tocar <ilya.tocar@intel.com>
10863 Andrey Turetskiy <andrey.turetskiy@intel.com>
10864 Ilya Verbin <ilya.verbin@intel.com>
10865 Kirill Yukhin <kirill.yukhin@intel.com>
10866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10868 * config/i386/i386.c
10869 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10870 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10871 IX86_BUILTIN_GATHER3ALTDIV8SI.
10872 (ix86_expand_builtin):
10873 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10874 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10875 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10876 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10877 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10878 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10879 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10880 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10881 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10882 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10883 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10884 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10885 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10886 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10887 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10888 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10889 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10890 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10891 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10892 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10894 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10895 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10896 Anna Tikhonova <anna.tikhonova@intel.com>
10897 Ilya Tocar <ilya.tocar@intel.com>
10898 Andrey Turetskiy <andrey.turetskiy@intel.com>
10899 Ilya Verbin <ilya.verbin@intel.com>
10900 Kirill Yukhin <kirill.yukhin@intel.com>
10901 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10903 * config/i386/i386-builtin-types.def
10922 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10923 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10924 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10925 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10926 (V16SF_FTYPE_V16HI): Ditto.
10927 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10928 (V16SF_FTYPE_V16SI): Ditto.
10929 (V4DI_FTYPE_V4DI): Ditto.
10930 (V16SI_FTYPE_V16SF): Ditto.
10931 (V8DI_FTYPE_PV2DI): Ditto.
10932 (V8DF_FTYPE_PV2DF): Ditto.
10933 (V4DI_FTYPE_PV2DI): Ditto.
10934 (V4DF_FTYPE_PV2DF): Ditto.
10935 (V16SI_FTYPE_PV2SI): Ditto.
10936 (V16SF_FTYPE_PV2SF): Ditto.
10937 (V8SF_FTYPE_FLOAT): Ditto.
10938 (V4SF_FTYPE_FLOAT): Ditto.
10939 (V4DF_FTYPE_DOUBLE): Ditto.
10940 (V8SF_FTYPE_PV4SF): Ditto.
10941 (V8SI_FTYPE_PV4SI): Ditto.
10942 (V4SI_FTYPE_PV2SI): Ditto.
10943 (V8SF_FTYPE_PV2SF): Ditto.
10944 (V8SI_FTYPE_PV2SI): Ditto.
10945 (V16SF_FTYPE_PV8SF): Ditto.
10946 (V16SI_FTYPE_PV8SI): Ditto.
10947 (V8DI_FTYPE_V8SF): Ditto.
10948 (V4DI_FTYPE_V4SF): Ditto.
10949 (V2DI_FTYPE_V4SF): Ditto.
10950 (V64QI_FTYPE_QI): Ditto.
10951 (V32HI_FTYPE_HI): Ditto.
10952 (V16UHI_FTYPE_V16UHI): Ditto.
10953 (V32UHI_FTYPE_V32UHI): Ditto.
10954 (V2UDI_FTYPE_V2UDI): Ditto.
10955 (V4UDI_FTYPE_V4UDI): Ditto.
10956 (V8UDI_FTYPE_V8UDI): Ditto.
10957 (V4USI_FTYPE_V4USI): Ditto.
10958 (V16USI_FTYPE_V16USI): Ditto.
10959 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10960 (V2DF_FTYPE_V8DF_INT): Ditto.
10961 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10962 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10963 (V8DF_FTYPE_V8DF_INT): Ditto.
10964 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10965 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10966 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10967 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10968 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10969 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10970 (V8DI_FTYPE_V8DI_INT): Ditto.
10971 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10972 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10973 (V8SF_FTYPE_V16SF_INT): Ditto.
10974 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10975 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10976 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10977 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10978 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10979 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10980 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10981 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10982 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10983 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10984 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10985 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10986 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10987 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10988 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10989 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10990 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10991 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10992 (V32HI_FTYPE_V32HI_INT): Ditto.
10993 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10994 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10995 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10996 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10997 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10998 (V8SI_FTYPE_V16SI_INT): Ditto.
10999 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
11000 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11001 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11002 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11003 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
11004 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
11005 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
11006 (V8DI_FTYPE_V16SI_V16SI): Ditto.
11007 (V8DI_FTYPE_V64QI_V64QI): Ditto.
11008 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
11009 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
11010 (V2DI_FTYPE_V8DI_INT): Ditto.
11011 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
11012 (QI_FTYPE_QI): Ditto.
11013 (SI_FTYPE_SI): Ditto.
11014 (DI_FTYPE_DI): Ditto.
11015 (HI_FTYPE_V16QI): Ditto.
11016 (SI_FTYPE_V32QI): Ditto.
11017 (DI_FTYPE_V64QI): Ditto.
11018 (QI_FTYPE_V8HI): Ditto.
11019 (HI_FTYPE_V16HI): Ditto.
11020 (SI_FTYPE_V32HI): Ditto.
11021 (QI_FTYPE_V4SI): Ditto.
11022 (QI_FTYPE_V8SI): Ditto.
11023 (HI_FTYPE_V16SI): Ditto.
11024 (QI_FTYPE_V2DI): Ditto.
11025 (QI_FTYPE_V4DI): Ditto.
11026 (QI_FTYPE_V8DI): Ditto.
11027 (V16QI_FTYPE_HI): Ditto.
11028 (V32QI_FTYPE_SI): Ditto.
11029 (V64QI_FTYPE_DI): Ditto.
11030 (V8HI_FTYPE_QI): Ditto.
11031 (V16HI_FTYPE_HI): Ditto.
11032 (V32HI_FTYPE_SI): Ditto.
11033 (V4SI_FTYPE_QI): Ditto.
11034 (V4SI_FTYPE_HI): Ditto.
11035 (V8SI_FTYPE_QI): Ditto.
11036 (V8SI_FTYPE_HI): Ditto.
11037 (V2DI_FTYPE_QI): Ditto.
11038 (V4DI_FTYPE_QI): Ditto.
11039 (QI_FTYPE_QI_QI): Ditto.
11040 (SI_FTYPE_SI_SI): Ditto.
11041 (DI_FTYPE_DI_DI): Ditto.
11042 (QI_FTYPE_QI_INT): Ditto.
11043 (SI_FTYPE_SI_INT): Ditto.
11044 (DI_FTYPE_DI_INT): Ditto.
11045 (HI_FTYPE_V16QI_V16QI): Ditto.
11046 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
11047 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
11048 (SI_FTYPE_V32QI_V32QI): Ditto.
11049 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
11050 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
11051 (DI_FTYPE_V64QI_V64QI): Ditto.
11052 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
11053 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
11054 (QI_FTYPE_V8HI_V8HI): Ditto.
11055 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
11056 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
11057 (HI_FTYPE_V16HI_V16HI): Ditto.
11058 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
11059 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
11060 (SI_FTYPE_V32HI_V32HI): Ditto.
11061 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
11062 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
11063 (QI_FTYPE_V4SI_V4SI): Ditto.
11064 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
11065 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
11066 (QI_FTYPE_V8SI_V8SI): Ditto.
11067 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
11068 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
11069 (QI_FTYPE_V2DI_V2DI): Ditto.
11070 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
11071 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
11072 (QI_FTYPE_V4DI_V4DI): Ditto.
11073 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
11074 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
11075 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11076 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
11077 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
11078 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
11079 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
11080 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11081 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
11082 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
11083 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
11084 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11085 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
11086 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
11087 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
11088 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
11089 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
11090 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
11091 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
11092 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
11093 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
11094 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
11095 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
11096 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11097 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
11098 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
11099 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
11100 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
11101 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
11102 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
11103 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
11104 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
11105 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
11106 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
11107 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
11108 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
11109 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
11110 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
11111 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
11112 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
11113 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
11114 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
11115 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
11116 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
11117 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
11118 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
11119 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
11120 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
11121 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
11122 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
11123 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
11124 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
11125 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
11126 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
11127 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
11128 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
11129 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
11130 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
11131 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
11132 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
11133 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
11134 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
11135 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
11136 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11137 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11138 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11139 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11140 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11141 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11142 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11143 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11144 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11145 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
11146 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
11147 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
11148 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
11149 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
11150 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
11151 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
11152 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
11153 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
11154 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
11155 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
11156 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
11157 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
11158 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
11159 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
11160 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
11161 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
11162 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
11163 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
11164 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
11165 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
11166 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
11167 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
11168 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
11169 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
11170 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
11171 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
11172 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
11173 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
11174 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
11175 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
11176 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
11177 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
11178 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
11179 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
11180 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
11181 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
11182 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11183 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11184 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
11185 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
11186 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11187 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
11188 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11189 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11190 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11191 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11192 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11193 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11194 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11195 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11196 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11197 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11198 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11199 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11200 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11201 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11202 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11203 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11204 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11205 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11206 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11207 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11208 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11209 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11210 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11211 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11212 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11213 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11214 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11215 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11216 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11217 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11218 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11219 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11220 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11221 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11222 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11223 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11224 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11225 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11226 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11227 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11228 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11229 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11230 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11231 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11232 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11233 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11234 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11235 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11236 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11237 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11238 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11239 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11240 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11241 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11242 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11243 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11244 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11245 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11246 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11247 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11248 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11249 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11250 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11251 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11252 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11253 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11254 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11255 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11256 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11257 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11258 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11259 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11260 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11261 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11262 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11263 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11264 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11265 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11266 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11267 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11268 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11269 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11270 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11271 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11272 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11273 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11274 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11275 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11276 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11277 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11278 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11279 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11280 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11281 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11282 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11283 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11284 (QI_FTYPE_V8DF_INT): Ditto.
11285 (QI_FTYPE_V4DF_INT): Ditto.
11286 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11287 (QI_FTYPE_V2DF_INT): Ditto.
11288 (HI_FTYPE_V16SF_INT): Ditto.
11289 (QI_FTYPE_V8SF_INT): Ditto.
11290 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11291 (QI_FTYPE_V4SF_INT): Ditto.
11292 (QI_FTYPE_V8DF_INT_QI): Ditto.
11293 (QI_FTYPE_V4DF_INT_QI): Ditto.
11294 (QI_FTYPE_V2DF_INT_QI): Ditto.
11295 (HI_FTYPE_V16SF_INT_HI): Ditto.
11296 (QI_FTYPE_V8SF_INT_QI): Ditto.
11297 (QI_FTYPE_V4SF_INT_QI): Ditto.
11298 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
11299 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
11300 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11301 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11302 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11303 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11304 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11305 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11306 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11307 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11308 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11309 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11310 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11311 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11312 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11313 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11314 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11315 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11316 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11317 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11318 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11319 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11320 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11321 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11322 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11323 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11324 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11325 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11326 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11327 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11328 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11329 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11330 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11331 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11332 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11333 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11334 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11335 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11336 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11337 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11338 (V8DI_FTYPE_V8DI_INT): Ditto.
11339 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11340 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11341 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11342 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11343 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11344 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11345 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11346 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11347 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11348 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11349 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11350 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11351 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11352 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11353 * config/i386/i386.c (ix86_builtins):
11354 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11355 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11356 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11357 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11358 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11359 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11360 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11361 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11362 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11363 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11364 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11365 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11366 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11367 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11368 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11369 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11370 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11371 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11372 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11373 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11374 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11375 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11376 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11377 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11378 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11379 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11380 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11381 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11382 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11383 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11384 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11385 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11386 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11387 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11388 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11389 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11390 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11391 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11392 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11393 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11394 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11395 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11396 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11397 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11398 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11399 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11400 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11401 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11402 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11403 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11404 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11405 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11406 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11407 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11408 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11409 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11410 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11411 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11412 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11413 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11414 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11415 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11416 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11417 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11418 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11419 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11420 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11421 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11422 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11423 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11424 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11425 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11426 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11427 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11428 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11429 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11430 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11431 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11432 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11433 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11434 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11435 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11436 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11437 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11438 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11439 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11440 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11441 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11442 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11443 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11444 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11445 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11446 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11447 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11448 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11449 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11450 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11451 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11452 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11453 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11454 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11455 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11456 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11457 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11458 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11459 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11460 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11461 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11462 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11463 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11464 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11465 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11466 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11467 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11468 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11469 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11470 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11471 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11472 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11473 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11474 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11475 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11476 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11477 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11478 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11479 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11480 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11481 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11482 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11483 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11484 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11485 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11486 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11487 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11488 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11489 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11490 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11491 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11492 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11493 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11494 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11495 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11496 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11497 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11498 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11499 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11500 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11501 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11502 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11503 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11504 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11505 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11506 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11507 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11508 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11509 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11510 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11511 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11512 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11513 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11514 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11515 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11516 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11517 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11518 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11519 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11520 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11521 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11522 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11523 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11524 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11525 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11526 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11527 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11528 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11529 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11530 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11531 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11532 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11533 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11534 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11535 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11536 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11537 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11538 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11539 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11540 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11541 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11542 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11543 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11544 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11545 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11546 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11547 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11548 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11549 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11550 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11551 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11552 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11553 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11554 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11555 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11556 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11557 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11558 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11559 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11560 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11561 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11562 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11563 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11564 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11565 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11566 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11567 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11568 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11569 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11570 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11571 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11572 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11573 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11574 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11575 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11576 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11577 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11578 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11579 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11580 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11581 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11582 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11583 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11584 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11585 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11586 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11587 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11588 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11589 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11590 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11591 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11592 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11593 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11594 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11595 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11596 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11597 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11598 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11599 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11600 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11601 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11602 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11603 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11604 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11605 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11606 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11607 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11608 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11609 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11610 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11611 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11612 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11613 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11614 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11615 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11616 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11617 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11618 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11619 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11620 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11621 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11622 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11623 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11624 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11625 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11626 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11627 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11628 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11629 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11630 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11631 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11632 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11633 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11634 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11635 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11636 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11637 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11638 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11639 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11640 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11641 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11642 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11643 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11644 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11645 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11646 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11647 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11648 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11649 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11650 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11651 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11652 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11653 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11654 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11655 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11656 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11657 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11658 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11659 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11660 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11661 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11662 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11663 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11664 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11665 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11666 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11667 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11668 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11669 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11670 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11671 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11672 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11673 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11674 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11675 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11676 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11677 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11678 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11679 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11680 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11681 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11682 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11683 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11684 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11685 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11686 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11687 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11688 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11689 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11690 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11691 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11692 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11693 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11694 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11695 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11696 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11697 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11698 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11699 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11700 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11701 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11702 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11703 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11704 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11705 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11706 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11707 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11708 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11709 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11710 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11711 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11712 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11713 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11714 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11715 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11716 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11717 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11718 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11719 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11720 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11721 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11722 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11723 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11724 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11725 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11726 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11727 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11728 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11729 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11730 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11731 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11732 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11733 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11734 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11735 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11736 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11737 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11738 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11739 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11740 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11741 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11742 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11743 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11744 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11745 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11746 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11747 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11748 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11749 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11750 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11751 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11752 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11753 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11754 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11755 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11756 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11757 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11758 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11759 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11760 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11761 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11762 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11763 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11764 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11765 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11766 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11767 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11768 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11769 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11770 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11771 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11772 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11773 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11774 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11775 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11776 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11777 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11778 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11779 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11780 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11781 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11782 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11783 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11784 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11785 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11786 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11787 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11788 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11789 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11790 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11791 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11792 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11793 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11794 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11795 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11796 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11797 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11798 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11799 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11800 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11801 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11802 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11803 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11804 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11805 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11806 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11807 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11808 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11809 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11810 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11811 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11812 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11813 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11814 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11815 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11816 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11817 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11818 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11819 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11820 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11821 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11822 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11823 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11824 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11825 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11826 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11827 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11828 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11829 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11830 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11831 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11832 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11833 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11834 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11835 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11836 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11837 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11838 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11839 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11840 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11841 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11842 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11843 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11844 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11845 (bdesc_special_args):
11846 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11847 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11848 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11849 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11850 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11851 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11852 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11853 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11854 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11855 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11856 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11857 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11858 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11859 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11860 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11861 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11862 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11863 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11864 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11865 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11866 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11867 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11868 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11869 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11870 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11871 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11872 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11873 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11874 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11875 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11876 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11877 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11878 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11879 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11880 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11881 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11882 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11883 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11884 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11885 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11886 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11887 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11888 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11889 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11890 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11891 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11892 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11893 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11894 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11895 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11896 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11897 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11898 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11899 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11900 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11901 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11902 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11903 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11904 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11905 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11906 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11907 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11908 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11909 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11910 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11911 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11912 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11913 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11914 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11915 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11916 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11917 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11918 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11919 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11920 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11921 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11922 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11923 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11924 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11925 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11926 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11927 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11928 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11929 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11930 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11931 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11932 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11933 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11934 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11935 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11936 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11937 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11938 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11939 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11940 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11941 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11942 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11943 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11944 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11945 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11946 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11947 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11948 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11949 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11950 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11951 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11952 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11953 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11954 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11955 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11956 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11957 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11958 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11959 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11960 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11961 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11962 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11963 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11964 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11965 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11966 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11967 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11968 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11969 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11970 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11971 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11972 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11973 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11974 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11975 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11976 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11977 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11978 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11979 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11980 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11981 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11982 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11983 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11984 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11985 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11986 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11987 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11988 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11989 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11990 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11991 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11992 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11993 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11994 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11995 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11996 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11997 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11998 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11999 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
12000 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
12001 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
12002 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
12003 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
12004 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
12005 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
12006 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
12007 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
12008 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
12009 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
12010 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
12011 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
12012 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
12013 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
12014 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
12015 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
12016 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
12017 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
12018 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
12019 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
12020 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
12021 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
12022 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
12023 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
12024 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
12025 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
12026 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
12027 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
12028 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
12029 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
12030 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
12031 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
12032 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
12033 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
12034 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
12035 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
12036 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
12037 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
12038 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
12039 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
12040 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
12041 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
12042 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
12043 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
12044 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
12045 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
12046 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
12047 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
12048 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
12049 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
12050 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
12051 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
12052 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
12053 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
12054 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
12055 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
12056 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
12057 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
12058 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
12059 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
12060 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
12061 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
12062 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
12063 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
12064 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
12065 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
12066 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
12067 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
12068 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
12069 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
12070 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
12071 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
12072 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
12073 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
12074 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
12075 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
12076 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
12077 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
12078 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
12079 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
12080 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
12081 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
12082 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
12083 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
12084 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
12085 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
12086 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
12087 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
12088 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
12089 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
12090 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
12091 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
12092 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
12093 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
12094 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
12095 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
12096 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
12097 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
12098 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
12099 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
12100 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
12101 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
12102 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
12103 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
12104 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
12105 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
12106 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
12107 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
12108 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
12109 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
12110 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
12111 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
12112 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
12113 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
12114 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
12115 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
12116 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
12117 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
12118 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
12119 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
12120 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
12121 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
12122 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
12123 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
12124 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
12125 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
12126 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
12127 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
12128 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
12129 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
12130 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
12131 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
12132 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
12133 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
12134 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
12135 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
12136 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
12137 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
12138 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
12139 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
12140 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
12141 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
12142 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
12143 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
12144 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
12145 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
12146 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
12147 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
12148 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
12149 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
12150 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
12151 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
12152 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
12153 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
12154 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
12155 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
12156 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
12157 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
12158 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
12159 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
12160 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
12161 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
12162 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
12163 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
12164 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
12165 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
12166 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
12167 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
12168 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
12169 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
12170 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
12171 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
12172 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
12173 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
12174 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
12175 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
12176 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
12177 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
12178 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
12179 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
12180 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
12181 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
12182 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
12183 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
12184 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
12185 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
12186 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
12187 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
12188 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
12189 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
12190 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
12191 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
12192 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
12193 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
12194 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
12195 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
12196 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
12197 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
12198 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
12199 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
12200 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
12201 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
12202 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
12203 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
12204 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
12205 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
12206 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
12207 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
12208 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
12209 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
12210 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
12211 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
12212 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
12213 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
12214 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
12215 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
12216 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
12217 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
12218 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
12219 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
12220 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
12221 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
12222 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
12223 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
12224 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
12225 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
12226 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
12227 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
12228 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
12229 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
12230 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
12231 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
12232 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
12233 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
12234 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
12235 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
12236 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
12237 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
12238 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
12239 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
12240 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
12241 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
12242 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
12243 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
12244 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
12245 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
12246 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
12247 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
12248 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
12249 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
12250 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
12251 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
12252 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
12253 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
12254 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
12255 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
12256 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
12257 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
12258 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
12259 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
12260 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
12261 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
12262 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
12263 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
12264 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
12265 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
12266 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
12267 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
12268 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
12269 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
12270 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
12271 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
12272 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
12273 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
12274 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
12275 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
12276 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
12277 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
12278 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
12279 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
12280 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
12281 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
12282 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
12283 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
12284 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
12285 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
12286 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
12287 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
12288 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
12289 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
12290 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
12291 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
12292 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
12293 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
12294 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
12295 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
12296 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
12297 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
12298 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
12299 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
12300 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12301 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12302 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12303 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12304 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12305 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12306 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12307 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12308 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12309 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12310 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12311 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12312 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12313 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12314 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12315 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12316 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12317 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12318 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12319 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12320 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12321 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12322 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12323 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12324 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12325 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12326 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12327 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12328 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12329 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12330 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12331 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12332 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12333 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12334 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12335 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12336 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12337 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12338 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12339 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12340 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12341 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12342 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12343 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12344 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12345 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12346 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12347 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12348 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12349 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12350 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12351 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12352 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12353 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12354 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12355 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12356 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12357 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12358 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12359 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12360 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12361 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12362 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12363 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12364 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12365 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12366 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12367 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12368 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12369 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12370 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12371 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12372 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12373 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12374 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12375 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12376 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12377 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12378 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12379 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12380 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12381 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12382 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12383 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12384 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12385 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12386 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12387 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12388 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12389 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12390 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12391 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12392 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12393 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12394 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12395 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12396 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12397 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12398 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12399 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12400 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12401 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12402 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12403 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12404 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12405 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12406 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12407 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12408 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12409 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12410 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12411 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12412 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12413 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12414 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12415 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12416 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12417 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12418 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12419 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12420 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12421 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12422 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12423 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12424 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12425 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12426 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12427 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12428 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12429 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12430 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12431 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12432 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12433 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12434 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12435 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12436 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12437 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12438 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12439 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12440 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12441 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12442 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12443 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12444 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12445 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12446 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12447 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12448 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12449 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12450 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12451 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12452 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12453 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12454 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12456 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12458 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12459 type for the left shift in CASE_CONVERT case.
12461 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12463 * asan.h (asan_intercepted_p): New function.
12464 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12465 hash value construction. Call iterative_hash_expr instead of explicit
12467 (asan_mem_ref_hasher::equal): Change condition.
12468 (has_mem_ref_been_instrumented): Likewise.
12469 (update_mem_ref_hash_table): Likewise.
12470 (maybe_update_mem_ref_hash_table): New function.
12471 (instrument_strlen_call): Removed.
12472 (get_mem_refs_of_builtin_call): Handle new parameter.
12473 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12474 of instrument_mem_region_access if intercepted_p is true.
12475 (instrument_mem_region_access): Instrument only base with len instead of
12476 base and end with 1.
12477 (build_check_stmt): Remove start_instrumented and end_instrumented
12479 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12480 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12481 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12482 * builtins.c (expand_builtin): Include asan.h. Don't expand
12483 string/memory builtin functions that have interceptors if ASan is
12486 2014-10-28 Richard Biener <rguenther@suse.de>
12488 PR middle-end/63665
12489 * fold-const.c (fold_comparison): Properly guard simplifying
12490 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12492 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12494 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12495 * fold-const.c (const_binop): Likewise.
12496 * cfgexpand.c (expand_debug_expr): Likewise.
12497 * tree-inline.c (estimate_operator_cost): Likewise.
12498 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12499 * optabs.c (optab_for_tree_code): Likewise.
12500 (expand_vec_shift_expr): Likewise, update comment.
12501 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12502 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12503 * optabs.def: Remove vec_shl_optab.
12504 * doc/md.texi: Remove references to vec_shr_m.
12506 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12508 * asan.c (report_error_func): Add noabort path.
12509 (check_func): Ditto. Formatting.
12510 (asan_expand_check_ifn): Handle noabort path.
12511 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12513 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12514 * opts.c (finish_options): Reword comment.
12515 * sanitizer.def: Add noabort ASan builtins.
12517 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12519 * asan.c (set_asan_shadow_offset): New function.
12520 (asan_shadow_offset): Likewise.
12521 (asan_emit_stack_protection): Call asan_shadow_offset.
12522 (build_shadow_mem_access): Likewise.
12523 * asan.h (set_asan_shadow_offset): Declare.
12524 * common.opt (fasan-shadow-offset): New option.
12525 (frandom-seed): Fixed parameter name.
12526 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12527 (frandom-seed): Fixed parameter name.
12528 * opts-global.c (handle_common_deferred_options): Handle
12529 -fasan-shadow-offset.
12530 * opts.c (common_handle_option): Likewise.
12532 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12535 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12537 2014-10-27 DJ Delorie <dj@redhat.com>
12539 * tree.c (build_common_tree_nodes): Don't even store the
12540 __int128 types if they're not supported.
12542 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12544 * config/i386/i386.c (ix86_loop_memcount): Delete.
12545 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12547 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12549 * config/i386/i386.c (find_constant_1): Delete.
12550 (find_constant): Use FOR_EACH_SUBRTX.
12552 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12554 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12555 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12557 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12559 * config/i386/i386.c: Include rtl-iter.h
12560 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12561 (ix86_check_avx256_stores): Update call accordingly.
12562 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12563 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12565 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12567 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12568 Take an rtx and return a bool.
12569 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12570 Use FOR_EACH_SUBRTX_VAR.
12571 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12574 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12576 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12578 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12579 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12581 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12583 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12584 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12586 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12588 * config/alpha/alpha.c: Include rtl-iter.h.
12589 (split_small_symbolic_operand_1): Delete.
12590 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12592 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12594 * config/s390/s390.c: Include rtl-iter.h.
12595 (check_dpu): Delete.
12596 (s390_loop_unroll_adjust): Only iterate over patterns.
12597 Use FOR_EACH_SUBRTX.
12599 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12601 * config/spu/spu.c: Include rtl-iter.h
12602 (ea_symbol_ref): Replace with...
12603 (ea_symbol_ref_p): ...this new function.
12604 (spu_legitimate_address_p): Update call accordingly.
12605 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12607 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12608 Tom Tromey <tromey@redhat.com>
12610 * aclocal.m4, configure: Rebuild.
12611 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12612 * configure.ac: Use GCC_ENABLE_PLUGINS.
12613 * stor-layout.c (finish_bitfield_layout): Now public. Change
12614 argument type to 'tree'.
12615 (finish_record_layout): Update.
12616 * stor-layout.h (finish_bitfield_layout): Declare.
12618 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12620 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12621 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12622 Restore, enable for bigendian, update to use __builtin..._scal...
12624 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12626 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12627 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12628 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12629 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12631 * config/aarch64/aarch64-simd.md
12632 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12633 (reduc_<maxmin_uns>_internal<mode>): ...this.
12634 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12635 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12637 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12638 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12639 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12641 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12642 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12643 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12644 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12645 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12646 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12647 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12648 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12650 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12652 * config/aarch64/aarch64-simd-builtins.def
12653 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12655 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12657 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12658 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12660 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12661 (aarch64_reduc_plus_internal<mode>): ...this.
12663 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12664 (aarch64_reduc_plus_internalv2si): ...this.
12666 (reduc_splus_<mode>/V2F): Rename to...
12667 (aarch64_reduc_plus_internal<mode>): ...this.
12669 * config/aarch64/iterators.md
12670 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12671 (UNSPEC_ADDV): New.
12672 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12674 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12675 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12676 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12677 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12678 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12680 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12682 PR tree-optimization/61114
12683 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12684 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12686 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12687 back to old reduc_... + BIT_FIELD_REF only if not.
12689 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12690 return the reduce-to-scalar (reduc_..._scal) optab.
12691 (scalar_reduc_to_vector): New.
12693 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12694 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12697 * optabs.h (scalar_reduc_to_vector): Declare.
12699 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12700 to either scalar or vector.
12702 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12704 PR tree-optimization/61114
12705 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12706 extract_bit_field around optab result.
12708 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12711 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12712 for REDUC_{MIN,MAX,PLUS}_EXPR.
12714 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12715 (vect_create_epilog_for_reduction): For direct vector reduction, use
12716 result of tree code directly without extract_bit_field.
12718 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12721 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12723 * basic-block.h: Remove all includes.
12724 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12725 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12726 * Makefile.in (GTFILES): Add cfg.h to list.
12727 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12728 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12729 * genconditions.c (write_header): Add predict.h and basic-block.h to
12731 * genemit.c (main): Ditto.
12732 * genpreds.c (write_insn_preds_c): Ditto.
12733 * genrecog.c (write_header): Ditto.
12734 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12735 to list of includes.
12736 * alias.c: Adjust include files.
12738 * auto-inc-dec.c: Ditto.
12739 * auto-profile.c: Ditto.
12740 * bb-reorder.c: Ditto.
12741 * bt-load.c: Ditto.
12742 * builtins.c: Ditto.
12743 * caller-save.c: Ditto.
12746 * cfganal.c: Ditto.
12747 * cfgbuild.c: Ditto.
12748 * cfgcleanup.c: Ditto.
12749 * cfgexpand.c: Ditto.
12750 * cfghooks.c: Ditto.
12751 * cfgloop.c: Ditto.
12752 * cfgloopanal.c: Ditto.
12753 * cfgloopmanip.c: Ditto.
12755 * cgraphbuild.c: Ditto.
12756 * cgraphclones.c: Ditto.
12757 * cgraphunit.c: Ditto.
12758 * combine-stack-adj.c: Ditto.
12759 * combine.c: Ditto.
12760 * compare-elim.c: Ditto.
12761 * coverage.c: Ditto.
12765 * data-streamer-in.c: Ditto.
12766 * data-streamer-out.c: Ditto.
12767 * data-streamer.c: Ditto.
12771 * df-core.c: Ditto.
12772 * df-problems.c: Ditto.
12773 * df-scan.c: Ditto.
12776 * dominance.c: Ditto.
12777 * domwalk.c: Ditto.
12779 * dwarf2cfi.c: Ditto.
12780 * emit-rtl.c: Ditto.
12781 * et-forest.c: Ditto.
12786 * fold-const.c: Ditto.
12787 * function.c: Ditto.
12789 * gcc-plugin.h: Ditto.
12791 * generic-match-head.c: Ditto.
12792 * ggc-page.c: Ditto.
12793 * gimple-builder.c: Ditto.
12794 * gimple-expr.c: Ditto.
12795 * gimple-fold.c: Ditto.
12796 * gimple-iterator.c: Ditto.
12797 * gimple-low.c: Ditto.
12798 * gimple-match-head.c: Ditto.
12799 * gimple-pretty-print.c: Ditto.
12800 * gimple-ssa-isolate-paths.c: Ditto.
12801 * gimple-ssa-strength-reduction.c: Ditto.
12802 * gimple-streamer-in.c: Ditto.
12803 * gimple-streamer-out.c: Ditto.
12804 * gimple-streamer.h: Ditto.
12805 * gimple-walk.c: Ditto.
12807 * gimplify-me.c: Ditto.
12808 * gimplify.c: Ditto.
12810 * graphite-blocking.c: Ditto.
12811 * graphite-clast-to-gimple.c: Ditto.
12812 * graphite-dependences.c: Ditto.
12813 * graphite-interchange.c: Ditto.
12814 * graphite-isl-ast-to-gimple.c: Ditto.
12815 * graphite-optimize-isl.c: Ditto.
12816 * graphite-poly.c: Ditto.
12817 * graphite-scop-detection.c: Ditto.
12818 * graphite-sese-to-poly.c: Ditto.
12819 * graphite.c: Ditto.
12820 * haifa-sched.c: Ditto.
12821 * hw-doloop.c: Ditto.
12823 * init-regs.c: Ditto.
12824 * internal-fn.c: Ditto.
12826 * ipa-devirt.c: Ditto.
12827 * ipa-icf-gimple.c: Ditto.
12828 * ipa-icf.c: Ditto.
12829 * ipa-inline-analysis.c: Ditto.
12830 * ipa-inline.c: Ditto.
12831 * ipa-polymorphic-call.c: Ditto.
12832 * ipa-profile.c: Ditto.
12833 * ipa-prop.c: Ditto.
12834 * ipa-pure-const.c: Ditto.
12835 * ipa-reference.c: Ditto.
12836 * ipa-split.c: Ditto.
12837 * ipa-utils.c: Ditto.
12839 * ira-build.c: Ditto.
12840 * ira-color.c: Ditto.
12841 * ira-conflicts.c: Ditto.
12842 * ira-costs.c: Ditto.
12843 * ira-emit.c: Ditto.
12844 * ira-lives.c: Ditto.
12848 * loop-doloop.c: Ditto.
12849 * loop-init.c: Ditto.
12850 * loop-invariant.c: Ditto.
12851 * loop-iv.c: Ditto.
12852 * loop-unroll.c: Ditto.
12853 * lower-subreg.c: Ditto.
12854 * lra-assigns.c: Ditto.
12855 * lra-coalesce.c: Ditto.
12856 * lra-constraints.c: Ditto.
12857 * lra-eliminations.c: Ditto.
12858 * lra-lives.c: Ditto.
12859 * lra-spills.c: Ditto.
12861 * lto-cgraph.c: Ditto.
12862 * lto-compress.c: Ditto.
12863 * lto-opts.c: Ditto.
12864 * lto-section-in.c: Ditto.
12865 * lto-section-out.c: Ditto.
12866 * lto-streamer-in.c: Ditto.
12867 * lto-streamer-out.c: Ditto.
12868 * lto-streamer.c: Ditto.
12870 * mode-switching.c: Ditto.
12871 * modulo-sched.c: Ditto.
12872 * omp-low.c: Ditto.
12874 * opts-global.c: Ditto.
12876 * postreload-gcse.c: Ditto.
12877 * postreload.c: Ditto.
12878 * predict.c: Ditto.
12879 * print-rtl.c: Ditto.
12880 * profile.c: Ditto.
12883 * reg-stack.c: Ditto.
12884 * regcprop.c: Ditto.
12885 * regcprop.h: Ditto.
12886 * reginfo.c: Ditto.
12887 * regrename.c: Ditto.
12888 * regstat.c: Ditto.
12890 * reload1.c: Ditto.
12892 * resource.c: Ditto.
12893 * rtlanal.c: Ditto.
12894 * sched-deps.c: Ditto.
12895 * sched-ebb.c: Ditto.
12896 * sched-int.h: Ditto.
12897 * sched-rgn.c: Ditto.
12898 * sched-vis.c: Ditto.
12899 * sel-sched-dump.c: Ditto.
12900 * sel-sched-ir.c: Ditto.
12901 * sel-sched-ir.h: Ditto.
12902 * sel-sched.c: Ditto.
12904 * shrink-wrap.c: Ditto.
12905 * stack-ptr-mod.c: Ditto.
12907 * store-motion.c: Ditto.
12911 * trans-mem.c: Ditto.
12912 * tree-affine.c: Ditto.
12913 * tree-call-cdce.c: Ditto.
12914 * tree-cfg.c: Ditto.
12915 * tree-cfgcleanup.c: Ditto.
12916 * tree-chrec.c: Ditto.
12917 * tree-complex.c: Ditto.
12918 * tree-data-ref.c: Ditto.
12919 * tree-dfa.c: Ditto.
12920 * tree-eh.c: Ditto.
12921 * tree-emutls.c: Ditto.
12922 * tree-if-conv.c: Ditto.
12923 * tree-inline.c: Ditto.
12924 * tree-into-ssa.c: Ditto.
12925 * tree-loop-distribution.c: Ditto.
12926 * tree-nested.c: Ditto.
12927 * tree-nrv.c: Ditto.
12928 * tree-object-size.c: Ditto.
12929 * tree-outof-ssa.c: Ditto.
12930 * tree-parloops.c: Ditto.
12931 * tree-phinodes.c: Ditto.
12932 * tree-predcom.c: Ditto.
12933 * tree-pretty-print.c: Ditto.
12934 * tree-profile.c: Ditto.
12935 * tree-scalar-evolution.c: Ditto.
12936 * tree-sra.c: Ditto.
12937 * tree-ssa-address.c: Ditto.
12938 * tree-ssa-alias.c: Ditto.
12939 * tree-ssa-ccp.c: Ditto.
12940 * tree-ssa-coalesce.c: Ditto.
12941 * tree-ssa-copy.c: Ditto.
12942 * tree-ssa-copyrename.c: Ditto.
12943 * tree-ssa-dce.c: Ditto.
12944 * tree-ssa-dom.c: Ditto.
12945 * tree-ssa-dse.c: Ditto.
12946 * tree-ssa-forwprop.c: Ditto.
12947 * tree-ssa-ifcombine.c: Ditto.
12948 * tree-ssa-live.c: Ditto.
12949 * tree-ssa-loop-ch.c: Ditto.
12950 * tree-ssa-loop-im.c: Ditto.
12951 * tree-ssa-loop-ivcanon.c: Ditto.
12952 * tree-ssa-loop-ivopts.c: Ditto.
12953 * tree-ssa-loop-manip.c: Ditto.
12954 * tree-ssa-loop-niter.c: Ditto.
12955 * tree-ssa-loop-prefetch.c: Ditto.
12956 * tree-ssa-loop-unswitch.c: Ditto.
12957 * tree-ssa-loop.c: Ditto.
12958 * tree-ssa-math-opts.c: Ditto.
12959 * tree-ssa-operands.c: Ditto.
12960 * tree-ssa-phiopt.c: Ditto.
12961 * tree-ssa-phiprop.c: Ditto.
12962 * tree-ssa-pre.c: Ditto.
12963 * tree-ssa-propagate.c: Ditto.
12964 * tree-ssa-reassoc.c: Ditto.
12965 * tree-ssa-sccvn.c: Ditto.
12966 * tree-ssa-sink.c: Ditto.
12967 * tree-ssa-strlen.c: Ditto.
12968 * tree-ssa-structalias.c: Ditto.
12969 * tree-ssa-tail-merge.c: Ditto.
12970 * tree-ssa-ter.c: Ditto.
12971 * tree-ssa-threadedge.c: Ditto.
12972 * tree-ssa-threadupdate.c: Ditto.
12973 * tree-ssa-uncprop.c: Ditto.
12974 * tree-ssa-uninit.c: Ditto.
12975 * tree-ssa.c: Ditto.
12976 * tree-ssanames.c: Ditto.
12977 * tree-stdarg.c: Ditto.
12978 * tree-streamer-in.c: Ditto.
12979 * tree-streamer-out.c: Ditto.
12980 * tree-streamer.c: Ditto.
12981 * tree-switch-conversion.c: Ditto.
12982 * tree-tailcall.c: Ditto.
12983 * tree-vect-data-refs.c: Ditto.
12984 * tree-vect-generic.c: Ditto.
12985 * tree-vect-loop-manip.c: Ditto.
12986 * tree-vect-loop.c: Ditto.
12987 * tree-vect-patterns.c: Ditto.
12988 * tree-vect-slp.c: Ditto.
12989 * tree-vect-stmts.c: Ditto.
12990 * tree-vectorizer.c: Ditto.
12991 * tree-vrp.c: Ditto.
12995 * valtrack.c: Ditto.
12996 * valtrack.h: Ditto.
12997 * value-prof.c: Ditto.
12998 * var-tracking.c: Ditto.
13000 * varpool.c: Ditto.
13001 * vtable-verify.c: Ditto.
13003 * config/aarch64/aarch64-builtins.c: Ditto.
13004 * config/aarch64/aarch64.c: Ditto.
13005 * config/alpha/alpha.c: Ditto.
13006 * config/arc/arc.c: Ditto.
13007 * config/arm/arm.c: Ditto.
13008 * config/avr/avr.c: Ditto.
13009 * config/bfin/bfin.c: Ditto.
13010 * config/c6x/c6x.c: Ditto.
13011 * config/cr16/cr16.c: Ditto.
13012 * config/cris/cris.c: Ditto.
13013 * config/darwin-c.c: Ditto.
13014 * config/darwin.c: Ditto.
13015 * config/epiphany/epiphany.c: Ditto.
13016 * config/epiphany/mode-switch-use.c: Ditto.
13017 * config/epiphany/resolve-sw-modes.c: Ditto.
13018 * config/fr30/fr30.c: Ditto.
13019 * config/frv/frv.c: Ditto.
13020 * config/h8300/h8300.c: Ditto.
13021 * config/i386/i386.c: Ditto.
13022 * config/i386/winnt.c: Ditto.
13023 * config/ia64/ia64.c: Ditto.
13024 * config/iq2000/iq2000.c: Ditto.
13025 * config/lm32/lm32.c: Ditto.
13026 * config/m32c/m32c.c: Ditto.
13027 * config/m32r/m32r.c: Ditto.
13028 * config/m68k/m68k.c: Ditto.
13029 * config/mcore/mcore.c: Ditto.
13030 * config/mep/mep.c: Ditto.
13031 * config/microblaze/microblaze.c: Ditto.
13032 * config/mips/mips.c: Ditto.
13033 * config/mmix/mmix.c: Ditto.
13034 * config/mn10300/mn10300.c: Ditto.
13035 * config/moxie/moxie.c: Ditto.
13036 * config/msp430/msp430.c: Ditto.
13037 * config/nds32/nds32-cost.c: Ditto.
13038 * config/nds32/nds32-fp-as-gp.c: Ditto.
13039 * config/nds32/nds32-intrinsic.c: Ditto.
13040 * config/nds32/nds32-isr.c: Ditto.
13041 * config/nds32/nds32-md-auxiliary.c: Ditto.
13042 * config/nds32/nds32-memory-manipulation.c: Ditto.
13043 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
13044 * config/nds32/nds32-predicates.c: Ditto.
13045 * config/nds32/nds32.c: Ditto.
13046 * config/nios2/nios2.c: Ditto.
13047 * config/pa/pa.c: Ditto.
13048 * config/pdp11/pdp11.c: Ditto.
13049 * config/rl78/rl78.c: Ditto.
13050 * config/rs6000/rs6000.c: Ditto.
13051 * config/rx/rx.c: Ditto.
13052 * config/s390/s390.c: Ditto.
13053 * config/sh/sh-mem.cc: Ditto.
13054 * config/sh/sh.c: Ditto.
13055 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
13056 * config/sh/sh_treg_combine.cc: Ditto.
13057 * config/sparc/sparc.c: Ditto.
13058 * config/spu/spu.c: Ditto.
13059 * config/stormy16/stormy16.c: Ditto.
13060 * config/tilegx/tilegx.c: Ditto.
13061 * config/tilepro/tilepro.c: Ditto.
13062 * config/v850/v850.c: Ditto.
13063 * config/vax/vax.c: Ditto.
13064 * config/xtensa/xtensa.c: Ditto.
13066 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
13068 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
13069 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
13070 Remove using preprocessor directives.
13072 2014-10-27 Richard Biener <rguenther@suse.de>
13074 * match.pd (0 % X): Properly use the iterator iterating over
13075 all modulo operators.
13078 2014-10-27 Richard Biener <rguenther@suse.de>
13080 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
13081 (lattice): New global.
13082 (fwprop_ssa_val): New function.
13083 (fold_all_stmts): Likewise.
13084 (pass_forwprop::execute): Finally fold all stmts.
13086 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13089 * doc/invoke.texi (fmessage-length): Update text to match reality.
13091 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13093 * config/microblaze/microblaze.c: Include rtl-iter.h.
13094 (microblaze_tls_referenced_p_1): Delete.
13095 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
13097 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13099 * config/mips/mips.c (mips_at_reg_p): Delete.
13100 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
13102 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13104 * config/mips/mips.c (mips_record_lo_sum): Replace with...
13105 (mips_record_lo_sums): ...this new function.
13106 (mips_reorg_process_insns): Update accordingly.
13108 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13110 * config/mips/mips.c (mips_sim_insn): Update comment.
13111 (mips_sim_wait_regs_2): Delete.
13112 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
13114 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13116 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
13117 and return a bool. Iterate over all subrtxes here.
13118 (r10k_needs_protection_p): Update accordingly.
13120 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13122 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
13123 rather than an rtx pointer. Change type of insn from "void *"
13124 to its real type. Return bool rather than int. Iterate over
13126 (r10k_needs_protection_p_store): Update accordingly.
13127 (r10k_needs_protection_p): Likewise.
13129 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13131 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
13132 (mips16_rewrite_pool_refs): Take the insn and constant pool as
13133 parameters. Iterate over the instruction's pattern and return void.
13134 (mips16_lay_out_constants): Update accordingly.
13136 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13138 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
13139 (mips_refers_to_kernel_reg_p): ...this new function.
13140 (mips_expand_prologue): Update accordingly.
13142 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13144 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
13145 as a parameter instead of the containing MEM. Iterate over all
13146 subrtxes. Don't return a value.
13147 (mips_rewrite_small_data): Update call accordingly.
13149 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13151 * config/mips/mips.c: Include rtl-iter.h.
13152 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
13153 Take the context as a parameter instead of the containing MEM.
13154 Iterate over all subrtxes.
13155 (mips_small_data_pattern_p): Update call accordingly.
13157 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13159 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
13160 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
13162 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13164 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
13165 return a bool. Replace "void *" with specific type. Iterate
13167 (mep_store_data_bypass_1): Update calls accordingly.
13169 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13171 * config/mep/mep.c: Include rtl-iter.h.
13172 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
13173 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
13175 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13177 * config/xtensa/xtensa.c: Include rtl-iter.h.
13178 (xtensa_tls_referenced_p_1): Delete.
13179 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
13181 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13183 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
13184 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
13186 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13188 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
13189 rtx as argument and return the number of changes.
13190 * config/sh/sh.c: Include rtl-iter.h.
13191 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
13192 over all subrtxes. Return the number of changes made.
13193 * config/sh/sh.md: Update caller accordingly.
13195 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13197 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
13198 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
13200 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13202 * config/m68k/m68k.c: Include rtl-iter.h.
13203 (m68k_final_prescan_insn_1): Delete.
13204 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
13206 2014-10-25 Jakub Jelinek <jakub@redhat.com>
13208 PR tree-optimization/63641
13209 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
13210 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
13212 2014-10-25 Alan Modra <amodra@gmail.com>
13214 PR rtl-optimization/63615
13215 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
13216 decomposing PLUS or MINUS if operands are not placed adjacent
13217 in the "ops" array.
13219 2014-10-25 Joseph Myers <joseph@codesourcery.com>
13221 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
13222 not allow e500 double in registers not satisyfing
13225 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
13227 * dwarf2out.c (declare_in_namespace): Only emit external
13228 declarations in the local scope once.
13230 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
13232 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
13234 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13236 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
13237 update uses to use new macro arguments.
13238 (__LD3_LANE_FUNC): Likewise.
13239 (__LD4_LANE_FUNC): Likewise.
13241 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13243 * config/aarch64/aarch64-builtins.c
13244 (aarch64_types_loadstruct_lane_qualifiers): Define.
13245 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
13246 ld4_lane): New builtins.
13247 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
13249 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13250 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13251 (aarch64_ld2_lane<mode>): New expand.
13252 (aarch64_ld3_lane<mode>): Likewise.
13253 (aarch64_ld4_lane<mode>): Likewise.
13254 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13255 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
13257 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
13259 * avr-protos.h (avr_out_sign_extend): New.
13260 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
13261 (avr_out_sign_extend): New function.
13262 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
13263 (extendhisi2, extendpsisi2): Use it.
13264 (adjust_len) [sext]: New.
13266 2014-10-24 Martin Liska <mliska@suse.cz>
13268 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
13271 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13273 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
13274 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13275 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
13276 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13278 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13280 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
13282 * config/aarch64/aarch64.c (is_mem_p): Delete.
13283 (is_memory_op): Rename to...
13284 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
13285 (dep_between_memop_and_curr): Assert that the input is a SET.
13286 (aarch64_madd_needs_nop): Add comment. Do not call
13287 dep_between_memop_and_curr on NULL body.
13288 (aarch64_final_prescan_insn): Add comment.
13289 Include rtl-iter.h.
13291 2014-10-24 Richard Biener <rguenther@suse.de>
13293 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
13294 to genmatch BUILD_LIBS instead.
13296 2014-10-24 Richard Biener <rguenther@suse.de>
13298 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
13299 and build_call_expr_loc.
13300 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13301 non_lvalue_loc to build it for GENERIC.
13302 (decision_tree::gen_generic): Add location argument to
13303 generic_simplify prototype.
13304 (capture_info): New class.
13305 (capture_info::capture_info): New constructor.
13306 (capture_info::walk_match): New method.
13307 (capture_info::walk_result): New method.
13308 (capture_info::walk_c_expr): New method.
13309 (dt_simplify::gen): Handle preserving side-effects for
13310 GENERIC code generation.
13311 (decision_tree::gen_generic): Do not reject operands
13312 with TREE_SIDE_EFFECTS.
13313 * generic-match.h: New file.
13314 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13315 * match.pd: Add some constant folding patterns from fold-const.c.
13316 * fold-const.c: Include generic-match.h.
13317 (fold_unary_loc): Dispatch to generic_simplify.
13318 (fold_ternary_loc): Likewise.
13319 (fold_binary_loc): Likewise. Remove patterns now implemented
13320 by generic_simplify.
13321 * gimple-fold.c (replace_stmt_with_simplification): New function.
13322 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13323 (no_follow_ssa_edges): New function.
13324 (fold_stmt): New overload with valueization hook. Use
13325 no_follow_ssa_edges for the overload without hook.
13326 (fold_stmt_inplace): Likewise.
13327 * gimple-fold.h (no_follow_ssa_edges): Declare.
13329 2014-10-24 Felix Yang <felix.yang@huawei.com>
13330 Jiji Jiang <jiangjiji@huawei.com>
13333 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13334 (__LD3R_FUNC): Ditto.
13335 (__LD4R_FUNC): Ditto.
13336 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13337 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13338 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13339 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13340 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13341 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13342 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13343 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13344 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13345 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13346 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13347 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13348 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13349 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13350 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13351 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13352 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13353 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13354 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13355 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13356 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13358 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13359 (aarch64_simd_ld3r<mode>): Likewise.
13360 (aarch64_simd_ld4r<mode>): Likewise.
13361 (aarch64_ld2r<mode>): New expand.
13362 (aarch64_ld3r<mode>): Likewise.
13363 (aarch64_ld4r<mode>): Likewise.
13365 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13367 * rtlanal.c (get_base_term): Handle SCRATCH.
13369 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13371 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13374 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13376 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13377 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13378 (max_issue, choose_ready, sched_init): Update.
13380 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13382 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13383 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13384 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13385 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13386 (print_rank_for_schedule_stats): Print out elements of ready list that
13387 ended up on their respective places due to each of the sorting
13389 (ready_sort): Update.
13390 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13391 (schedule_block): Update.
13393 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13395 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13396 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13397 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13398 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13399 (model_start_schedule): Update.
13400 (sched_pressure_start_bb): New static function. Calculate
13401 sched_class_regs_num.
13402 (schedule_block): Use it.
13403 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13405 2014-10-24 Richard Biener <rguenther@suse.de>
13407 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13408 host library and make sure to pull in the required libintl
13409 and libiconv dependencies.
13411 2014-10-24 Richard Biener <rguenther@suse.de>
13413 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13415 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13418 * collect2.c (main): Filter out -fno-lto.
13420 2014-10-24 Martin Liska <mliska@suse.cz>
13422 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13423 division by zero in dumps.
13424 (sem_item_optimizer::merge_classes): Ditto.
13426 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13428 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13430 2014-10-23 Ian Lance Taylor <iant@google.com>
13432 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13434 2014-10-23 Ian Lance Taylor <iant@google.com>
13436 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13438 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13441 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13442 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13443 instead of only handling autoinc in dest if it is a MEM.
13444 (vt_stack_adjustments): Fix up formatting.
13446 2014-10-23 DJ Delorie <dj@redhat.com>
13448 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13449 independend of -mlarge.
13450 * config/msp430/constraints.md (Ys): Update comment.
13452 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13456 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13457 while it is pseudo.
13458 * dse.c (deletable_insn_p): Likewise.
13460 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13462 * config/avr/avr.c: Fix GNU coding rules and typos.
13463 * config/avr/avr.h: Dito.
13464 * config/avr/avr-c.c: Dito.
13465 * config/avr/avr.md: Dito.
13467 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13469 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13471 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13473 (define_expand "abs<mode>2"): Ditto.
13475 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13477 * tree-core.h (tree_var_decl): Extend `function_code' field
13478 by one bit, move `regdecl_flag' field to ...
13479 (tree_decl_with_vis): Here.
13480 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13482 2014-10-23 Richard Biener <rguenther@suse.de>
13484 * Makefile.in (BUILD_CPPLIB): Add.
13485 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13488 2014-10-23 Richard Biener <rguenther@suse.de>
13490 * fold-const.c (fold_binary_loc): Preserve side-effects of
13491 X - X when simplifying to 0.
13492 * stor-layout.c (finish_bitfield_representative): Strip
13493 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13495 2014-10-22 Richard Biener <rguenther@suse.de>
13496 Tobias Burnus <burnus@net-b.de>
13499 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13501 2014-10-22 Dehao Chen <dehao@google.com>
13503 * auto-profile.c: Change order of header files.
13505 2014-10-22 Guozhi Wei <carrot@google.com>
13507 PR tree-optimization/63530
13508 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13509 pointer alignment according to DR_MISALIGNMENT.
13511 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13513 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13515 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13517 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13518 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13519 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13520 * dominance.h: New. Add prototypes for dominance.c.
13521 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13522 * cfghooks.h: (struct profile_record) Relocate here.
13523 Relocate 2 prototypes from basic-block.h.
13524 * basic-block.h: Move prototypes and struct to new header files.
13525 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13526 * rtl.h: Move a few prototypes to new header files.
13527 * cfgcleanup.c (merge_memattrs): Make static.
13528 * genopinit.c (main): Add predict.h to list of includes.
13529 * predict.h: Update prototype list to match predict.c.
13530 * predict.c (maybe_hot_count_p): Export.
13531 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13532 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13533 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13534 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13535 * profile.h: Adjust prototypes.
13536 * ifcvt.h: New. Relocate struct ce_if_block here.
13537 * ifcvt.c: Include ifcvt.h.
13538 * config/frv/frv.c: Include ifcvt.h.
13539 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13541 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13543 * lra.c (lra): Remove call to recog_init.
13544 * config/i386/i386.md (preferred_for_speed): New attribute
13545 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13546 "enabled". Remove check for sched1.
13548 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13550 * recog.h (recog_data_d): Remove enabled_alternatives.
13551 * recog.c (extract_insn): Don't set it.
13552 * reload.c (find_reloads): Call get_enabled_alternatives.
13554 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13556 * recog.h (constrain_operands): Add an alternative_mask parameter.
13557 (constrain_operands_cached): Likewise.
13558 (get_preferred_alternatives): Declare new form.
13559 * recog.c (get_preferred_alternatives): New bb-taking instance.
13560 (constrain_operands): Take the set of available alternatives as
13562 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13563 (extract_constrain_insn_cached): Update calls to constrain_operands.
13564 * caller-save.c (reg_save_code): Likewise.
13565 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13566 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13567 * ree.c (combine_reaching_defs): Likewise.
13568 * reload.c (can_reload_into): Likewise.
13569 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13570 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13571 (emit_insn_if_valid_for_reload): Likewise.
13572 * reorg.c (fill_slots_from_thread): Likewise.
13573 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13574 * config/pa/pa.c (pa_can_combine_p): Likewise.
13575 * config/rl78/rl78.c (insn_ok_now): Likewise.
13576 * config/sh/sh.md (define_peephole2): Likewise.
13577 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13579 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13581 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13583 * genattr.c (main): Handle "preferred_for_size" and
13584 "preferred_for_speed" in the same way as "enabled".
13585 * recog.h (bool_attr): New enum.
13586 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13587 (get_preferred_alternatives, check_bool_attrs): Declare.
13588 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13589 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13591 (get_enabled_alternatives): Use get_bool_attr_mask.
13592 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13593 instead of recog_data.enabled_alternatives.
13594 * ira.c (ira_setup_alts): Likewise.
13595 * postreload.c (reload_cse_simplify_operands): Likewise.
13596 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13597 * ira-lives.c (preferred_alternatives): New variable.
13598 (process_bb_node_lives): Set it.
13599 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13600 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13601 of recog_data.enabled_alternatives.
13602 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13603 to preferred_alternatives.
13604 * lra-constraints.c (process_alt_operands): Update accordingly.
13605 * lra.c (lra_set_insn_recog_data): Likewise.
13606 (lra_update_insn_recog_data): Assert check_bool_attrs.
13608 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13610 * recog.h (extract_constrain_insn): Declare.
13611 * recog.c (extract_constrain_insn): New function.
13612 * lra.c (check_rtl): Use it.
13613 * postreload.c (reload_cse_simplify_operands): Likewise.
13614 * reg-stack.c (check_asm_stack_operands): Likewise.
13615 (subst_asm_stack_regs): Likewise.
13616 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13617 * regrename.c (build_def_use): Likewise.
13618 * sel-sched.c (get_reg_class): Likewise.
13619 * config/arm/arm.c (note_invalid_constants): Likewise.
13620 * config/s390/predicates.md (execute_operation): Likewise.
13622 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13623 Yury Gribov <y.gribov@samsung.com>
13625 * common.opt (flag_sanitize_recover): New variable.
13626 (fsanitize-recover): Remove Var/Init, deprecate.
13627 (fsanitize-recover=): New option.
13628 * doc/invoke.texi (fsanitize-recover): Update docs.
13629 * opts.c (finish_options): Use opts->x_flag_sanitize
13630 instead of flag_sanitize. Prohibit -fsanitize-recover
13631 for anything besides UBSan. Formatting.
13632 (common_handle_option): Handle OPT_fsanitize_recover_
13633 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13634 instead of flag_sanitize.
13635 * asan.c (pass_sanopt::execute): Fix up formatting.
13636 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13637 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13638 instrument_bool_enum_load, ubsan_instrument_float_cast,
13639 instrument_nonnull_arg, instrument_nonnull_return): Check
13640 bits in flag_sanitize_recover bitmask instead of
13641 flag_sanitize_recover as bool flag.
13643 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13645 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13647 2014-10-22 Renlin Li <renlin.li@arm.com>
13649 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13650 __ARM_FEATURE_IDIV__.
13652 2014-10-22 Richard Biener <rguenther@suse.de>
13654 * Makefile.in (s-match): Adjust dependencies to only catch
13657 2014-10-22 Richard Biener <rguenther@suse.de>
13658 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13660 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13661 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13662 (gimple-match.c): Generate by triggering s-match.
13663 (generic-match.c): Likewise.
13664 (s-match): Rule to build gimple-match.c and generic-match.c
13665 by running the genmatch generator program.
13666 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13667 (build/genmatch.o): Dependencies to build genmatch.
13668 (genprog): Add match.
13669 (build/genmatch): Likewise.
13670 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13671 * generic-match-head.c: New file.
13672 * gimple-match-head.c: Likewise.
13673 * gimple-match.h: Likewise.
13674 * genmatch.c: Likewise.
13675 * match.pd: Likewise.
13676 * builtins.h (fold_builtin_n): Export.
13677 * builtins.c (fold_builtin_n): Likewise.
13678 * gimple-fold.h (gimple_build): Declare various overloads.
13679 (gimple_simplify): Likewise.
13680 (gimple_convert): Re-implement in terms of gimple_build.
13681 * gimple-fold.c (gimple_convert): Remove.
13682 (gimple_build): New functions.
13683 * doc/match-and-simplify.texi: New file.
13684 * doc/gccint.texi: Add menu item Match and Simplify and include
13685 match-and-simplify.texi.
13687 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13690 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13691 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13692 even for just TARGET_AVX2, not only for
13693 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13694 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13695 otherwise build it using concatenation of 256-bit
13697 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13698 avx512 broadcast patterns.
13699 (vec_dup<mode>): Likewise. For avx2 use
13700 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13701 vbroadcast<ssescalarmodesuffix>.
13702 (AVX2_VEC_DUP_MODE): New mode iterator.
13703 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13704 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13707 * config/i386/i386.c (ix86_pic_register_p): Also return
13708 true if x is a hard register with ORIGINAL_REGNO equal to
13709 pic_offset_table_rtx pseudo REGNO.
13710 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13711 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13713 2014-10-22 Alan Modra <amodra@gmail.com>
13715 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13716 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13717 (gcc_obstack_init): Use obstack_specify_allocation in place of
13719 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13720 (regexp_representation): Likewise.
13721 * godump.c (go_output_type): Likewise.
13723 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13725 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13726 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13727 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13729 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13731 * doc/invoke.texi (pedantic-errors): Explain better.
13733 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13734 Vidya Praveen <vidya.praveen@atmel.com>
13735 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13736 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13737 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13739 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13740 __MEMX for avrtiny.
13741 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13742 (avr_nonconst_pointer_addrspace): Likewise.
13743 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13745 Added AVRTINY architecture to avr target.
13746 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13747 (base_arch_s): member added for AVRTINY architecture.
13748 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13749 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13750 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13751 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13752 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13753 in callee saved register list.
13754 (avr_option_override): CCP address updated for AVRTINY.
13755 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13756 Reset avr_have_dimode if AVRTINY.
13757 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13758 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13759 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13760 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13761 (expand_epilogue): Likewise.
13762 (avr_print_operand): Print CCP address in case of AVRTINY also.
13764 (function_arg_regno_p): Check different register list for arguments
13766 (init_cumulative_args): Check for AVRTINY to update number of argument
13768 (tiny_valid_direct_memory_access_range): New function. Return false if
13769 direct memory access range is not in accepted range for AVRTINY.
13770 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13771 indirect load (with displacement) for AVRTINY.
13772 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13773 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13774 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13775 indirect load (no displacement) for AVRTINY.
13776 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13777 indirect load (with displacement) for AVRTINY.
13778 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13779 indirect load for pre-decrement address.
13780 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13781 functions. Update instruction length for AVRTINY.
13782 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13784 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13785 (out_movsi_r_mr): Likewise, for SImode.
13786 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13787 indirect store (no displacement) for AVRTINY.
13788 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13789 indirect store (with displacement) for AVRTINY.
13790 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13791 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13793 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13794 indirect load (no displacement) for PSImode in AVRTINY.
13795 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13796 indirect load (with displacement) for PSImode in AVRTINY.
13797 (avr_out_load_psi): Call PSImode register indirect load functions for
13798 AVRTINY. Update instruction length for AVRTINY.
13799 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13800 indirect store (no displacement) for PSImode in AVRTINY.
13801 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13802 indirect store (with displacement) for PSImode in AVRTINY.
13803 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13804 register indirect store functions for AVRTINY.
13805 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13806 register indirect store (with displacement) for AVRTINY.
13807 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13808 register indirect store function for QImode in AVRTINY.
13809 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13810 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13811 indirect store (no displacement) for HImode in AVRTINY.
13812 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13813 indirect store (with displacement) for HImode in AVRTINY.
13814 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13815 indirect store for post-increment address in HImode.
13816 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13817 register indirect store function for HImode in AVRTINY.
13818 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13819 in case of AVRTINY.
13820 (order_regs_for_local_alloc): Updated register allocation order for
13822 (avr_conditional_register_usage): New function. It is a target hook
13823 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13824 used registers list and register allocation order for AVRTINY.
13825 (avr_return_in_memory): Update return value size for AVRTINY.
13826 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13827 for AVRTINY arch and tiny program memory base address.
13828 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13829 (avr_texinfo): Added description for AVRTINY arch.
13830 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13831 STATIC_CHAIN_REGNUM for AVRTINY.
13832 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13833 * config/avr/avr.md: Added constants for tmp/ zero registers in
13834 AVRTINY. Attributes for AVRTINY added.
13835 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13836 memory access range.
13837 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13838 in AVRTINY memory access range.
13839 (*mov<mode>): Likewise for HImode and SImode.
13840 (*movsf): Likewise for SFmode.
13841 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13843 * config/avr/avr-protos.h: Added function prototype for
13844 tiny_valid_direct_memory_access_range.
13845 * config/avr/avr-tables.opt: Regenerate.
13846 * gcc/config/avr/t-multilib: Regenerate.
13847 * doc/avr-mmcu.texi: Regenerate.
13849 2014-10-21 Andrew Pinski <apinski@cavium.com>
13851 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13852 available option also.
13853 * config/aarch64/aarch64-cost-tables.h: New file.
13854 * config/aarch64/aarch64-cores.def (thunderx): New core.
13855 * config/aarch64/aarch64-tune.md: Regenerate.
13856 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13857 of config/arm/aarch-cost-tables.h.
13858 (thunderx_regmove_cost): New variable.
13859 (thunderx_tunings): New variable.
13861 2014-10-21 Dehao Chen <dehao@google.com>
13863 * auto-profile.c: New file.
13864 * auto-profile.h: New file.
13865 * basic-block.h (maybe_hot_count_p): New export func.
13866 (add_working_set): New export func.
13867 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13868 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13869 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13870 * opts.c (enable_fdo_optimizations): New func.
13871 (common_handle_option): Handle -fauto-profile flag.
13872 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13873 (class pass_early_inline): Export early_inliner.
13874 (early_inliner): Likewise.
13875 (pass_early_inline::execute): Likewise.
13876 * ipa-inline.h (early_inliner): Likewise.
13877 * predict.c (maybe_hot_count_p): New export func.
13878 (counts_to_freqs): AutoFDO logic.
13879 (rebuild_frequencies): Likewise.
13880 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13881 * profile.c (add_working_set): New func.
13882 * Makefile.in (auto-profile.o): New object file.
13883 * passes.def (pass_ipa_auto_profile): New pass.
13884 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13885 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13886 * toplev.c (compile_file): AutoFDO logic.
13887 * doc/invoke.texi (-fauto-profile): New doc.
13888 * coverage.c (coverage_init): AutoFDO logic.
13889 * common.opt (-fauto-profile): New flag.
13890 * timevar.def (TV_IPA_AUTOFDO): New tag.
13891 * value-prof.c (gimple_alloc_histogram_value): New export func.
13892 (check_ic_target): Likewise.
13893 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13894 (check_ic_target): Likewise.
13896 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13898 * cgraph.c (cgraph_c_finalize): New function.
13899 * cgraph.h (cgraph_c_finalize): New prototype.
13900 (cgraphunit_c_finalize): New prototype.
13901 * cgraphunit.c (first_analyzed): Move from analyze_functions
13903 (first_analyzed_var): Likewise.
13904 (analyze_functions): Move static variables into file-scope.
13905 (cgraphunit_c_finalize): New function.
13906 * diagnostic.c (diagnostic_finish): Free the memory for
13907 context->classify_diagnostic and context->printer, running the
13908 destructor for the latter.
13909 (bt_stop): Use toplev::main.
13910 * dwarf2out.c (dwarf2out_finalize): New function.
13911 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13912 * gcse.c (gcse_c_finalize): New function.
13913 * gcse.h (gcse_c_finalize): New prototype.
13914 * ggc-page.c (init_ggc): Make idempotent.
13915 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13916 * ipa-cp.c (ipa_cp_c_finalize): New function.
13917 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13918 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13919 a field of class pass_ipa_pure_const.
13920 (node_duplication_hook_holder): Likewise.
13921 (node_removal_hook_holder): Likewise.
13922 (register_hooks): Convert to method...
13923 (pass_ipa_pure_const::register_hooks): ...here, converting
13924 static variable init_p into...
13925 (pass_ipa_pure_const::init_p): ...new field.
13926 (pure_const_generate_summary): Update invocation of
13927 register_hooks to invoke as a method of current_pass.
13928 (pure_const_read_summary): Likewise.
13929 (propagate): Convert to...
13930 (pass_ipa_pure_const::execute): ...method.
13931 * ipa-reference.c (ipa_init): Move static bool init_p from here
13933 (ipa_init_p): New file-scope variable, so that it can be reset
13934 when repeatedly invoking the compiler within one process by...
13935 (ipa_reference_c_finalize): New function.
13936 * ipa-reference.h (ipa_reference_c_finalize): New.
13937 * main.c (main): Replace invocation of toplev_main with
13938 construction of a toplev instance, and call its "main" method.
13939 * params.c (global_init_params): Add an assert that
13940 params_finished is false.
13941 (params_c_finalize): New.
13942 * params.h (params_c_finalize): New.
13943 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13944 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13945 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13946 before calling write_summary hook.
13947 (ipa_write_optimization_summaries_1): Likewise when calling
13948 write_optimization_summary hook.
13949 (ipa_read_summaries_1): Likewise for read_summary hook.
13950 (ipa_read_optimization_summaries_1): Likewise for
13951 read_optimization_summary hook.
13952 (execute_ipa_stmt_fixups): Likewise.
13953 * stringpool.c (init_stringpool): Clean up if we're called more
13955 * timevar.c (timevar_init): Ignore repeated calls.
13956 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13958 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13959 (initialize_rtl): Move static local "initialized_once"
13960 into file scope, and rename to...
13961 (rtl_initialized): New variable.
13962 (do_compile): Move timevar initialization from here to
13963 toplev::start_timevars.
13964 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13965 toplev::finalize): New functions.
13966 (toplev_main): Rename to...
13967 (toplev::main): ...this.
13968 * toplev.h (class toplev): New class.
13970 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13972 * loop-doloop.c: Include loop-unroll.h.
13974 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13976 * cfg.h: New. Header file for cfg.c.
13977 * cfganal.h: New. Header file for cfganal.c.
13978 * lcm.h: New. Header file for lcm.c.
13979 * loop-unroll.h: New. Header file for loop-unroll.h.
13980 * cfgloop.h: (unroll_loops): Remove prototype.
13981 * basic-block.h: Move prototypes and structs to new header files.
13982 Include cfg.h, cfganal.h, and lcm.h.
13983 * loop-init.c: Include loop-unroll.h.
13984 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13985 * modulo-sched.c: Include loop-unroll.h.
13987 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13989 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13990 MARKER_BYTE_UNKNOWN markers when handling casts.
13992 2014-10-21 Richard Biener <rguenther@suse.de>
13994 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13995 are the non-singleton PHI.
13997 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13999 PR tree-optimization/63563
14000 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
14001 if either dra or drb stmts are not normal loads/stores.
14003 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
14005 * config/i386/i386.c (expand_vec_perm_1): Fix
14006 expand_vec_perm_palignr case.
14007 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
14010 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
14012 * cfgloopanal.c (seq_cost): Delete.
14013 * rtl.h (seq_cost): New prototype.
14014 * rtlanal.c (seq_cost): New function.
14015 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
14017 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
14019 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
14020 * basic-block.h: Remove prototypes for cfgrtl.c.
14021 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
14022 prototypes to cfgrtl.h.
14023 * profile.h (profile_info): Add extern export declaration.
14024 * rtl.h: Remove prototypes for cfgrtl.h.
14025 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
14026 * ipa-inline.c: Include profile.h.
14027 * loop-unroll.c: Ditto.
14028 * modulo-sched.c: Ditto.
14029 * postreload-gcse.c: Ditto.
14030 * predict.c: Ditto.
14031 * sched-ebb.c: Ditto.
14032 * sched-rgn.c: Ditto.
14034 * tree-ssa-loop-ivcanon.c: Ditto.
14036 2014-10-20 Richard Biener <rguenther@suse.de>
14038 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
14039 operands to get a def operand kind match. Signal mismatches
14040 to the parent so we can try swapping its operands.
14041 (vect_build_slp_tree): Try swapping operands if they have
14042 a mismatched operand kind.
14044 2014-10-20 Alan Modra <amodra@gmail.com>
14047 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
14048 Increase "ops" array size. Correct array size tests. Init
14049 n_constants in loop. Break out of innermost loop when finding
14050 a trivial CONST expression.
14052 2014-10-20 Martin Liska <mliska@suse.cz>
14055 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
14056 Gimple tempate string is compared.
14058 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
14060 * varasm.c (const_alias_set): Remove.
14061 (init_varasm_once): Remove initialization of const_alias_set.
14062 (build_constant_desc): Do not set alias set to const_alias_set.
14064 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
14066 * configure: Regenerate.
14067 * configure.ac: Move the test for section attribute specifier "e" in GAS
14068 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
14069 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
14070 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
14071 ifdef HAVE_GAS_SECTION_EXCLUDE.
14073 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
14075 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
14076 match_operand expression.
14078 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
14079 David Edelsohn <dje.gcc@gmail.com>
14081 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
14083 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14085 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
14087 * doc/invoke.texi (Options to Request or Suppress Warnings):
14088 Explain options precedence.
14089 (Wtrampolines): Do not indent paragraph.
14091 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
14093 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
14094 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
14095 (pa_jump_in_call_delay): Likewise.
14096 * config/pa/pa.c (pa_option_override): Remove jump in call delay
14098 (pa_output_millicode_call): Remove support for jump in call delay.
14099 (pa_output_call): Likewise.
14100 (pa_jump_in_call_delay): Delete.
14101 (pa_following_call): Likewise.
14102 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
14103 (uncond_branch): Remove following call check from attribute length.
14105 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
14108 * config/sh/sh-modes.def (PSI): Remove.
14109 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
14110 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
14111 (sh_reorg): Remove commented out FPSCR code.
14112 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
14113 insn instead of move insn.
14114 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
14115 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
14117 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
14118 (sh1_builtin_p): Uncomment.
14119 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
14120 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
14121 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
14122 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
14123 (general_movsrc_operand, general_movdst_operand): Disallow
14125 * config/sh/sh.md (FPSCR_FR): New constant.
14126 (push_fpscr): Emit sts_fpscr insn.
14127 (pop_fpscr): Emit lds_fpscr_insn.
14128 (movsi_ie): Disallow FPSCR operands.
14129 (fpu_switch, unnamed related split, extend_psi_si,
14130 truncate_si_psi): Remove insns.
14131 (lds_fpscr, sts_fpscr): New insns.
14132 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
14134 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
14136 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
14137 (clone_inlined_nodes): Do not overwrite the clone if above predicate
14140 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
14142 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
14143 (expand_vec_perm_d): Ditto.
14144 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
14145 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
14147 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
14148 (ix86_expand_sse_unpack): Handle V64QImode.
14149 (expand_vec_perm_blend): Update conditions for TARGET, handle
14150 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
14151 (expand_vec_perm_pshufb): Handle V64QImode.
14152 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
14153 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
14154 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
14155 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
14156 (ix86_expand_vecop_qihi): Handle V64QImode.
14157 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
14158 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
14159 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
14160 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
14161 (mul<mode>3): Use VI1_AVX512.
14162 (<sse2_avx2>_packsswb): Ditto.
14163 (<sse2_avx2>_packuswb): Ditto.
14164 (<ssse3_avx2>_pshufb<mode>3): Ditto.
14165 (<shift_insn><mode>3): Ditto.
14167 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
14169 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
14170 conditions to fix bootstrap.
14172 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
14174 gcc-plugin.h: Add tm.h and flattened includes from function.h.
14176 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
14177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14178 Anna Tikhonova <anna.tikhonova@intel.com>
14179 Ilya Tocar <ilya.tocar@intel.com>
14180 Andrey Turetskiy <andrey.turetskiy@intel.com>
14181 Ilya Verbin <ilya.verbin@intel.com>
14182 Kirill Yukhin <kirill.yukhin@intel.com>
14183 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14185 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
14186 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
14187 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
14188 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
14189 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
14190 (define_expand "vec_init<mode>"): Use VF48_I1248.
14192 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
14193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14194 Anna Tikhonova <anna.tikhonova@intel.com>
14195 Ilya Tocar <ilya.tocar@intel.com>
14196 Andrey Turetskiy <andrey.turetskiy@intel.com>
14197 Ilya Verbin <ilya.verbin@intel.com>
14198 Kirill Yukhin <kirill.yukhin@intel.com>
14199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14201 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
14202 expand_sse2_mulvxdi3.
14204 2014-10-17 Richard Biener <rguenther@suse.de>
14206 * fold-const.c (fold_comparison): Remove redundant constant
14207 folding and operand swapping.
14208 (fold_binary_loc): Do comparison operand swapping here.
14209 (fold_ternary_loc): Canonicalize operand order for
14210 commutative ternary operations.
14211 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
14214 2014-10-17 Jakub Jelinek <jakub@redhat.com>
14216 PR tree-optimization/63464
14217 * gimple.h (gimple_seq_discard): New prototype.
14218 * gimple.c: Include stringpool.h and tree-ssanames.h.
14219 (gimple_seq_discard): New function.
14220 * optabs.h (lshift_cheap_p): New prototype.
14221 * optabs.c (lshift_cheap_p): New function, moved from...
14222 * tree-switch-conversion.c (lshift_cheap_p): ... here.
14223 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
14224 (reassoc_branch_fixups): New variable.
14225 (update_range_test): Add otherrangep and seq arguments.
14226 Unshare exp. If otherrange is NULL, use for other ranges
14227 array of pointers pointed by otherrangep instead.
14228 Emit seq before gimplified statements for tem.
14229 (optimize_range_tests_diff): Adjust update_range_test
14231 (optimize_range_tests_xor): Likewise. Fix up comment.
14232 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
14234 (optimize_range_tests): Adjust update_range_test caller.
14235 Call optimize_range_tests_to_bit_test.
14236 (branch_fixup): New function.
14237 (execute_reassoc): Call branch_fixup.
14239 PR tree-optimization/63302
14240 * tree-ssa-reassoc.c (optimize_range_tests_xor,
14241 optimize_range_tests_diff): Use !integer_pow2p () instead of
14244 2014-10-17 Martin Liska <mliska@suse.cz>
14246 * ipa-icf.c (sem_function::merge): Local flags are set to false
14247 to enforce equal calling convention to be used.
14248 * opts.c (common_handle_option): Indentation fix.
14250 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
14252 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
14254 2014-10-17 Tom de Vries <tom@codesourcery.com>
14256 PR rtl-optimization/61605
14257 * regcprop.c (copyprop_hardreg_forward_1): Use
14258 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
14260 2014-10-17 Tom de Vries <tom@codesourcery.com>
14262 PR rtl-optimization/61605
14263 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
14264 Don't notice stores for noops. Don't regard noops as copies.
14266 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
14268 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
14269 register in a special way.
14270 (__cpuid_count): Ditto.
14271 * config/i386/driver-i386.h: Protect with
14272 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
14273 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
14274 is required to compile the function.
14276 2014-10-16 DJ Delorie <dj@redhat.com>
14278 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
14281 * config/rs6000/rs6000-c.c (rid_int128): New.
14282 (rs6000_macro_to_expand): Use instead of RID_INT128.
14284 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
14286 * function.h: Flatten file. Remove includes, adjust prototypes to
14287 reflect only what is in function.h.
14288 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14289 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
14291 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
14292 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
14293 prototypes to predict.h.
14294 (init_varasm_status): Move prototype to varasm.h.
14295 * expr.h: Adjust include files.
14296 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14297 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
14299 (locate_and_pad_parm): Move prototype to function.h.
14300 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14301 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14302 assign_temp, reposition_prologue_and_epilogue_notes,
14303 prologue_epilogue_contains, sibcall_epilogue_contains,
14304 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14305 set_return_jump_label): Move prototypes to function.h.
14306 * predict.h (optimize_function_for_size_p,
14307 optimize_function_for_speed_p): Relocate prototypes from function.h.
14308 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14309 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14311 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14312 * genattrtab.c (write_header): Add predict.h to include list.
14313 * genconditions.c (write_header): Add predict.h to include list.
14314 * genemit.c (main): Adjust header file includes.
14315 * gengtype.c (ifiles): Add flattened function.h header files.
14316 * genoutput.c (output_prologue): Add predict.h to include list.
14317 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14318 * genrecog.c (write_header): Add flattened function.h header files.
14319 * alias.c: Adjust include files.
14320 * auto-inc-dec.c: Likewise.
14321 * basic-block.h: Likewise.
14322 * bb-reorder.c: Likewise.
14323 * bt-load.c: Likewise.
14324 * builtins.c: Likewise.
14325 * caller-save.c: Likewise.
14326 * calls.c: Likewise.
14327 * cfgbuild.c: Likewise.
14328 * cfgcleanup.c: Likewise.
14329 * cfgexpand.c: Likewise.
14330 * cfgloop.c: Likewise.
14331 * cfgloop.h: Likewise.
14332 * cfgrtl.c: Likewise.
14333 * cgraph.h: Likewise.
14334 * cgraphclones.c: Likewise.
14335 * cgraphunit.c: Likewise.
14336 * combine-stack-adj.c: Likewise.
14337 * combine.c: Likewise.
14338 * coverage.c: Likewise.
14339 * cprop.c: Likewise.
14341 * cselib.c: Likewise.
14342 * dbxout.c: Likewise.
14344 * df-core.c: Likewise.
14345 * df-problems.c: Likewise.
14346 * df-scan.c: Likewise.
14347 * dojump.c: Likewise.
14348 * dwarf2cfi.c: Likewise.
14349 * dwarf2out.c: Likewise.
14350 * emit-rtl.c: Likewise.
14351 * except.c: Likewise.
14352 * explow.c: Likewise.
14353 * expr.c: Likewise.
14354 * final.c: Likewise.
14355 * function.c: Likewise.
14356 * gcse.c: Likewise.
14357 * gimple-fold.c: Likewise.
14358 * gimple-low.c: Likewise.
14359 * gimple-streamer.h: Likewise.
14360 * haifa-sched.c: Likewise.
14361 * ifcvt.c: Likewise.
14363 * jump.c: Likewise.
14365 * loop-invariant.c: Likewise.
14366 * lra-assigns.c: Likewise.
14367 * lra-coalesce.c: Likewise.
14368 * lra-constraints.c: Likewise.
14369 * lra-eliminations.c: Likewise.
14370 * lra-lives.c: Likewise.
14371 * lra-spills.c: Likewise.
14373 * lto-cgraph.c: Likewise.
14374 * lto-section-in.c: Likewise.
14375 * lto-section-out.c: Likewise.
14376 * lto-streamer-in.c: Likewise.
14377 * lto-streamer-out.c: Likewise.
14378 * mode-switching.c: Likewise.
14379 * modulo-sched.c: Likewise.
14380 * omp-low.c: Likewise.
14381 * optabs.c: Likewise.
14382 * passes.c: Likewise.
14383 * postreload-gcse.c: Likewise.
14384 * postreload.c: Likewise.
14385 * predict.c: Likewise.
14386 * profile.c: Likewise.
14387 * recog.c: Likewise.
14389 * reg-stack.c: Likewise.
14390 * regcprop.c: Likewise.
14391 * reginfo.c: Likewise.
14392 * regrename.c: Likewise.
14393 * reload.c: Likewise.
14394 * reload1.c: Likewise.
14395 * reorg.c: Likewise.
14396 * resource.c: Likewise.
14397 * rtlanal.c: Likewise.
14398 * sched-deps.c: Likewise.
14399 * sched-ebb.c: Likewise.
14400 * sched-rgn.c: Likewise.
14401 * sel-sched-dump.c: Likewise.
14402 * sel-sched-ir.c: Likewise.
14403 * sel-sched.c: Likewise.
14404 * shrink-wrap.c: Likewise.
14405 * simplify-rtx.c: Likewise.
14406 * statistics.c: Likewise.
14407 * stmt.c: Likewise.
14408 * stor-layout.c: Likewise.
14409 * store-motion.c: Likewise.
14410 * symtab.c: Likewise.
14411 * targhooks.c: Likewise.
14412 * toplev.c: Likewise.
14413 * trans-mem.c: Likewise.
14414 * tree-cfg.c: Likewise.
14415 * tree-cfgcleanup.c: Likewise.
14416 * tree-dfa.c: Likewise.
14417 * tree-eh.c: Likewise.
14418 * tree-inline.c: Likewise.
14419 * tree-into-ssa.c: Likewise.
14420 * tree-nested.c: Likewise.
14421 * tree-nrv.c: Likewise.
14422 * tree-profile.c: Likewise.
14423 * tree-ssa-alias.c: Likewise.
14424 * tree-ssa-ccp.c: Likewise.
14425 * tree-ssa-copy.c: Likewise.
14426 * tree-ssa-copyrename.c: Likewise.
14427 * tree-ssa-dom.c: Likewise.
14428 * tree-ssa-operands.c: Likewise.
14429 * tree-ssa-propagate.c: Likewise.
14430 * tree-ssa-structalias.c: Likewise.
14431 * tree-ssa-tail-merge.c: Likewise.
14432 * tree-ssa-threadedge.c: Likewise.
14433 * tree-ssa-threadupdate.c: Likewise.
14434 * tree-ssa-uncprop.c: Likewise.
14435 * tree-ssa-uninit.c: Likewise.
14436 * tree-ssa.c: Likewise.
14437 * tree-stdarg.c: Likewise.
14438 * tree-tailcall.c: Likewise.
14439 * tree.c: Likewise.
14440 * tsan.c: Likewise.
14441 * valtrack.c: Likewise.
14442 * varasm.c: Likewise.
14443 * vmsdbgout.c: Likewise.
14445 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14446 * config/alpha/alpha.c: Likewise.
14447 * config/arc/arc.c: Likewise.
14448 * config/arm/arm.c: Likewise.
14449 * config/avr/avr-log.c: Likewise.
14450 * config/avr/avr.c: Likewise.
14451 * config/bfin/bfin.c: Likewise.
14452 * config/c6x/c6x.c: Likewise.
14453 * config/cr16/cr16.c: Likewise.
14454 * config/cris/cris.c: Likewise.
14455 * config/darwin.c: Likewise.
14456 * config/epiphany/epiphany.c: Likewise.
14457 * config/epiphany/mode-switch-use.c: Likewise.
14458 * config/epiphany/resolve-sw-modes.c: Likewise.
14459 * config/fr30/fr30.c: Likewise.
14460 * config/frv/frv.c: Likewise.
14461 * config/h8300/h8300.c: Likewise.
14462 * config/i386/i386.c: Likewise.
14463 * config/ia64/ia64.c: Likewise.
14464 * config/iq2000/iq2000.c: Likewise.
14465 * config/lm32/lm32.c: Likewise.
14466 * config/m32c/m32c.c: Likewise.
14467 * config/m32r/m32r.c: Likewise.
14468 * config/m68k/m68k.c: Likewise.
14469 * config/mcore/mcore.c: Likewise.
14470 * config/mep/mep-pragma.c: Likewise.
14471 * config/mep/mep.c: Likewise.
14472 * config/microblaze/microblaze.c: Likewise.
14473 * config/mips/mips.c: Likewise.
14474 * config/mmix/mmix.c: Likewise.
14475 * config/mn10300/mn10300.c: Likewise.
14476 * config/moxie/moxie.c: Likewise.
14477 * config/msp430/msp430.c: Likewise.
14478 * config/nds32/nds32-cost.c: Likewise.
14479 * config/nds32/nds32-fp-as-gp.c: Likewise.
14480 * config/nds32/nds32-intrinsic.c: Likewise.
14481 * config/nds32/nds32-isr.c: Likewise.
14482 * config/nds32/nds32-md-auxiliary.c: Likewise.
14483 * config/nds32/nds32-memory-manipulation.c: Likewise.
14484 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14485 * config/nds32/nds32-predicates.c: Likewise.
14486 * config/nds32/nds32.c: Likewise.
14487 * config/nios2/nios2.c: Likewise.
14488 * config/pa/pa.c: Likewise.
14489 * config/pdp11/pdp11.c: Likewise.
14490 * config/rl78/rl78.c: Likewise.
14491 * config/rs6000/rs6000.c: Likewise.
14492 * config/rx/rx.c: Likewise.
14493 * config/s390/s390.c: Likewise.
14494 * config/score/score.c: Likewise.
14495 * config/sh/sh.c: Likewise.
14496 * config/sparc/sparc.c: Likewise.
14497 * config/spu/spu.c: Likewise.
14498 * config/stormy16/stormy16.c: Likewise.
14499 * config/tilegx/tilegx.c: Likewise.
14500 * config/tilepro/tilepro.c: Likewise.
14501 * config/v850/v850.c: Likewise.
14502 * config/vax/vax.c: Likewise.
14503 * config/xtensa/xtensa.c: Likewise.
14505 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14507 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14508 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14510 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14512 * config/sh/sh-protos.h (fldi_ok): Remove.
14513 * config/sh/sh.c (fldi_ok): Likewise.
14514 (sh_secondary_reload): Don't use fldi_ok.
14515 * config/sh/constraints.md (G constraint, H constraint): Don't use
14518 2014-10-16 Martin Liska <mliska@suse.cz>
14520 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14521 Cast to unsigned long.
14522 (sem_item_optimizer::dump_cong_classes): Likewise.
14524 2014-10-16 Tom de Vries <tom@codesourcery.com>
14526 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14527 with SSA_NAME_IN_FREELIST.
14529 2014-10-16 Richard Biener <rguenther@suse.de>
14531 PR middle-end/63554
14532 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14533 (fold_builtin_strncat_chk): Move ...
14534 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14535 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14537 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14540 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14543 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14544 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14545 Anna Tikhonova <anna.tikhonova@intel.com>
14546 Ilya Tocar <ilya.tocar@intel.com>
14547 Andrey Turetskiy <andrey.turetskiy@intel.com>
14548 Ilya Verbin <ilya.verbin@intel.com>
14549 Kirill Yukhin <kirill.yukhin@intel.com>
14550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14552 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14555 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14557 Anna Tikhonova <anna.tikhonova@intel.com>
14558 Ilya Tocar <ilya.tocar@intel.com>
14559 Andrey Turetskiy <andrey.turetskiy@intel.com>
14560 Ilya Verbin <ilya.verbin@intel.com>
14561 Kirill Yukhin <kirill.yukhin@intel.com>
14562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14564 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14565 V16SI, V32HI, V64QI modes.
14567 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14570 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14571 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14573 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14574 to match fp insn patterns.
14575 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14577 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14578 expand_df_unop, expand_df_binop): Remove.
14579 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14580 FPSCR_STAT_REG as not call clobbered.
14581 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14582 invoking fpscr_set_from_mem.
14584 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14585 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14587 (REGISTER_NAMES): Adjust.
14588 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14589 (FIRST_PSEUDO_REGISTER): Increase to 156.
14590 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14591 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14593 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14594 FPSCR_MODES_REG and FPSCR_STAT_REG.
14595 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14597 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14598 FPSCR_SZ): Add new constants.
14599 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14601 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14602 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14603 Use TARGET_FPU_ANY condition.
14604 (fpu_switch peephole2): Remove.
14605 (fpu_switch split): Use simple_mem_operand to capture the mem and
14606 adjust split implementation.
14607 (extend_psi_si, truncate_si_psi): New insns.
14608 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14609 set of FPSCR_MODES_REG.
14611 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14612 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14613 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14614 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14615 call_value_compact, call_value_compact_rettramp, call,
14616 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14617 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14618 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14619 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14620 call_value_pop_compact_rettramp, various unnamed splits):
14621 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14624 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14625 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14626 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14627 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14628 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14630 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14631 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14632 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14633 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14634 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14635 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14636 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14638 2014-10-16 Martin Liska <mliska@suse.cz>
14639 Jan Hubicka <hubicka@ucw.cz>
14641 * Makefile.in: New object files included.
14642 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14644 (verify_edge_corresponds_to_fndecl): More sensitive verification
14645 of nodes that are merged by IPA ICF.
14646 * cgraph.h (cgraph_node::num_references): New function.
14647 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14648 * common.opt: New options ipa-icf, ipa-icf-functions and
14649 ipa-icf-variables introduced.
14650 * doc/invoke.texi: Documentation of new options introduced.
14651 * ipa-icf-gimple.c: New file.
14652 * ipa-icf-gimple.h: New file.
14653 * ipa-icf.c: New file.
14654 * ipa-icf.h: New file.
14655 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14656 (input_overwrite_node): Likewise.
14657 * lto-section-in.c: New icf section added.
14658 * lto-streamer.h (enum lto_section_type): Likewise.
14659 * opts.c (common_handle_option): New option added.
14660 * passes.def: New pass included.
14661 * timevar.def: Time variable for IPA ICF added.
14662 * tree-pass.h: New IPA ICF pass entry point added.
14664 2014-10-16 Richard Biener <rguenther@suse.de>
14666 PR tree-optimization/63168
14667 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14668 latches if after merging they are no longer simple.
14669 * cfghooks.c (merge_blocks): Handle merging a latch block
14670 into another block.
14672 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14673 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14674 Anna Tikhonova <anna.tikhonova@intel.com>
14675 Ilya Tocar <ilya.tocar@intel.com>
14676 Andrey Turetskiy <andrey.turetskiy@intel.com>
14677 Ilya Verbin <ilya.verbin@intel.com>
14678 Kirill Yukhin <kirill.yukhin@intel.com>
14679 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14681 * config/i386/sse.md
14682 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14683 support AVX-512VL instructions.
14685 2014-10-16 DJ Delorie <dj@redhat.com>
14687 * tree-core.h: Fix comment to not assume pointers are multiples of
14690 2014-10-15 Tom Tromey <tromey@redhat.com>
14692 * timevar.h (class auto_timevar): New class.
14694 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14697 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14698 Remove the second alternative.
14699 (regprefix): Remove mode attribute.
14700 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14701 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14704 2013-11-05 Ian Lance Taylor <iant@google.com>
14706 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14707 If possible, add .cfi directives to record change to bx.
14708 * config/i386/i386.c (ix86_emit_cfi): New function.
14709 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14711 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14714 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14716 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14719 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14721 PR rtl-optimization/63448
14722 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14723 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14724 (LRA_MAX_INHERITANCE_PASSES): Use it.
14725 (lra_constraint_iter_after_spill): Remove.
14726 (lra_assignment_iter): New.
14727 (lra_assignment_iter_after_spill): New.
14728 * lra-assigns.c (lra_assignment_iter): New.
14729 (lra_assignment_iter_after_spill): New.
14730 (former_reload_pseudo_spill_p): New.
14731 (spill_for): Set up former_reload_pseudo_spill_p.
14732 (setup_live_pseudos_and_spill_after_risky): Ditto.
14733 (assign_by_spills): Ditto.
14734 (lra_assign): Increment lra_assignment_iter. Print the iteration
14735 number. Reset former_reload_pseudo_spill_p. Check
14736 lra_assignment_iter_after_spill.
14737 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14738 lra_assignment_iter and lra_assignment_iter_after_spill.
14739 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14740 (lra_constraints): Remove code with
14741 lra_assignment_iter_after_spill.
14743 2014-10-15 Teresa Johnson <tejohnson@google.com>
14746 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14749 2014-10-15 Renlin Li <renlin.li@arm.com>
14751 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14752 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14753 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14754 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14756 2014-10-15 Richard Biener <rguenther@suse.de>
14758 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14759 SSA form up-to-date when devirtualizing a call to
14760 __builtin_unreachable and avoid fixing up EH info here.
14762 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14764 Anna Tikhonova <anna.tikhonova@intel.com>
14765 Ilya Tocar <ilya.tocar@intel.com>
14766 Andrey Turetskiy <andrey.turetskiy@intel.com>
14767 Ilya Verbin <ilya.verbin@intel.com>
14768 Kirill Yukhin <kirill.yukhin@intel.com>
14769 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14771 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
14772 to support AVX-512BW.
14773 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14774 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14775 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14776 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14777 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14778 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14779 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14780 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14781 (define_insn "*andnot<mode>3"): Ditto.
14782 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14783 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14784 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14785 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14786 (define_insn "*abs<mode>2"): Remove masking support.
14787 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14788 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14789 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14791 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14792 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14793 Anna Tikhonova <anna.tikhonova@intel.com>
14794 Ilya Tocar <ilya.tocar@intel.com>
14795 Andrey Turetskiy <andrey.turetskiy@intel.com>
14796 Ilya Verbin <ilya.verbin@intel.com>
14797 Kirill Yukhin <kirill.yukhin@intel.com>
14798 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14800 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14801 * config/i386/sse.md
14802 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14803 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14804 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14805 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14806 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14807 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14808 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14810 2014-10-15 Renlin Li <renlin.li@arm.com>
14812 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14814 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14816 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14817 MINUS_EXPR in unsigned type to avoid undefined behavior.
14819 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14821 * stor-layout.c (self_referential_size): Do not promote arguments.
14823 2014-10-15 Marek Polacek <polacek@redhat.com>
14825 * doc/invoke.texi: Update to reflect that GNU11 is the default
14827 * c-common.h (c_language_kind): Update comment.
14829 2014-10-15 Richard Biener <rguenther@suse.de>
14831 * hash-table.c: Include bconfig.h if building for the host.
14832 * hash-table.h: Do not include ggc.h on the host but just declare
14833 a few ggc allocation templates.
14835 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14836 Jeff Law <law@redhat.com>
14838 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14839 multiple hard registers, use smaller mode derived from MODE.
14841 2014-10-15 Andreas Schwab <schwab@suse.de>
14843 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14844 as ATTRIBUTE_UNUSED.
14846 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14848 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14849 (decide_unrolling): ... this one.
14850 (peel_loops_completely): Remove.
14851 (decide_peel_simple): Remove.
14852 (decide_peel_once_rolling): Remove.
14853 (decide_peel_completely): Remove.
14854 (peel_loop_simple): Remove.
14855 (peel_loop_completely): Remove.
14856 (unroll_and_peel_loops): Rename to ...
14857 (unroll_loops): ... this one; handle only unrolling.
14858 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14859 (UAP_PEEL): Remove.
14860 (unroll_and_peel_loops): Remove.
14861 (unroll_loops): New.
14862 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14863 by pass_rtl_unroll_loops.
14864 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14865 rtl_unroll_and_peel_loops): Rename to ...
14866 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14867 (pass_rtl_unroll_and_peel_loops): Rename to ...
14868 (pass_rtl_unroll_loops): ... this one.
14869 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14870 (make_pass_rtl_unroll_loops): New.
14871 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14872 try_peel_loop): New.
14873 (canonicalize_loop_induction_variables): Update.
14875 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14877 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14878 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14879 !TARGET_HARD_FLOAT_POSTINC.
14880 (*lsip, *ssip): new instructions.
14882 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14884 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14887 2014-10-14 Andrew Pinski <apinski@cavium.com>
14889 * explow.c (convert_memory_address_addr_space): Rename to ...
14890 (convert_memory_address_addr_space_1): This. Add in_const argument.
14891 Inside a CONST RTL, permute the conversion and addition of constant
14892 for zero and sign extended pointers.
14893 (convert_memory_address_addr_space): New function.
14895 2014-10-14 Andrew Pinski <apinski@cavium.com>
14898 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14900 PR middle-end/49721
14901 * explow.c (convert_memory_address_addr_space): Also permute the
14902 conversion and addition of constant for zero-extend.
14904 2014-10-14 DJ Delorie <dj@redhat.com>
14906 * config/msp430/msp430-modes.def (PSI): Add.
14908 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14910 (msp430_hard_regno_nregs_with_padding): New.
14911 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14912 (msp430_hard_regno_nregs_has_padding): New.
14913 (msp430_hard_regno_nregs_with_padding): New.
14914 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14915 (msp430_addr_space_legitimate_address_p): New.
14916 (msp430_asm_integer): New.
14917 (msp430_init_dwarf_reg_sizes_extra): New.
14918 (msp430_print_operand): Use X suffix for PSImode even in small model.
14919 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14920 (PTR_SIZE): ...but 4 bytes for EH.
14921 (SIZE_TYPE): Use __int20.
14922 (PTRDIFF_TYPE): Likewise.
14923 (INCOMING_FRAME_SP_OFFSET): Adjust.
14924 * config/msp430/msp430.md (movqi_topbyte): New.
14925 (movpsi): Use fixed suffixes.
14926 (movsipsi2): Enable for 430X, not large model.
14927 (extendhipsi2): Likewise.
14928 (zero_extendhisi2): Likewise.
14929 (zero_extendhisipsi2): Likewise.
14930 (extend_and_shift1_hipsi2): Likewise.
14931 (extendpsisi2): Likewise.
14932 (*bitbranch<mode>4_z): Fix suffix logic.
14934 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14937 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14938 do not choke on null node.
14939 <VAR_DECL>: Likewise.
14941 2014-10-14 DJ Delorie <dj@redhat.com>
14943 * machmode.h (int_n_data_t): New.
14944 (int_n_enabled_p): New.
14946 * tree.c (int_n_enabled_p): New.
14947 (int_n_trees): New.
14948 (make_or_reuse_type): Check for all __intN types, not just __int128.
14949 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14951 * tree.h (int128_integer_type_node): Remove.
14952 (int128_unsigned_type_node): Remove.
14953 (int_n_trees_t): New.
14954 (int_n_enabled_p): New.
14955 (int_n_trees): New.
14956 * toplev.c (standard_type_bitsize): New.
14957 (do_compile): Check which __intN types are enabled for the current run.
14958 * builtin-types.def (BT_INT128): Remove.
14959 (BT_UINT128): Remove.
14960 * machmode.def: Add macro to create __int128 for all targets.
14961 * stor-layout.c (mode_for_size): Support __intN types.
14962 (smallest_mode_for_size): Likewise.
14963 (initialize_sizetypes): Support __intN types.
14964 * genmodes.c (struct mode_data): Add int_n field.
14965 (blank_mode): Likewise.
14968 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14969 (emit_mode_int_n): New.
14970 (emit_insn_modes_c): Call it.
14971 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14972 types, not just __int128.
14973 * tree-core.h (integer_type_kind): Remove __int128-specific
14974 entries, reserve spots for __intN entries.
14976 * config/msp430/msp430-modes.def (PSI): Add.
14978 2014-10-14 Kito Cheng <kito@0xlab.org>
14980 * ira.c: Fix typo in comment.
14982 * ira-build.c: Ditto.
14983 * ira-color.c: Ditto.
14984 * ira-emit.c: Ditto.
14985 * ira-int.h: Ditto.
14986 * ira-lives.c: Ditto.
14988 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14990 PR rtl-optimization/63475
14991 * alias.c (true_dependence_1): Always use get_addr to extract
14992 true address operands from x_addr and mem_addr. Use extracted
14993 address operands to check for references with alignment ANDs.
14994 Use extracted address operands with find_base_term and
14995 base_alias_check. For noncanonicalized operands call canon_rtx with
14996 extracted address operand.
14997 (write_dependence_1): Ditto.
14998 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
15000 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
15003 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
15006 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15007 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15008 Anna Tikhonova <anna.tikhonova@intel.com>
15009 Ilya Tocar <ilya.tocar@intel.com>
15010 Andrey Turetskiy <andrey.turetskiy@intel.com>
15011 Ilya Verbin <ilya.verbin@intel.com>
15012 Kirill Yukhin <kirill.yukhin@intel.com>
15013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15015 * config/i386/i386.c
15016 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
15017 (ix86_expand_int_vcond): Ditto.
15019 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15021 Anna Tikhonova <anna.tikhonova@intel.com>
15022 Ilya Tocar <ilya.tocar@intel.com>
15023 Andrey Turetskiy <andrey.turetskiy@intel.com>
15024 Ilya Verbin <ilya.verbin@intel.com>
15025 Kirill Yukhin <kirill.yukhin@intel.com>
15026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15028 * config/i386/i386.c
15029 (emit_reduc_half): Handle V64QI and V32HI mode.
15030 * config/i386/sse.md
15031 (define_mode_iterator VI_AVX512BW): New.
15032 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
15034 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15035 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15036 Anna Tikhonova <anna.tikhonova@intel.com>
15037 Ilya Tocar <ilya.tocar@intel.com>
15038 Andrey Turetskiy <andrey.turetskiy@intel.com>
15039 Ilya Verbin <ilya.verbin@intel.com>
15040 Kirill Yukhin <kirill.yukhin@intel.com>
15041 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15043 * config/i386/sse.md
15044 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
15046 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15047 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15048 Anna Tikhonova <anna.tikhonova@intel.com>
15049 Ilya Tocar <ilya.tocar@intel.com>
15050 Andrey Turetskiy <andrey.turetskiy@intel.com>
15051 Ilya Verbin <ilya.verbin@intel.com>
15052 Kirill Yukhin <kirill.yukhin@intel.com>
15053 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15055 * config/i386/i386.c
15056 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
15057 * config/i386/sse.md
15058 (define_mode_iterator VI): Add V64QI and V32HI modes.
15060 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15061 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15062 Anna Tikhonova <anna.tikhonova@intel.com>
15063 Ilya Tocar <ilya.tocar@intel.com>
15064 Andrey Turetskiy <andrey.turetskiy@intel.com>
15065 Ilya Verbin <ilya.verbin@intel.com>
15066 Kirill Yukhin <kirill.yukhin@intel.com>
15067 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15069 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
15071 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15073 Anna Tikhonova <anna.tikhonova@intel.com>
15074 Ilya Tocar <ilya.tocar@intel.com>
15075 Andrey Turetskiy <andrey.turetskiy@intel.com>
15076 Ilya Verbin <ilya.verbin@intel.com>
15077 Kirill Yukhin <kirill.yukhin@intel.com>
15078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15080 * config/i386/sse.md
15081 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
15082 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
15084 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15085 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15086 Anna Tikhonova <anna.tikhonova@intel.com>
15087 Ilya Tocar <ilya.tocar@intel.com>
15088 Andrey Turetskiy <andrey.turetskiy@intel.com>
15089 Ilya Verbin <ilya.verbin@intel.com>
15090 Kirill Yukhin <kirill.yukhin@intel.com>
15091 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15093 * config/i386/sse.md
15094 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
15095 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
15097 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15098 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15099 Anna Tikhonova <anna.tikhonova@intel.com>
15100 Ilya Tocar <ilya.tocar@intel.com>
15101 Andrey Turetskiy <andrey.turetskiy@intel.com>
15102 Ilya Verbin <ilya.verbin@intel.com>
15103 Kirill Yukhin <kirill.yukhin@intel.com>
15104 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15106 * config/i386/sse.md
15107 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
15108 (define_mode_iterator VI2_AVX2): Add V32HI mode.
15109 (define_expand "mul<mode>3<mask_name>"): Add masking.
15110 (define_insn "*mul<mode>3<mask_name>"): Ditto.
15111 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
15112 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
15113 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
15114 (define_mode_attr SDOT_PMADD_SUF): Ditto.
15115 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
15116 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
15117 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
15118 (define_insn "avx2_packusdw"): Delete.
15119 (define_insn "sse4_1_packusdw"): Ditto.
15120 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
15122 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15123 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15124 Anna Tikhonova <anna.tikhonova@intel.com>
15125 Ilya Tocar <ilya.tocar@intel.com>
15126 Andrey Turetskiy <andrey.turetskiy@intel.com>
15127 Ilya Verbin <ilya.verbin@intel.com>
15128 Kirill Yukhin <kirill.yukhin@intel.com>
15129 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15131 * config/i386/sse.md
15132 (define_insn "vec_dup<mode>"): Update constraints.
15134 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15135 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15136 Anna Tikhonova <anna.tikhonova@intel.com>
15137 Ilya Tocar <ilya.tocar@intel.com>
15138 Andrey Turetskiy <andrey.turetskiy@intel.com>
15139 Ilya Verbin <ilya.verbin@intel.com>
15140 Kirill Yukhin <kirill.yukhin@intel.com>
15141 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15143 * config/i386/sse.md
15144 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
15145 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
15146 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
15148 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15149 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15150 Anna Tikhonova <anna.tikhonova@intel.com>
15151 Ilya Tocar <ilya.tocar@intel.com>
15152 Andrey Turetskiy <andrey.turetskiy@intel.com>
15153 Ilya Verbin <ilya.verbin@intel.com>
15154 Kirill Yukhin <kirill.yukhin@intel.com>
15155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15157 * config/i386/sse.md
15158 (define_expand "mul<mode>3<mask_name>"): Add masking.
15160 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15161 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15162 Anna Tikhonova <anna.tikhonova@intel.com>
15163 Ilya Tocar <ilya.tocar@intel.com>
15164 Andrey Turetskiy <andrey.turetskiy@intel.com>
15165 Ilya Verbin <ilya.verbin@intel.com>
15166 Kirill Yukhin <kirill.yukhin@intel.com>
15167 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15169 * config/i386/sse.md
15170 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
15171 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
15173 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15175 Anna Tikhonova <anna.tikhonova@intel.com>
15176 Ilya Tocar <ilya.tocar@intel.com>
15177 Andrey Turetskiy <andrey.turetskiy@intel.com>
15178 Ilya Verbin <ilya.verbin@intel.com>
15179 Kirill Yukhin <kirill.yukhin@intel.com>
15180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15182 * config/i386/sse.md
15183 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
15184 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
15185 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
15188 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15189 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15190 Anna Tikhonova <anna.tikhonova@intel.com>
15191 Ilya Tocar <ilya.tocar@intel.com>
15192 Andrey Turetskiy <andrey.turetskiy@intel.com>
15193 Ilya Verbin <ilya.verbin@intel.com>
15194 Kirill Yukhin <kirill.yukhin@intel.com>
15195 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15197 * config/i386/sse.md
15198 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
15199 use VF_128_256 mode iterator and update assembler emit code.
15200 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
15201 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
15202 Add masking, use VF_128_256 mode iterator.
15203 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
15204 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
15205 Add masking, use VF_128_256 mode iterator and update assembler emit
15207 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
15208 (define_mode_attr avx512flogicsuff): Delete.
15209 (define_insn "avx512f_<logic><mode>"): Ditto.
15210 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
15212 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
15214 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15215 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15216 Anna Tikhonova <anna.tikhonova@intel.com>
15217 Ilya Tocar <ilya.tocar@intel.com>
15218 Andrey Turetskiy <andrey.turetskiy@intel.com>
15219 Ilya Verbin <ilya.verbin@intel.com>
15220 Kirill Yukhin <kirill.yukhin@intel.com>
15221 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15223 * config/i386/sse.md
15224 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
15225 (define_expand "vashr<mode>3<mask_name>"): Add masking,
15226 use VI12_128 mode iterator.
15227 (define_expand "ashrv2di3<mask_name>"): New.
15229 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15230 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15231 Anna Tikhonova <anna.tikhonova@intel.com>
15232 Ilya Tocar <ilya.tocar@intel.com>
15233 Andrey Turetskiy <andrey.turetskiy@intel.com>
15234 Ilya Verbin <ilya.verbin@intel.com>
15235 Kirill Yukhin <kirill.yukhin@intel.com>
15236 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15238 * config/i386/i386.c
15239 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
15240 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
15241 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
15242 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
15243 CODE_FOR_avx512vl_ucmpv4si3_mask.
15244 * config/i386/sse.md
15245 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
15246 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
15248 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
15249 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
15250 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
15251 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
15252 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
15253 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
15255 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15256 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15257 Anna Tikhonova <anna.tikhonova@intel.com>
15258 Ilya Tocar <ilya.tocar@intel.com>
15259 Andrey Turetskiy <andrey.turetskiy@intel.com>
15260 Ilya Verbin <ilya.verbin@intel.com>
15261 Kirill Yukhin <kirill.yukhin@intel.com>
15262 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15264 * config/i386/sse.md
15265 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
15266 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
15267 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
15268 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
15269 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
15270 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
15271 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15272 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15273 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
15275 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15277 Anna Tikhonova <anna.tikhonova@intel.com>
15278 Ilya Tocar <ilya.tocar@intel.com>
15279 Andrey Turetskiy <andrey.turetskiy@intel.com>
15280 Ilya Verbin <ilya.verbin@intel.com>
15281 Kirill Yukhin <kirill.yukhin@intel.com>
15282 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15284 * config/i386/sse.md
15285 (define_insn "avx512f_blendm<mode>"): Delete.
15286 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
15287 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
15288 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
15289 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
15291 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15294 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15297 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15299 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
15300 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15301 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15302 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15305 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15308 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15310 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15313 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15316 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15319 2014-10-14 Richard Biener <rguenther@suse.de>
15321 PR tree-optimization/63512
15322 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15325 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15328 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15329 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15331 (negsf2_i): Rename to *negsf2_i.
15332 (abssf2_i): Rename to *abssf2_i.
15333 (negdf2_i): Rename to *negdf2_i.
15334 (absdf2_i): Rename to *absdf2_i.
15336 2014-10-14 Felix Yang <felix.yang@huawei.com>
15337 Jeff Law <law@redhat.com>
15339 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15340 "replace" into boolean bitfields; turn member "loop_depth" into a short
15341 integer; add new member "no_equiv" and "reserved".
15342 (no_equiv): Set no_equiv of struct equivalence if register is marked
15343 as having no known equivalence.
15344 (update_equiv_regs): Check all definitions for a multiple-set
15345 register to make sure that the RHS have the same value.
15347 2014-10-13 Richard Henderson <rth@redhat.com>
15349 * combine-stack-adj.c (no_unhandled_cfa): New.
15350 (maybe_merge_cfa_adjust): New.
15351 (combine_stack_adjustments_for_block): Use them.
15353 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15355 * Makefile.in (TAGS): Tag ../include files.
15357 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15359 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15360 to rs6000_dbx_register_number.
15361 (DWARF_FRAME_REGNUM): Redefine as identity map.
15362 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15363 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15364 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15365 argument to handle .debug_frame and .eh_frame directly. Always
15366 translate SPE high register numbers. Add special treatment for CR,
15367 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15369 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15370 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15371 (RS6000_USE_DWARF_NUMBERING): Define.
15372 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15373 (RS6000_USE_DWARF_NUMBERING): Define.
15374 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15375 (RS6000_USE_DWARF_NUMBERING): Define.
15376 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15377 (RS6000_USE_DWARF_NUMBERING): Define.
15378 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15379 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15381 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15383 * config/i386/i386.c (ix86_address_cost): Lower cost for
15384 when address contains GOT register.
15386 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15387 Vladimir Makarov <vmakarov@redhat.com>
15390 PR middle-end/47602
15391 PR rtl-optimization/55458
15392 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15393 (ix86_init_pic_reg): New.
15394 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15395 (ix86_save_reg): Likewise.
15396 (ix86_expand_prologue): Remove PIC register initialization
15397 now performed in ix86_init_pic_reg.
15398 (ix86_output_function_epilogue): Add check on pseudo register.
15399 (set_pic_reg_ever_alive): New.
15400 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15401 set_pic_reg_ever_alive.
15402 (legitimize_tls_address): Likewise.
15403 (ix86_pic_register_p): New check.
15404 (ix86_delegitimize_address): Add check on pseudo register.
15405 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15406 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15407 (TARGET_INIT_PIC_REG): New.
15408 (TARGET_USE_PSEUDO_PIC_REG): New.
15409 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15410 if pic_offset_table_rtx exists.
15411 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15413 * doc/tm.texi: Regenerate.
15414 * function.c (assign_parms): Generate pseudo register for PIC.
15415 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15417 * ira-color.c (color_pass): Add check on pseudo register.
15418 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15420 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15422 (ira): Add target specific PIC register initialization.
15423 (do_reload): Keep PIC pseudo register.
15424 * lra-assigns.c (spill_for): Add checks on pseudo register.
15425 * lra-constraints.c (contains_symbol_ref_p): New.
15426 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15428 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15429 * target.def (use_pseudo_pic_reg): New.
15430 (init_pic_reg): New.
15432 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15434 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15435 Remove m_SILVERMONT and m_INTEL from the tune.
15437 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15439 PR libfortran/63471
15440 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15441 when _HPUX_SOURCE is defined.
15443 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15445 PR tree-optimization/62127
15446 * tree.c (remap_type_1): When remapping array, remap
15449 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15451 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15452 longer impact parallelization.
15454 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15457 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15459 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15461 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15463 2014-10-13 Richard Biener <rguenther@suse.de>
15465 PR tree-optimization/63419
15466 * gimple-fold.h (gimple_convert): New function.
15467 * gimple-fold.c (gimple_convert): Likewise.
15468 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15469 to split out required conversions early.
15471 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15473 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15474 Add the parts of an insn in reverse order, with the pattern at
15475 the top of the queue. Detect when we're iterating over a SEQUENCE
15476 pattern and in that case just consider patterns of subinstructions.
15478 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15481 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15483 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15485 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15486 address. Use def chains to handle GBR clobbering call insns.
15488 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15490 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15491 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15492 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15493 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15494 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15495 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15496 * doc/gty.texi (for_user): Document new option.
15497 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15499 (walk_type): Don't error out on for_user option.
15500 (write_func_for_structure): Emit user marking routines if requested by
15502 (write_local_func_for_structure): Likewise.
15503 (main): Mark types with for_user option as used.
15504 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15505 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15506 * hash-table.h (ggc_hasher): New struct.
15507 (hash_table::create_ggc): New function.
15508 (gt_pch_nx): New overload for hash_table.
15510 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15512 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15513 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15514 * config/sh/sh.c: Likewise.
15515 * config/sh/sh-mem.cc: Likewise.
15516 * config/sh/sh.md: Likewise.
15517 * config/sh/predicates.md: Likewise.
15518 * config/sh/sync.md: Likewise.
15520 2014-10-11 Martin Liska <mliska@suse.cz>
15522 PR middle-end/63376
15523 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15524 for call_cgraph_insertion_hooks added.
15526 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15529 * stor-layout.c (min_align_of_type): Don't decrease alignment
15530 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15531 TYPE_USER_ALIGN is set.
15533 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15535 PR rtl-optimization/63483
15536 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15537 references when alignment ANDs are involved.
15538 (write_dependence_p): Ditto.
15539 (may_alias_p): Ditto.
15541 2014-10-10 Marek Polacek <polacek@redhat.com>
15543 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15544 * doc/invoke.texi: Document -fsanitize=object-size.
15545 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15546 or it into SANITIZE_UNDEFINED.
15547 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15548 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15549 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15550 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15551 * ubsan.c: Include tree-object-size.h.
15552 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15553 (ubsan_expand_bounds_ifn): Use false instead of 0.
15554 (ubsan_expand_objsize_ifn): New function.
15555 (instrument_object_size): New function.
15556 (pass_ubsan::execute): Add object size instrumentation.
15557 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15559 2014-10-10 Richard Henderson <rth@redhat.com>
15562 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15563 Restrict the set of expressions we're willing to move.
15565 2014-10-10 Jeff Law <law@redhat.com>
15567 * ira.c (struct equivalence): Promote INIT_INSNs field to
15568 an rtx_insn_list. Add comments.
15569 (no_equiv): Promote LIST to an rtx_insn_list. Update
15570 testing for and creating the special marker. Use methods
15571 to extract the insn and next pointers. Promote INSN to an
15573 (update_equiv_regs): Update test for special marker in the
15576 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15578 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15579 * configure: Regenerate.
15580 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15581 TARGET_FIX_ERR_A53_835769_DEFAULT.
15582 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15584 * doc/install.texi (aarch64*-*-*): Document
15585 new --enable-fix-cortex-a53-835769 option.
15587 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15588 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15590 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15591 (ADJUST_INSN_LENGTH): Define.
15592 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15593 * config/aarch64/aarch64.c (is_mem_p): New function.
15594 (is_memory_op): Likewise.
15595 (aarch64_prev_real_insn): Likewise.
15596 (is_madd_op): Likewise.
15597 (dep_between_memop_and_curr): Likewise.
15598 (aarch64_madd_needs_nop): Likewise.
15599 (aarch64_final_prescan_insn): Likewise.
15600 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15601 and -mno-fix-cortex-a53-835769 options.
15603 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15605 PR tree-optimization/63464
15606 * tree-switch-conversion.c (struct case_bit_test): Remove
15607 hi and lo fields, add wide_int mask field.
15608 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15609 hi/lo fields into wide_int mask operations, optimize by pretending
15610 minval to be 0 if maxval is small enough.
15611 (process_switch): Adjust caller.
15613 2014-10-10 Richard Biener <rguenther@suse.de>
15615 PR tree-optimization/63379
15616 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15617 a neutral operand for min/max when it is not a reduction chain.
15619 2014-10-10 Richard Biener <rguenther@suse.de>
15621 PR tree-optimization/63476
15622 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15623 (BB_LIVE_VOP_ON_EXIT): New define.
15624 (create_expression_by_pieces): Assign VUSEs to stmts.
15625 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15626 (pass_pre::execute): Assert virtual SSA form is up-to-date
15629 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15631 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15633 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15635 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15638 2014-10-09 Richard Biener <rguenther@suse.de>
15640 PR tree-optimization/63380
15641 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15644 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15646 * config/avr/avr.opt (mmcu=): Change to have a string value.
15647 (mn-flash=, mskip-bug, march=, mrmw): New options.
15648 (HeaderInclude): New.
15649 (mmcu=): Remove Var / Init clauses.
15650 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15652 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15653 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15654 (SYMBOL_FLAG_IO_LOW): Define.
15655 (avr_device_to_as, avr_device_to_ld): Don't declare.
15656 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15657 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15658 (EXTRA_SPEC_FUNCTIONS): Don't define.
15659 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15660 (LINK_SPEC): Translate -arch= option to -m= option.
15661 Don't use device_to_ld / device_to_data_start.
15662 (STARTFILE_SPEC): Now empty.
15663 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15664 * config/avr/gen-avr-mmcu-specs.c: New file.
15665 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15666 (s-device-specs): Likewise.
15667 (GCC_PASSES): Add s-device-specs.
15668 (install-driver): Depend on install-device-specs.
15669 (install-device-specs): New rule.
15670 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15671 avr_arch_index and provide fallback initialization for avr_n_flash.
15672 (varasm.h): #include.
15673 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15674 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15675 (avr_attribute_table): Add "io", "address" and "io_low".
15676 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15677 Add special handling for symbols with "io" and/or "address" attributes.
15678 (avr_asm_asm_output_aligned_bss): New function.
15679 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15680 as appropriate. Handle io_low attribute.
15681 (avr_out_sbxx_branch): Handle symbolic io addresses.
15682 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15683 avr_n_flash instead of avr_current_device->n_flash.
15684 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15685 (avr_emit_movmemhi): Likewise.
15686 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15687 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15688 Don't define avr_current_device->macro (that's the specfile's job).
15689 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15690 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15691 * config/avr/avr.md (*cpse.ne): Likewise.
15692 (mov<mode>): Use avr_eval_addr_attrib.
15693 (cbi): Change constraint for low_io_address_operand operand to "i".
15694 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15695 * config/avr/predicates.md (io_address_operand):
15696 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15697 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15698 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15700 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15701 * config/avr/genmultilib.awk: Use -march=.
15702 Remove Multilib matches processing.
15703 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15704 * config/avr/avr-arch.h: Add double include guard.
15705 (avr_mcu_t) <library_name>: Update comment.
15706 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15707 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15708 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15709 (avr_device_to_sp8): Likewise.
15710 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15712 * doc/extend.texi (io, address): Document new AVR variable attributes.
15713 (io_low): Likewise.
15715 2014-10-09 Marek Polacek <polacek@redhat.com>
15717 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15719 2014-10-08 Richard Biener <rguenther@suse.de>
15721 PR tree-optimization/61969
15722 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15725 2014-10-09 Richard Biener <rguenther@suse.de>
15727 PR tree-optimization/63445
15728 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15729 overflow for non-equality compares.
15731 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15733 PR rtl-optimization/57003
15734 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15735 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15736 killing regs_invalidated_by_call.
15738 2014-10-08 Teresa Johnson <tejohnson@google.com>
15740 PR bootstrap/63432.
15741 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15742 (ssa_fix_duplicate_block_edges): Invoke it.
15743 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15745 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15748 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15749 atomic_fetch_<fetchop_name>si_hard,
15750 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15751 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15752 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15753 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15755 2014-10-08 Rong Xu <xur@google.com>
15757 * gcov-tool.c (profile_overlap): New driver function
15758 to compute profile overlap.
15759 (print_overlap_usage_message): New.
15760 (overlap_usage): New.
15762 (print_usage): Add calls to overlap function.
15764 * doc/gcov-tool.texi: Add documentation.
15766 2014-10-08 Steve Ellcey <sellcey@mips.com>
15768 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15769 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15771 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15773 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15774 pattern matching of MEM_REF.
15775 (check_stmt_for_type_change): Update.
15777 2014-10-08 Steve Ellcey <sellcey@mips.com>
15779 * config/mips/linux64.h: Remove.
15780 * config/mips/gnu-user64.h: Remove.
15781 * gcc.config (mips*-*-*): Remove references to linux64.h and
15783 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15784 with modified version from gnu-user64.h.
15785 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15786 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15787 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15789 (GNU_USER_LINK_EMULATION64): Ditto.
15790 (GNU_USER_LINK_EMULATIONN32): Ditto.
15791 (GLIBC_DYNAMIC_LINKER32): Ditto.
15792 (GLIBC_DYNAMIC_LINKER64): Ditto.
15793 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15794 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15795 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15796 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15797 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15798 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15799 (GLIBC_DYNAMIC_LINKER): Delete.
15800 (UCLIBC_DYNAMIC_LINKER): Delete.
15802 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15803 Richard Biener <rguenther@suse.de>
15805 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15806 Get address space from operand 0 (BASE).
15808 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15811 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15813 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15815 * dwarf2out.c: Remove current_function_has_inlines.
15816 (gen_subprogram_die): Same.
15817 (gen_inlined_subroutine_die): Same.
15819 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15821 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15823 (_addcarry_u64): Ditto.
15824 (_addcarryx_u64): Ditto.
15826 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15828 * cgraph.h (cgraph_node::get_fun): Declare.
15829 * cgraph.c (cgraph_node::get_fun): New method.
15830 * ipa-inline.c (can_inline_edge_p): Use it.
15832 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15834 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15835 and -ftrapping-math.
15836 * lto-wrapper.c (merge_and_complain): Likewise.
15837 (run_gcc): Likewise.
15839 2014-10-06 Rong Xu <xur@google.com>
15841 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15842 * tree-profile.c: (params.h): New include.
15843 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15844 and __gcov_indirect_call_topn_counters for
15845 indirect_call_topn_profile.
15846 (gimple_init_edge_profiler): New decls for
15847 __gcov_indirect_call_topn_profiler.
15848 (gimple_gen_ic_profiler): Generate the correct profiler call.
15849 (gimple_gen_ic_func_profiler): Fix format.
15850 * value-prof.c (params.h): New include.
15851 (dump_histogram_value): Hanlde indirect_call_topn counters.
15852 (stream_in_histogram_value): Ditto.
15853 (gimple_indirect_call_to_profile): Use indirect_call_topn
15854 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15855 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15857 * value-prof.h (enum hist_type): Histrogram type for
15858 indirect_call_topn counters.
15859 * profile.c (instrument_values): Instrument
15860 indirect_call_topn counters.
15862 2014-10-06 Rong Xu <xur@google.com>
15864 * Makefile.in: Fix dependence.
15865 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15866 indirect call topn profiler.
15867 * gcov-io.h: Ditto.
15869 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15871 * calls.c (expand_call): Do not use the target as the return slot if
15872 it is not sufficiently aligned.
15874 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15876 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15877 discussion of permutes and why we don't handle them.
15879 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15881 * config/sparc/predicates.md (int_register_operand): Delete.
15883 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15885 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15887 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15889 * ubsan.h (ubsan_get_source_location): New prototype.
15890 * ubsan.c (ubsan_source_location_type): New variable.
15891 Function renamed to ...
15892 (ubsan_get_source_location_type): ... this. Cache
15893 return value in ubsan_source_location_type variable.
15894 (ubsan_source_location, ubsan_create_data): Use
15895 ubsan_get_source_location_type instead of
15896 ubsan_source_location_type.
15897 * asan.c (asan_protect_global): Don't protect globals
15898 with ubsan_get_source_location_type () type.
15899 (asan_add_global): Provide global decl location info
15902 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15904 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15907 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15909 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15911 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15913 (ipa_polymorphic_call_context::dump): Fix formating.
15914 (walk_ssa_copies): Add logic avoiding loops; update uses.
15915 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15917 2014-10-02 Mark Wielaard <mjw@redhat.com>
15920 * dwarf2out.c (gen_subprogram_die): When a member function is
15921 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15922 * langhooks.h (struct lang_hooks_for_decls): Add
15923 function_decl_deleted_p langhook.
15924 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15925 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15927 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15929 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15930 NULL pointer checks.
15931 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15932 if type doesn't change.
15933 * cgraph.h (cgraph_indirect_call_info): New flag.
15934 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15935 (cgraph_node::dump): Dump it.
15936 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15937 of context.get_dynamic_type.
15938 (ipa_make_edge_direct_to_target): Do not speculate
15939 edge that is already speuclative.
15940 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15941 speculate to __builtin_unreachable
15942 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15944 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15946 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15948 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15949 get_dynamic_type; drop TODO.
15950 * ipa-polymorphic-call.c
15951 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15952 for otr_type to be unknown.
15954 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15956 * common/config/score/score-common.c: Remove.
15957 * config.gcc: Remove support for score-*.
15958 * config/score/constraints.md: Remove.
15959 * config/score/elf.h: Remove.
15960 * config/score/predicates.md: Remove.
15961 * config/score/score-conv.h: Remove.
15962 * config/score/score-generic.md: Remove.
15963 * config/score/score-modes.def: Remove.
15964 * config/score/score-protos.h: Remove.
15965 * config/score/score.c: Remove.
15966 * config/score/score.h: Remove.
15967 * config/score/score.md: Remove.
15968 * config/score/score.opt: Remove.
15969 * doc/md.texi: Don't document score-*.
15971 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15974 * genconditions.c: Directly include ggc.h before rtl.h.
15976 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15978 * ipa-polymorphic-call.c
15979 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15980 code determining speculative type.
15981 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15983 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15985 * altivec.md (altivec_lvsl): New define_expand.
15986 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15987 (altivec_lvsr): New define_expand.
15988 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15989 * rs6000.c (rs6000_expand_builtin): Change to use
15990 altivec_lvs[lr]_direct; remove commented-out code.
15992 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15994 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15995 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15996 little endian target.
15998 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
16000 * tree-pretty-print.c (dump_location): Make it extern. Dump also
16002 * tree-pretty-print.h (dump_location): Declare.
16003 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
16004 (pp_gimple_stmt_1): Likewise.
16005 (dump_implicit_edges): Likewise.
16006 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
16010 2014-10-03 David Malcolm <dmalcolm@redhat.com>
16012 * gcc.c (driver::global_initializations): Remove "const" so
16013 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
16014 and decoded_options_count.
16016 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
16018 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
16020 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
16021 TARGET_E500_DOUBLE case here.
16023 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
16028 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
16030 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
16032 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
16033 * lto-cgraph.c (lto_output_edge, input_edge): Stream
16034 in_polymorphic_cdtor
16035 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
16036 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
16037 * cgraphclones.c (cgraph_edge::clone): Likewise.
16038 * ipa-prop.c (update_jump_functions_after_inlining,
16039 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
16040 to possible_dynamic_type_change.
16041 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
16042 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
16043 IN_POLY_CDOTR argument.
16045 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
16046 for BASE and OUTER_TYPE being NULL.
16047 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
16048 in_poly_cdtor parameter.
16050 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16052 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
16053 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
16055 (expand_vec_perm_1): Likewise.
16057 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16058 Uros Bizjak <ubizjak@gmail.com>
16060 PR tree-optimization/61403
16061 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
16062 error in comment. Also optimize 256-bit vectors for AVX2
16063 or AVX (floating vectors only), provided the first permutation
16064 can be performed in one insn.
16066 2014-10-03 David Malcolm <dmalcolm@redhat.com>
16068 * gcc.c (class driver): New class.
16069 (main): Reimplement in terms of driver::main, moving most of the
16070 locals to be locals within individual methods of class driver.
16071 The remaining locals "explicit_link_files", "decoded_options" and
16072 "decoded_options_count" are used by multiple driver:: methods, and
16073 so become member data. Doing so isolates the argc/argv reads and
16074 writes. Replace "goto out" with a special exit code from
16075 new method driver::prepare_infiles. Split out the old
16076 implementation of main into the following...
16077 (driver::main): New function, corresponding to the old "main"
16079 (driver::set_progname): New function, taken from the old
16080 "main" implementation.
16081 (driver::expand_at_files): Likewise.
16082 (driver::decode_argv): Likewise.
16083 (driver::global_initializations): Likewise.
16084 (driver::build_multilib_strings): Likewise.
16085 (driver::set_up_specs): Likewise.
16086 (driver::putenv_COLLECT_GCC): Likewise.
16087 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
16088 (driver::handle_unrecognized_options): Likewise.
16089 (driver::maybe_print_and_exit): Likewise.
16090 (driver::prepare_infiles): Likewise.
16091 (driver::do_spec_on_infiles): Likewise.
16092 (driver::maybe_run_linker): Likewise.
16093 (driver::final_actions): Likewise.
16094 (driver::get_exit_code): Likewise.
16096 2014-10-03 Yury Gribov <y.gribov@samsung.com>
16098 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
16099 don't emit empty ctors.
16101 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
16103 * convert.c (convert_to_integer): Do not introduce useless conversions
16104 between integral types.
16106 2014-10-03 David Sherwood <david.sherwood@arm.com>
16108 * ira-int.h (ira_allocno): Mark hard_regno as signed.
16110 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
16112 * lra-constraints.c (inherit_in_ebb): Handle calls with
16113 multiple return values.
16114 * caller-save.c (save_call_clobbered_regs): Likewise.
16116 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16118 * tree-vect-data-refs.c (vect_permute_load_chain,
16119 vect_shift_permute_load_chain): Fix a typo in temporary var names,
16120 suffle3 to shuffle3.
16123 * omp-low.c (taskreg_contexts): New variable.
16124 (scan_omp_parallel): Push newly created context into taskreg_contexts
16125 vector and move record layout code to finish_taskreg_scan.
16126 (scan_omp_task): Likewise.
16127 (finish_taskreg_scan): New function.
16128 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
16129 vector elements and release it.
16132 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
16133 of palignr arguments can't be used due to min 0 or max - min
16134 too high, try also op0, op1 order of palignr arguments.
16136 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
16138 * cgraph.h (ipa_polymorphic_call_context):
16139 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
16140 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
16141 * ipa-polymorphic-call.c
16142 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
16143 past end of dynamic types.
16144 (ipa_polymorphic_call_context::stream_out,
16145 speculative_outer_type): Stream dynamic flag.
16146 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
16147 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
16149 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
16151 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
16152 * ipa-prop.c (update_jump_functions_after_inlining,
16153 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
16155 2014-10-02 Teresa Johnson <tejohnson@google.com>
16157 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
16158 up when synthesizing counts to avoid rounding errors.
16160 2014-10-02 Teresa Johnson <tejohnson@google.com>
16162 PR middle-end/63422
16163 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
16164 asserts to handle incoming insanities.
16166 2014-10-02 Martin Jambor <mjambor@suse.cz>
16168 PR tree-optimization/63375
16169 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
16172 2014-10-02 Olivier Hainque <hainque@adacore.com>
16174 * Makefile.in (CROSS): Define, to @CROSS.
16176 2014-10-02 Jakub Jelinek <jakub@redhat.com>
16179 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
16180 if it expands to a single insn only.
16181 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
16182 fail unless in_order is true. Add forward declaration.
16183 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
16184 is useful for one_operand_p.
16185 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
16187 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16189 * cgraphclones.c (build_function_type_skip_args): Do not make new
16190 type variant of old.
16192 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16194 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
16195 when speculation is added.
16196 (ipa_edge_args): Add polymorphic_call_contexts.
16197 (ipa_get_ith_polymorhic_call_context): New accesor.
16198 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
16199 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
16200 (ipa_compute_jump_functions_for_edge): Compute contexts.
16201 (update_jump_functions_after_inlining): Update contexts.
16202 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
16203 update dumping; add speculative edge creation.
16204 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
16206 (update_indirect_edges_after_inlining): Pass down context.
16207 (ipa_edge_duplication_hook): Duplicate contexts.
16208 (ipa_write_node_info): Stream out contexts.
16209 (ipa_read_node_info): Stream in contexts.
16210 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
16212 (try_speculative_devirtualization): New function.
16213 * ipa-utils.h (try_speculative_devirtualization): Declare.
16215 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16217 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
16218 dumping during WPA.
16220 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16222 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
16225 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16227 * ipa-polymorphic-call.c
16228 (ipa_polymorphic_call_context::restrict_to_inner_class):
16229 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
16230 use speculation_consistent_p to do so; Add CONSDER_BASES
16231 and CONSIDER_PLACEMENT_NEW parameters.
16232 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
16233 short circuit obvious cases.
16234 (ipa_polymorphic_call_context::dump): Improve formatting.
16235 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
16236 combine_speculation_with to record speculations; Do not ICE when
16237 object is located in pointer type decl; do not ICE for methods
16238 of UNION_TYPE; do not record nonpolymorphic types.
16239 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
16240 (ipa_polymorphic_call_context::combine_speculation_with): New method.
16241 (ipa_polymorphic_call_context::combine_with): New method.
16242 (ipa_polymorphic_call_context::make_speculative): Move here; use
16243 combine speculation.
16244 * cgraph.h (ipa_polymorphic_call_context): Update
16245 restrict_to_inner_class prototype; add offset_by, make_speculative,
16246 combine_with, useless_p, combine_speculation_with and
16247 speculation_consistent_p methods.
16248 (ipa_polymorphic_call_context::offset_by): New method.
16249 (ipa_polymorphic_call_context::useless_p): New method.
16251 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
16253 PR rtl-optimization/62151
16254 * combine.c (can_combine_p): Allow the destination register of INSN
16255 to be clobbered in I3.
16256 (subst): Do not substitute into clobbers of registers.
16258 2014-10-01 Jakub Jelinek <jakub@redhat.com>
16261 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
16262 offset, TARGET_MEM_REF and SSA_NAME.
16264 * config/i386/i386.c (expand_vec_perm_palignr): Handle
16265 256-bit vectors for TARGET_AVX2.
16267 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
16268 dfirst permutation.
16271 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
16272 argument to avx2_permv2ti.
16274 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16276 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
16278 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
16280 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
16281 (fmod<mode>3): Ditto.
16282 (fpremxf4_i387): Ditto.
16283 (reminderxf3): Ditto.
16284 (reminder<mode>3): Ditto.
16285 (fprem1xf4_i387): Ditto.
16287 2014-09-30 Teresa Johnson <tejohnson@google.com>
16289 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
16290 duplicate_blocks bitmap.
16291 (remove_ctrl_stmt_and_useless_edges): Ditto.
16292 (create_block_for_threading): Ditto.
16293 (compute_path_counts): New function.
16294 (update_profile): Ditto.
16295 (recompute_probabilities): Ditto.
16296 (update_joiner_offpath_counts): Ditto.
16297 (freqs_to_counts_path): Ditto.
16298 (clear_counts_path): Ditto.
16299 (ssa_fix_duplicate_block_edges): Update profile info.
16300 (ssa_create_duplicates): Pass new parameter.
16301 (ssa_redirect_edges): Remove old profile update.
16302 (thread_block_1): New duplicate_blocks bitmap,
16303 remove old profile update.
16304 (thread_single_edge): Pass new parameter.
16306 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16308 PR middle-end/62120
16309 * varasm.c (decode_reg_name_and_count): Check availability for
16310 registers from ADDITIONAL_REGISTER_NAMES.
16312 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16315 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16316 (PLUGIN_HEADERS): Add pass-instances.def.
16318 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16320 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16322 * config/aarch64/aarch64-simd.md
16323 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16324 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16325 (vqdmulls_lane_s32): Fix return type.
16326 (vqdmulls_laneq_s32): New.
16328 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16330 PR inline-asm/63282
16331 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16332 or invert_jump_1 if jump isn't any_condjump_p.
16334 2014-09-30 Terry Guo <terry.guo@arm.com>
16336 * config/arm/arm-cores.def (cortex-m7): New core name.
16337 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16339 * config/arm/arm-tables.opt: Regenerated.
16340 * config/arm/arm-tune.md: Regenerated.
16341 * config/arm/arm.h (TARGET_VFP5): New macro.
16342 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16343 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16344 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16345 * doc/invoke.texi: Document new cpu and fpu names.
16347 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16349 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16350 before sinking insn.
16352 2014-09-30 David Sherwood <david.sherwood@arm.com>
16354 * ira-int.h (ira_allocno): Add "wmode" field.
16355 * ira-build.c (create_insn_allocnos): Add new "parent" function
16357 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16358 that cannot be accessed in wmode.
16360 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16362 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16365 2014-09-29 Andi Kleen <ak@linux.intel.com>
16367 * opts.c (print_filtered_help): Print --param min/max/default
16370 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16372 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16374 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16376 * tree-vrp.c (get_single_symbol): New function.
16377 (build_symbolic_expr): Likewise.
16378 (symbolic_range_based_on_p): New predicate.
16379 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16380 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16381 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16382 operand is symbolic and based on the other operand.
16384 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16386 * config/microblaze/microblaze.md (call_internal1): Use VOID
16387 instead of SI to fix "((void (*)(void)) 0)()" issue
16389 2014-09-29 Nick Clifton <nickc@redhat.com>
16391 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16392 CLOBBER rtx for naked functions.
16393 (msp430_expand_epilogue): Likewise.
16394 (msp430_use_f5_series_hwmult): Cache result.
16395 (use_32bit_hwmult): Cache result.
16396 (msp430_no_hwmult): New function.
16397 (msp430_output_labelref): Use it.
16399 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16401 PR middle-end/63247
16402 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16403 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16404 use the alignment of avar rather than ovar.
16406 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16408 * config/pa/pa.c (pa_output_function_epilogue): Only update
16409 last_address when a nonnote insn is found.
16411 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16414 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16417 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16420 * ipa-polymorphic-call.c
16421 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16422 in checking array size.
16424 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16426 PR middle-end/35545
16427 * passes.def (pass_tracer): Move before last dominator pass.
16429 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16431 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16433 (run_attempt): Handle errors of "pex_run" invocation.
16435 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16437 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16438 (CC1_SPEC): Define.
16439 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16440 (TARGET_ASAN_SHADOW_OFFSET): Define.
16442 2014-09-26 Martin Liska <mliska@suse.cz>
16444 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16446 * cgraph.h: Likewise.
16447 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16448 argument introduced.
16449 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16451 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16452 transformed to global.
16453 * tree-ssa-alias.h: Likewise.
16455 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16456 Max Ostapenko <m.ostapenko@partner.samsung.com>
16458 * common.opt: New option.
16459 * doc/invoke.texi: Describe new option.
16460 * gcc.c (execute): Don't free first string early, but at the end
16461 of the function. Call retry_ice if compiler exited with
16463 (main): Factor out common code.
16464 (print_configuration): New function.
16465 (files_equal_p): Likewise.
16466 (check_repro): Likewise.
16467 (run_attempt): Likewise.
16468 (do_report_bug): Likewise.
16469 (append_text): Likewise.
16470 (try_generate_repro): Likewise
16472 2014-09-25 Andi Kleen <ak@linux.intel.com>
16474 * config/i386/i386.c (x86_print_call_or_nop): New function.
16475 (x86_function_profiler): Support -mnop-mcount and
16477 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16478 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16480 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16482 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16483 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16484 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16487 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16489 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16490 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16491 types_must_be_same_for_odr, types_odr_comparable): Declare.
16492 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16493 * ipa-polymorphic-call.c: New file.
16494 (contains_polymorphic_type_p, possible_placement_new,
16495 ipa_polymorphic_call_context::restrict_to_inner_class,
16496 contains_type_p, decl_maybe_in_construction_p,
16497 ipa_polymorphic_call_context::stream_out,
16498 ipa_polymorphic_call_context::debug,
16499 ipa_polymorphic_call_context::stream_in,
16500 ipa_polymorphic_call_context::set_by_decl,
16501 ipa_polymorphic_call_context::set_by_invariant,
16503 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16504 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16505 extr_type_from_vtbl_ptr_store, record_known_type
16506 check_stmt_for_type_change,
16507 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16509 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16510 and streamer-hooks.h
16511 (contains_polymorphic_type_p, possible_placement_new,
16512 ipa_polymorphic_call_context::restrict_to_inner_class,
16513 contains_type_p, decl_maybe_in_construction_p,
16514 ipa_polymorphic_call_context::stream_out,
16515 ipa_polymorphic_call_context::debug,
16516 ipa_polymorphic_call_context::stream_in,
16517 ipa_polymorphic_call_context::set_by_decl,
16518 ipa_polymorphic_call_context::set_by_invariant,
16520 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16521 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16522 extr_type_from_vtbl_ptr_store, record_known_type
16523 check_stmt_for_type_change,
16524 ipa_polymorphic_call_context::get_dynamic_type): Move to
16525 ipa-polymorphic-call.c
16526 (type_all_derivations_known_p, types_odr_comparable,
16527 types_must_be_same_for_odr): Export.
16528 (type_known_to_have_no_deriavations_p): New function.
16529 * Makefile.in: Add ipa-polymorphic-call.c
16531 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16533 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16534 for better storage.
16535 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16536 (possible_polymorphic_call_targets): Instead of computing both
16537 speculative and non-speculative answers, do just one at a time.
16538 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16539 (dump_targets): Break out from ...
16540 (dump_possible_polymorphic_call_targets): ... here; dump both
16541 speculative and non-speculative lists.
16542 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16543 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16545 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16547 PR rtl-optimization/63348
16548 * emit-rtl.c (try_split): Do not emit extra barrier.
16550 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16552 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16553 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16555 (aarch64_<sur>shll2_n<mode>): Likewise.
16556 (aarch64_<sur>shr_n<mode>): Likewise.
16557 (aarch64_<sur>sra_n<mode>: Likewise.
16558 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16559 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16560 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16561 * config/aarch64/iterators.md (ve_mode): New.
16562 (offsetlr): Remap to infix text for use in new predicates.
16563 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16564 (aarch64_simd_shift_imm_hi): Likewise.
16565 (aarch64_simd_shift_imm_si): Likewise.
16566 (aarch64_simd_shift_imm_di): Likewise.
16567 (aarch64_simd_shift_imm_offset_qi): Likewise.
16568 (aarch64_simd_shift_imm_offset_hi): Likewise.
16569 (aarch64_simd_shift_imm_offset_si): Likewise.
16570 (aarch64_simd_shift_imm_offset_di): Likewise.
16571 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16572 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16573 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16574 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16576 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16578 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16579 new created BB as the intersection of live-in from "old_dest" and
16580 live-out from "bb".
16582 2014-09-25 Felix Yang <felix.yang@huawei.com>
16584 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16585 * genautomata.c (merge_states): Ditto.
16587 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16590 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16591 in instruction sequence.
16593 2014-09-25 Nick Clifton <nickc@redhat.com>
16596 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16597 in instruction sequence.
16599 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16602 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16603 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16605 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16606 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16607 Anna Tikhonova <anna.tikhonova@intel.com>
16608 Ilya Tocar <ilya.tocar@intel.com>
16609 Andrey Turetskiy <andrey.turetskiy@intel.com>
16610 Ilya Verbin <ilya.verbin@intel.com>
16611 Kirill Yukhin <kirill.yukhin@intel.com>
16612 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16614 * config/i386/sse.md
16615 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16616 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16617 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16618 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16619 Use VI8F_256_512 mode iterator.
16620 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16621 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
16623 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16625 Anna Tikhonova <anna.tikhonova@intel.com>
16626 Ilya Tocar <ilya.tocar@intel.com>
16627 Andrey Turetskiy <andrey.turetskiy@intel.com>
16628 Ilya Verbin <ilya.verbin@intel.com>
16629 Kirill Yukhin <kirill.yukhin@intel.com>
16630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16632 * config/i386/sse.md
16633 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16634 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16635 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16636 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16637 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16638 (define_insn "*vec_concatv2df"): Add EVEX version.
16640 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16642 Anna Tikhonova <anna.tikhonova@intel.com>
16643 Ilya Tocar <ilya.tocar@intel.com>
16644 Andrey Turetskiy <andrey.turetskiy@intel.com>
16645 Ilya Verbin <ilya.verbin@intel.com>
16646 Kirill Yukhin <kirill.yukhin@intel.com>
16647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16649 * config/i386/sse.md
16650 (define_insn "vec_set<mode>_0"): Add EVEX version.
16652 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16654 Anna Tikhonova <anna.tikhonova@intel.com>
16655 Ilya Tocar <ilya.tocar@intel.com>
16656 Andrey Turetskiy <andrey.turetskiy@intel.com>
16657 Ilya Verbin <ilya.verbin@intel.com>
16658 Kirill Yukhin <kirill.yukhin@intel.com>
16659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16661 * config/i386/sse.md
16663 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16665 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16666 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16667 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16668 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16669 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16670 (define_expand "sse2_cvtpd2ps_mask): New.
16671 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16672 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16674 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16676 Anna Tikhonova <anna.tikhonova@intel.com>
16677 Ilya Tocar <ilya.tocar@intel.com>
16678 Andrey Turetskiy <andrey.turetskiy@intel.com>
16679 Ilya Verbin <ilya.verbin@intel.com>
16680 Kirill Yukhin <kirill.yukhin@intel.com>
16681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16683 * config/i386/i386.c
16684 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16685 (ufix_notruncv8dfv8si2_mask_round): ... this.
16686 * config/i386/sse.md
16687 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16688 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16689 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16690 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16691 (define_expand "sse2_cvtpd2dq"): Delete.
16692 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16693 make 2nd operand const0 vector.
16694 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16696 (define_mode_attr pd2udqsuff): New.
16698 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16699 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16700 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16701 (define_expand "sse2_cvttpd2dq"): Ditto.
16702 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16703 make 2nd operand const0 vector.
16705 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16707 PR tree-optimization/63341
16708 * tree-vectorizer.h (vect_create_data_ref_ptr,
16709 vect_create_addr_base_for_vector_ref): Add another tree argument
16710 defaulting to NULL_TREE.
16711 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16712 argument, pass it down to vect_create_addr_base_for_vector_ref.
16713 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16714 add that to base_offset too if non-NULL.
16715 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16716 for dr_explicit_realign_optimized set it to vector byte size
16717 - 1 instead of setting offset, pass byte_offset down to
16718 vect_create_data_ref_ptr.
16720 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16722 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16723 forgotten debug output; canonicalize querries more wtih LTO.
16725 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16727 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16728 ipa-utils.h; add stream_int and stream_out methods.
16729 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16730 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16731 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16733 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16734 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16735 ipa_polymorphic_call_context::clear_speculation,
16736 ipa_polymorphic_call_context::clear_outer_type): Move here from
16738 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16739 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16740 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16741 ipa_polymorphic_call_context::clear_speculation,
16742 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16743 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16745 (ipa_polymorphic_call_context::stream_out): New method.
16746 (ipa_polymorphic_call_context::stream_in): New method.
16747 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16748 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16750 (ipa_analyze_call_uses): Simplify.
16751 (update_indirect_edges_after_inlining): Do not care about outer_type.
16752 (ipa_write_indirect_edge_info): Update.
16753 (ipa_write_indirect_edge_info): Likewise.
16754 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16755 (dump_edge_flags): Break out from ...
16756 (cgraph_node::dump): ... here; dump indirect edges.
16758 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16760 * ipa-utils.h (polymorphic_call_context): Add
16761 metdhos dump, debug and clear_outer_type.
16762 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16763 (ipa_polymorphic_call_context::clear_outer_type): New method.
16764 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16765 * ipa-devirt.c (types_odr_comparable): New function.
16766 (types_must_be_same_for_odr): New function.
16767 (odr_subtypes_equivalent_p): Simplify.
16768 (possible_placement_new): Break out from ...
16769 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16770 be more cuatious about returning false in cases the context may be
16771 valid in derived type or via placement new.
16772 (contains_type_p): Clear maybe_derived_type
16773 (ipa_polymorphic_call_context::dump): New method.
16774 (ipa_polymorphic_call_context::debug): New method.
16775 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16776 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16777 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16778 (possible_polymorphic_call_targets): Trust
16779 context.restrict_to_inner_class to suceed on all valid cases;
16780 remove confused sanity check.
16781 (dump_possible_polymorphic_call_targets): Simplify.
16783 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16785 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16786 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16787 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16788 varpool.c: Rename all instances of DECL_ABSTRACT to
16791 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16793 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16794 special handling for stores whose SET_SRC is an UNSPEC (such as
16797 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16799 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16800 !REG_P (src) to release more instruction sink opportunities.
16802 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16804 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16805 move costs for 128-bit types.
16807 2014-09-24 Martin Jambor <mjambor@suse.cz>
16809 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16810 when duplicating a PASS_THROUGH jump function when creating a
16813 2014-09-24 Marek Polacek <polacek@redhat.com>
16817 * asan.c (maybe_instrument_call): Add default case.
16818 * ipa-pure-const.c (special_builtin_state): Likewise.
16819 * predict.c (expr_expected_value_1): Likewise.
16820 * lto-streamer-out.c (write_symbol): Initialize variable.
16822 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16824 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16826 (vmuld_laneq_f64): Likewise.
16827 (vmuls_lane_f32): Likewise.
16828 (vmuls_laneq_f32): Likewise.
16830 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16833 * varpool.c (varpool_node::add): Pass decl attributes
16834 to lookup_attribute.
16836 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16839 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16841 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16843 PR tree-optimization/63266
16844 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16845 marker for unknown byte value.
16846 (MARKER_MASK): New macro.
16847 (MARKER_BYTE_UNKNOWN): New macro.
16848 (HEAD_MARKER): New macro.
16849 (do_shift_rotate): Mark bytes with unknown values due to sign
16850 extension when doing an arithmetic right shift. Replace hardcoded
16851 mask for marker by new MARKER_MASK macro.
16852 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16853 numbers accordingly.
16855 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16857 Anna Tikhonova <anna.tikhonova@intel.com>
16858 Ilya Tocar <ilya.tocar@intel.com>
16859 Andrey Turetskiy <andrey.turetskiy@intel.com>
16860 Ilya Verbin <ilya.verbin@intel.com>
16861 Kirill Yukhin <kirill.yukhin@intel.com>
16862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16864 * config/i386/sse.md
16866 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16868 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16869 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16871 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16872 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16873 Anna Tikhonova <anna.tikhonova@intel.com>
16874 Ilya Tocar <ilya.tocar@intel.com>
16875 Andrey Turetskiy <andrey.turetskiy@intel.com>
16876 Ilya Verbin <ilya.verbin@intel.com>
16877 Kirill Yukhin <kirill.yukhin@intel.com>
16878 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16880 * config/i386/sse.md
16881 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16882 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16883 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16884 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16885 (define_expand "avx512vl_pshuflw_mask"): New.
16886 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16887 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16888 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16889 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16890 (define_expand "avx512vl_pshufhw_mask"): New.
16891 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16893 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16894 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16895 Anna Tikhonova <anna.tikhonova@intel.com>
16896 Ilya Tocar <ilya.tocar@intel.com>
16897 Andrey Turetskiy <andrey.turetskiy@intel.com>
16898 Ilya Verbin <ilya.verbin@intel.com>
16899 Kirill Yukhin <kirill.yukhin@intel.com>
16900 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16902 * config/i386/i386.c
16903 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16904 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16905 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16906 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16907 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16908 * config/i386/sse.md
16909 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16911 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16912 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16914 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16915 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16916 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16917 (define_expand "avx512vl_pshufd_mask"): New.
16918 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16920 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16922 Anna Tikhonova <anna.tikhonova@intel.com>
16923 Ilya Tocar <ilya.tocar@intel.com>
16924 Andrey Turetskiy <andrey.turetskiy@intel.com>
16925 Ilya Verbin <ilya.verbin@intel.com>
16926 Kirill Yukhin <kirill.yukhin@intel.com>
16927 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16929 * config/i386/i386.c
16930 (CODE_FOR_avx2_extracti128): Rename to ...
16931 (CODE_FOR_avx_vextractf128v4di): this.
16932 (CODE_FOR_avx2_inserti128): Rename to ...
16933 (CODE_FOR_avx_vinsertf128v4di): this.
16934 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16935 CODE_FOR_avx_vextractf128v4di.
16936 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16937 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16938 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16939 CODE_FOR_avx512vl_vinsertv8si.
16940 * config/i386/sse.md
16942 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16943 AVX512_VEC mode iterator.
16945 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16948 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16949 AVX512_VEC_2 mode iterator.
16950 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16951 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16952 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16953 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16954 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16955 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16956 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16957 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16958 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16959 (define_expand "avx2_extracti128"): Delete.
16960 (define_expand "avx2_inserti128"): Ditto.
16962 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16964 Anna Tikhonova <anna.tikhonova@intel.com>
16965 Ilya Tocar <ilya.tocar@intel.com>
16966 Andrey Turetskiy <andrey.turetskiy@intel.com>
16967 Ilya Verbin <ilya.verbin@intel.com>
16968 Kirill Yukhin <kirill.yukhin@intel.com>
16969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16971 * config/i386/sse.md
16972 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16973 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16974 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16975 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16976 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16977 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16978 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16979 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16980 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16981 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16982 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16983 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16984 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16986 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16988 PR rtl-optimization/63210
16989 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16990 HARD_REGNO is not available for CONFLICT_A.
16992 2014-09-23 Andi Kleen <ak@linux.intel.com>
16994 * cgraph.h (symtab_node): Add no_reorder attribute.
16995 (symbol_table::output_asm_statements): Remove.
16996 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16997 (cgraph_node::create_version_clone): Dito.
16998 (symbol_table::output_asm_statements): Remove.
16999 * trans-mem.c (ipa_tm_create_version_alias): Dito.
17000 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
17001 (output_in_order): Add no_reorder flag. Only handle no_reorder
17003 (symbol_table::compile): Add separate pass for no_reorder nodes.
17004 (process_common_attributes): Set no_reorder flag in symtab node.
17006 (process_function_and_variable_attributes): Pass symtab nodes to
17007 process_common_attributes.
17008 * doc/extend.texi (no_reorder): Document no_reorder attribute.
17009 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
17010 (lto_output_varpool_node): Dito.
17011 (input_overwrite_node): Dito.
17012 (input_varpool_node): Dito.
17013 * varpool.c (varpool_node::add): Set no_reorder attribute.
17014 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
17015 (symbol_table::output_variables): Dito.
17016 * symtab.c (symtab_node::dump_base): Print no_reorder.
17018 2014-09-23 Jiong Wang <jiong.wang@arm.com>
17020 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
17021 not be INVALID_REGNUM.
17023 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
17025 * configure: Regenerate.
17027 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
17029 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
17030 when result_mode == shift_mode.
17032 2014-09-23 Kostya Serebryany <kcc@google.com>
17034 Update to match the changed asan API.
17035 * asan.c (asan_global_struct): Update the __asan_global definition
17036 to match the new API.
17037 (asan_add_global): Ditto.
17038 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
17041 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17043 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
17044 refine the constraints used on 32/64-bit floating point moves.
17045 (f32_av): Likewise.
17046 (f64_vsx): Likewise.
17047 (f64_dm): Likewise.
17048 (f64_av): Likewise.
17049 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
17050 (BOOL_REGS_OP1): Likewise.
17051 (BOOL_REGS_OP2): Likewise.
17052 (BOOL_REGS_UNARY): Likewise.
17053 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
17054 32/64-bit floating point moves. Do not use wa, instead use ww/ws
17055 for moves involving VSX registers. Do not use constraints that
17056 target VSX registers for decimal types.
17057 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
17058 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
17060 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
17062 * tree.h (int_bit_position): Turn into inline function;
17063 implement using wide int.
17064 * tree.c (int_bit_position): Remove.
17066 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
17069 * target-globals.c (target_globals::~target_globals): Fix location
17070 of ira_int destruction.
17072 2014-09-23 Renlin Li <renlin.li@arm.com>
17074 * config/aarch64/aarch64.md (return): New.
17075 (simple_return): Likewise.
17076 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
17077 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
17079 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
17081 * common/config/aarch64/aarch64-common.c:
17082 (default_options aarch_option_optimization_table):
17083 Default to -fsched-pressure.
17085 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
17087 * cfgcleanup.c (try_optimize_cfg): Do not remove label
17088 with LABEL_PRESERVE_P flag set.
17090 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
17091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17092 Anna Tikhonova <anna.tikhonova@intel.com>
17093 Ilya Tocar <ilya.tocar@intel.com>
17094 Andrey Turetskiy <andrey.turetskiy@intel.com>
17095 Ilya Verbin <ilya.verbin@intel.com>
17096 Kirill Yukhin <kirill.yukhin@intel.com>
17097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17099 * config/i386/sse.md
17100 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
17101 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
17102 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
17103 (define_insn "sse2_shufpd_v2df_mask"): New.
17105 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
17106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17107 Anna Tikhonova <anna.tikhonova@intel.com>
17108 Ilya Tocar <ilya.tocar@intel.com>
17109 Andrey Turetskiy <andrey.turetskiy@intel.com>
17110 Ilya Verbin <ilya.verbin@intel.com>
17111 Kirill Yukhin <kirill.yukhin@intel.com>
17112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17114 * config/i386/sse.md
17115 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
17116 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
17117 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
17118 (define_insn "sse_shufps_v4sf_mask"): New.
17120 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
17121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17122 Anna Tikhonova <anna.tikhonova@intel.com>
17123 Ilya Tocar <ilya.tocar@intel.com>
17124 Andrey Turetskiy <andrey.turetskiy@intel.com>
17125 Ilya Verbin <ilya.verbin@intel.com>
17126 Kirill Yukhin <kirill.yukhin@intel.com>
17127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17129 * config/i386/sse.md
17130 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
17131 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
17132 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
17133 (define_insn "unpcklps128_mask"): New.
17135 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
17136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17137 Anna Tikhonova <anna.tikhonova@intel.com>
17138 Ilya Tocar <ilya.tocar@intel.com>
17139 Andrey Turetskiy <andrey.turetskiy@intel.com>
17140 Ilya Verbin <ilya.verbin@intel.com>
17141 Kirill Yukhin <kirill.yukhin@intel.com>
17142 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17144 * config/i386/sse.md
17145 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
17146 (define_insn "avx512vl_unpckhpd128_mask"): New.
17147 (define_expand "avx_movddup256<mask_name>"): Add masking.
17148 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
17149 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
17150 (define_insn "avx512vl_unpcklpd128_mask"): New.
17152 2014-09-22 Joseph Myers <joseph@codesourcery.com>
17154 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17155 * doc/tm.texi: Regenerate.
17156 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
17157 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17158 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
17160 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17161 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17162 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17163 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17164 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
17166 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17167 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17168 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17169 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17170 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17171 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17172 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17173 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17174 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17175 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
17176 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
17179 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
17181 * tree-ssa-ccp.c (prop_value_d): Rename to ...
17182 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
17183 * ipa-prop.c (struct type_change_info): Rename to ...
17184 (prop_type_change_info): ... this; update uses.
17185 * ggc-page.c (globals): Rename to ...
17186 (static struct ggc_globals): ... this; update uses.
17187 * tree-ssa-loop-im.c (mem_ref): Rename to ...
17188 (im_mem_ref): ... this; update uses.
17189 * ggc-common.c (loc_descriptor): Rename to ...
17190 (ggc_loc_descriptor): ... this; update uses.
17191 * lra-eliminations.c (elim_table): Rename to ...
17192 (lra_elim_table): ... this; update uses.
17193 * bitmap.c (output_info): Rename to ...
17194 (bitmap_output_info): ... this; update uses.
17195 * gcse.c (expr): Rename to ...
17196 (gcse_expr) ... this; update uses.
17197 (occr): Rename to ...
17198 (gcse_occr): .. this; update uses.
17199 * tree-ssa-copy.c (prop_value_d): Rename to ...
17200 (prop_value_t): ... this.
17201 * predict.c (block_info_def): Rename to ...
17202 (block_info): ... this; update uses.
17203 (edge_info_def): Rename to ...
17204 (edge_info): ... this; update uses.
17205 * profile.c (bb_info): Rename to ...
17206 (bb_profile_info): ... this; update uses.
17207 * alloc-pool.c (output_info): Rename to ...
17208 (pool_output_info): ... this; update uses.
17209 * ipa-cp.c (topo_info): Rename to ..
17210 (ipa_topo_info): ... this; update uses.
17211 * tree-nrv.c (nrv_data): Rename to ...
17212 (nrv_data_t): ... this; update uses.
17213 * ipa-split.c (bb_info): Rename to ...
17214 (split_bb_info): ... this one.
17215 * profile.h (edge_info): Rename to ...
17216 (edge_profile_info): ... this one; update uses.
17217 * dse.c (bb_info): Rename to ...
17218 (dse_bb_info): ... this one; update uses.
17219 * cprop.c (occr): Rename to ...
17220 (cprop_occr): ... this one; update uses.
17221 (expr): Rename to ...
17222 (cprop_expr): ... this one; update uses.
17224 2014-09-22 Jason Merrill <jason@redhat.com>
17226 * Makefile.in (check-parallel-%): Add @.
17228 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17230 * config/aarch64/geniterators.sh: New.
17231 * config/aarch64/iterators.md (VDQF_DF): New.
17232 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
17233 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
17235 2014-09-22 Peter A. Bigot <pab@pabigot.com>
17237 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
17238 -lnosys when -msim absent.
17240 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
17242 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
17244 2014-09-22 Richard Biener <rguenther@suse.de>
17246 * gimplify.c (gimplify_init_constructor): Do not leave
17247 non-GIMPLE vector constructors around.
17248 * tree-cfg.c (verify_gimple_assign_single): Verify that
17249 CONSTRUCTORs have gimple elements.
17251 2014-09-22 Jakub Jelinek <jakub@redhat.com>
17254 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
17255 insert a debug source bind stmt setting DEBUG_EXPR_DECL
17256 instead of a normal gimple assignment stmt.
17258 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17260 * config/bfin/bfin.md: Fix use of constraints in define_split.
17262 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17264 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
17265 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
17267 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17269 * hard-reg-set.h: Include hash-table.h.
17270 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
17272 * target-globals.c (target_globals::~target_globals): Call
17273 hard_regs->finalize.
17274 * rtl.h (subreg_shape): New structure.
17275 (shape_of_subreg): New function.
17276 (simplifiable_subregs): Declare.
17277 * reginfo.c (simplifiable_subreg): New structure.
17278 (simplifiable_subregs_hasher): Likewise.
17279 (simplifiable_subregs): New function.
17280 (invalid_mode_changes): Delete.
17281 (alid_mode_changes, valid_mode_changes_obstack): New variables.
17282 (record_subregs_of_mode): Remove subregs_of_mode parameter.
17283 Record valid mode changes in valid_mode_changes.
17284 (find_subregs_of_mode): Remove subregs_of_mode parameter.
17285 Update calls to record_subregs_of_mode.
17286 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
17287 handling. Initialize new variables. Update call to
17288 find_subregs_of_mode.
17289 (invalid_mode_change_p): Check new variables instead of
17290 invalid_mode_changes.
17291 (finish_subregs_of_mode): Finalize new variables instead of
17292 invalid_mode_changes.
17293 (target_hard_regs::finalize): New function.
17294 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
17295 even when CLASS_CANNOT_CHANGE_MODE is undefined.
17297 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17299 * combine.c (subst): Use simplify_subreg_regno rather than
17300 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17302 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17304 * rtl.h (subreg_info): Expand commentary
17305 * rtlanal.c (subreg_get_info): Likewise.
17307 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17309 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17310 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17311 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17313 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17315 * config/arm/arm.c: #include "tm-constrs.h"
17316 (thumb1_size_rtx_costs): Adjust rtx costs.
17318 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17320 * configure.ac (target_header_dir): Move block defining
17321 this to before the block setting inhibit_libc.
17322 (inhibit_libc): When considering $with_headers, just
17323 check it it's explicitly "no". If not, also check if
17324 $target_header_dir/stdio.h is present. If not, set
17326 * configure: Regenerate.
17328 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17330 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17332 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17334 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17335 insn for divides by integer powers of two.
17336 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17337 (mod<mode>3): Fix formatting.
17338 (three anonymous define_insn and two define_split): Delete.
17340 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17342 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17343 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17344 (floatdisf2_internal2): Ditto.
17345 (ashrdi3_no_power): Ditto. Fix formatting.
17347 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17349 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17350 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17353 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17355 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17356 constant, use addsi3 directly.
17357 (three anonymous define_insn, two define_split): Delete.
17358 (sub<mode>3): Move. Do not allow constant second operand.
17359 Generate different insn for constant first operand.
17360 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17361 (subf<mode>3_imm): New.
17362 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17363 (*plus_ltu<mode>): Only handle registers.
17364 (*plus_ltu<mode>_1): New. Handle integer third operand.
17365 (*plus_gtu<mode>): Only handle registers.
17366 (*plus_gtu<mode>_1): New. Handle integer third operand.
17368 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17370 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17371 (iorxor): New code_attr.
17372 (IORXOR): New code_attr.
17373 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17374 (ior<mode>3, xor<mode>3): Delete.
17375 (<iorxor><mode>3): New.
17376 (splitter for "big" integer ior, xor): New.
17377 (*bool<mode>3): Move. Also handle AND.
17378 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17379 (splitter for "big" integer ior, xor): Delete.
17381 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17383 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17384 (two anonymous define_insn and two define_split): Delete.
17385 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17387 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17389 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17390 (two anonymous define_insn and two define_split): Delete.
17391 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17393 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17395 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17397 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17399 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17400 (input_operand): Do not allow ca_operand.
17401 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17402 carry bit, allow SImode and Pmode.
17403 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17405 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17407 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17408 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17409 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17410 (*call_rex64_ms_sysv): Remove.
17411 (*call_value_rex64_ms_sysv): Ditto.
17412 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17414 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17416 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17417 operand 3 to "CnL".
17419 2014-09-20 Andreas Schwab <schwab@suse.de>
17421 * config/ia64/ia64.md: Remove constraints from define_split
17424 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17426 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17428 (possible_polymorphic_call_targets,
17429 dump_possible_polymorphic_call_targets,
17430 possible_polymorphic_call_target_p,
17431 possible_polymorphic_call_target_p): Simplify.
17432 (get_dynamic_type): Remove.
17433 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17434 (clear_speculation): Bring to ipa-deivrt.h
17435 (get_class_context): Rename to ...
17436 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17437 (contains_type_p): Update.
17438 (get_dynamic_type): Rename to ...
17439 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17440 (possible_polymorphic_call_targets): UPdate.
17441 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17442 * ipa-prop.c (ipa_analyze_call_uses): Update.
17444 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17446 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17447 privatize dynamic TLS variables.
17449 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17451 * diagnostic.c (warning_n): New function.
17452 * diagnostic-core.h (warning_n): Declare.
17453 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17454 output dynamic counts when available.
17456 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17458 PR tree-optimization/63255
17459 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17460 issue in setting body_removed flag.
17462 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17465 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17466 that visibility change is possible
17467 (handle_weakref_attribute): Likewise.
17468 * cgraph.h (symtab_node): Add method get_create and
17469 field refuse_visibility_changes.
17470 (symtab_node::get_create): New method.
17471 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17472 * varasm.c (mark_weak): Verify that visibility change is possible.
17474 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17476 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17477 for base_reg_operand to be common between LO_SUM and PLUS.
17478 (fusion_gpr_mem_combo): New predicate to match a fused address
17479 that combines the addis and memory offset address.
17481 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17483 (emit_fusion_gpr_load): Likewise.
17485 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17486 signature to pass each argument separately, rather than
17487 using an operands array. Rewrite the insns found by peephole2 to
17488 be a single insn, rather than hoping the insns will still be
17489 together when the peephole pass is done. Drop being called via a
17491 (emit_fusion_gpr_load): Change calling signature to be called from
17492 the fusion_gpr_load_<mode> insns with a combined memory address
17493 instead of the peephole pass passing the addis and offset
17496 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17498 (power8 fusion peephole): Drop support for doing power8 via a
17499 normal peephole that was created by the peephole2 pass.
17500 (power8 fusion peephole2): Create a new insn with the fused
17501 address, so that the fused operation is kept together after
17502 register allocation is done.
17503 (fusion_gpr_load_<mode>): Likewise.
17505 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17508 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17510 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17512 * recog.c (scratch_operand): Do not simply allow all hard registers:
17513 only allow those that are allocatable.
17515 2014-09-19 Felix Yang <felix.yang@huawei.com>
17517 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17518 comments and fix spacing to conform to coding style.
17520 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17522 * genrecog.c (validate_pattern): Allow empty constraints in
17525 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17527 * dwarf2out.c (decl_ultimate_origin): Update comment.
17528 * tree.c (block_ultimate_origin): Same.
17530 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17532 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17533 Update GCC version name to GCC 5.
17534 (rs6000_function_arg_boundary): Likewise.
17535 (rs6000_function_arg): Likewise.
17537 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17539 * config/sh/sh.md: Fix use of constraints in define_split.
17541 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17544 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17546 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17548 * doc/md.texi (Modifiers): Consistently use "read/write"
17549 nomenclature rather than "input/output".
17550 * genrecog.c (constraints_supported_in_insn_p): New.
17551 (validate_pattern): If needed, also check constraints on
17552 MATCH_SCRATCH operands.
17553 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17554 operands with no '=' or '+' modifier.
17556 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17558 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17559 scratch register as written.
17561 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17563 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17566 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17568 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17571 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17574 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17575 address load optimization force s390_optimize_prologue to leave it
17576 that way. Only do the optimization if we already decided to push
17577 r14 into a stack slot.
17579 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17581 * asan.c (build_check_stmt): Alignment arg was added.
17582 (asan_expand_check_ifn): Optimization for alignment >= 8.
17584 2014-09-19 Olivier Hainque <hainque@adacore.com>
17586 * config/i386/vxworksae.h: Remove obsolete definitions.
17587 (STACK_CHECK_PROTECT): Define.
17588 * config/i386/vx-common.h: Remove. Merge contents within
17589 config/i386/vxworks.h.
17590 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17593 2014-09-19 Olivier Hainque <hainque@adacore.com>
17595 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17596 * config/rs6000/t-vxworksmils: New file.
17597 * config/rs6000/vxworksmils.h: New file.
17599 2014-09-19 Olivier Hainque <hainque@adacore.com>
17601 * varasm.c (default_section_type_flags): Flag .persistent.bss
17602 sections as SECTION_BSS.
17604 2014-09-19 Nick Clifton <nickc@redhat.com>
17606 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17607 pop'ed registers so that DCE does not eliminate them.
17609 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17612 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17614 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17616 * system.h (LIBGCC2_TF_CEXT): Poison.
17617 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17618 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17619 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17620 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17621 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17622 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17623 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17624 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17625 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17627 2014-09-19 Kito Cheng <kito@0xlab.org>
17629 * except.h: Fix header guard.
17630 * addresses.h: Add missing header guard.
17631 * cfghooks.h: Likewise.
17632 * collect-utils.h: Likewise.
17633 * collect2-aix.h: Likewise.
17634 * conditions.h: Likewise.
17635 * cselib.h: Likewise.
17636 * dwarf2asm.h: Likewise.
17637 * graphds.h: Likewise.
17638 * graphite-scop-detection.h: Likewise.
17639 * gsyms.h: Likewise.
17640 * hw-doloop.h: Likewise.
17641 * incpath.h: Likewise.
17642 * ipa-inline.h: Likewise.
17643 * ipa-ref.h: Likewise.
17644 * ira-int.h: Likewise.
17646 * lra-int.h: Likewise.
17648 * lto-section-names.h: Likewise.
17649 * read-md.h: Likewise.
17650 * reload.h: Likewise.
17651 * rtl-error.h: Likewise.
17652 * sdbout.h: Likewise.
17653 * targhooks.h: Likewise.
17654 * tree-affine.h: Likewise.
17655 * xcoff.h: Likewise.
17656 * xcoffout.h: Likewise.
17658 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17661 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17664 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17667 * lra.c (lra): Call recog_init.
17669 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17672 * asan.c (transform_statements): Don't instrument clobber statements.
17674 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17676 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17677 to neon_load1_1reg<q>.
17679 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17682 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17683 if there are only debug stmts after the noreturn call, instead
17684 remove the debug stmts.
17686 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17688 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17689 (odr_types_equivalent_p): Use pair hash.
17690 (odr_subtypes_equivalent_p): Likewise, do structural compare
17691 on ODR types that may be mismatched.
17692 (warn_odr): Support warning when only one field is given.
17693 (odr_types_equivalent_p): Strenghten comparsions made;
17695 (add_type_duplicate): Update VISITED hash set.
17697 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17699 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17700 Enable selection of 'posix' or no thread model.
17702 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17704 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17705 when architecture is older than ARMv7.
17707 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17710 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17711 that fit exactly in a word or double word.
17713 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17715 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17716 zmm/k regs support.
17718 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17720 Anna Tikhonova <anna.tikhonova@intel.com>
17721 Ilya Tocar <ilya.tocar@intel.com>
17722 Andrey Turetskiy <andrey.turetskiy@intel.com>
17723 Ilya Verbin <ilya.verbin@intel.com>
17724 Kirill Yukhin <kirill.yukhin@intel.com>
17725 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17727 * config/i386/i386.c
17728 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17729 * config/i386/sse.md
17730 (define_mode_iterator VI48F_256): New.
17731 (define_mode_attr extract_type): Ditto.
17732 (define_mode_attr extract_suf): Ditto.
17733 (define_mode_iterator AVX512_VEC): Ditto.
17735 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17737 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17739 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17741 (define_mode_attr extract_type_2): Ditto.
17742 (define_mode_attr extract_suf_2): Ditto.
17743 (define_mode_iterator AVX512_VEC_2): Ditto.
17745 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17746 AVX512_VEC_2 mode iterator.
17747 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17748 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17749 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17750 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17751 (define_split for V16FI mode): Ditto.
17752 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17753 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17754 (define_split for VI8F_256 mode): Ditto.
17755 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17756 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17757 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17758 (define_split for VI4F_256 mode): Ditto.
17759 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17760 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17761 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17762 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17763 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17764 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17765 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17766 Update `type' attribute, remove explicit `memory' attribute calculation.
17768 2014-09-16 Kito Cheng <kito@0xlab.org>
17770 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17771 ira_spilled_reg_stack_slots_num if using lra.
17772 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17773 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17774 make sure not using lra.
17775 (ira_reuse_stack_slot): Likewise.
17776 (ira_mark_new_stack_slot): Likewise.
17778 2014-09-15 Andi Kleen <ak@linux.intel.com>
17780 * function.c (allocate_struct_function): Force
17781 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17782 profiling is disabled.
17784 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17786 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17787 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17788 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17789 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17790 macro with statically checked member functions.
17791 * rtl.h (rtx_insn::deleted): New method.
17792 (rtx_insn::set_deleted): Likewise.
17793 (rtx_insn::set_undeleted): Likewise.
17794 (INSN_DELETED_P): Remove.
17796 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17798 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17799 result of emit_jump_insn_before to a new variable.
17800 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17801 (mark_jump_label_1): Likewise.
17802 (mark_jump_label_asm): Likewise.
17803 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17804 * rtl.h (mark_jump_label): Adjust.
17806 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17808 * Makefile.in (dg_target_exps): Remove.
17809 (check_gcc_parallelize): Change to just an upper bound number.
17810 (check-%-subtargets): Always print the non-parallelized goals.
17811 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17812 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17813 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17814 check_p_numbers6): New variables.
17815 (check_p_numbers): Set to sequence from 1 to 9999.
17816 (check_p_subdirs): Set to sequence from 1 to minimum of
17817 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17819 (check-%, check-parallel-%): Rewritten so that for parallelized
17820 testing each job runs all the *.exp files, with
17821 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17823 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17825 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17827 (arc_sets_cc_p): Likewise.
17828 * config/arc/arc.c (arc_print_operand): Use methods of
17829 "final_sequence" for clarity, and to enable strengthening of
17830 locals "jump" and "delay" from rtx to rtx_insn *.
17831 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17832 rtx_insn *; use method of rtx_sequence for typesafety.
17833 (arc_get_insn_variants): Use insn method of rtx_sequence for
17835 (arc_pad_return): Likewise.
17836 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17837 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17838 dyn_cast to rtx_sequence *, using insn method for typesafety.
17839 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17840 rtx_sequence * and use insn method when invoking get_attr_length.
17841 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17842 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17843 rtx_sequence *, introducing a local "seq", using its insn method
17844 from typesafety and clarity.
17845 (add_sched_insns_for_speculation): Strengthen local "next" from
17847 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17848 (predicate_insn): Likewise.
17849 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17851 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17852 * config/epiphany/epiphany-protos.h
17853 (extern void epiphany_insert_mode_switch_use): Likewise for param
17855 (get_attr_sched_use_fpu): Likewise for param.
17856 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17857 Likewise for param "insn".
17858 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17859 param "insn" of "target_insert_mode_switch_use" callback.
17860 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17861 (frv_issues_to_branch_unit_p): Likewise.
17862 (frv_pack_insn_p): Likewise.
17863 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17864 const rtx * (i.e. mutable rtx_def * const *) to
17865 rtx_insn * const *.
17866 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17867 Strengthen first param from rtx to rtx_insn *.
17868 (output_fix_trunc): Likewise.
17869 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17870 (output_fix_trunc): Likewise.
17871 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17873 (min_insn_size): Likewise for param "insn".
17874 (get_mem_group): Likewise.
17875 (is_cmp): Likewise.
17876 (get_insn_path): Likewise.
17877 (get_insn_group): Likewise.
17878 (count_num_restricted): Likewise.
17879 (fits_dispatch_window): Likewise.
17880 (add_insn_window): Likewise.
17881 (add_to_dispatch_window): Likewise.
17882 (debug_insn_dispatch_info_file): Likewise.
17883 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17885 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17886 "cmp" and local "prev".
17887 (m32c_output_compare): Likewise for param "insn".
17888 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17889 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17890 (define_predicate "large_insn_p"): Likewise.
17891 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17892 param from rtx to rtx_insn *.
17893 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17894 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17895 (m68k_sched_attr_size): Likewise.
17896 (sched_get_opxy_mem_type): Likewise for param "insn".
17897 (m68k_sched_attr_op_mem): Likewise.
17898 (sched_mem_operand_p): Likewise.
17899 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17900 * config/mep/mep.c (mep_multi_slot): Likewise.
17901 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17903 (mips_sync_loop_insns): Likewise.
17904 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17905 method of "final_sequence" for typesafety.
17906 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17908 (mips_output_sync_loop): Likewise.
17909 (mips_sync_loop_insns): Likewise.
17910 (mips_74k_agen_init): Likewise.
17911 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17913 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17914 Strengthen param "insn" from rtx to rtx_insn *.
17915 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17917 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17918 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17919 "insn". Use method of rtx_sequence for typesafety.
17920 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17922 (branch_needs_nop_p): Likewise.
17923 (use_skip_p): Likewise.
17924 (pa_insn_refs_are_delayed): Likewise.
17925 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17926 for locals "insn", "ninsn".
17927 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17929 (is_cracked_insn): Likewise.
17930 (is_branch_slot_insn): Likewise.
17931 (is_nonpipeline_insn): Likewise.
17932 (insn_terminates_group_p): Likewise.
17933 (insn_must_be_first_in_group): Likewise.
17934 (insn_must_be_last_in_group): Likewise.
17935 (force_new_group): Likewise for param "next_insn".
17936 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17938 (s390_sched_score): Likewise.
17939 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17940 (rtx sfunc_uses_reg): Likewise for sole param.
17941 * config/sh/sh.c (sh_print_operand): Use insn method of
17942 final_sequence for typesafety.
17943 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17944 Use insn method of final_sequence for typesafety.
17945 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17946 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17948 (eligible_for_return_delay): Likewise.
17949 (eligible_for_sibcall_delay): Likewise.
17950 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17951 (eligible_for_return_delay): Likewise.
17952 (eligible_for_sibcall_delay): Likewise.
17953 * config/stormy16/stormy16-protos.h
17954 (xstormy16_output_cbranch_hi): Likewise for final param.
17955 (xstormy16_output_cbranch_si): Likewise.
17956 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17957 (xstormy16_output_cbranch_si): Likewise.
17958 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17959 * config/v850/v850.c (notice_update_cc): Likewise.
17961 * final.c (get_attr_length_1): Strengthen param "insn" and param
17962 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17963 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17964 (get_attr_min_length): Likewise.
17965 (shorten_branches): Likewise for signature of locals "length_fun"
17966 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17967 from a checked cast and use its methods for clarity and to enable
17968 strengthening local "inner_insn" from rtx to rtx_insn *.
17969 * genattr.c (gen_attr): When writing out the prototypes of the
17970 various generated "get_attr_" functions, strengthen the params of
17971 the non-const functions from rtx to rtx_insn *.
17972 Similarly, strengthen the params of insn_default_length,
17973 insn_min_length, insn_variable_length_p, insn_current_length.
17974 (main): Similarly, strengthen the param of num_delay_slots,
17975 internal_dfa_insn_code, insn_default_latency, bypass_p,
17976 insn_latency, min_issue_delay, print_reservation,
17977 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17978 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17979 to hook_int_rtx_insn_unreachable.
17980 * genattrtab.c (write_attr_get): When writing out the generated
17981 "get_attr_" functions, strengthen the param "insn" from rtx to
17982 rtx_insn *, eliminating a checked cast.
17983 (make_automaton_attrs): When writing out prototypes of
17984 "internal_dfa_insn_code_", "insn_default_latency_" functions
17985 and the "internal_dfa_insn_code" and "insn_default_latency"
17986 callbacks, strengthen their params from rtx to rtx_insn *
17987 * genautomata.c (output_internal_insn_code_evaluation): When
17988 writing out code, add a checked cast from rtx to rtx_insn * when
17989 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17990 (output_dfa_insn_code_func): Strengthen param of generated
17991 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17992 (output_trans_func): Likewise for generated function
17993 "state_transition".
17994 (output_internal_insn_latency_func): When writing out generated
17995 function "internal_insn_latency", rename params from "insn" and
17996 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17997 locals "insn" and "insn2" as rtx_insn * with checked casts once
17998 we've proven that we're not dealing with const0_rtx.
17999 (output_insn_latency_func): Strengthen param of generated
18000 function "insn_latency" from rtx to rtx_insn *.
18001 (output_print_reservation_func): Likewise for generated function
18002 "print_reservation".
18003 (output_insn_has_dfa_reservation_p): Likewise for generated
18004 function "insn_has_dfa_reservation_p".
18005 * hooks.c (hook_int_rtx_unreachable): Rename to...
18006 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
18007 from rtx to rtx_insn *.
18008 * hooks.h (hook_int_rtx_unreachable): Likewise.
18009 (extern int hook_int_rtx_insn_unreachable): Likewise.
18010 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
18011 (get_attr_min_length): Likewise.
18012 * recog.c (get_enabled_alternatives): Likewise.
18013 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
18014 * reorg.c (find_end_label): Introduce local rtx "pat" and
18015 strengthen local "insn" from rtx to rtx_insn *.
18016 (redundant_insn): Use insn method of "seq" rather than element for
18017 typesafety; strengthen local "control" from rtx to rtx_insn *.
18018 * resource.c (mark_referenced_resources): Add checked cast to
18019 rtx_insn * within INSN/JUMP_INSN case.
18020 (mark_set_resources): Likewise.
18021 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
18024 2014-09-15 David Malcolm <dmalcolm@redhat.com>
18026 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
18027 param "label" from rtx to rtx_insn *.
18028 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
18030 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
18031 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
18032 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
18033 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
18034 * final.c (default_label_align_after_barrier_max_skip): Strengthen
18035 param from rtx to rtx_insn *.
18036 (default_loop_align_max_skip): Likewise.
18037 (default_label_align_max_skip): Likewise.
18038 (default_jump_align_max_skip): Likewise.
18039 * target.def (label_align_after_barrier_max_skip): Likewise.
18040 (loop_align_max_skip): Likewise.
18041 (label_align_max_skip): Likewise.
18042 (jump_align_max_skip): Likewise.
18043 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
18044 (default_loop_align_max_skip): Likewise.
18045 (default_label_align_max_skip): Likewise.
18046 (default_jump_align_max_skip): Likewise.
18048 2014-09-15 David Malcolm <dmalcolm@redhat.com>
18050 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
18051 from const_rtx to const rtx_insn *. Update union members from rtx
18053 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
18054 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
18055 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
18056 strengthen both params from const_rtx to const rtx_insn *.
18057 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
18058 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
18059 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
18061 * target.def (can_follow_jump): Strengthen both params from
18062 const_rtx to const rtx_insn *, and update default implementation
18063 from hook_bool_const_rtx_const_rtx_true to
18064 hook_bool_const_rtx_insn_const_rtx_insn_true.
18066 2014-09-15 David Malcolm <dmalcolm@redhat.com>
18068 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
18069 "insn" from rtx to rtx_insn *.
18070 * sched-int.h (deps_start_bb): Likewise for 2nd param.
18072 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
18073 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18074 Anna Tikhonova <anna.tikhonova@intel.com>
18075 Ilya Tocar <ilya.tocar@intel.com>
18076 Andrey Turetskiy <andrey.turetskiy@intel.com>
18077 Ilya Verbin <ilya.verbin@intel.com>
18078 Kirill Yukhin <kirill.yukhin@intel.com>
18079 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18081 * config/i386/sse.md
18082 (define_insn "vcvtph2ps<mask_name>"): Add masking.
18083 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
18084 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
18085 (define_expand "vcvtps2ph_mask"): New.
18086 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
18087 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
18088 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
18090 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
18091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18092 Anna Tikhonova <anna.tikhonova@intel.com>
18093 Ilya Tocar <ilya.tocar@intel.com>
18094 Andrey Turetskiy <andrey.turetskiy@intel.com>
18095 Ilya Verbin <ilya.verbin@intel.com>
18096 Kirill Yukhin <kirill.yukhin@intel.com>
18097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18099 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
18101 (define_mode_iterator VI24_AVX512BW_1): Ditto.
18102 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
18103 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
18104 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
18105 also for TARGET_AVX512VL.
18106 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
18108 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
18110 * doc/install.texi (Options specification): add
18111 --disable-libsanitizer item.
18113 2014-09-14 James Clarke <jrtc27@jrtc27.com>
18114 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18117 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
18119 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
18120 kernel version check to avoid incrementing it after every major OS X
18122 (darwin_default_min_version): Avoid static memory buffer.
18124 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
18126 * tree.c (need_assembler_name_p): Store C++ type mangling only
18129 2014-09-13 Marek Polacek <polacek@redhat.com>
18131 * tree.c (protected_set_expr_location): Don't check whether T is
18134 2014-09-12 DJ Delorie <dj@redhat.com>
18136 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
18137 (extend_and_shift1_hipsi2): Likewise.
18138 (extend_and_shift2_hipsi2): Likewise.
18140 2014-09-12 David Malcolm <dmalcolm@redhat.com>
18142 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
18143 with NULL when dealing with an insn.
18144 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
18145 from rtx to rtx_insn *.
18146 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
18147 const_rtx to const rtx_insn *.
18148 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
18150 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
18152 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
18155 2014-09-12 Joseph Myers <joseph@codesourcery.com>
18157 * target.def (libgcc_floating_mode_supported_p): New hook.
18158 * targhooks.c (default_libgcc_floating_mode_supported_p): New
18160 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
18161 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
18162 (LIBGCC2_HAS_TF_MODE): Remove.
18163 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
18164 * doc/tm.texi: Regenerate.
18165 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
18167 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
18168 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
18169 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
18170 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
18171 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18172 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
18173 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
18174 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
18175 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
18176 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
18178 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
18179 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18180 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18181 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18182 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18183 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18184 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18185 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
18186 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
18187 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
18188 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18189 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
18190 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
18191 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
18193 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
18195 (ia64_libgcc_floating_mode_supported_p): New function.
18196 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
18197 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
18198 (IA64_NO_LIBGCC_TFMODE): Define.
18199 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
18200 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18201 (pdp11_scalar_mode_supported_p): New function.
18202 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
18203 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
18205 2014-09-12 Richard Biener <rguenther@suse.de>
18207 PR middle-end/63237
18208 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
18210 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
18212 * tree.c (integer_each_onep): New function.
18213 * tree.h (integer_each_onep): Declare it.
18214 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
18215 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
18216 (X & 1) == 0 for vector and complex.
18218 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18220 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
18222 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
18223 cost to spilling from integer to FP registers.
18225 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18227 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
18229 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
18230 are now handled correctly.
18232 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18234 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
18235 handling of CALLER_SAVE_REGS and POINTER_REGS.
18237 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18239 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
18240 the number of hard registers.
18242 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18244 Anna Tikhonova <anna.tikhonova@intel.com>
18245 Ilya Tocar <ilya.tocar@intel.com>
18246 Andrey Turetskiy <andrey.turetskiy@intel.com>
18247 Ilya Verbin <ilya.verbin@intel.com>
18248 Kirill Yukhin <kirill.yukhin@intel.com>
18249 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18251 * config/i386/sse.md
18252 (define_mode_iterator VI48_AVX512VL): New.
18253 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
18254 "avx512f_vternlog<mode>_maskz" and update mode iterator.
18255 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
18256 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
18257 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
18258 "avx512f_vternlog<mode>_mask" and update mode iterator.
18259 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
18260 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
18262 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
18263 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
18264 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
18265 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
18266 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
18267 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
18269 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18270 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18271 Anna Tikhonova <anna.tikhonova@intel.com>
18272 Ilya Tocar <ilya.tocar@intel.com>
18273 Andrey Turetskiy <andrey.turetskiy@intel.com>
18274 Ilya Verbin <ilya.verbin@intel.com>
18275 Kirill Yukhin <kirill.yukhin@intel.com>
18276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18278 * config/i386/sse.md (VI128_256): Delete.
18279 (define_mode_iterator VI124_256): New.
18280 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
18281 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
18282 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
18283 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
18284 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
18285 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
18286 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
18287 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
18289 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
18290 in presence of AVX-512.
18292 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18294 Anna Tikhonova <anna.tikhonova@intel.com>
18295 Ilya Tocar <ilya.tocar@intel.com>
18296 Andrey Turetskiy <andrey.turetskiy@intel.com>
18297 Ilya Verbin <ilya.verbin@intel.com>
18298 Kirill Yukhin <kirill.yukhin@intel.com>
18299 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18301 * config/i386/sse.md
18302 (define_expand "<avx512>_gathersi<mode>"): Rename from
18303 "avx512f_gathersi<mode>".
18304 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18305 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18306 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18307 "avx512f_gatherdi<mode>".
18308 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18309 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18311 (define_expand "<avx512>_scattersi<mode>"): Rename from
18312 "avx512f_scattersi<mode>".
18313 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18314 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18315 "avx512f_scatterdi<mode>".
18316 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18318 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18320 * ira.h (ira_finish_once): Delete.
18321 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18322 (target_ira_int::free_ira_costs): Likewise.
18323 (target_ira_int::free_register_move_costs): Likewise.
18324 (ira_finish_costs_once): Delete.
18325 * ira.c (free_register_move_costs): Replace with...
18326 (target_ira_int::free_register_move_costs): ...this new function.
18327 (target_ira_int::~target_ira_int): Define.
18328 (ira_init): Call free_register_move_costs as a member function rather
18329 than a global function.
18330 (ira_finish_once): Delete.
18331 * ira-costs.c (free_ira_costs): Replace with...
18332 (target_ira_int::free_ira_costs): ...this new function.
18333 (ira_init_costs): Call free_ira_costs as a member function rather
18334 than a global function.
18335 (ira_finish_costs_once): Delete.
18336 * target-globals.c (target_globals::~target_globals): Call the
18337 target_ira_int destructor.
18338 * toplev.c: Include lra.h.
18339 (finalize): Call lra_finish_once rather than ira_finish_once.
18341 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18343 * common.opt (flto-odr-type-merging): New flag.
18344 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18345 (types_same_for_odr): Likewise.
18346 (odr_subtypes_equivalent_p): Likewise.
18347 (add_type_duplicate): Do not walk type variants.
18348 (register_odr_type): New function.
18349 * ipa-utils.h (register_odr_type): Declare.
18350 (odr_type_p): New function.
18351 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18353 * doc/invoke.texi (-flto-odr-type-merging): Document.
18354 * tree.c (need_assembler_name_p): Compute ODR names when asked
18356 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18358 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18361 * config/i386/i386.c (ix86_option_override_internal): Also turn
18362 off OPTION_MASK_ABI_X32 for -m16.
18364 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18366 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18369 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18372 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18373 Directly forward to __*_DENORM_MIN__.
18375 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18377 * rtl.h (LABEL_REF_LABEL): New macro.
18379 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18380 of XEXP (, 0), where we know that we have a LABEL_REF.
18381 * cfgbuild.c (make_edges): Likewise.
18382 (purge_dead_tablejump_edges): Likewise.
18383 * cfgexpand.c (convert_debug_memory_address): Likewise.
18384 * cfgrtl.c (patch_jump_insn): Likewise.
18385 * combine.c (distribute_notes): Likewise.
18386 * cse.c (hash_rtx_cb): Likewise.
18387 (exp_equiv_p): Likewise.
18388 (fold_rtx): Likewise.
18389 (check_for_label_ref): Likewise.
18390 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18391 (cselib_hash_rtx): Likewise.
18392 * emit-rtl.c (mark_label_nuses): Likewise.
18393 * explow.c (convert_memory_address_addr_space): Likewise.
18394 * final.c (output_asm_label): Likewise.
18395 (output_addr_const): Likewise.
18396 * gcse.c (add_label_notes): Likewise.
18397 * genconfig.c (walk_insn_part): Likewise.
18398 * genrecog.c (validate_pattern): Likewise.
18399 * ifcvt.c (cond_exec_get_condition): Likewise.
18400 (noce_emit_store_flag): Likewise.
18401 (noce_get_alt_condition): Likewise.
18402 (noce_get_condition): Likewise.
18403 * jump.c (maybe_propagate_label_ref): Likewise.
18404 (mark_jump_label_1): Likewise.
18405 (redirect_exp_1): Likewise.
18406 (rtx_renumbered_equal_p): Likewise.
18407 * lra-constraints.c (operands_match_p): Likewise.
18408 * reload.c (operands_match_p): Likewise.
18409 (find_reloads): Likewise.
18410 * reload1.c (set_label_offsets): Likewise.
18411 * reorg.c (get_branch_condition): Likewise.
18412 * rtl.c (rtx_equal_p_cb): Likewise.
18413 (rtx_equal_p): Likewise.
18414 * rtlanal.c (reg_mentioned_p): Likewise.
18415 (rtx_referenced_p): Likewise.
18416 (get_condition): Likewise.
18417 * sched-vis.c (print_value): Likewise.
18418 * varasm.c (const_hash_1): Likewise.
18419 (compare_constant): Likewise.
18420 (const_rtx_hash_1): Likewise.
18421 (output_constant_pool_1): Likewise.
18423 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18425 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18426 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18428 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18429 cr6_test_for_lt_reverse): Ditto.
18431 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18434 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18436 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18438 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18439 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18440 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18441 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18444 (aarch64_fold_builtin): Remove all reinterpret cases.
18446 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18448 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18450 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18451 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18452 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18453 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18454 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18455 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18456 aarch64_reinterpretv2df<mode>): Delete.
18458 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18460 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18461 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18462 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18463 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18464 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18465 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18466 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18467 vreinterpret_u32_f64): Use cast.
18469 * config/aarch64/iterators.md (VD_RE): Delete.
18471 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18473 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18474 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18475 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18476 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18477 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18478 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18479 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18480 Replace inline assembler with __aarch64_vset_lane_any.
18482 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18484 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18486 (vmull_high_lane_s32): Likewise.
18487 (vmull_high_lane_u16): Likewise.
18488 (vmull_high_lane_u32): Likewise.
18490 2014-09-11 Jason Merrill <jason@redhat.com>
18493 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18495 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18498 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18499 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18500 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18502 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18503 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18504 Anna Tikhonova <anna.tikhonova@intel.com>
18505 Ilya Tocar <ilya.tocar@intel.com>
18506 Andrey Turetskiy <andrey.turetskiy@intel.com>
18507 Ilya Verbin <ilya.verbin@intel.com>
18508 Kirill Yukhin <kirill.yukhin@intel.com>
18509 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18511 * config/i386/sse.md
18512 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18513 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18514 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18516 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18517 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18519 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18521 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18522 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18523 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18524 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18525 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18526 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18527 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18528 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18530 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18532 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18533 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18534 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18536 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18538 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18539 to access removed nodes.
18541 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18543 PR tree-optimization/63186
18544 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18545 (mark_nonssa_use): Likewise.
18546 (verify_non_ssa_vars): Verify all header blocks for label
18549 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18551 Anna Tikhonova <anna.tikhonova@intel.com>
18552 Ilya Tocar <ilya.tocar@intel.com>
18553 Andrey Turetskiy <andrey.turetskiy@intel.com>
18554 Ilya Verbin <ilya.verbin@intel.com>
18555 Kirill Yukhin <kirill.yukhin@intel.com>
18556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18558 * config/i386/sse.md
18559 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18560 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18561 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18562 "<avx2_avx512f>_permvar<mode><mask_name>".
18563 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18564 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18565 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18566 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18568 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18569 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18570 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18571 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18573 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18575 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18576 V2DF, V4SF, DF, and DI modes.
18577 (vsx_fmav2df2): Likewise.
18578 (vsx_float_fix_<mode>2): Likewise.
18579 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18581 2014-09-10 Xinliang David Li <davidxl@google.com>
18584 * config/arm/arm.md (movcond_addsi): Handle case where source
18585 and target operands are the same.
18587 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18589 * final.c (this_is_asm_operands): Strengthen this variable from
18590 rtx to const rtx_insn *.
18591 * output.h (this_is_asm_operands): Likewise.
18592 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18593 const_rtx to const rtx_insn *.
18594 (diagnostic_for_asm): Likewise.
18595 * rtl-error.h (error_for_asm): Likewise.
18596 (warning_for_asm): Likewise.
18598 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18600 * genextract.c (print_header): When writing out insn_extract to
18601 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18602 * recog.h (insn_extract): Strengthen the param from rtx to
18605 2014-09-10 Mike Stump <mikestump@comcast.net>
18607 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18610 2014-09-10 Martin Jambor <mjambor@suse.cz>
18612 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18613 (analyze): Do not set analyze flag if expand_thunk returns false;.
18614 (create_wrapper): Likewise.
18615 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18617 2014-09-10 Martin Jambor <mjambor@suse.cz>
18620 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18621 new decl properly. Analyze the new thunk if it is expanded.
18623 2014-09-10 Andreas Schwab <schwab@suse.de>
18625 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18626 [USED_FOR_TARGET]: Define.
18628 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18630 * config/mips/mips.c (mips_secondary_reload_class): Handle
18633 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18635 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18638 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18640 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18641 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18642 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18643 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18644 flag_delete_null_pointer_checks for them.
18645 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18646 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18647 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18648 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18649 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18651 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18652 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18653 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18654 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18655 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18656 -fsanitize=returns-nonnull-attribute): Document.
18658 * ubsan.h (struct ubsan_mismatch_data): Removed.
18659 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18660 * ubsan.c (ubsan_source_location): For unknown locations,
18661 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18662 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18663 Allow more than one location and arbitrary extra arguments passed
18664 in ... instead of through MISMATCH pointer.
18665 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18666 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18667 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18670 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18672 Anna Tikhonova <anna.tikhonova@intel.com>
18673 Ilya Tocar <ilya.tocar@intel.com>
18674 Andrey Turetskiy <andrey.turetskiy@intel.com>
18675 Ilya Verbin <ilya.verbin@intel.com>
18676 Kirill Yukhin <kirill.yukhin@intel.com>
18677 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18679 * config/i386/sse.md
18680 (define_mode_iterator VI48F): New.
18681 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18682 "avx512f_compress<mode>_mask" and update mode iterator.
18683 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18684 "avx512f_compressstore<mode>_mask" and update mode iterator.
18685 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18686 "avx512f_expand<mode>_maskz" and update mode iterator.
18687 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18688 "avx512f_expand<mode>_mask" and update mode iterator.
18690 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18692 Anna Tikhonova <anna.tikhonova@intel.com>
18693 Ilya Tocar <ilya.tocar@intel.com>
18694 Andrey Turetskiy <andrey.turetskiy@intel.com>
18695 Ilya Verbin <ilya.verbin@intel.com>
18696 Kirill Yukhin <kirill.yukhin@intel.com>
18697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18699 * config/i386/i386.c
18700 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18701 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18702 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18703 avx512dq_rangepv4sf_mask.
18704 * config/i386/sse.md
18705 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18707 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18708 (define_insn "reduces<mode>"): Ditto.
18709 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18711 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18712 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18713 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18715 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18716 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18717 Anna Tikhonova <anna.tikhonova@intel.com>
18718 Ilya Tocar <ilya.tocar@intel.com>
18719 Andrey Turetskiy <andrey.turetskiy@intel.com>
18720 Ilya Verbin <ilya.verbin@intel.com>
18721 Kirill Yukhin <kirill.yukhin@intel.com>
18722 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18724 * config/i386/i386.c
18725 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18726 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18727 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18728 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18729 avx512vl_getmantv2df_mask.
18730 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18731 avx512f_vgetmantv4sf_round.
18732 * config/i386/sse.md
18733 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18734 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18736 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18737 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18738 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18739 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18741 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18742 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18743 update mode iterator.
18745 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18746 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18749 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18750 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18751 update mode iterator.
18752 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18753 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18756 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18757 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18759 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18760 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18761 update mode iterator.
18762 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18763 "avx512f_getmant<mode><round_saeonly_name>".
18765 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18768 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18770 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18772 Anna Tikhonova <anna.tikhonova@intel.com>
18773 Ilya Tocar <ilya.tocar@intel.com>
18774 Andrey Turetskiy <andrey.turetskiy@intel.com>
18775 Ilya Verbin <ilya.verbin@intel.com>
18776 Kirill Yukhin <kirill.yukhin@intel.com>
18777 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18779 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18780 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18781 (define_mode_iterator FMAMODE_AVX512): New.
18782 (define_mode_iterator FMAMODE): Remove conditions.
18783 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18784 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18785 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18787 (define_mode_iterator FMAMODE_NOVF512): Remove.
18788 (define_insn "*fma_fmadd_<mode>"): Rename from
18789 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18790 FMAMODE mode iterator.
18791 (define_mode_iterator VF_SF_AVX512VL): New.
18792 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18793 Use VF_SF_AVX512VL mode iterator.
18794 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18795 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18797 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18798 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18800 (define_insn "*fma_fmsub_<mode>"): Rename from
18801 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18802 FMAMODE mode iterator.
18803 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18804 Use VF_SF_AVX512VL mode iterator.
18805 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18806 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18808 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18809 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18811 (define_insn "*fma_fnmadd_<mode>"): Rename from
18812 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18813 use FMAMODE mode iterator.
18814 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18815 Use VF_SF_AVX512VL mode iterator.
18816 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18817 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18819 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18820 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18822 (define_insn "*fma_fnmsub_<mode>"): Rename from
18823 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18824 FMAMODE mode iterator.
18825 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18826 Use VF_SF_AVX512VL mode iterator.
18827 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18828 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18830 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18831 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18833 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18834 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18835 use VF_AVX512VL mode iterator.
18836 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18837 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18838 remove subst usage.
18839 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18840 Use VF_SF_AVX512VL mode iterator.
18841 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18842 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18844 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18845 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18847 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18848 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18849 remove usage of subst.
18850 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18851 Use VF_SF_AVX512VL mode iterator.
18852 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18853 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18855 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18856 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18859 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18862 * calls.c (precompute_arguments): Check
18863 promoted_for_signed_and_unsigned_p and set the promoted mode.
18864 (promoted_for_signed_and_unsigned_p): New function.
18865 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18866 and set the promoted mode.
18867 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18868 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18869 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18871 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18873 * opth-gen.awk: Generate mapping from cpp message reasons to the
18874 options that enable them.
18875 * doc/options.texi (CppReason): Document.
18877 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18879 * doc/invoke.texi (Wnormalized=): Update.
18881 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18884 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18885 operands. Split off the constant operand alternative to ...
18886 (*bool<mode>3_imm): New.
18888 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18890 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18891 const rtx_insn *, and move prototype to above...
18892 (single_set): ...this. Convert this from a macro to an inline
18893 function, enforcing the requirement that the param is a const
18895 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18897 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18898 Strengthen both params from rtx to rtx_insn *.
18899 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18900 Likewise; introduce locals "producer_set", "consumer_set", using
18901 them in place of "producer" and "consumer" when dealing with SET
18903 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18904 when invoking single_set in region guarded by INSN_P.
18905 (avr_out_bitop): Likewise.
18906 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18907 region guarded by GET_CODE check, using methods to strengthen
18908 local "this_insn" from rtx to rtx_insn *, and for clarity.
18909 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18910 Strengthen local "insn" from rtx to rtx_insn *.
18911 (define_insn_and_split "xload<mode>_A"): Likewise.
18912 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18914 (find_load): Likewise for return type.
18915 (workaround_speculation): Likewise for both locals named
18917 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18919 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18921 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18923 * config/h8300/h8300.c (notice_update_cc): Likewise.
18924 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18925 "insn" and "dep_insn".
18926 (exact_store_load_dependency): Likewise for both params.
18927 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18928 since this now clashes with inline function. Instead, delay
18929 calling single_set until the point where its needed, and then
18930 assign the result to "compare_set" and rework the conditional that
18932 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18933 local "last" from rtx to rtx_insn *.
18934 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18936 (mips_store_data_bypass_p): Likewise for both params.
18937 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18939 (mips_store_data_bypass_p): Likewise for both params.
18940 (mips_orphaned_high_part_p): Likewise for param "insn".
18941 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18942 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18943 Introduce local rtx "insn2_pat".
18944 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18946 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18947 Introduce local rtx "set", using it in place of "insn" for the
18948 result of single_set. This appears to fix a bug, since the call
18949 to find_regno_note on a SET does nothing.
18950 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18951 params from rtx to rtx_insn *.
18952 (set_to_load_agen): Likewise.
18953 * config/s390/s390.c (s390_label_align): Likewise for local
18954 "prev_insn". Introduce new rtx locals "set" and "src", using
18955 them in place of "prev_insn" for the results of single_set
18956 and SET_SRC respectively.
18957 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18958 Introduce new rtx local "set" using in place of "jump" for the
18959 result of single_set. Use SET_SRC (set) rather than plain
18961 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18963 (noncall_uses_reg): Likewise.
18964 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18965 guarded by GET_CODE check, using its methods for clarity, and to
18966 enable strengthening local "this_insn" from rtx to rtx_insn *.
18967 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18968 "insn" from rtx to rtx_insn *.
18969 (define_expand "umulhisi3"): Likewise.
18970 (define_expand "smulsi3_highpart"): Likewise.
18971 (define_expand "umulsi3_highpart"): Likewise.
18972 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18973 local "after". Replace GET_CODE check with a dyn_cast,
18974 introducing new local rtx_sequence * "seq", using insn method for
18977 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18978 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18979 place of "insn" once we're dealing with patterns rather than the
18981 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18982 (scan_trace): Likewise for local "elt", updating lookups within
18983 sequence to use insn method rather than element method.
18984 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18986 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18987 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18988 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18989 invoking single_set.
18990 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18991 "insn" from rtx to rtx_insn *.
18992 (skip_usage_debug_insns): Likewise for return type, adding a
18994 (check_secondary_memory_needed_p): Likewise for local "insn".
18995 (inherit_reload_reg): Likewise.
18996 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18997 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18999 (store_data_bypass_p): Likewise for both params.
19000 (if_test_bypass_p): Likewise.
19001 * recog.h (store_data_bypass_p): Likewise for both params.
19002 (if_test_bypass_p): Likewise.
19003 * reload.c (find_equiv_reg): Likewise for local "where".
19004 * reorg.c (delete_jump): Likewise for param "insn".
19005 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
19006 to const rtx_insn *.
19007 * store-motion.c (replace_store_insn): Likewise for param "del".
19008 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
19009 and use its methods for clarity, and to strengthen local "del"
19010 from rtx to rtx_insn *.
19011 (build_store_vectors): Use insn method of "st" when calling
19012 replace_store_insn for typesafety and clarity.
19014 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19016 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
19017 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
19018 on how to make it legal in future.
19020 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19022 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
19024 (restinsn): Likewise.
19025 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
19026 Likewise for param.
19027 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
19029 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
19031 (arc_hazard): Likewise for both params.
19032 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
19033 checked casts to rtx_sequence * and uses of the insn method for
19035 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
19036 (arc_adjust_insn_length): Likewise for param "insn".
19037 (struct insn_length_parameters_s): Likewise for first param of
19038 "get_variants" callback field.
19039 (arc_get_insn_variants): Likewise for first param and local
19040 "inner". Replace a check of GET_CODE with a dyn_cast to
19041 rtx_sequence *, using methods for type-safety and clarity.
19042 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
19043 rtx_sequence * and uses of the insn method for type-safety when
19044 invoking arc_adjust_insn_length.
19045 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
19047 (arm_address_offset_is_imm): Likewise.
19048 (struct tune_params): Likewise for params 1 and 3 of the
19049 "sched_adjust_cost" callback field.
19050 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
19051 params 1 and 3 ("insn" and "dep").
19052 (xscale_sched_adjust_cost): Likewise.
19053 (fa726te_sched_adjust_cost): Likewise.
19054 (cortexa7_older_only): Likewise for param "insn".
19055 (cortexa7_younger): Likewise.
19056 (arm_attr_length_move_neon): Likewise.
19057 (arm_address_offset_is_imm): Likewise.
19058 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
19059 * config/avr/avr.c (avr_notice_update_cc): Likewise.
19060 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
19061 (workaround_speculation): Likewise for local "last_condjump".
19062 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
19063 (shadow_or_blockage_p): Likewise.
19064 (get_unit_reqs): Likewise.
19065 (get_unit_operand_masks): Likewise.
19066 (c6x_registers_update): Likewise.
19067 (returning_call_p): Likewise.
19068 (can_use_callp): Likewise.
19069 (convert_to_callp): Likewise.
19070 (find_last_same_clock): Likwise for local "t".
19071 (reorg_split_calls): Likewise for local "shadow".
19072 (hwloop_pattern_reg): Likewise for param "insn".
19073 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
19074 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
19075 (frv_extract_membar): Likewise.
19076 (frv_optimize_membar_local): Strengthen param "last_membar" from
19077 rtx * to rtx_insn **.
19078 (frv_optimize_membar_global): Strengthen param "membar" from rtx
19080 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
19082 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
19083 both params from rtx to rtx_insn *.
19084 (ia64_ld_address_bypass_p): Likewise.
19085 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
19087 (ia64_safe_type): Likewise.
19088 (group_barrier_needed): Likewise.
19089 (safe_group_barrier_needed): Likewise.
19090 (ia64_single_set): Likewise.
19091 (is_load_p): Likewise.
19092 (record_memory_reference): Likewise.
19093 (get_mode_no_for_insn): Likewise.
19094 (important_for_bundling_p): Likewise.
19095 (unknown_for_bundling_p): Likewise.
19096 (ia64_st_address_bypass_p): Likewise for both params.
19097 (ia64_ld_address_bypass_p): Likewise.
19098 (expand_vselect): Introduce new local rtx_insn * "insn", using it
19099 in place of rtx "x" after the emit_insn call.
19100 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
19101 Strengthen param from rtx to rtx_insn *.
19102 (ix86_agi_dependent): Likewise for both params.
19103 (ix86_attr_length_immediate_default): Likewise for param 1.
19104 (ix86_attr_length_address_default): Likewise for param.
19105 (ix86_attr_length_vex_default): Likewise for param 1.
19106 * config/i386/i386.c (ix86_attr_length_immediate_default):
19107 Likewise for param "insn".
19108 (ix86_attr_length_address_default): Likewise.
19109 (ix86_attr_length_vex_default): Likewise.
19110 (ix86_agi_dependent): Likewise for both params.
19111 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
19112 (vselect_insn): Likewise for this variable.
19113 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
19115 (m68k_sched_attr_opy_type): Likewise.
19116 * config/m68k/m68k.c (sched_get_operand): Likewise.
19117 (sched_attr_op_type): Likewise.
19118 (m68k_sched_attr_opx_type): Likewise.
19119 (m68k_sched_attr_opy_type): Likewise.
19120 (sched_get_reg_operand): Likewise.
19121 (sched_get_mem_operand): Likewise.
19122 (m68k_sched_address_bypass_p): Likewise for both params.
19123 (sched_get_indexed_address_scale): Likewise.
19124 (m68k_sched_indexed_address_bypass_p): Likewise.
19125 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
19126 (m68k_sched_indexed_address_bypass_p): Likewise.
19127 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
19128 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
19130 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
19131 params from rtx to rtx_insn *.
19132 (mips_fmadd_bypass): Likewise.
19133 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
19134 (mips_linked_madd_p): Likewise.
19135 (mips_macc_chains_last_hilo): Likewise for this variable.
19136 (mips_macc_chains_record): Likewise for param.
19137 (vr4130_last_insn): Likewise for this variable.
19138 (vr4130_swap_insns_p): Likewise for both params.
19139 (mips_ls2_variable_issue): Likewise for param.
19140 (mips_need_noat_wrapper_p): Likewise for param "insn".
19141 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
19142 in place of "x" after the emit_insn.
19143 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
19144 params from rtx to rtx_insn *.
19145 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
19146 (pa_combine_instructions): Introduce local "par" for result of
19147 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
19149 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
19150 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
19151 (rl78_alloc_physical_registers_op1): Likewise.
19152 (rl78_alloc_physical_registers_op2): Likewise.
19153 (rl78_alloc_physical_registers_ro1): Likewise.
19154 (rl78_alloc_physical_registers_cmp): Likewise.
19155 (rl78_alloc_physical_registers_umul): Likewise.
19156 (rl78_alloc_address_registers_macax): Likewise.
19157 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
19158 * config/s390/predicates.md (execute_operation): Likewise for
19160 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
19162 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
19163 (addr_generation_dependency_p): Likewise for param "insn".
19164 (s390_agen_dep_p): Likewise for both params.
19165 (s390_fpload_toreg): Likewise for param "insn".
19166 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
19167 * config/sh/sh.c (sh_loop_align): Likewise for param and local
19169 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
19170 * config/sh/sh_treg_combine.cc
19171 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
19173 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
19174 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
19175 "and_insn", "load", "shift".
19176 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
19178 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
19179 for XEXP (note, 0) of the REG_CC_SETTER note.
19180 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
19181 rtx_insn *, eliminating a checked cast made redundant by this.
19182 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
19184 * genattr.c (main): When writing out the prototype to
19185 const_num_delay_slots, strengthen the param from rtx to
19187 * genattrtab.c (write_const_num_delay_slots): Likewise when
19188 writing out the implementation of const_num_delay_slots.
19189 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
19190 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
19191 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
19192 favor of new rtx locals "src" and "set" and new local rtx_insn *
19194 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
19196 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
19197 locals "cond", "if_then_else", "set" and new rtx_insn * locals
19199 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
19200 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
19201 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
19202 the top-level scope, replacing with new more tightly-scoped rtx
19203 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
19204 "new_insn", "copy_of_insn_b", and make local rtx "set" more
19206 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
19208 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
19210 (ira_setup_alts): Likewise for param "insn".
19211 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
19212 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
19214 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
19215 new more-tightly scoped rtx locals "add3_insn", "insn",
19216 "add2_insn" and rtx_insn * "move_insn".
19217 * postreload-gcse.c (eliminate_partially_redundant_load): Add
19218 checked cast on result of gen_move_insn when invoking
19220 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
19222 (verify_changes): Add a checked cast on "object" when invoking
19224 (extract_insn_cached): Strengthen param "insn" from rtx to
19226 (extract_constrain_insn_cached): Likewise.
19227 (extract_insn): Likewise.
19228 * recog.h (insn_invalid_p): Likewise for param 1.
19229 (recog_memoized): Likewise for param.
19230 (extract_insn): Likewise.
19231 (extract_constrain_insn_cached): Likewise.
19232 (extract_insn_cached): Likewise.
19233 * reload.c (can_reload_into): Likewise for local "test_insn".
19234 * reload.h (cleanup_subreg_operands): Likewise for param.
19235 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
19236 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
19237 result of emit_insn. Remove a checked cast made redundant by this
19239 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
19241 * sel-sched.c (get_reg_class): Likewise.
19243 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
19244 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19246 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
19247 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
19249 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
19251 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19253 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
19254 const rtx_insn *, and from rtx to rtx_insn * for the other
19255 overloaded variant.
19256 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
19257 INSN_LOCATION, since we know INSN_P holds.
19258 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
19259 (insn_file): Likewise.
19260 (insn_scope): Likewise.
19261 (insn_location): Likewise.
19263 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
19264 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
19265 for the result of gen_load_const_gp.
19266 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
19267 param from rtx to rtx_insn *.
19268 * config/rs6000/rs6000.c (output_call): Likewise.
19269 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
19270 introducing a checked cast to rtx_sequence * and use of the insn
19272 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
19273 from rtx to rtx_insn *.
19274 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
19275 (insn_line): Likewise.
19276 (insn_file): Likewise.
19277 (insn_location): Likewise.
19278 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
19279 from rtx to rtx_insn *.
19280 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
19281 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
19282 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
19283 via a checked cast.
19284 * reorg.c (relax_delay_slots): Strengthen locals named "after"
19285 from rtx to rtx_insn *; use methods of "pat" for type-safety.
19287 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19289 * combine.c (try_combine): Eliminate checked cast on result of
19291 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
19292 autogenerated one by strengthening the return type and params 2 and 3
19293 from rtx to rtx_insn *, and by naming the params.
19294 * gengenrtl.c (special_rtx): Add INSN to those that are
19296 * rtl.h (gen_rtx_INSN): New prototype.
19298 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19300 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19302 (no_equiv): Likewise.
19303 (update_equiv_regs): Likewise.
19304 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19305 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19306 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19308 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19309 from rtx to rtx_insn_list *.
19310 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19311 rtx_insn_list * and use methods for clarity and typesafety.
19312 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19314 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19315 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19316 an INSN_LIST, not an insn.
19317 (reverse_equiv_p): Strengthen local "insns" from rtx to
19318 rtx_insn_list * and use methods for clarity and typesafety.
19319 (contains_reloaded_insn_p): Likewise for local "list".
19321 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19323 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19324 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19325 (arm_builtin_vectorized_function): Likewise.
19326 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19327 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19330 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19332 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19333 * builtins.h (default_target_builtins): Likewise.
19334 * gcse.h (default_target_gcse): Likewise.
19335 * target-globals.h (target_globals): Add a destructor. Convert
19336 void-pointer fields back to their real type and change from
19337 GTY((atomic)) to GTY((skip)).
19338 (restore_target_globals): Remove casts accordingly.
19339 * target-globals.c (save_target_globals): Use XCNEW rather than
19340 ggc_internal_cleared_alloc to allocate non-GC structures.
19341 Use ggc_cleared_alloc to allocate the target_globals structure
19343 (target_globals::~target_globals): Define.
19345 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19347 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19348 mnemonic instead of fldmfdd.
19349 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19350 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19351 Output vpush when address register is SP.
19352 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19353 (vfp_output_vstmd): ... This.
19354 * config/arm/vfp.md (push_multi_vfp): Update call to
19357 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19359 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19361 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19363 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19364 (*sqrtdf2_vfp): Likewise.
19365 (*cmpsf_vfp): Likewise.
19366 (*cmpsf_trap_vfp): Likewise.
19367 (*cmpdf_vfp): Likewise.
19368 (*cmpdf_trap_vfp): Likewise.
19370 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19372 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19373 (*truncdfsf2_vfp): Likewise.
19374 (*truncsisf2_vfp): Likewise.
19375 (*truncsidf2_vfp): Likewise.
19376 (fixuns_truncsfsi2): Likewise.
19377 (fixuns_truncdfsi2): Likewise.
19378 (*floatsisf2_vfp): Likewise.
19379 (*floatsidf2_vfp): Likewise.
19380 (floatunssisf2): Likewise.
19381 (floatunssidf2): Likewise.
19383 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19385 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19386 (*muldf3_vfp): Likewise.
19387 (*mulsf3negsf_vfp): Likewise.
19388 (*muldf3negdf_vfp): Likewise.
19389 (*mulsf3addsf_vfp): Likewise.
19390 (*muldf3adddf_vfp): Likewise.
19391 (*mulsf3subsf_vfp): Likewise.
19392 (*muldf3subdf_vfp): Likewise.
19393 (*mulsf3negsfaddsf_vfp): Likewise.
19394 (*fmuldf3negdfadddf_vfp): Likewise.
19395 (*mulsf3negsfsubsf_vfp): Likewise.
19396 (*muldf3negdfsubdf_vfp): Likewise.
19398 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19400 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19401 (*absdf2_vfp): Likewise.
19402 (*negsf2_vfp): Likewise.
19403 (*negdf2_vfp): Likewise.
19404 (*addsf3_vfp): Likewise.
19405 (*adddf3_vfp): Likewise.
19406 (*subsf3_vfp): Likewise.
19407 (*subdf3_vfp): Likewise.
19408 (*divsf3_vfp): Likewise.
19409 (*divdf3_vfp): Likewise.
19411 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19413 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19415 (arm_print_operand): Don't convert real values to decimal
19416 representation in default case.
19417 (fp_immediate_constant): Delete.
19418 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19419 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19421 (*thumb2_movsi_vfp): Likewise.
19422 (*movdi_vfp): Likewise.
19423 (*movdi_vfp_cortexa8): Likewise.
19424 (*movhf_vfp_neon): Likewise.
19425 (*movhf_vfp): Likewise.
19426 (*movsf_vfp): Likewise.
19427 (*thumb2_movsf_vfp): Likewise.
19428 (*movdf_vfp): Likewise.
19429 (*thumb2_movdf_vfp): Likewise.
19430 (*movsfcc_vfp): Likewise.
19431 (*thumb2_movsfcc_vfp): Likewise.
19432 (*movdfcc_vfp): Likewise.
19433 (*thumb2_movdfcc_vfp): Likewise.
19435 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19437 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19438 (-mtune): Likewise.
19441 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19444 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19445 Use qualifier_immediate for last operand. Rename to...
19446 (aarch64_types_ternop_lane_qualifiers): ... This.
19447 (TYPES_QUADOP): Rename to...
19448 (TYPES_TERNOP_LANE): ... This.
19449 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19450 error. Change return of 0 to return of NULL_RTX.
19451 (aarch64_crc32_expand_builtin): Likewise.
19452 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19453 ICE when expanding unknown builtin.
19454 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19455 TERNOP_LANE qualifiers.
19456 (sqdmlsl_lane): Likewise.
19457 (sqdmlal_laneq): Likewise.
19458 (sqdmlsl_laneq): Likewise.
19459 (sqdmlal2_lane): Likewise.
19460 (sqdmlsl2_lane): Likewise.
19461 (sqdmlal2_laneq): Likewise.
19462 (sqdmlsl2_laneq): Likewise.
19464 2014-09-09 Nick Clifton <nickc@redhat.com>
19466 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19468 (S/390 and zSeries Options): Remove superfluous word from the
19469 description of the -mhotpatch option.
19471 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19473 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19474 * ira.c: #include "shrink-wrap.h"
19475 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19476 * ifcvt.c: #include "shrink-wrap.h"
19477 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19479 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19481 * common/config/picochip/picochip-common.c: Remove.
19482 * config.gcc: Remove support for picochip.
19483 * config/picochip/constraints.md: Remove.
19484 * config/picochip/dfa_space.md: Remove.
19485 * config/picochip/dfa_speed.md: Remove.
19486 * config/picochip/picochip-protos.h: Remove.
19487 * config/picochip/picochip.c: Remove.
19488 * config/picochip/picochip.h: Remove.
19489 * config/picochip/picochip.md: Remove.
19490 * config/picochip/picochip.opt: Remove.
19491 * config/picochip/predicates.md: Remove.
19492 * config/picochip/t-picochip: Remove.
19493 * doc/md.texi: Don't document picochi.
19495 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19497 * basic-block.h (control_flow_insn_p): Strengthen param from
19498 const_rtx to const rtx_insn *.
19499 * cfgbuild.c (control_flow_insn_p): Likewise.
19501 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19503 * gcse.c (modify_mem_list): Strengthen this variable from
19504 vec<rtx> * to vec<rtx_insn *> *.
19505 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19507 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19508 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19509 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19511 (record_last_set_info): Likewise for local "last_set_insn".
19513 2014-09-08 DJ Delorie <dj@redhat.com>
19515 * doc/invoke.texi (MSP430 Options): Add -minrt.
19517 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19519 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19520 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19521 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19523 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19525 (adjust_splat): New function.
19526 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19527 (dump_swap_insn_table): Add case for SH_SPLAT.
19529 2014-09-08 Richard Biener <rguenther@suse.de>
19532 * tree-inline.c (copy_loops): The source loop header should
19533 always be non-NULL.
19534 (tree_function_versioning): If loops need fixup after removing
19535 unreachable blocks fix them.
19536 * omp-low.c (simd_clone_adjust): Do not add incr block to
19537 loop under construction.
19539 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19541 * config/aarch64/aarch64-builtins.c
19542 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19544 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19546 * config/i386/cygming.h (TF_SIZE): Remove.
19547 * config/i386/darwin.h (TF_SIZE): Remove.
19548 * config/i386/dragonfly.h (TF_SIZE): Remove.
19549 * config/i386/freebsd.h (TF_SIZE): Remove.
19550 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19551 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19552 * config/i386/sol2.h (TF_SIZE): Remove.
19553 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19554 * config/ia64/linux.h (TF_SIZE): Remove.
19555 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19556 * doc/tm.texi: Regenerate.
19557 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19559 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19561 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19563 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19565 * doc/tm.texi: Regenerate.
19566 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19568 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19569 * config/cris/cris.h (__make_dp): Remove.
19571 2014-09-08 Richard Biener <rguenther@suse.de>
19574 * cfgloop.c (mark_loop_for_removal): Track former header
19576 * cfgloop.h (struct loop): Add former_header member unconditionally.
19577 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19578 diagnostic unconditionally.
19580 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19583 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19584 constraint for operand0 and remove write only modifier from operand3.
19586 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19588 PR rtl-optimization/62208
19589 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19590 rather than const0_rtx in eq/ne-xor simplifications.
19592 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19594 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19595 (arc_output_mi_thunk): Likewise.
19597 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19598 arguments to silence bogus warning.
19600 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19602 PR middle-end/63171
19603 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19605 2014-09-06 Tom de Vries <tom@codesourcery.com>
19607 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19608 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19609 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19611 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19614 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19615 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19617 2014-09-05 Easwaran Raman <eraman@google.com>
19619 PR rtl-optimization/62146
19620 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19621 hoisted instruction unconditional.
19623 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19626 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19627 Do not allow any_mask_operand for operands[2].
19628 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19630 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19632 * config/arc/arc.c (arc_print_operand): Use insn method of
19633 final_sequence for type-safety.
19634 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19635 "insn" from rtx to rtx_insn *.
19636 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19637 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19638 Likewise for locals "branch", "label".
19639 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19640 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19641 (same_cmp_following_p): Likewise for locals "i2", "i3".
19642 * config/sh/sh_optimize_sett_clrt.cc
19643 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19644 param "cbranch_insn".
19645 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19646 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19647 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19649 (condjump_p): Likewise.
19650 (condjump_in_parallel_p): Likewise.
19651 (pc_set): Likewise.
19652 (any_uncondjump_p): Likewise.
19653 (any_condjump_p): Likewise.
19654 (condjump_label): Likewise.
19655 (returnjump_p): Strengthen param "insn" from rtx to
19657 (onlyjump_p): Strengthen param "insn" from const_rtx to
19659 (jump_to_label_p): Likewise.
19660 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19661 (invert_jump): Likewise.
19662 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19664 (get_jump_flags): Strengthen param "insn" from rtx to
19666 (get_branch_condition): Likewise.
19667 (condition_dominates_p): Likewise.
19668 (make_return_insns): Move declaration of local "pat" earlier, to
19669 after we've handled NONJUMP_INSN_P and non-sequences, using its
19670 methods to simplify the code and for type-safety.
19671 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19673 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19674 (condjump_p): Strengthen param from const_rtx to
19676 (any_condjump_p): Likewise.
19677 (any_uncondjump_p): Likewise.
19678 (pc_set): Likewise.
19679 (condjump_label): Likewise.
19680 (simplejump_p): Likewise.
19681 (returnjump_p): Likewise.
19682 (onlyjump_p): Likewise.
19683 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19684 (invert_jump): Likewise.
19685 (condjump_in_parallel_p): Strengthen param from const_rtx to
19687 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19688 to const rtx_insn *.
19689 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19690 to const rtx_insn *.
19691 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19693 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19695 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19696 above the conditional, and convert the check on GET_CODE to a
19697 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19698 the conditional. Simplify the conditional by using methods of
19701 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19703 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19704 "link" from rtx to rtx_insn_list *, and use its methods for
19705 clarity and type-safety.
19706 (toggle_cancelled_flags): Likewise.
19707 (restore_last_backtrack_point): Likewise.
19708 (queue_to_ready): Use insn method of "link" in one place.
19709 (schedule_block): Strengthen local "link" from rtx to
19710 rtx_insn_list *, and use its methods for clarity and type-safety.
19712 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19714 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19715 param "insn" from const_rtx to const rtx_insn *.
19716 (sched_get_reverse_condition_uncached): Likewise.
19717 (sched_get_condition_with_rev): Likewise.
19718 (sched_has_condition_p): Likewise.
19719 (sched_insns_conditions_mutex_p): Likewise for both params.
19720 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19721 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19722 (setup_insn_reg_uses): Move local "list" to be more tightly
19723 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19724 its methods for clarity and type-safety.
19725 (sched_analyze_1): Strengthen local "pending" from rtx to
19726 rtx_insn_list *, and local "pending_mem" from rtx to
19727 rtx_expr_list *. Use methods of each for clarity and type-safety.
19728 (sched_analyze_2): Likewise.
19729 (sched_analyze_insn): Likewise.
19731 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19732 param from const_rtx to const rtx_insn *.
19733 (sched_insns_conditions_mutex_p): Likewise for both params.
19734 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19737 * system.h (CONST_CAST_RTX_INSN): New macro.
19739 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19741 * recog.c (peep2_attempt): Strengthen return type from rtx to
19743 (peep2_update_life): Likewise for params "last", "prev", removing
19744 a checked cast made redundant by this.
19745 (peephole2_optimize): Likewise for local "last".
19747 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19749 * basic-block.h (set_block_for_insn): Eliminate this macro in
19751 * rtl.h (set_block_for_insn): New inline function, imposing the
19752 requirement that the "insn" param is an rtx_insn *.
19754 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19756 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19758 * final.c (get_call_reg_set_usage): Likewise for first param,
19759 eliminating a checked cast.
19760 * regs.h (get_call_reg_set_usage): Likewise for first param.
19761 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19762 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19763 cast, replacing references to "x" with "call_insn" where
19765 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19766 rtx_insn *, adding a checked cast.
19768 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19770 * output.h (final_scan_insn): Strengthen first param from rtx to
19773 * final.c (final_scan_insn): Likewise, renaming it back from
19774 "uncast_insn" to "insn", eliminating the checked cast.
19776 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19777 "vec" with an rtx_sequence * "seq", taking a copy of
19778 "final_sequence", and using methods of "seq" for clarity, and for
19779 type-safety in the calls to final_scan_insn.
19780 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19781 of "final_sequence" for clarity, and for type-safety in the call to
19783 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19784 rtx_sequence * and rename from "insn" to "seq".
19786 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19788 * jump.c (delete_related_insns): Introduce a new local "table" by
19789 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19790 get_labels method of "table" to simplify access to the labels in
19793 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19795 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19796 f_minmaxs, f_minmaxd types.
19798 2014-09-05 Richard Biener <rguenther@suse.de>
19800 * cfgloop.c (mark_loop_for_removal): Record former header
19801 when ENABLE_CHECKING.
19802 * cfgloop.h (strut loop): Add former_header member when
19804 * loop-init.c (fix_loop_structure): Sanity check loops
19805 marked for removal if they re-appeared.
19807 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19809 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19810 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19812 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19813 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19814 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19815 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19816 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19817 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19818 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19819 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19820 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19821 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19822 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19823 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19824 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19825 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19826 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19827 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19828 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19829 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19830 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19831 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19832 with int{32,16,8}_t.
19834 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19836 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19837 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19838 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19839 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19840 Remove temporary __asm__ and reimplement.
19842 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19844 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19845 handling cmge, cmgt, cmeq, cmtst.
19847 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19848 cmlt, cmgeu, cmgtu, cmtst): Remove.
19850 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19851 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19852 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19853 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19855 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19857 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19858 TYPES_TST): Define.
19859 (aarch64_fold_builtin): Update pattern for cmtst.
19861 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19864 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19866 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19867 Switch operands, separate out more cases, refactor.
19869 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19871 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19872 argument; rename old version to...
19873 (aarch64_const_vec_all_same_in_range_p): ...this.
19874 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19876 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19878 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19880 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19881 Remove qualifier_const_pointer, update comment.
19883 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19885 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19887 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19889 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19890 varargs with pointer parameter.
19891 (aarch64_simd_expand_builtin): pass pointer into previous.
19893 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19895 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19898 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19900 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19901 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19902 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19903 Replace temporary asm with call to builtin.
19904 (vrbit_p8, vrbitq_p8): New functions.
19906 2014-09-05 Richard Biener <rguenther@suse.de>
19908 * cfgloop.c (mark_loop_for_removal): New function.
19909 * cfgloop.h (mark_loop_for_removal): Declare.
19910 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19911 (merge_blocks): Likewise.
19912 (duplicate_block): Likewise.
19913 * except.c (sjlj_emit_dispatch_table): Likewise.
19914 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19915 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19916 (thread_through_loop_header): Likewise.
19918 2014-09-05 Richard Biener <rguenther@suse.de>
19920 PR middle-end/63148
19921 * fold-const.c (try_move_mult_to_index): Remove.
19922 (fold_binary_loc): Do not call it.
19923 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19924 from the base object again.
19926 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19928 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19931 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19934 * config/arm/arm.md (setmem): New pattern.
19935 * config/arm/arm-protos.h (struct tune_params): New fields.
19936 (arm_gen_setmem): New prototype.
19937 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19938 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19939 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19940 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19941 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19942 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19943 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19944 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19945 (arm_const_inline_cost): New function.
19946 (arm_block_set_max_insns): New function.
19947 (arm_block_set_non_vect_profit_p): New function.
19948 (arm_block_set_vect_profit_p): New function.
19949 (arm_block_set_unaligned_vect): New function.
19950 (arm_block_set_aligned_vect): New function.
19951 (arm_block_set_unaligned_non_vect): New function.
19952 (arm_block_set_aligned_non_vect): New function.
19953 (arm_block_set_vect, arm_gen_setmem): New functions.
19955 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19957 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19959 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19961 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19963 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19965 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19967 * valtrack.h: Adjust.
19969 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19971 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19973 (emit_jump_insn_before_noloc): Likewise.
19974 (emit_call_insn_before_noloc): Likewise.
19975 (emit_label_before): Likewise.
19976 (emit_label_after): Likewise.
19977 (emit_insn_before_setloc): Likewise.
19978 (emit_jump_insn_before_setloc): Likewise.
19979 (emit_call_insn_before_setloc): Likewise.
19980 (emit_call_insn_before): Likewise.
19983 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19985 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19986 rtx_insn *, eliminating a checked cast.
19988 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19990 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19991 const_rtx to const rtx_insn *.
19992 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19995 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19997 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19998 fixup_args_size_notes.
19999 * expr.c (fixup_args_size_notes): Strengthen first two params from
20000 rtx to rtx_insn *, eliminating a checked cast.
20001 * rtl.h (fixup_args_size_notes): Strengthen first two params from
20004 2014-09-05 David Malcolm <dmalcolm@redhat.com>
20006 * haifa-sched.c (get_ready_element): Strengthen return type from
20008 * sched-int.h (get_ready_element): Likewise.
20010 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
20013 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
20014 indexed_or_indirect_operand instead of memory_operand.
20015 (floatsi<mode>2_lfiwzx_mem): Ditto.
20017 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
20019 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
20020 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
20021 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
20023 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
20025 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
20027 (get_last_nonnote_insn): Likewise.
20028 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
20029 * resource.c (find_basic_block): Likewise.
20031 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
20034 2014-09-04 David Malcolm <dmalcolm@redhat.com>
20036 * genattr.c (main): Within the prototype of insn_latency written
20037 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
20038 * genautomata.c (output_internal_maximal_insn_latency_func):
20039 Within the implementation of insn_latency written out to
20040 insn-automata.c, strengthen both params from rtx to rtx_insn *,
20041 eliminating a pair of checked casts.
20043 2014-09-04 David Malcolm <dmalcolm@redhat.com>
20045 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
20048 * rtl.h (eh_returnjump_p): Likewise.
20050 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
20052 * Makefile.in (TAGS): Handle constructs in timevar.def.
20054 2014-09-04 Guozhi Wei <carrot@google.com>
20057 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
20058 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
20059 it into two patterns.
20060 (move_lo_quad_internal_be_<mode>): Likewise.
20062 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20064 * doc/options.texi: Document that Var and Init are required if CPP
20066 * optc-gen.awk: Require Var and Init if CPP is given.
20067 * common.opt (Wpedantic): Use Init.
20069 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20071 * config/rs6000/rs6000.c (special_handling_values): Add
20073 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
20074 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
20075 as swappable with special handling SH_EXTRACT. Remove
20076 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
20078 (adjust_extract): New function.
20079 (handle_special_swappables): Add default to case statement; add
20080 case for SH_EXTRACT that calls adjust_extract.
20081 (dump_swap_insn_table): Handle SH_EXTRACT.
20083 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20085 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
20086 selection of 0th memory doubleword, regardless of endianness.
20088 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20090 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
20092 2014-09-04 Alan Modra <amodra@gmail.com>
20095 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
20098 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
20100 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
20101 * targhooks.c (default_dwarf_frame_reg_mode): New function.
20102 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
20103 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
20104 * doc/tm.texi: Regenerate.
20105 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
20106 selection logic to default_dwarf_frame_reg_mode.
20108 2014-09-03 Marek Polacek <polacek@redhat.com>
20110 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
20113 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
20115 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
20116 the automodified register.
20118 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
20120 * output.h (get_some_local_dynamic_name): Declare.
20121 * final.c (some_local_dynamic_name): New variable.
20122 (get_some_local_dynamic_name): New function.
20123 (final_end_function): Clear some_local_dynamic_name.
20124 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
20125 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
20126 (print_operand): Report an error if '%&' is used inappropriately.
20127 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
20128 (get_some_local_dynamic_name_1): Delete.
20129 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
20130 (rs6000_get_some_local_dynamic_name): Delete.
20131 (rs6000_get_some_local_dynamic_name_1): Delete.
20132 (print_operand): Report an error if '%&' is used inappropriately.
20133 * config/s390/s390.c (machine_function): Remove some_ld_name.
20134 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
20135 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
20136 * config/sparc/sparc.c: Include rtl-iter.h.
20137 (machine_function): Remove some_ld_name.
20138 (sparc_print_operand): Report an error if '%&' is used inappropriately.
20139 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
20141 2014-09-03 Richard Henderson <rth@redhat.com>
20143 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
20144 (aarch64_popwb_pair_reg): Remove.
20145 (aarch64_set_frame_expr): Remove.
20146 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
20147 the restore ops performed by the insns generated.
20148 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
20149 insn. Perform the calls_eh_return addition later; do not attempt to
20150 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
20151 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
20152 special markup at all. Load cfun->machine->frame.hard_fp_offset
20153 into a local variable.
20154 (aarch64_frame_pointer_required): Don't check calls_alloca.
20156 2014-09-03 Richard Biener <rguenther@suse.de>
20158 * opts.c (default_options_optimization): Adjust
20159 max-combine-insns to 2 for -Og.
20161 2014-09-03 Martin Jambor <mjambor@suse.cz>
20164 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
20165 pass-trough jump functions correctly.
20167 2014-09-03 Martin Jambor <mjambor@suse.cz>
20170 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
20171 created replacements in ascending order of offsets.
20172 (known_aggs_to_agg_replacement_list): Likewise.
20174 2014-09-03 Martin Liska <mliska@suse.cz>
20176 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
20177 is set to set uninitialized value for vnresult.
20179 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20181 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
20182 for TARGET_MUST_PASS_IN_STACK.
20184 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20186 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
20187 for TARGET_ARG_PARTIAL_BYTES.
20189 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20191 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
20192 instructions for varargs implementation.
20193 (nds32_expand_epilogue): Emit stack adjustment instructions for
20194 varargs implementation.
20196 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20198 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
20199 optimization detection.
20201 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20203 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
20205 (nds32_function_arg_advance): Deal with nameless arguments.
20206 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
20207 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
20208 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
20210 2014-09-03 Richard Biener <rguenther@suse.de>
20212 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
20213 (struct bb_bitmap_sets): Remove deferred member.
20214 (BB_DEFERRED): Remove.
20215 (defer_or_phi_translate_block): Remove.
20216 (compute_antic_aux): Remove deferring of blocks, assert
20217 proper iteration order.
20218 (compute_antic): Do not set BB_DEFERRED.
20219 (eliminate): Allocate el_avail of proper size initially.
20221 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20223 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
20224 according to the value of crtl->args.pretend_args_size.
20226 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20228 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
20229 varargs information.
20231 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20233 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
20234 implementation for TARGET_SETUP_INCOMING_VARARGS.
20235 (nds32_strict_argument_naming): Refine comment.
20236 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
20237 Define for future implementation.
20239 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
20241 * config/i386/adxintrin.h (_subborrow_u32): New.
20242 (_addcarry_u32): Ditto.
20243 (_subborrow_u64): Ditto.
20244 (_addcarry_u64): Ditto.
20245 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
20246 IX86_BUILTIN_SBB64.
20247 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
20248 __builtin_ia32_sbb_u64
20250 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20252 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
20253 GPR-specific stuff.
20254 (nds32_function_arg_advance): Likewise.
20255 (nds32_init_cumulative_args): Likewise.
20256 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
20257 (NDS32_FIRST_GPR_REGNUM): Define.
20258 (NDS32_LAST_GPR_REGNUM): Define.
20259 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
20260 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20261 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20262 (machine_function): Use GRP-specific stuff.
20264 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20266 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
20267 (nds32_expand_epilogue): Likewise.
20268 (nds32_expand_prologue_v3push): Likewise.
20269 (nds32_expand_epilogue_v3pop): Likewise.
20271 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20273 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
20274 v3push/v3pop for variadic function.
20275 * config/nds32/nds32.md (prologue, epilogue): Likewise.
20277 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20279 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20280 Check rtx for varargs implementation.
20281 (nds32_output_stack_pop): Likewise.
20282 * config/nds32/nds32-protos.h: Have a rtx argument for
20283 nds32_output_stack_push and nds32_output_stack_pop.
20284 * config/nds32/nds32.md: Likewise.
20286 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20288 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
20289 to check if FUNC is an interrupt service routine.
20290 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
20292 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20294 * config/nds32/nds32.h (machine_function): Add some fields for variadic
20295 arguments implementation.
20297 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20299 * config/nds32/nds32-predicates.c
20300 (nds32_valid_stack_push_pop): Rename to ...
20301 (nds32_valid_stack_push_pop_p): ... this.
20302 * config/nds32/nds32-protos.h: Likewise.
20303 * config/nds32/predicates.md: Likewise.
20305 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20307 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20308 (nds32_emit_stack_v3push): ... this.
20309 (nds32_gen_stack_v3pop): Rename to ...
20310 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20313 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20315 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20316 (nds32_emit_stack_push_multiple): ... this.
20317 (nds32_gen_stack_pop_multiple): Rename to ...
20318 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20321 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20324 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20325 and add a second splitter to handle the remaining cases.
20327 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20329 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20331 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20333 * cfgexpand.c (label_rtx_for_bb): Change type to
20334 hash_map<basic_block, rtx_code_label *> *.
20335 (expand_gimple_basic_block): Adjust.
20336 (pass_expand::execute): Likewise.
20338 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20340 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20341 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20342 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20343 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20344 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20345 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20346 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20349 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20351 * alloc-pool.c: Include coretypes.h.
20352 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20353 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20354 hash_set instead of htab.
20355 * ggc-page.c (in_gc): New variable.
20356 (ggc_free): Do nothing if a collection is taking place.
20357 (ggc_collect): Set in_gc appropriately.
20358 * ggc.h (gt_ggc_mx(const char *)): New function.
20359 (gt_pch_nx(const char *)): Likewise.
20360 (gt_ggc_mx(int)): Likewise.
20361 (gt_pch_nx(int)): Likewise.
20362 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20363 (hash_map::hash_entry::pch_nx): Likewise.
20364 (hash_map::hash_entry::pch_nx_helper): Likewise.
20365 (hash_map::hash_map): Adjust.
20366 (hash_map::create_ggc): New function.
20367 (gt_ggc_mx): Likewise.
20368 (gt_pch_nx): Likewise.
20369 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20370 (default_hashset_traits::pch_nx): Likewise.
20371 (hash_set::hash_entry::ggc_mx): Likewise.
20372 (hash_set::hash_entry::pch_nx): Likewise.
20373 (hash_set::hash_entry::pch_nx_helper): Likewise.
20374 (hash_set::hash_set): Adjust.
20375 (hash_set::create_ggc): New function.
20376 (hash_set::elements): Likewise.
20377 (gt_ggc_mx): Likewise.
20378 (gt_pch_nx): Likewise.
20379 * hash-table.h (hash_table::hash_table): Adjust.
20380 (hash_table::m_ggc): New member.
20381 (hash_table::~hash_table): Adjust.
20382 (hash_table::expand): Likewise.
20383 (hash_table::empty): Likewise.
20384 (gt_ggc_mx): New function.
20385 (hashtab_entry_note_pointers): Likewise.
20386 (gt_pch_nx): Likewise.
20388 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20390 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20391 built-in definition.
20392 (XVCVUXDDP_SCALE): Likewise.
20393 (XVCVDPSXDS_SCALE): Likewise.
20394 (XVCVDPUXDS_SCALE): Likewise.
20395 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20396 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20397 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20398 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20399 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20401 * config/rs6000/rs6000.c (real.h): New include.
20402 (rs6000_scale_v2df): New function.
20403 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20404 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20405 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20406 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20407 (vsx_xvcvsxddp_scale): New define_expand.
20408 (vsx_xvcvsxddp): New define_insn.
20409 (vsx_xvcvuxddp_scale): New define_expand.
20410 (vsx_xvcvuxddp): New define_insn.
20411 (vsx_xvcvdpsxds_scale): New define_expand.
20412 (vsx_xvcvdpsxds): New define_insn.
20413 (vsx_xvcvdpuxds_scale): New define_expand.
20414 (vsx_xvcvdpuxds): New define_insn.
20415 * doc/extend.texi (vec_ctf): Add new prototypes.
20416 (vec_cts): Likewise.
20417 (vec_ctu): Likewise.
20418 (vec_splat): Likewise.
20419 (vec_div): Likewise.
20420 (vec_mul): Likewise.
20422 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20425 * config/arm/neon.md
20426 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20427 <v_cmp_result>): New pattern.
20428 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20429 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20430 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20431 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20432 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20433 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20435 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20438 * config/arm/iterators.md (FIXUORS): New code iterator.
20439 (VCVT): New int iterator.
20440 (su_optab): New code attribute.
20442 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20444 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20446 * config/aarch64/predicates.md (aarch64_comparison_operation):
20447 New special predicate.
20448 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20449 aarch64_comparison_operation instead of matching an operator.
20450 Update operand numbers.
20451 (csinc3<mode>_insn): Likewise.
20452 (*csinv3<mode>_insn): Likewise.
20453 (*csneg3<mode>_insn): Likewise.
20454 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20455 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20456 Return -1 instead of aborting on invalid condition codes.
20457 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20458 to assert that the returned condition code is valid.
20459 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20461 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20463 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20464 tree.def, and gimple.def
20466 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20467 Balaji V. Iyer <balaji.v.iyer@intel.com>
20468 Igor Zamyatin <igor.zamyatin@intel.com>
20470 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20471 (__cilkrts_cilk_for_64): Likewise.
20472 * cilk-common.c (declare_cilk_for_builtin): New function.
20473 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20474 __cilkrts_cilk_for_64 bultins.
20475 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20477 (cilk_for_32_fndecl): New define.
20478 (cilk_for_64_fndecl): Likewise.
20479 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20480 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20481 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20482 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20483 GF_OMP_FOR_COMBINED_INTO.
20484 * gimplify.c (gimplify_scan_omp_clauses): Added
20485 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20486 (gimplify_adjust_omp_clauses): Ditto.
20487 (gimplify_omp_for): Added CILK_FOR case.
20488 (gimplify_expr): Ditto.
20489 * omp-low.c: Include cilk.h.
20490 (extract_omp_for_data): Set appropriate kind for
20491 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20492 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20493 (create_omp_child_function_name): Added second argument to handle
20495 (cilk_for_check_loop_diff_type): New function.
20496 (expand_cilk_for_call): Likewise.
20497 (expand_cilk_for): Likewise.
20498 (create_omp_child_function): Set cilk_for_count; handle the cases when
20499 it is true; call create_omp_child_function_name with second argument.
20500 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20501 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20502 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20503 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20504 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20505 (convert_local_omp_clauses): Ditto.
20506 * tree-pretty-print.c (dump_omp_clause): Added
20507 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20508 (dump_generic_node): Added CILK_FOR case.
20509 * tree.c (omp_clause_num_ops): New element
20510 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20511 (omp_clause_code_name): New element _Cilk_for_count_.
20512 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20513 * tree.def: Add tree code for CILK_FOR.
20515 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20517 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20518 (ppc403-compare): Add "exts with dot" case.
20519 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20520 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20521 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20522 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20523 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20524 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20525 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20526 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20527 cell-cmp-microcoded): Similarly.
20528 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20529 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20530 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20531 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20532 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20533 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20534 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20535 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20536 (power6-compare): Add "exts with dot" case.
20537 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20538 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20539 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20541 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20542 if avoiding Cell microcode.
20543 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20544 (is_cracked_insn): Ditto.
20545 (insn_must_be_first_in_group): Ditto.
20546 * config/rs6000/rs6000.md (dot): Adjust comment.
20547 (cell_micro): Handle exts+dot.
20548 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20549 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20550 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20551 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20552 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20553 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20554 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20556 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20558 * config/rs6000/rs6000.md (QHSI): Delete.
20559 (EXTQI, EXTHI, EXTSI): New mode iterators.
20560 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20561 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20562 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20563 9 anonymous instructions, and 8 splitters): Delete.
20564 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20565 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20566 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20567 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20568 *zero_extendsi<mode>2_dot2): New.
20570 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20572 * config/rs6000/rs6000.md (any_extend): New code iterator.
20573 (u, su): New code attributes.
20574 (dmode, DMODE): New mode attributes.
20575 (<su>mul<mode>3_highpart): New.
20576 (*<su>mul<mode>3_highpart): New.
20577 (<su>mulsi3_highpart_le): New.
20578 (<su>muldi3_highpart_le): New.
20579 (<su>mulsi3_highpart_64): New.
20580 (<u>mul<mode><dmode>3): New.
20581 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20582 splitters): Delete.
20583 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20584 splitters): Delete.
20586 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20588 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20589 *mulsi3_internal2, and two splitters): Delete.
20590 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20592 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20594 2014-09-02 Richard Biener <rguenther@suse.de>
20596 PR tree-optimization/62695
20597 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20600 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20603 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20605 2014-09-01 Andi Kleen <ak@linux.intel.com>
20607 * file-find.c (add_prefix_begin): Add.
20608 (do_add_prefix): Rename from add_prefix with first argument.
20609 (add_prefix): Add new wrapper.
20610 * file-find.h (add_prefix_begin): Add.
20611 * gcc-ar.c (main): Support -B option.
20613 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20615 * genemit.c: Include dumpfile.h.
20616 (gen_split): Print name of splitter function to dump file.
20618 2014-09-01 Richard Biener <rguenther@suse.de>
20620 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20621 Use stack auto_vecs for constraint expressions.
20622 (find_func_aliases_for_call): Likewise.
20623 (find_func_aliases): Likewise.
20624 (find_func_clobbers): Likewise.
20626 2014-09-01 Richard Biener <rguenther@suse.de>
20628 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20629 operands vector in most cases. Remove redundant code.
20631 2014-09-01 Olivier Hainque <hainque@adacore.com>
20633 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20634 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20635 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20637 2014-09-01 Richard Biener <rguenther@suse.de>
20639 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20640 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20641 vn_reference_compute_hash, vn_reference_insert): Remove.
20642 (vn_reference_lookup_call): New function.
20643 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20644 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20645 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20646 (create_reference_ops_from_call): Remove.
20647 (vn_reference_lookup_3): Properly update shared_lookup_references.
20648 (vn_reference_lookup_pieces): Assert that we updated
20649 shared_lookup_references properly.
20650 (vn_reference_lookup): Likewise.
20651 (vn_reference_lookup_call): New function.
20652 (visit_reference_op_call): Use it. Avoid re-building the
20654 (visit_reference_op_load): Remove redundant lookup.
20655 (visit_reference_op_store): Perform special tail-merging work
20656 only when possibly doing tail-merging.
20657 (visit_use): Likewise.
20658 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20660 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20663 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20664 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20665 (find_inc): Revert 2014-08-13 change.
20667 2014-09-01 Marek Polacek <polacek@redhat.com>
20669 PR middle-end/61903
20670 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20671 Change the type of V to unsigned HOST_WIDE_INT.
20673 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20675 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20676 the size of byte markers.
20677 (do_shift_rotate): Fix confusion between host, target and marker byte
20679 (verify_symbolic_number_p): Likewise.
20680 (find_bswap_or_nop_1): Likewise.
20681 (find_bswap_or_nop): Likewise.
20683 2014-09-01 Olivier Hainque <hainque@adacore.com>
20685 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20686 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20688 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20690 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20691 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20692 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20694 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20698 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20699 (build_check_stmt): Likewise.
20700 (instrument_strlen_call): Likewise.
20701 (asan_expand_check_ifn): Likewise and fix types.
20702 (maybe_cast_to_ptrmode): New function.
20704 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20706 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20708 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20710 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20712 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20714 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20715 prefix to function labels when generating fast indirect calls.
20717 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20721 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20722 param back from rtx_insn * to rtx. Rename param from "label" to
20723 "label_or_return", reintroducing "label" as an rtx_insn * after
20724 we've ensured it's not a RETURN.
20725 (first_active_target_insn): Likewise for return type and param;
20726 add a checked cast to rtx_insn * once we've ensured "insn" is not
20728 (steal_delay_list_from_target): Convert param "pnew_thread" back
20729 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20731 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20732 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20733 cast once we've established we're not dealing with a RETURN,
20734 renaming subsequent uses of "thread" to "thread_insn".
20735 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20737 (follow_jumps): Convert return type and param "label" from
20738 rtx_insn * back to rtx. Move initialization of "value" to after
20739 the handling for ANY_RETURN_P, adding a checked cast there to
20740 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20741 rename to "this_label_or_return", reintroducing "this_label" as
20742 an rtx_insn * once we've handled the case where it could be an
20744 (fill_slots_from_thread): Rename param "thread" to
20745 "thread_or_return", converting from an rtx_insn * back to an rtx.
20746 Reintroduce name "thread" as an rtx_insn * local with a checked
20747 cast once we've handled the case of it being an ANY_RETURN_P.
20748 Convert local "new_thread" from an rtx_insn * back to an rtx.
20749 Add a checked cast when assigning to "trial" from "new_thread".
20750 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20751 checked cast to rtx_insn * from "new_thread" when invoking
20753 (fill_eager_delay_slots): Convert locals "target_label",
20754 "insn_at_target" from rtx_insn * back to rtx.
20755 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20756 (relax_delay_slots): Convert locals "trial", "target_label" from
20757 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20758 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20759 invoking update_block.
20760 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20761 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20763 * resource.h (mark_target_live_regs): Undo erroneous conversion
20764 of second param of r214693, converting it back from rtx_insn * to
20765 rtx, since it could be a RETURN.
20767 * resource.c (find_dead_or_set_registers): Similarly, convert
20768 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20769 could be writing back a RETURN. Rename local rtx_insn * "next" to
20770 "next_insn", and introduce "lab_or_return" as a local rtx,
20771 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20772 (mark_target_live_regs): Undo erroneous conversion
20773 of second param of r214693, converting it back from rtx_insn * to
20774 rtx, since it could be a RETURN. Rename it from "target" to
20775 "target_maybe_return", reintroducing the name "target" as a local
20776 rtx_insn * with a checked cast, after we've handled the case of
20779 2014-08-29 DJ Delorie <dj@redhat.com>
20781 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20782 pointer size up to a power of two.
20783 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20784 (POINTER_SIZE_UNITS): New, rounded up value.
20785 * dwarf2asm.c (size_of_encoded_value): Use it.
20786 (dw2_output_indirect_constant_1): Likewise.
20787 * expmed.c (init_expmed_one_conv): We now know the sizes of
20789 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20790 * optabs.c (expand_float): Use precision, not size.
20791 (expand_fix): Likewise.
20792 * simplify-rtx (simplify_unary_operation_1): Likewise.
20793 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20794 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20795 (default_assemble_integer) Likewise.
20796 (dump_tm_clone_pairs): Likewise.
20797 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20798 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20799 (prepare_call_arguments): Likewise.
20800 * stor-layout.c (finalize_type_size): Preserve precision.
20801 (layout_type): Use precision, not size.
20803 * expr.c (convert_move): If the target has an explicit converter,
20806 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20808 * gdbinit.in: Skip various inline functions in rtl.h when
20811 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20814 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20816 2014-08-29 Richard Biener <rguenther@suse.de>
20818 PR tree-optimization/62291
20819 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20820 exactly the vector size needed and use quick_push.
20821 (phi_translate_1): Adjust comment.
20822 (valid_in_sets): Remove block argument and remove pointless
20824 (dependent_clean): Adjust for removal of block argument.
20826 (compute_antic_aux): Likewise.
20827 (compute_partial_antic_aux): Likewise.
20829 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20831 Anna Tikhonova <anna.tikhonova@intel.com>
20832 Ilya Tocar <ilya.tocar@intel.com>
20833 Andrey Turetskiy <andrey.turetskiy@intel.com>
20834 Ilya Verbin <ilya.verbin@intel.com>
20835 Kirill Yukhin <kirill.yukhin@intel.com>
20836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20838 * config/i386/sse.md
20839 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20840 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20841 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20842 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20844 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20846 Anna Tikhonova <anna.tikhonova@intel.com>
20847 Ilya Tocar <ilya.tocar@intel.com>
20848 Andrey Turetskiy <andrey.turetskiy@intel.com>
20849 Ilya Verbin <ilya.verbin@intel.com>
20850 Kirill Yukhin <kirill.yukhin@intel.com>
20851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20853 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20854 * config/i386/sse.md
20855 (define_mode_iterator VI4_128_8_256): New.
20856 (define_mode_iterator VI2_128_4_256): Ditto.
20857 (define_mode_iterator PMOV_DST_MODE): Rename into
20858 (define_mode_iterator PMOV_DST_MODE_1): this.
20859 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20860 Use PMOV_DST_MODE_1 mode iterator.
20861 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20863 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20865 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20866 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20867 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20868 (define_mode_iterator PMOV_DST_MODE_2): New.
20869 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20870 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20871 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20873 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20874 (define_mode_attr pmov_dst_3): Ditto.
20875 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20876 (define_mode_attr pmov_suff_3): Ditto.
20877 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20878 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20879 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20880 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20881 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20882 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20883 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20884 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20885 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20886 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20887 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20888 (define_mode_attr pmov_dst_4): Ditto.
20889 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20890 (define_mode_attr pmov_suff_4): Ditto.
20891 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20892 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20893 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20894 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20895 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20896 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20897 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20898 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20899 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20900 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20901 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20903 2014-08-29 Richard Biener <rguenther@suse.de>
20905 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20906 NON_LVALUE_EXPR in gimple.
20908 2014-08-29 Richard Biener <rguenther@suse.de>
20910 PR middle-end/62292
20911 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20912 from previous refactoring.
20913 (gimple_fold_builtin_strncpy): Likewise.
20915 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20918 * function.c (assign_parm_setup_reg): Remove erroneous checked
20919 cast to rtx_insn * on result of gen_extend_insn in favor of
20920 introducing a new local rtx "pat".
20922 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20924 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20925 to silence warning.
20926 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20928 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20930 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20931 (next_insn): Likewise.
20932 * emit-rtl.c (next_insn): Likewise.
20933 (previous_insn): Likewise.
20934 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20935 "insn" and "next" from rtx to rtx_insn *.
20936 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20937 "insn", "insn1", "vliw_start", "prologue_end_note",
20938 "last_insn_in_packet".
20940 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20942 * shrink-wrap.h (active_insn_between): Strengthen both params from
20944 * function.c (active_insn_between): Likewise.
20946 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20948 * genattr.c (main): When writing out insn-attr.h, strengthen param
20949 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20950 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20951 writing out the definition of dfa_clear_single_insn_cache to the
20952 generated insn-automata.c
20954 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20956 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20958 (incr_ticks_for_insn): Likewise.
20959 (init_resource_info): Likewise.
20961 * resource.c (init_resource_info): Likewise.
20962 (clear_hashed_info_for_insn): Likewise.
20963 (incr_ticks_for_insn): Likewise.
20965 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20967 (steal_delay_list_from_target): Use methods of "seq".
20968 (try_merge_delay_insns): Use methods of "merged_insns".
20969 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20970 (reorg_redirect_jump): Likewise for param "jump".
20972 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20974 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20976 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20977 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20979 (s390_mainpool_finish): In three places, split out a local rtx
20980 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20981 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20982 and split another local rtx "insn" out into rtx "pat" and
20984 * config/sh/sh.c (output_branchy_insn): Rather than working
20985 directly on operands[9], introduce local rtx_code_label *
20986 variables named "lab" in two places, working on them, and then
20987 assigning them to operands[9], so that the intervening operations
20988 are known by the type system to be on insns.
20990 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20992 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20995 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20996 in invocation of INSN_HAS_LOCATION.
20998 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21000 * config/rs6000/altivec.h (vec_xl): New #define.
21001 (vec_xst): Likewise.
21002 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
21003 (XXSPLTD_V2DI): Likewise.
21004 (DIV_V2DI): Likewise.
21005 (UDIV_V2DI): Likewise.
21006 (MUL_V2DI): Likewise.
21007 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21008 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
21009 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
21010 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
21011 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
21012 (UNSPEC_VSX_DIVSD): Likewise.
21013 (UNSPEC_VSX_DIVUD): Likewise.
21014 (UNSPEC_VSX_MULSD): Likewise.
21015 (vsx_mul_v2di): New insn-and-split.
21016 (vsx_div_v2di): Likewise.
21017 (vsx_udiv_v2di): Likewise.
21018 (vsx_xxspltd_<mode>): New insn.
21020 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21022 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
21024 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
21025 (NEXT_INSN): Likewise.
21026 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
21027 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
21029 (no_labels_between_p): Likewise for both params.
21031 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
21032 cast when using NEXT_INSN on operands[2].
21033 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
21034 "insn" from rtx to rtx_insn *, adding a checked cast.
21035 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
21037 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
21039 (arc_text_label): Likewise for param "insn".
21040 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
21042 (arc_ccfsm_record_condition): Likewise for param "jump".
21043 (arc_text_label): Likewise for local "label".
21044 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
21045 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
21046 a method for typesafety. Add a checked cast.
21047 * config/arc/constraints.md (Clb): Add a checked cast when getting
21048 the CODE_LABEL from a LABEL_REF.
21049 * config/arm/arm.c (require_pic_register): Strengthen locals
21050 "seq", "insn" from rtx to rtx_insn *.
21051 (create_fix_barrier): Likewise for locals "selected", "next".
21052 (thumb1_reorg): Likewise for locals "prev", "insn".
21053 (arm_expand_prologue): Likewise for local "last".
21054 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
21056 (thumb2_output_casesi): Likewise for operands[2].
21057 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
21058 strengthen local "insn" from rtx to rtx_insn *.
21059 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
21060 type and param "insn".
21061 (find_prev_insn_start): Likewise.
21062 (hwloop_optimize): Likewise for locals "insn", "last_insn",
21064 (gen_one_bundle): Likewise for loal "t".
21065 (find_load): Likewise for param "insn".
21066 (workaround_speculation): Likewise for locals "insn", "next",
21067 "target", "next_tgt".
21068 * config/c6x/c6x.c (assign_reservations): Likewise for both params
21069 and for locals "insn", "within", "last".
21070 (count_unit_reqs): Likewise for params "head", "tail" and local
21072 (try_rename_operands): Likewise for params "head", "tail".
21073 (reshuffle_units): Likewise for locals "head", "tail", "insn".
21074 (struct c6x_sched_context): Likewise for fields
21075 "last_scheduled_insn", "last_scheduled_iter0".
21076 (init_sched_state): Replace NULL_RTX with NULL.
21077 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
21079 (undo_split_delayed_nonbranch): Likewise for param and for local
21081 (conditionalize_after_sched): Likewise for local "insn".
21082 (bb_earliest_end_cycle): Likewise.
21083 (filter_insns_above): Likewise for locals "insn", "next".
21084 (hwloop_optimize): Remove redundant checked cast.
21085 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
21086 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
21087 NULL_RTX with NULL.
21088 (cris_simple_epilogue): Likewise.
21089 (cris_expand_prologue): Likewise.
21090 (cris_expand_epilogue): Likewise.
21091 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
21092 local "insn" from rtx to rtx_insn *.
21093 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
21094 (struct frv_packet_group): Likewise for the elements within array
21095 fields "insns", "sorted", and for field "nop".
21096 (frv_packet): Likewise for the elements within array field
21098 (frv_add_insn_to_packet): Likewise for param "insn".
21099 (frv_insert_nop_in_packet): Likewise for param "insn" and local
21101 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
21102 (frv_sort_insn_group_1): Likewise for local "insn".
21103 (frv_optimize_membar_local): Likewise.
21104 (frv_align_label): Likewise for locals "x", "last", "barrier",
21106 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
21108 (ia64_sched_init): Likewise for local "insn".
21109 (scheduled_good_insn): Likewise for param "last".
21110 (struct _ia64_sched_context): Likewise for field
21111 "last_scheduled_insn".
21112 (ia64_init_sched_context): Replace NULL_RTX with NULL.
21113 (struct bundle_state): Likewise for field "insn".
21114 (issue_nops_and_insn): Likewise for param "insn".
21115 (get_next_important_insn): Likewise for return type and both
21117 (ia64_add_bundle_selector_before): Likewise for param "insn".
21118 (bundling): Likewise for params "prev_head_insn", "tail" and
21119 locals "insn", "next_insn", "b". Eliminate top-level local rtx
21120 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
21121 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
21122 Strengthen final param from rtx to rtx_insn *.
21123 (iq2000_move_1word): Likewise for second param.
21124 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
21125 param "cur_insn" and local "next_insn".
21126 (iq2000_move_1word): Likewise for param "insn".
21127 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
21128 casts when using NEXT_INSN on operands[1].
21129 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
21130 "insn" from rtx to rtx_insn *.
21131 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
21132 "x", introducing local rtx_insn * "insn" for when working with the
21133 CODE_LABEL of the LABEL_REF.
21134 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
21136 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
21138 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
21140 (conditionalize_block): Likewise for return type and param.
21141 (mcore_is_dead): Likewise for param "first" and local "insn".
21142 (emit_new_cond_insn): Likewise for return type.
21143 (conditionalize_block): Likewise for return type, param, and
21144 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
21146 (conditionalize_optimization): Likewise for local "insn".
21147 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
21149 * config/microblaze/microblaze.md: Add checked casts when using
21151 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
21152 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
21153 and rtx_insn * "insn".
21154 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
21155 checked cast when using NEXT_INSN on operands[2].
21156 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
21157 local "insn" from rtx to rtx_insn *.
21158 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
21160 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
21161 Add a checked cast when using NEXT_INSN on operands[1].
21162 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
21164 (pa_output_cbranch): Likewise for final param.
21165 (pa_output_lbranch): Likewise for second param.
21166 (pa_output_bb): Likewise for third param.
21167 (pa_output_bvb): Likewise.
21168 (pa_output_dbra): Likewise for second param.
21169 (pa_output_movb): Likewise.
21170 (pa_output_parallel_movb): Likewise.
21171 (pa_output_parallel_addb): Likewise.
21172 (pa_output_millicode_call): Likewise for first param.
21173 (pa_output_mul_insn): Likewise for second param.
21174 (pa_output_div_insn): Likewise for third param.
21175 (pa_output_mod_insn): Likewise for second param.
21176 (pa_jump_in_call_delay): Likewise for param.
21177 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
21178 (pa_output_div_insn): Likewise.
21179 (pa_output_mod_insn): Likewise.
21180 (pa_output_cbranch): Likewise.
21181 (pa_output_lbranch): Likewise.
21182 (pa_output_bb): Likewise.
21183 (pa_output_bvb): Likewise.
21184 (pa_output_dbra): Likewise.
21185 (pa_output_movb): Likewise.
21186 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
21187 to simplify and for typesafety.
21188 (pa_output_call): Use method of rtx_sequence *.
21189 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
21190 (pa_jump_in_call_delay): Likewise.
21191 (pa_output_parallel_movb): Likewise.
21192 (pa_output_parallel_addb): Likewise.
21193 (pa_following_call): Likewise.
21194 (pa_combine_instructions): Likewise for locals "anchor",
21196 (pa_can_combine_p): Likewise for params "anchor", "floater" and
21197 locals "start", "end".
21198 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
21199 param "insn" and local "local_insn".
21200 (picochip_final_prescan_insn): Likewise for local "local_insn".
21201 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
21203 (uses_TOC): Likewise.
21204 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
21205 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
21206 splitting out to more tightly-scoped locals, 3 as rtx and one as
21208 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
21210 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
21212 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
21214 (fixup_addr_diff_vecs): Likewise.
21215 (reg_unused_after): Likewise for param 2.
21216 (sh_can_redirect_branch): Likewise for both params.
21217 (check_use_sfunc_addr): Likewise for param 1.
21218 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
21219 (find_barrier): Likewise for local "last_got".
21220 (gen_block_redirect): Likewise for return type, param "jump" and
21221 locals "prev", "scan", "next", "insn".
21222 (struct far_branch): Likewise for fields "near_label",
21223 "insert_place", "far_label".
21224 (gen_far_branch): Likewise for local "jump".
21225 (fixup_addr_diff_vecs): Likewise for param "first" and locals
21227 (barrier_align): Likewise for param and for locals "prev", "x".
21228 Introduce local rtx_sequence * "prev_seq" and use insn method for
21229 typesafety and clarity.
21230 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
21231 (get_dest_uid): Likewise for local "dest".
21232 (split_branches): Likewise for locals "next", "beyond", "label",
21233 "block", "far_label". Add checked casts when assigning to
21234 bp->far_label and "far_label".
21235 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
21236 (sequence_insn_p): Likewise.
21237 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
21238 more loop-scoped rtx "insn" when walking LABEL_REFS.
21239 (sh_can_redirect_branch): Strengthen both params from rtx to
21241 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
21242 new local rtx_sequence * "seq" via a dyn_cast, and use a method
21243 for clarity and typesafety.
21244 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
21245 "insn" from rtx to rtx_insn *.
21246 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
21247 when using NEXT_INSN on the CODE_LABEL in operands[2].
21248 (define_insn "casesi_worker_2"): Likewise.
21249 (define_insn "casesi_shift_media"): Likewise.
21250 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
21252 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
21253 Strengthen field "insn" from rtx to rtx_insn *.
21254 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
21255 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
21256 param "start_insn" and local "start_insn".
21257 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
21259 (find_set_of_reg_bb): Likewise for param "insn".
21260 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
21261 (trace_reg_uses): Likewise for param "start_insn".
21262 (sh_treg_combine::cbranch_trace): Likewise for field
21264 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
21266 (sh_treg_combine::record_set_of_reg): Likewise for param
21267 "start_insn" and local "i".
21268 (sh_treg_combine::can_remove_cstore): Likewise for local
21270 (sh_treg_combine::try_optimize_cbranch): Likewise for param
21272 (sh_treg_combine::execute): Likewise for local "i".
21273 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
21275 (sparc_check_64): Likewise for second param.
21276 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
21277 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
21278 dyn_cast, using its insn method for typesafety and clarity.
21279 (empty_delay_slot): Strengthen param "insn" from rtx to
21281 (set_extends): Likewise.
21282 (sparc_check_64): Likewise.
21283 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
21284 for locals "seq", "last_insn".
21285 (combine_bnp): Likewise for param "insn".
21286 (xstormy16_reorg): Likewise for local "insn".
21287 * config/v850/v850.c (substitute_ep_register): Likewise for params
21288 "first_insn", "last_insn" and local "insn".
21289 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
21290 elements of "regs" array, and local "insn".
21291 * except.c (emit_note_eh_region_end): Likewise for param "insn".
21292 * final.c (final_sequence): Strengthen this global from rtx to
21294 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
21296 (final_scan_insn): Update assignment to "final_sequence" to be
21297 from "seq", the cast version of "body", for type-safety.
21298 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
21299 "insns" from rtx to rtx_insn *.
21300 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21301 * genattr.c (main): When writing out generated insn-attr.h,
21302 strengthen params 1 and 3 of eligible_for_delay,
21303 eligible_for_annul_true, eligible_for_annul_false from rtx to
21305 * genattrtab.c (write_eligible_delay): Likewise when writing out
21306 generated insn-attrtab.c; also local "insn" the generated
21308 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21310 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21311 "start_label" from rtx to rtx_insn *.
21312 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21313 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21314 "insns" and local "insn".
21315 (validate_equiv_mem): Likewise for param "start" and local "insn".
21316 (memref_used_between_p): Likewise for params "start", "end" and
21318 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21320 * loop-doloop.c (doloop_optimize): Within region guarded by
21321 INSN_P (doloop_pat), introduce a new local rtx_insn *
21322 "doloop_insn" via a checked cast, and use it for typesafety,
21323 eventually writing the value back into doloop_pat.
21324 * output.h (final_sequence): Strengthen this global from rtx to
21326 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21327 reintroducing "insn" as an rtx_insn * via a checked cast.
21328 Strengthen param "attempt" and local "new_insn"from rtx to
21330 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21332 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21333 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21334 "p" in favor of more tightly-scoped replacements, sometimes rtx
21335 and sometimes rtx_insn *, as appropriate.
21336 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21337 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21338 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21339 local "trial" from rtx to rtx_insn *.
21340 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21341 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21342 rtx_sequence * and use methods for clarity and typesafety.
21343 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21344 rtx to rtx_insn *. Strenghten local "li" from rtx to
21345 rtx_insn_list * and use its methods for clarity and typesafety.
21346 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21348 (steal_delay_list_from_fallthrough): Likewise.
21349 (try_merge_delay_insns): Likewise for param "thread" and locals
21350 "trial", "next_trial", "delay_insn".
21351 (redundant_insn): Likewise for param "target" and local "trial".
21352 (own_thread_p): Likewise for param "thread" and locals
21353 "active_insn", "insn".
21354 (get_label_before): Likewise for param "insn".
21355 (fill_simple_delay_slots): Likewise for local "new_label"; use
21356 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21357 (label_before_next_insn): Strengthen return type and local "insn"
21358 from rtx to rtx_insn *.
21359 (relax_delay_slots): Likewise for locals "other", "tmp".
21360 (make_return_insns): Likewise for param "first" and locals "insn",
21361 "jump_insn", "prev". Move declaration of "pat" to its assignment
21362 and strengthen from rtx to rtx_sequence *. Use its methods for
21363 clarity and typesafety.
21364 * rtlanal.c (no_labels_between_p): Strengthen params from
21365 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21367 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21368 from const_rtx to const rtx_insn *.
21369 (reg_set_between_p): Rename param "from_insn" to
21370 "uncast_from_insn", and reintroduce "from_insn" as a
21371 const rtx_insn * via a checked cast.
21372 (modified_between_p): Likewise for param "start" as "uncast_start".
21373 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21374 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21375 "tmp", head" from rtx to rtx_insn *.
21376 (recompute_rev_top_order): Likewise for local "insn".
21377 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21378 * store-motion.c (build_store_vectors): Likewise for local "insn".
21379 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21380 for clarity and typesafety.
21381 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21383 (computation_cost): Likewise for local "seq".
21384 (get_address_cost): Likewise.
21386 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21388 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21390 (label_is_jump_target_p): Likewise for second param.
21392 * rtlanal.c (tablejump_p): Likewise for param "insn".
21393 (label_is_jump_target_p): Likewise for param "jump_insn".
21395 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21397 * rtl.h (find_first_parameter_load): Strengthen return type and
21398 both params from rtx to rtx_insn *.
21399 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21400 both params and locals "before", "first_set" from rtx to
21401 rtx_insn *. Remove now-redundant cast.
21402 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21404 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21406 * rtl.h (find_last_value): Delete.
21407 * rtlanal.c (find_last_value): Delete.
21409 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21411 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21412 from rtx to rtx_insn *.
21413 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21414 rtx "note" with new local rtx_insn * "new_head" when calculating
21415 head insn of new basic block.
21416 * combine.c (combine_split_insns): Strengthen return type and local
21417 "ret" from rtx to rtx_insn *.
21418 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21419 (try_combine): Eliminate local "m_split", splitting into new
21420 locals "m_split_insn" and "m_split_pat".
21421 (find_split_point): Strengthen local "seq" from rtx into
21423 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21424 locals "label", "branch".
21425 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21427 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21428 * dse.c (note_add_store_info): Likewise for fields "first",
21430 (note_add_store): Likewise for local "insn".
21431 (emit_inc_dec_insn_before): Likewise for locals "insn",
21433 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21434 (replace_read): Likewise for locals "insns", "this_insn".
21435 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21436 (notice_eh_throw): Likewise for param "insn".
21437 (before_next_cfi_note): Likewise for return type, param, and local
21439 (connect_traces): Likewise for local "note".
21440 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21441 (verify_rtl_sharing): Likewise.
21442 (unshare_all_rtl_in_chain): Likewise for param "insn".
21443 (get_first_nonnote_insn): Likewise for local "insn".
21444 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21445 "seq" and use its methods to clarify things.
21446 (next_insn): Strengthen return type from rtx to rtx_insn *.
21447 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21448 local rtx_insn * using a checked cast, dropping a checked cast
21449 made redundant by this change. Use a cast to and method of
21450 rtx_sequence to clarify the code.
21451 (previous_insn): Rename param "insn" to "uncast_insn" and
21452 reintroduce "insn" as a local rtx_insn * using a checked cast,
21453 dropping a checked cast made redundant by this change. Use a cast
21454 to and method of rtx_sequence to clarify the code.
21455 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21456 reintroduce "insn" as a local rtx_insn * using a checked cast,
21457 dropping a checked cast made redundant by this change.
21458 (next_nonnote_insn_bb): Likewise.
21459 (prev_nonnote_insn): Likewise.
21460 (prev_nonnote_insn_bb): Likewise.
21461 (next_nondebug_insn): Likewise.
21462 (prev_nondebug_insn): Likewise.
21463 (next_nonnote_nondebug_insn): Likewise.
21464 (prev_nonnote_nondebug_insn): Likewise.
21465 (next_real_insn): Likewise.
21466 (prev_real_insn): Likewise.
21467 (next_active_insn): Likewise.
21468 (prev_active_insn): Likewise.
21469 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21471 (prev_cc0_setter): Likewise.
21472 (try_split): Rename param "trial" to "uncast_trial" and
21473 reintroduce "insn" as a local rtx_insn * using a checked cast,
21474 dropping checked casts made redundant by this change.
21475 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21477 (remove_insn): Rename param "insn" to "uncast_insn" and
21478 reintroduce "insn" as a local rtx_insn * using a checked cast.
21479 (emit_pattern_after_setloc): Likewise for param "after", as
21481 (emit_pattern_after): Likewise. Strengthen local "prev" from
21483 (emit_pattern_before_setloc): Rename param "before" to
21484 "uncast_before" and reintroduce "before" as a local rtx_insn *
21485 using a checked cast. Strengthen locals "first", "last" from
21487 (emit_pattern_before): Likewise rename/cast param "before" to
21488 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21489 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21490 "first" and local "insn" from rtx to rtx_insn *.
21491 (copy_reg_eh_region_note_backward): Likewise for param "last"
21493 * expr.c (fixup_args_size_notes): Rename param "last" to
21494 "uncast_last" and reintroduce "last" as a local rtx_insn *
21495 using a checked cast. Strengthen local "insn" from rtx to
21497 * function.c (set_insn_locations): Strengthen param "insn" from
21499 (record_insns): Likewise for param "insns" and local "tmp".
21500 (active_insn_between): Rename param "tail" to
21501 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21502 using a checked cast.
21503 (thread_prologue_and_epilogue_insns): Split out top-level local
21504 rtx "seq" into three different rtx_insn * locals. Strengthen
21505 local "prologue_seq" from rtx to rtx_insn *.
21506 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21507 from rtx to rtx_insn *.
21508 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21509 (priority): Likewise for locals "prev_first", "twin".
21510 (setup_insn_max_reg_pressure): Likewise for param "after".
21511 (sched_setup_bb_reg_pressure_info): Likewise.
21512 (no_real_insns_p): Strengthen params from const_rtx to
21514 (schedule_block): Strengthen local "next_tail" from rtx to
21516 * ifcvt.c (find_active_insn_before): Strengthen return type and
21517 param "insn" from rtx to rtx_insn *.
21518 (find_active_insn_after): Likewise.
21519 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21520 (cond_exec_process_if_block): Likewise for locals "then_start",
21521 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21522 (noce_process_if_block): Likewise for local "jump".
21523 (merge_if_block): Likewise for two locals named "end".
21524 (cond_exec_find_if_block): Likewise for local "last_insn".
21525 * jump.c (delete_related_insns): Rename param "insn" to
21526 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21527 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21528 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21530 (split_reg): Likewise.
21531 * lra.c (lra_process_new_insns): Likewise.
21532 * modulo-sched.c (permute_partial_schedule): Strengthen param
21533 "last" from rtx to rtx_insn *.
21534 * optabs.c (add_equal_note): Likewise for param "insns" and local
21536 (expand_binop_directly): Add checked casts to rtx_insn * within
21537 NEXT_INSN (pat) uses.
21538 (expand_unop_direct): Likewise.
21539 (maybe_emit_unop_insn): Likewise.
21540 * recog.c (peep2_attempt): Strengthen locals "last",
21541 "before_try", "x" from rtx to rtx_insn *.
21542 * reorg.c (optimize_skip): Strengthen return type and local
21543 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21544 and locals "trial", "next_trial" from rtx to rtx_insn *.
21545 * resource.c (next_insn_no_annul): Strengthen return type and
21546 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21547 rtx_sequence to clarify the code.
21548 (mark_referenced_resources): Add a checked cast to rtx_insn *
21549 within PREV_INSN (x).
21550 (find_dead_or_set_registers): Strengthen return type, param
21551 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21552 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21554 (mark_target_live_regs): Strengthen params "insns" and "target",
21555 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21556 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21558 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21559 from rtx to rtx_insn *.
21560 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21561 from rtx to rtx_insn *.
21562 (copy_reg_eh_region_note_backward): Likewise.
21563 (unshare_all_rtl_in_chain): Likewise for sole param.
21564 (dump_rtl_slim): Strengthen second and third params from const_rtx
21565 to const rtx_insn *.
21566 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21567 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21568 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21569 "next_tail" from rtx to rtx_insn *.
21570 (begin_move_insn): Likewise for local "next".
21571 * sched-int.h (sched_free_deps): Likewise for first and second
21573 (no_real_insns_p): Strengthen both params from const_rtx to
21575 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21577 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21579 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21580 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21581 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21583 (debug_rtl_slim): Strengthen params "first" and "last" from
21584 const_rtx to const rtx_insn *.
21585 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21586 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21587 (convert_to_simple_return): Likewise for param "returnjump".
21588 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21590 (convert_to_simple_return): Likewise for param "returnjump".
21591 * valtrack.c (propagate_for_debug): Likewise for params
21593 * valtrack.h (propagate_for_debug): Likewise for second param.
21595 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21597 * output.h (insn_current_reference_address): Strengthen param
21598 from rtx to rtx_insn *.
21599 * final.c (insn_current_reference_address): Likewise.
21601 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21603 * basic-block.h (inside_basic_block_p): Strengthen param from
21604 const_rtx to const rtx_insn *.
21605 * cfgbuild.c (inside_basic_block_p): Likewise.
21607 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21609 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21611 (get_trace_info): Likewise for param "insn".
21612 (save_point_p): Likewise.
21613 (maybe_record_trace_start): Likewise for both params.
21614 (maybe_record_trace_start_abnormal): Likewise.
21615 (create_trace_edges): Likewise for sole param and for three of the
21616 locals named "lab".
21617 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21618 to rtx_insn *, and update a call to pat->element to pat->insn.
21620 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21622 * function.h (struct expr_status): Convert field "x_forced_labels"
21623 from rtx_expr_list * to rtx_insn_list *.
21625 * cfgbuild.c (make_edges): Convert local "x" from an
21626 rtx_expr_list * to an rtx_insn_list *, replacing use of
21627 "element" method with "insn" method.
21628 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21629 * except.c (sjlj_emit_dispatch_table): Replace use of
21630 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21632 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21633 rtx_expr_list * to an rtx_insn_list *, replacing use of
21634 "element" method with "insn" method.
21635 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21636 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21637 rtx_insn *, adding a checked cast. Replace use of
21638 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21640 (expand_label): Likewise for local "label_r".
21642 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21644 * function.h (struct rtl_data): Convert field
21645 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21647 * rtl.h (remove_node_from_insn_list): New prototype.
21649 * builtins.c (expand_builtin): When prepending to
21650 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21652 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21653 to rtx_insn_list *, and use its "insn" method rather than
21655 * cfgrtl.c (delete_insn): Use new function
21656 remove_node_from_insn_list rather than
21657 remove_node_from_expr_list.
21658 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21659 to rtx_insn_list *, and use its "insn" method rather than
21661 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21662 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21663 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21664 from remove_node_from_expr_list.
21665 * stmt.c (expand_label): When prepending to
21666 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21669 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21671 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21672 and "x_naked_return_label" from rtx to rtx_code_label *.
21674 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21676 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21677 (SET_NEXT_INSN): Likewise.
21678 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21680 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21681 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21682 to split out the SEQUENCE from local "bundle", strengthening the
21683 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21684 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21685 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21686 and the type of the elements of the "slot" array from rtx to
21688 (reorg_split_calls): Likewise for locals "insn" and "next", and
21689 the type of the elements of the "slot" array.
21691 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21693 (frv_function_prologue): Likewise for locals "insn", "next",
21695 (frv_register_nop): Introduce a local "nop_insn" to be the
21696 rtx_insn * containing rtx "nop".
21698 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21699 used as an insn and sometimes as a pattern, so rename it to
21700 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21701 using it where dealing with the core insn.
21703 * config/picochip/picochip.c (reorder_var_tracking_notes):
21704 Strengthen locals "insn", "next", "last_insn", "queue",
21705 "next_queue", "prev" from rtx to rtx_insn *.
21707 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21708 the second param is an rtx_insn ** rather than an rtx **.
21709 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21710 from rtx to rtx_sequence *, and introduce local named "sequence",
21711 using methods of rtx_sequence to clarify the code.
21712 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21714 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21715 Rename param "after" to "uncast_after", reintroducing "after" as a
21716 local rtx_insn * with a checked cast.
21717 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21718 reintroducing "after" as a local rtx_insn * with a checked cast.
21719 Strengthen local "last" from rtx to rtx_insn * and remove the
21720 now-redundant checked casts.
21721 (copy_delay_slot_insn): Strengthen return type and param from rtx
21724 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21725 "last" from rtx to rtx_insn *.
21727 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21729 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21730 param from rtx to rtx_insn *.
21732 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21734 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21735 and local "insn" from rtx to rtx_insn *.
21736 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21737 (unfilled_slots_next): Likewise.
21738 (function_return_label): Strengthen from rtx to rtx_code_label *.
21739 (function_simple_return_label): Likewise.
21740 (first_active_target_insn): Strengthen return type and param from
21742 (find_end_label): Strengthen return type from rtx to
21743 rtx_code_label *; strengthen locals as appropriate.
21744 (emit_delay_sequence): Strengthen return type, param "insn" and
21745 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21746 and local "li" from rtx to rtx_insn_list *, using methods of
21747 rtx_insn_list for clarity and typesafety.
21748 (add_to_delay_list): Strengthen return type and param "insn" from
21749 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21750 rtx_insn_list * and use methods of rtx_insn_list.
21751 (delete_from_delay_slot): Strengthen return type, param "insn",
21752 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21753 Strengthen local "seq" from rtx to rtx_sequence *, and local
21754 "delay_list" from rtx to rtx_insn_list *, using methods of
21755 rtx_sequence for clarity and type-safety.
21756 (delete_scheduled_jump): Add checked cast when invoking
21757 delete_from_delay_slot. Strengthen local "trial" from rtx to
21759 (optimize_skip): Strengthen return type and local "delay_list"
21760 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21762 (steal_delay_list_from_target): Strengthen return type, param
21763 "delay_list" and local "new_delay_list" from rtx to
21764 rtx_insn_list *. Strengthen param "seq" from rtx to
21765 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21767 Split out local "temp" into multiple more-tightly scoped locals:
21768 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21769 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21770 Strengthen locals named "trial" from rtx to rtx_insn *.
21771 (steal_delay_list_from_fallthrough): Strengthen return type and
21772 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21773 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21774 Strengthen local "trial" from rtx to rtx_insn *.
21775 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21776 to rtx_insn_list * and use its methods. Strengthen local "pat"
21777 from rtx to rtx_sequence * and use its methods. Strengthen locals
21778 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21779 (get_label_before): Strengthen return type and local "label" from
21781 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21782 "next_trial", "next", prev". Strengthen local "delay_list" from
21783 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21785 (follow_jumps): Strengthen return type, param "label" and locals
21786 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21787 (fill_slots_from_thread): Strengthen return type, param
21788 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21789 "insn", "thread", "opposite_thread" and locals "new_thread",
21790 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21791 "sequence" from a checked cast to rtx_sequence so that we can call
21792 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21793 with an rtx_sequence *.
21794 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21795 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21796 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21797 (relax_delay_slots): Strengthen param "first" and locals "insn",
21798 "next", "trial", "delay_insn", "target_label" from rtx to
21799 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21800 Introduce a local "trial_seq" for PATTERN (trial) of type
21801 rtx_sequence *, in both cases using methods of rtx_sequence.
21802 (dbr_schedule): Strengthen param "first" and locals "insn",
21803 "next", "epilogue_insn" from rtx to rtx_insn *.
21805 2014-08-28 Richard Biener <rguenther@suse.de>
21807 PR tree-optimization/62283
21808 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21809 Do not peel loops for alignment where the vector loop likely
21810 doesn't run at least VF times.
21812 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21814 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21815 important_candidates. Consider all important candidates if
21816 IVS doesn't give any result. Remove check on ivs->upto.
21817 (try_add_cand_for): Call iv_ca_add_use only once.
21819 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21821 Anna Tikhonova <anna.tikhonova@intel.com>
21822 Ilya Tocar <ilya.tocar@intel.com>
21823 Andrey Turetskiy <andrey.turetskiy@intel.com>
21824 Ilya Verbin <ilya.verbin@intel.com>
21825 Kirill Yukhin <kirill.yukhin@intel.com>
21826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21828 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21829 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21831 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21832 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21833 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21834 (define_insn "*mul<mode>3"): Add EVEX version.
21836 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21837 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21838 Anna Tikhonova <anna.tikhonova@intel.com>
21839 Ilya Tocar <ilya.tocar@intel.com>
21840 Andrey Turetskiy <andrey.turetskiy@intel.com>
21841 Ilya Verbin <ilya.verbin@intel.com>
21842 Kirill Yukhin <kirill.yukhin@intel.com>
21843 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21845 * config/i386/sse.md
21846 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21847 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21848 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21849 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21850 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21851 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21852 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21853 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21854 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21855 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21856 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21857 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21858 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21859 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21860 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21861 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21864 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21866 Anna Tikhonova <anna.tikhonova@intel.com>
21867 Ilya Tocar <ilya.tocar@intel.com>
21868 Andrey Turetskiy <andrey.turetskiy@intel.com>
21869 Ilya Verbin <ilya.verbin@intel.com>
21870 Kirill Yukhin <kirill.yukhin@intel.com>
21871 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21873 * config/i386/sse.md
21874 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21875 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21876 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21878 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21879 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21880 Anna Tikhonova <anna.tikhonova@intel.com>
21881 Ilya Tocar <ilya.tocar@intel.com>
21882 Andrey Turetskiy <andrey.turetskiy@intel.com>
21883 Ilya Verbin <ilya.verbin@intel.com>
21884 Kirill Yukhin <kirill.yukhin@intel.com>
21885 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21887 * config/i386/sse.md
21888 (define_mode_iterator VI128_256): New.
21889 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21891 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21892 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21893 Anna Tikhonova <anna.tikhonova@intel.com>
21894 Ilya Tocar <ilya.tocar@intel.com>
21895 Andrey Turetskiy <andrey.turetskiy@intel.com>
21896 Ilya Verbin <ilya.verbin@intel.com>
21897 Kirill Yukhin <kirill.yukhin@intel.com>
21898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21900 * config/i386/sse.md
21901 (define_mode_iterator VI8_256_512): New.
21902 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21904 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21905 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21907 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21909 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21911 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21912 pointer to the cumulative reloc value and return the value for
21913 this reloc instead.
21914 (compute_reloc_for_rtx): Take a const_rtx. Call
21915 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21916 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21917 for_each_rtx for the CONST case.
21919 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21921 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21922 (mark_constants_in_pattern): ...this new function to iterate over
21924 (mark_constants): Update accordingly.
21926 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21928 * varasm.c: Include rtl-iter.h.
21929 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21930 Remove the pointer to the cumulative hashval_t and just return
21931 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21932 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21933 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21935 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21937 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21938 Give real type of data parameter. Remove return value.
21939 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21940 to iterate over subrtxes.
21942 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21944 * var-tracking.c (use_narrower_mode_test): Turn from being a
21945 for_each_rtx callback to being a function that examines each
21947 (adjust_mems): Update accordingly.
21949 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21951 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21952 callback to being a function that examines each subrtx itself.
21953 Remove handling of null rtxes.
21954 (add_uses): Update accordingly.
21956 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21958 * var-tracking.c: Include rtl-iter.h.
21959 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21960 to being a function that examines each subrtx itself.
21961 (use_type): Update accordingly.
21963 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21965 * store-motion.c: Include rtl-iter.h.
21966 (extract_mentioned_regs_1): Delete.
21967 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21968 for_each_rtx to iterate over subrtxes.
21970 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21972 * sel-sched.c: Include rtl-iter.h
21973 (count_occurrences_1): Delete.
21974 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21975 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21977 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21979 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21980 * rtlanal.c (tls_referenced_p_1): Delete.
21981 (tls_referenced_p): Take a const_rtx rather than an rtx.
21982 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21984 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21986 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21987 (for_each_inc_dec): Take an rtx rather than an rtx *.
21988 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21989 (cselib_record_sets): Likewise.
21990 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21991 (check_for_inc_dec): Likewise.
21992 * rtlanal.c (for_each_inc_dec_ops): Delete.
21993 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21994 rather than a pointer to the memory address. Replace
21995 for_each_inc_dec_ops argument with separate function and data
21996 arguments. Abort on non-autoinc addresses.
21997 (for_each_inc_dec_find_mem): Delete.
21998 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21999 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
22001 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22003 * rtl.h (find_all_hard_regs): Declare.
22004 * rtlanal.c (find_all_hard_regs): New function.
22005 (record_hard_reg_uses_1): Delete.
22006 (record_hard_reg_uses): Use find_all_hard_regs.
22008 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22010 * rtl.h (replace_label_data): Delete.
22011 (replace_label): Take the old label, new label and update-nuses flag
22012 as direct arguments. Return void.
22013 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
22014 * rtlanal.c (replace_label): Update interface as above. Handle
22015 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
22016 iterator. Use FOR_EACH_SUBRTX_PTR.
22018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22020 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
22021 with const_rtx parameters.
22022 * varasm.c (get_pool_constant): Likewise.
22023 * rtlanal.c (rtx_referenced_p_1): Delete.
22024 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22025 Assert that the rtx we're looking for is nonnull. Allow searches
22026 for constant pool SYMBOL_REFs.
22028 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22030 * reload1.c: Include rtl-iter.h.
22031 (note_reg_elim_costly): Turn from being a for_each_rtx callback
22032 to being a function that examines each subrtx itself.
22033 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
22035 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22037 * regcprop.c (cprop_find_used_regs_1): Delete.
22038 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22040 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22042 * regcprop.c: Include rtl-iter.h.
22043 (kill_value): Take a const_rtx.
22044 (kill_autoinc_value): Turn from being a for_each_rtx callback
22045 to being a function that examines each subrtx itself.
22046 (copyprop_hardreg_forward_1): Update accordingly.
22048 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22050 * reg-stack.c: Include rtl-iter.h.
22051 (subst_stack_regs_in_debug_insn): Delete.
22052 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
22053 instead of for_each_rtx.
22055 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22057 * lower-subreg.c (find_decomposable_subregs): Turn from being
22058 a for_each_rtx callback to being a function that examines each
22059 subrtx itself. Remove handling of null rtxes.
22060 (decompose_multiword_subregs): Update accordingly.
22062 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22064 * lower-subreg.c (adjust_decomposed_uses): Delete.
22065 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
22066 Remove handling of null rtxes.
22068 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22070 * lower-subreg.c: Include rtl-iter.h.
22071 (resolve_subreg_use): Turn from being a for_each_rtx callback
22072 to being a function that examines each subrtx itself. Remove
22073 handling of null rtxes.
22074 (resolve_reg_notes, resolve_simple_move): Update accordingly.
22075 (decompose_multiword_subregs): Likewise.
22077 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22079 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
22080 to being a function that examines each subrtx itself.
22081 (simplify_using_condition, simplify_using_initial_values): Update
22084 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22086 * loop-iv.c: Include rtl-iter.h.
22087 (find_single_def_src): New function.
22088 (replace_single_def_regs): Turn from being a for_each_rtx callback
22089 to being a function that examines each subrtx itself.
22090 (replace_in_expr, simplify_using_initial_values): Update accordingly.
22092 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22094 * jump.c (eh_returnjump_p_1): Delete.
22095 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22096 Remove handling of null rtxes.
22098 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22100 * jump.c: Include rtl-iter.h.
22101 (returnjump_p_1): Delete.
22102 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22103 Remove handling of null rtxes.
22105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22107 * ira.c: Include rtl-iter.h.
22108 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
22109 to being a function that examines each subrtx itself. Remove
22110 handling of null rtxes.
22111 (update_equiv_regs): Update call accordingly.
22113 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22115 * fwprop.c: Include rtl-iter.h.
22116 (varying_mem_p): Turn from being a for_each_rtx callback to being
22117 a function that examines each subrtx itself.
22118 (propagate_rtx): Update accordingly.
22120 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22122 * function.c: Include rtl-iter.h
22123 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
22124 callback to being a function that examines each subrtx itself.
22125 Return the changed flag.
22126 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
22127 (instantiate_virtual_regs): Update calls accordingly.
22129 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22131 * final.c: Include rtl-iter.h.
22132 (mark_symbol_ref_as_used): Delete.
22133 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
22136 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22138 * emit-rtl.c: Include rtl-iter.h.
22139 (find_auto_inc): Turn from being a for_each_rtx callback to being
22140 a function that examines each subrtx itself. Assume the first operand
22141 to an RTX_AUTOINC is the automodified register.
22142 (try_split): Update call accordingly.
22144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22146 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
22147 Return a bool, inverting the result so that 0/false means "not ok".
22148 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
22149 subrtxes of a CONST.
22150 (mem_loc_descriptor, add_const_value_attribute)
22151 (resolve_addr_in_expr): Update calls accordingly.
22153 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22155 * dwarf2out.c: Include rtl-iter.h.
22156 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
22157 Remove unused data parameter. Return a bool, inverting the result
22158 so that 0/false means "not ok".
22159 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
22160 instead of for_each_rtx.
22162 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22164 * dse.c: Include rtl-iter.h.
22165 (check_mem_read_rtx): Change void * parameter to real type.
22166 Remove return value.
22167 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
22168 for_each_rtx. Don't handle null rtxes.
22170 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22172 * df-problems.c: Include rtl-iter.h.
22173 (find_memory): Turn from being a for_each_rtx callback to being
22174 a function that examines each subrtx itself. Continue to look for
22175 volatile references even after a nonvolatile one has been found.
22176 (can_move_insns_across): Update calls accordingly.
22178 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22180 * ddg.c (walk_mems_2, walk_mems_1): Delete.
22181 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
22182 to iterate over subrtxes. Return a bool rather than an int.
22184 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22186 * ddg.c: Include rtl-iter.h.
22187 (mark_mem_use_1): Rename to...
22188 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
22189 instead of for_each_rtx.
22190 (mem_read_insn_p): Update accordingly.
22192 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22194 * cse.c (change_cc_mode_args): Delete.
22195 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
22196 a function that examines each subrtx itself. Take the fields of
22197 change_cc_mode_args as argument and return void.
22198 (cse_change_cc_mode_insn): Update calls accordingly.
22200 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22202 * cse.c (is_dead_reg): Change argument to const_rtx.
22203 (dead_debug_insn_data): Delete.
22204 (is_dead_debug_insn): Expand commentary. Turn from being a
22205 for_each_rtx callback to being a function that examines
22206 each subrtx itself. Take the fields of dead_debug_insn_data
22208 (delete_trivially_dead_insns): Update call accordingly.
22210 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22212 * cse.c (check_for_label_ref): Move earlier in file. Turn from
22213 being a for_each_rtx callback to being a function that examines
22214 each subrtx itself.
22215 (cse_extended_basic_block): Update call accordingly.
22217 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22219 * cse.c (check_dependence_data): Delete.
22220 (check_dependence): Change from being a for_each_rtx callback to being
22221 a function that examines all subrtxes itself. Don't handle null rtxes.
22222 (invalidate): Update call accordingly.
22224 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22226 * cse.c: Include rtl-iter.h.
22227 (approx_reg_cost_1): Delete.
22228 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22229 Don't handle null rtxes.
22231 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22233 * cfgcleanup.c: Include rtl-iter.h.
22234 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
22235 to being a function that examines each subrtx itself.
22236 (thread_jump): Update accordingly.
22238 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22240 * combine-stack-adj.c: Include rtl-iter.h.
22241 (record_stack_refs_data): Delete.
22242 (record_stack_refs): Turn from being a for_each_rtx callback
22243 to being a function that examines each subrtx itself.
22244 Take a pointer to the reflist. Invert sense of return value
22245 so that true means success and false means failure. Don't
22247 (combine_stack_adjustments_for_block): Update accordingly.
22249 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22251 * combine.c (record_truncated_value): Turn from being a for_each_rtx
22252 callback to a function that takes an rtx and returns a bool
22253 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
22256 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22258 * combine.c: Include rtl-iter.h.
22259 (unmentioned_reg_p_1): Delete.
22260 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22261 Don't handle null rtxes.
22263 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22265 * calls.c: Include rtl-iter.h.
22266 (internal_arg_pointer_based_exp_1): Delete.
22267 (internal_arg_pointer_based_exp): Take a const_rtx.
22268 Use FOR_EACH_SUBRTX to iterate over subrtxes.
22270 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22272 * caller-save.c: Include rtl-iter.h.
22273 (add_used_regs_1): Delete.
22274 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
22275 to iterate over subrtxes. Assert that any remaining pseudos
22278 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22280 * bt-load.c: Include rtl-iter.h.
22281 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
22282 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
22283 to iterate over subrtxes.
22284 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
22285 find_btr_use rather than btr_referenced_p.
22287 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22289 * alias.c: Include rtl-iter.h.
22290 (refs_newer_value_cb): Delete.
22291 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22293 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22295 * rtl-iter.h: New file.
22296 * rtlanal.c: Include it.
22297 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
22298 (generic_subrtx_iterator <T>::add_single_to_queue)
22299 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
22300 (generic_subrtx_iterator <T>::free_array): New functions.
22301 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22302 (generic_subrtx_iterator <const_rtx_accessor>)
22303 (generic_subrtx_iterator <rtx_var_accessor>
22304 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22305 (setup_reg_subrtx_bounds): New function.
22306 (init_rtlanal): Call it.
22308 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22311 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22313 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22315 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22317 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22319 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22321 * rtl.h (JUMP_LABEL_AS_INSN): New.
22323 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22325 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22327 (alloc_EXPR_LIST): Strengthen return type from rtx to
22329 (remove_free_EXPR_LIST_node): Likewise for param.
22330 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22331 from rtx to rtx_expr_list *.
22332 * sched-int.h (struct deps_desc): Strengthen fields
22333 "pending_read_mems" and "pending_write_mems" from rtx to
22336 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22337 rtx to rtx_expr_list *.
22338 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22339 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22341 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22342 from rtx to rtx_expr_list *.
22343 * loop-iv.c (simplify_using_initial_values): Strengthen local
22344 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22345 "pnote_next" from rtx * to rtx_expr_list **.
22346 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22347 param "exprp" from rtx * to rtx_expr_list **.
22348 (add_insn_mem_dependence): Strengthen local "mem_list" from
22349 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22350 to rtx_expr_list *.
22351 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22352 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22353 param "old_mems_p" from rtx * to rtx_expr_list **.
22354 * var-tracking.c (struct adjust_mem_data): Strengthen field
22355 "side_effects" from rtx to rtx_expr_list *.
22356 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22358 (prepare_call_arguments): Likewise.
22360 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22362 * function.h (struct rtl_data): Strengthen field
22363 "x_stack_slot_list" from rtx to rtx_expr_list *.
22365 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22366 when assigning to stack_slot_list.
22368 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22370 * function.h (struct rtl_data): Strengthen field
22371 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22372 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22373 rtx * to rtx_expr_list **.
22375 * cfgbuild.c (make_edges): In loop over
22376 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22377 rtx_expr_list *, and use methods of the latter class to clarify
22379 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22380 rtx_expr_list *, and use methods of the latter class to clarify
22382 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22383 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22384 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22385 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22386 to rtx_expr_list *. Use methods of the latter class to clarify
22389 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22391 * function.h (struct expr_status): Strengthen field
22392 "x_forced_labels" from rtx to rtx_expr_list *.
22394 * cfgbuild.c (make_edges): Split local "x" into two locals,
22395 strengthening one from rtx to rtx_expr_list *, and using methods
22397 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22398 loop over forced_labels, introduce strengthen it from rtx to
22399 rtx_expr_list *, using methods to clarify the code.
22400 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22401 to rtx_expr_list *, using methods of said class to clarify the
22403 * reload1.c (set_initial_label_offsets): Split local "x" into two
22404 per-loop variables, strengthening the first from rtx to
22405 rtx_expr_list * and using methods.
22407 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22409 * coretypes.h (class rtx_expr_list): Add forward declaration.
22410 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22411 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22412 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22413 invariant: GET_CODE (X) == EXPR_LIST.
22414 (is_a_helper <rtx_expr_list *>::test): New.
22415 (rtx_expr_list::next): New.
22416 (rtx_expr_list::element): New.
22417 (gen_rtx_EXPR_LIST): New.
22419 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22421 * varasm.c (mark_constants): Convert a GET_CODE check into a
22422 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22423 Use methods of rtx_sequence to clarify the code.
22425 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22427 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22428 local "seq" via a checked cast, and use methods of rtx_sequence
22429 to simplify the code.
22431 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22433 * resource.c (mark_referenced_resources): Strengthen local
22434 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22435 using methods of rtx_sequence to clarify the code.
22436 (find_dead_or_set_registers): Within the switch statement, convert
22437 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22438 the JUMP_P handling, introduce another local "seq", adding a
22439 checked cast to rtx_sequence *. In both cases, use methods of
22440 rtx_sequence to clarify the code.
22441 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22442 via a checked cast, and use methods of rtx_sequence to simplify
22445 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22447 * reorg.c (redundant_insn): In two places in the function, replace
22448 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22449 usings methods of rtx_sequence to clarify the code.
22451 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22453 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22454 local "seq" with a checked cast, and use methods of rtx_sequence
22455 to clarify the code.
22457 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22459 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22460 with a checked cast, in the region for where we know it's a
22461 SEQUENCE. Use methods of rtx_sequence.
22463 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22465 * final.c (get_attr_length_1): Replace GET_CODE check with a
22466 dyn_cast, introducing local "seq" and the use of methods of
22468 (shorten_branches): Likewise, introducing local "body_seq".
22469 Strengthen local "inner_insn" from rtx to rtx_insn *.
22470 (reemit_insn_block_notes): Replace GET_CODE check with a
22471 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22472 Use methods of rtx_sequence.
22473 (final_scan_insn): Likewise, introducing local "seq" for when
22474 "body" is known to be a SEQUENCE, using its methods.
22476 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22478 * except.c (can_throw_external): Strengthen local "seq" from rtx
22479 to rtx_sequence *. Use methods of rtx_sequence.
22480 (insn_nothrow_p): Likewise.
22482 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22484 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22485 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22486 Use methods of rtx_sequence.
22487 (scan_trace): Likewise for local "pat".
22489 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22491 * coretypes.h (class rtx_sequence): Add forward declaration.
22492 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22493 invariant: GET_CODE (X) == SEQUENCE.
22494 (is_a_helper <rtx_sequence *>::test): New.
22495 (is_a_helper <const rtx_sequence *>::test): New.
22496 (rtx_sequence::len): New.
22497 (rtx_sequence::element): New.
22498 (rtx_sequence::insn): New.
22500 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22502 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22504 (alloc_INSN_LIST): Strengthen return type from rtx to
22506 (copy_INSN_LIST): Likewise for return type and param.
22507 (concat_INSN_LIST): Likewise for both params and return type.
22508 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22509 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22510 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22511 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22513 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22514 "implicit_sets", "control_uses", "clobbers" from rtx to
22516 (struct deps_desc): Likewise for fields "pending_read_insns",
22517 "pending_write_insns", "pending_jump_insns",
22518 "last_pending_memory_flush", "last_function_call",
22519 "last_function_call_may_noreturn", "sched_before_next_call",
22520 "sched_before_next_jump".
22521 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22522 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22524 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22525 from rtx to rtx_insn_list *.
22526 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22529 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22530 to rtx_insn_list **.
22531 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22533 (queue_insn): Likewise for local "link".
22534 (struct haifa_saved_data): Strengthen field "insn_queue" from
22535 rtx * to rtx_insn_list **.
22536 (save_backtrack_point): Update allocation of save->insn_queue to
22537 reflect the strengthening of elements from rtx to rtx_insn_list *.
22538 (queue_to_ready): Strengthen local "link" from rtx to
22539 rtx_insn_list *; use methods "next" and "insn" when traversing the
22541 (early_queue_to_ready): Likewise for locals "link", "next_link",
22543 (schedule_block): Update allocation of insn_queue to reflect the
22544 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22545 local "link" from rtx to rtx_insn_list *, and use methods when
22547 (add_to_speculative_block): Strengthen locals "twins" and
22548 "next_node" from rtx to rtx_insn_list *, and use methods when
22549 working with them. Strengthen local "twin" from rtx to
22550 rtx_insn *, eliminating a checked cast.
22551 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22552 from rtx to rtx_insn_list *, and use methods when working with
22555 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22556 from rtx to rtx_insn_list *, adding a checked cast.
22557 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22559 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22560 "newlink" from rtx to rtx_insn_list *. Strengthen local
22561 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22562 from rtx to rtx_insn *.
22563 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22564 from rtx to rtx_insn_list *. Use methods of the latter class.
22565 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22566 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22567 (remove_free_INSN_LIST_node): Strengthen return type and local
22568 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22569 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22570 rtx_insn_list *, using "insn" method.
22572 * sched-deps.c (add_dependence_list): Strengthen param "list"
22573 from rtx to rtx_insn_list *, and use methods when working with it.
22574 (add_dependence_list_and_free): Strengthen param "listp" from
22575 rtx * to rtx_insn_list **.
22576 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22577 to rtx_insn_list **, and use methods when working with *listp.
22578 (remove_from_both_dependence_lists): Strengthen param "listp" from
22579 rtx * to rtx_insn_list **
22580 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22581 to rtx_insn_list **. Eliminate local "link", in favor of two new
22582 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22584 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22585 by introducing local "cond_deps".
22586 (remove_from_deps): Strengthen param "insn" from rtx to
22589 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22590 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22591 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22592 Use methods of rtx_insn_list.
22594 * store-motion.c (struct st_expr): Strengthen fields
22595 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22596 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22598 (find_moveable_store): Split out "tmp" into multiple more-tightly
22599 scoped locals. Use methods of rtx_insn_list *.
22600 (compute_store_table): Strengthen local "tmp" from rtx to
22601 rtx_insn *. Use methods of rtx_insn_list *.
22603 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22605 * coretypes.h (class rtx_insn_list): Add forward declaration.
22606 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22607 (is_a_helper <rtx_insn_list *>::test): New.
22608 (rtx_insn_list::next): New.
22609 (rtx_insn_list::insn): New.
22610 (gen_rtx_INSN_LIST): Add prototype.
22611 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22612 * gengenrtl.c (special_rtx): Add INSN_LIST.
22614 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22616 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22617 "prev" from rtx to rtx_insn *.
22619 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22621 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22622 functions. Require merely an rtx for now, not an rtx_insn *.
22623 (BLOCK_FOR_INSN): Likewise.
22624 (INSN_LOCATION): Likewise.
22625 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22627 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22629 * rtl.h (PATTERN): Convert this macro into a pair of inline
22630 functions, for now, requiring const_rtx and rtx.
22632 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22634 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22636 (final_postscan_insn): Likewise.
22637 (adjust_cost): Likewise.
22638 (adjust_priority): Likewise.
22639 (variable_issue): Likewise.
22640 (macro_fusion_pair_p): Likewise.
22641 (dfa_post_cycle_insn): Likewise.
22642 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22643 (first_cycle_multipass_issue): Likewise.
22644 (dfa_new_cycle): Likewise.
22645 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22646 (speculate_insn): Likewise for param "insn".
22647 (gen_spec_check): Likewise for params "insn" and "label".
22648 (get_insn_spec_ds): Likewise for param "insn".
22649 (get_insn_checked_ds): Likewise.
22650 (dispatch_do): Likewise.
22651 (dispatch): Likewise.
22652 (cannot_copy_insn_p): Likewise.
22653 (invalid_within_doloop): Likewise.
22654 (legitimate_combined_insn): Likewise.
22655 (needed): Likewise.
22658 * doc/tm.texi: Automatically updated to reflect changes to
22661 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22663 (schedule_block): Likewise.
22664 (sched_init): Likewise.
22665 (sched_speculate_insn): Strengthen param "insn" from rtx to
22667 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22669 * hooks.c (hook_bool_rtx_true): Rename to...
22670 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22672 (hook_constcharptr_const_rtx_null): Rename to...
22673 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22674 first param from const_rtx to const rtx_insn *.
22675 (hook_bool_rtx_int_false): Rename to...
22676 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22677 param from rtx to rtx_insn *.
22678 (hook_void_rtx_int): Rename to...
22679 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22682 * hooks.h (hook_bool_rtx_true): Rename to...
22683 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22685 (hook_bool_rtx_int_false): Rename to...
22686 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22687 param from rtx to rtx_insn *.
22688 (hook_void_rtx_int): Rename to...
22689 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22691 (hook_constcharptr_const_rtx_null): Rename to...
22692 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22693 first param from const_rtx to const rtx_insn *.
22695 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22696 and local "prev" from rtx to rtx_insn *.
22698 * sched-int.h (sched_speculate_insn): Strengthen first param from
22701 * sel-sched.c (create_speculation_check): Likewise for local "label".
22702 * targhooks.c (default_invalid_within_doloop): Strengthen param
22703 "insn" from const_rtx to const rtx_insn *.
22704 * targhooks.h (default_invalid_within_doloop): Strengthen param
22705 from const_rtx to const rtx_insn *.
22707 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22708 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22710 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22712 (arc_invalid_within_doloop): Likewise, with const.
22714 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22715 (arm_cannot_copy_insn_p): Likewise for param "insn".
22716 (arm_unwind_emit): Likewise.
22718 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22721 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22722 (c6x_variable_issue): Likewise. Removed now-redundant checked
22724 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22726 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22727 Likewise for param "insn".
22728 (epiphany_mode_after): Likewise.
22729 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22730 params "insn", "dep_insn".
22731 (epiphany_mode_needed): Likewise for param "insn".
22732 (epiphany_mode_after): Likewise.
22734 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22735 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22736 (ix86_avx_u128_mode_needed): Likewise.
22737 (ix86_i387_mode_needed): Likewise.
22738 (ix86_mode_needed): Likewise.
22739 (ix86_avx_u128_mode_after): Likewise.
22740 (ix86_mode_after): Likewise.
22741 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22742 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22743 (ix86_adjust_priority): Likewise for param "insn".
22744 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22745 (do_dispatch): Likewise.
22746 (has_dispatch): Likewise.
22747 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22749 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22750 reflect renaming of default hook implementation from
22751 hook_constcharptr_const_rtx_null to
22752 hook_constcharptr_const_rtx_insn_null.
22753 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22755 (ia64_variable_issue): Likewise for param "insn".
22756 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22757 (ia64_dfa_new_cycle): Likewise.
22758 (ia64_get_insn_spec_ds): Likewise.
22759 (ia64_get_insn_checked_ds): Likewise.
22760 (ia64_speculate_insn): Likewise.
22761 (ia64_gen_spec_check): Likewise for params "insn", "label".
22762 (ia64_asm_unwind_emit): Likewise for param "insn".
22764 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22766 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22767 "insn", "def_insn".
22768 (m68k_sched_variable_issue): Likewise for param "insn".
22770 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22773 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22774 Likewise for params "insn", "dep".
22776 * config/mips/mips.c (mips_adjust_cost): Likewise.
22777 (mips_variable_issue): Likewise for param "insn".
22778 (mips_final_postscan_insn): Likewise.
22780 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22781 for params "insn", "dep".
22783 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22785 (pa_adjust_priority): Likewise for param "insn".
22787 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22788 Likewise for params "insn", "dep_insn".
22790 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22792 (rs6000_variable_issue): Likewise.
22793 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22794 (rs6000_debug_adjust_cost): Likewise.
22795 (rs6000_adjust_priority): Likewise for param "insn".
22796 (rs6000_use_sched_lookahead_guard): Likewise.
22797 (get_next_active_insn): Likewise for return type and both params.
22798 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22799 and locals "insn", "next_insn".
22800 (pad_groups): Likewise.
22802 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22804 (s390_cannot_copy_insn_p): Likewise.
22805 (s390_sched_variable_issue): Likewise for third param, eliminating
22807 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22808 default hook implementation from hook_constcharptr_const_rtx_null
22809 to hook_constcharptr_const_rtx_insn_null.
22811 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22812 from rtx to rtx_insn *.
22813 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22814 (sh_variable_issue): Likewise for param "insn".
22815 (sh_dfa_new_cycle): Likewise.
22816 (sh_mode_needed): Likewise.
22817 (sh_mode_after): Likewise.
22819 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22820 params "insn", "dep_insn".
22821 (hypersparc_adjust_cost): Likewise.
22822 (sparc_adjust_cost): Likewise.
22824 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22825 param, eliminated checked cast.
22826 (spu_sched_adjust_cost): Likewise for first and third params.
22828 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22829 params "insn" and "dep_insn" from rtx to rtx_insn *.
22831 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22833 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22835 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22836 (set_is_load_p): ...this, updating to work on a SET pattern rather
22838 (is_store_insn): Rename to...
22839 (set_is_store_p): ...this, updating to work on a SET pattern
22840 rather than an insn.
22841 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22842 top of function to where it is needed. Rewrite the bogus
22843 condition that checks for "insn" and "dep" being PARALLEL to
22844 instead use single_set, introducing locals "insn_set" and
22845 "dep_set". Given that we only ever returned "cost" for a non-pair
22846 of SETs, bail out early if we don't have a pair of SET.
22847 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22848 use the new locals "insn_set" and "dep_set", and update calls to
22849 is_load_insn and is_store_insn to be calls to set_is_load_p and
22852 2014-08-27 Guozhi Wei <carrot@google.com>
22855 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22856 amount before using it.
22858 2014-08-27 Richard Biener <rguenther@suse.de>
22860 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22861 get_maxval_strlen inside a more useful API.
22862 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22863 (gimple_fold_builtin): ... caller.
22864 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22865 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22866 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22867 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22868 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22869 gimple_fold_builtin_sprintf): Adjust to compute maxval
22872 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22875 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22877 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22878 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22879 Anna Tikhonova <anna.tikhonova@intel.com>
22880 Ilya Tocar <ilya.tocar@intel.com>
22881 Andrey Turetskiy <andrey.turetskiy@intel.com>
22882 Ilya Verbin <ilya.verbin@intel.com>
22883 Kirill Yukhin <kirill.yukhin@intel.com>
22884 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22886 * config/i386/sse.md
22887 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22888 Use `concat_tg_mode' attribute to determine asm register size.
22890 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22892 Anna Tikhonova <anna.tikhonova@intel.com>
22893 Ilya Tocar <ilya.tocar@intel.com>
22894 Andrey Turetskiy <andrey.turetskiy@intel.com>
22895 Ilya Verbin <ilya.verbin@intel.com>
22896 Kirill Yukhin <kirill.yukhin@intel.com>
22897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22899 * config/i386/sse.md
22900 (define_mode_iterator VI48_AVX512VL): New.
22901 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22902 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22903 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22904 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22905 with VI1): Change mode iterator.
22906 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22907 with VI_ULOADSTORE_BW_AVX512VL): New.
22908 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22909 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22910 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22911 with VI1): Change mode iterator.
22912 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22913 with VI_ULOADSTORE_BW_AVX512VL): New.
22914 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22915 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22916 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22917 with VI1): Change mode iterator.
22918 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22919 with VI_ULOADSTORE_BW_AVX512VL): New.
22920 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22921 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22922 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22923 (define_insn "<avx512>_storedqu<mode>_mask" with
22924 VI48_AVX512VL): New.
22925 (define_insn "<avx512>_storedqu<mode>_mask" with
22926 VI12_AVX512VL): Ditto.
22928 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22930 Anna Tikhonova <anna.tikhonova@intel.com>
22931 Ilya Tocar <ilya.tocar@intel.com>
22932 Andrey Turetskiy <andrey.turetskiy@intel.com>
22933 Ilya Verbin <ilya.verbin@intel.com>
22934 Kirill Yukhin <kirill.yukhin@intel.com>
22935 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22937 * config/i386/sse.md
22938 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22939 (define_mode_iterator VI48_AVX512BW): New.
22940 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22941 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22942 with VI48_AVX2_48_AVX512F): New.
22943 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22944 with VI2_AVX512VL): Ditto.
22946 2014-08-27 Richard Biener <rguenther@suse.de>
22948 PR middle-end/62239
22949 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22950 (fold_builtin_3): Do not fold strcat_chk here.
22951 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22953 (gimple_fold_builtin): Fold strcat_chk here.
22955 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22957 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22958 * dwarf2out.c (dwarf2out_decl): Make static.
22960 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22962 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22964 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22966 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22967 from rtx to rtx_insn *.
22968 (cselib_lookup_from_insn): Likewise for final param.
22969 (cselib_subst_to_values_from_insn): Likewise.
22970 (cselib_add_permanent_equiv): Likewise.
22972 * cselib.c (cselib_current_insn): Likewise for this variable.
22973 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22974 (cselib_lookup_from_insn): Likewise.
22975 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22976 "save_cselib_current_insn".
22977 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22979 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22980 from rtx to rtx_insn *.
22982 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22984 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22987 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22989 * df.h (df_dump_insn_problem_function): Strengthen first param of
22990 this callback from const_rtx to const rtx_insn *.
22991 (struct df_insn_info): Strengthen field "insn" from rtx to
22993 (DF_REF_INSN): Eliminate this function, reinstating the older
22995 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22996 (df_reg_defined): Likewise.
22997 (df_find_use): Likewise.
22998 (df_reg_used): Likewise.
22999 (df_dump_insn_top): Strengthen param 1 from const_rtx to
23001 (df_dump_insn_bottom): Likewise.
23002 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
23003 (df_insn_debug_regno): Likewise.
23004 (debug_df_insn): Likewise.
23005 (df_rd_simulate_one_insn): Likewise for param 2.
23006 (df_word_lr_simulate_defs): Likewise for param 1.
23007 (df_word_lr_simulate_uses): Likewise.
23008 (df_md_simulate_one_insn): Likewise for param 2.
23009 (df_simulate_find_noclobber_defs): Likewise for param 1.
23010 (df_simulate_find_defs): Likewise.
23011 (df_simulate_defs): Likewise.
23012 (df_simulate_uses): Likewise.
23013 (df_simulate_one_insn_backwards): Likewise for param 2.
23014 (df_simulate_one_insn_forwards): Likewise.
23015 (df_uses_create): Likewise for param 2.
23016 (df_insn_create_insn_record): Likewise for param 1.
23017 (df_insn_delete): Likewise.
23018 (df_insn_rescan): Likewise.
23019 (df_insn_rescan_debug_internal): Likewise.
23020 (df_insn_change_bb): Likewise.
23021 (df_notes_rescan): Likewise.
23022 * rtl.h (remove_death): Likewise for param 2.
23023 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
23025 * sched-int.h (reemit_notes): Strengthen param from rtx to
23027 * valtrack.h (propagate_for_debug): Likewise for param 1.
23029 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
23030 local "tmp_rtx" from const_rtx to const rtx_insn *.
23031 * combine.c (remove_death): Strengthen param "insn" from rtx to
23033 (move_deaths): Likewise for local "where_dead".
23034 * cse.c (delete_trivially_dead_insns): Introduce local
23035 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
23036 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
23038 (df_reg_defined): Likewise.
23039 (df_find_use): Likewise.
23040 (df_reg_used): Likewise.
23041 (df_dump_insn_problem_data): Strengthen param "insn" from
23042 const_rtx to const rtx_insn *.
23043 (df_dump_insn_top): Likewise.
23044 (df_dump_insn_bottom): Likewise.
23045 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
23046 (df_insn_debug_regno): Likewise.
23047 (debug_df_insn): Likewise.
23048 (DF_REF_INSN): Delete.
23049 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
23050 from rtx to rtx_insn *.
23051 (df_chain_insn_top_dump): Strengthen param "insn" from
23052 const_rtx to const rtx_insn *.
23053 (df_chain_insn_bottom_dump): Likewise.
23054 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
23056 (df_word_lr_simulate_uses): Likewise.
23057 (df_print_note): Likewise.
23058 (df_remove_dead_and_unused_notes): Likewise.
23059 (df_set_unused_notes_for_mw): Likewise.
23060 (df_set_dead_notes_for_mw): Likewise.
23061 (df_create_unused_note): Likewise.
23062 (df_simulate_find_defs): Likewise.
23063 (df_simulate_find_uses): Likewise.
23064 (df_simulate_find_noclobber_defs): Likewise.
23065 (df_simulate_defs): Likewise.
23066 (df_simulate_uses): Likewise.
23067 (df_simulate_one_insn_backwards): Likewise.
23068 (df_simulate_one_insn_forwards): Likewise.
23069 (df_md_simulate_one_insn): Likewise.
23070 * df-scan.c (df_uses_create): Likewise.
23071 (df_insn_create_insn_record): Likewise.
23072 (df_insn_delete): Likewise.
23073 (df_insn_rescan): Likewise.
23074 (df_insn_rescan_debug_internal): Likewise.
23075 (df_insn_change_bb): Likewise.
23076 (df_notes_rescan): Likewise.
23077 (df_refs_add_to_chains): Likewise.
23078 (df_insn_refs_verify): Likewise.
23079 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
23080 when invoking df_insn_delete.
23081 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
23082 (set_unique_reg_note): Add checked cast.
23083 * final.c (cleanup_subreg_operands): Likewise.
23084 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
23085 "insn" from rtx to rtx_insn *.
23086 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
23087 "last" from rtx to rtx_insn *.
23088 * ira-emit.c (change_regs_in_insn): New function.
23089 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
23090 Invoke change_regs_in_insn rather than change_regs.
23091 * ira.c (update_equiv_regs): Strengthen locals "insn",
23092 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
23093 for_each_rtx_in_insn rather than for_each_rtx.
23094 * recog.c (confirm_change_group): Add checked casts.
23095 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
23097 (peep2_fill_buffer): Add checked cast.
23098 * rtlanal.c (remove_note): Likewise.
23099 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
23100 locals "next" "end" from rtx to rtx_insn *.
23102 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23104 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
23106 (struct reg_use_data): Likewise for field "insn".
23107 (insn_cost): Likewise for param.
23108 (real_insn_for_shadow): Likewise for return type and param.
23109 (increase_insn_priority): Likewise for param 1.
23110 (debug_dependencies): Likewise for both params.
23112 * haifa-sched.c (insn_delay): Likewise for param "insn".
23113 (real_insn_for_shadow): Likewise for return type and param "insn".
23114 (update_insn_after_change): Likewise for param "insn".
23115 (recompute_todo_spec): Likewise for param "next" and locals "pro",
23117 (insn_cost): Likewise for param "insn".
23118 (increase_insn_priority): Likewise.
23119 (calculate_reg_deaths): Likewise.
23120 (setup_insn_reg_pressure_info): Likewise.
23121 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
23122 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
23123 (model_recompute): Likewise.
23124 (must_restore_pattern_p): Likewise for param "next".
23125 (model_excess_cost): Likewise for param "insn".
23126 (queue_remove): Likewise.
23127 (adjust_priority): Likewise for param "prev".
23128 (update_register_pressure): Likewise for param "insn".
23129 (setup_insn_max_reg_pressure): Likewise for local "insn".
23130 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
23131 (model_add_to_schedule): Likewise.
23132 (model_reset_queue_indices): Likewise for local "insn".
23133 (unschedule_insns_until): Strengthen local "recompute_vec" from
23134 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
23135 "con" from rtx to rtx_insn *.
23136 (restore_last_backtrack_point): Likewise for both locals "x". Add
23138 (estimate_insn_tick): Likewise for param "insn".
23139 (commit_schedule): Likewise for params "prev_head", "tail" and
23141 (verify_shadows): Likewise for locals "i1", "i2".
23142 (dump_insn_stream): Likewise for params "head", "tail" and locals
23143 "next_tail", "insn".
23144 (schedule_block): Likewise for locals "insn", "x". Add a checked
23146 (fix_inter_tick): Likewise for params "head", "tail".
23147 (create_check_block_twin): Likewise for local "jump".
23148 (haifa_change_pattern): Likewise for param "insn".
23149 (haifa_speculate_insn): Likewise.
23150 (dump_new_block_header): Likewise for params "head", "tail".
23151 (fix_jump_move): Likewise for param "jump".
23152 (move_block_after_check): Likewise.
23153 (sched_init_insn_luid): Likewise for param "insn".
23154 (sched_init_luids): Likewise for local "insn".
23155 (insn_luid): Likewise for param "insn".
23156 (init_h_i_d): Likewise.
23157 (haifa_init_h_i_d): Likewise for local "insn".
23158 (haifa_init_insn): Likewise for param "insn".
23159 * sched-deps.c (add_dependence): Likewise for local "real_pro",
23161 (create_insn_reg_use): Likewise for param "insn".
23162 (setup_insn_reg_uses): Likewise. Add a checked cast.
23163 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
23164 "tail" from rtx to rtx_insn *.
23165 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
23166 "insn", "next_tail".
23168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23170 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
23171 from rtx to rtx_insn *.
23172 (model_add_to_schedule): Likewise for locals "start", "end",
23175 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23177 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
23179 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
23180 "to" and locals "insn", "next", "copy". Remove now-redundant
23183 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23185 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
23186 rtx_insn * and param 4 from rtx * to rtx_insn **.
23187 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
23188 param 2 from rtx * to rtx_insn **.
23190 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
23191 rtx_insn * and final param from rtx * to rtx_insn **.
23193 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
23194 from rtx to rtx_insn *.
23195 (try_head_merge_bb): Likewise for both locals named "move_upto".
23196 * df-problems.c (can_move_insns_across): Likewise for params
23197 "from", "to", "across_from", "across_to" and locals "insn",
23198 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
23200 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
23201 from rtx to rtx_insn *.
23202 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
23203 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23204 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
23206 (noce_try_abs): Likewise.
23207 (noce_get_condition): Likewise for param "jump". Strengthen param
23208 "earliest" from rtx * to rtx_insn **.
23209 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
23211 (find_cond_trap): Likewise.
23212 (dead_or_predicable): Likewise for local "earliest".
23213 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
23215 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
23216 and local "prev". Strengthen param "earliest" from rtx * to
23218 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
23219 Strengthen param "earliest" from rtx * to rtx_insn **.
23221 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23223 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
23224 "to" and local "insn" from rtx to rtx_insn *.
23226 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23228 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
23229 from rtx to rtx_insn *.
23230 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
23231 (code_motion_path_driver): Likewise for local "last_insn".
23232 (simplify_changed_insns): Likewise for local "insn".
23234 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23236 * rtl.h (push_to_sequence): Strengthen param from rtx to
23238 (push_to_sequence2): Likewise for both params.
23239 (delete_insns_since): Likewise for param.
23240 (reorder_insns_nobb): Likewise for all three params.
23241 (set_new_first_and_last_insn): Likewise for both params.
23243 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
23244 rtx_insn *. Remove now-redundant cast.
23245 (set_last_insn): Likewise.
23247 * builtins.c (expand_builtin_return): Strengthen local
23248 "call_fusage" from rtx to rtx_insn *.
23249 * cfgrtl.c (create_basic_block_structure): Likewise for local
23251 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
23252 "first", "last" and local "insn".
23253 (delete_insns_since): Likewise for param "from".
23254 (reorder_insns_nobb): Likewise for params "from", "to", "after"
23256 (push_to_sequence): Likewise for param "first" and local "last".
23257 (push_to_sequence2): Likewise for params "first" and "last".
23258 * lra.c (emit_add3_insn): Likewise for local "last".
23259 (lra_emit_add): Likewise.
23260 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
23262 (process_address_1): Likewise for locals "insn", last".
23263 * modulo-sched.c (ps_first_note): Likewise for return type.
23264 * optabs.c (expand_binop_directly): Likewise for param "last".
23266 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23268 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
23270 * emit-rtl.c (get_last_insn_anywhere): Likewise.
23272 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23274 * function.h (struct sequence_stack): Strengthen fields "first"
23275 and "last" from rtx to rtx_insn *.
23276 (struct emit_status): Likewise for fields "x_first_insn" and
23279 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
23280 (set_first_insn): Add checked cast.
23281 (get_last_insn): Remove now-redundant checked cast.
23282 (set_last_insn): Add checked cast.
23284 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
23285 "saved_first" and "saved_last" from rtx to rtx_insn *.
23287 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23289 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
23290 (unlink_insn_chain): Strengthen both params from rtx to
23293 * cfgrtl.c (cfg_layout_function_header): Likewise for this
23295 (unlink_insn_chain): Likewise for params "first" and "last".
23296 Remove now-redundant checked cast.
23297 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
23298 (fixup_reorder_chain): Strengthen local "insn" from rtx to
23300 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23302 (add_insn): Likewise for param "insn" and local "prev".
23303 (add_insn_after_nobb): Likewise for both params and local "next".
23304 (add_insn_before_nobb): Likewise for both params and local "prev".
23305 (add_insn_after): Rename param "after" to "uncast_after",
23306 introducing local "after" with another checked cast.
23307 (add_insn_before): Rename params "insn" and "before", giving them
23308 "uncast_" prefixes, adding the old names back using checked casts.
23309 (emit_note_after): Likewise for param "after".
23310 (emit_note_before): Likewise for param "before".
23311 (emit_label): Add a checked cast.
23313 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23315 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23316 "insn" from rtx to rtx_insn *.
23318 * cselib.c (cselib_record_sets_hook): Likewise.
23320 * var-tracking.c (add_with_sets): Likewise, renaming back from
23321 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23324 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23326 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23327 and "header_" from rtx to rtx_insn *.
23328 (struct basic_block_d): Likewise for field "head_" within "x"
23329 field of union basic_block_il_dependent.
23330 (BB_HEAD): Drop function...
23331 (SET_BB_HEAD): ...and this function in favor of...
23332 (BB_HEAD): ...reinstate macro.
23333 (BB_END): Drop function...
23334 (SET_BB_END): ...and this function in favor of...
23335 (BB_END): ...reinstate macro.
23336 (BB_HEADER): Drop function...
23337 (SET_BB_HEADER): ...and this function in favor of...
23338 (BB_HEADER): ...reinstate macro.
23340 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23341 (fix_crossing_unconditional_branches): Likewise.
23342 * caller-save.c (save_call_clobbered_regs): Likewise.
23343 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23344 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23345 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23346 (merge_blocks_move_successor_nojumps): Likewise.
23347 (outgoing_edges_match): Update use of for_each_rtx to
23348 for_each_rtx_in_insn.
23349 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23350 (expand_gimple_cond): Likewise.
23351 (expand_gimple_tailcall): Likewise.
23352 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23354 (construct_exit_block): Drop use of SET_BB_END.
23355 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23357 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23358 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23359 SET_BB_HEAD and SET_BB_END.
23360 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23362 (rtl_delete_block): Drop use of SET_BB_HEAD.
23363 (rtl_split_block): Drop use of SET_BB_END.
23364 (emit_nop_for_unique_locus_between): Likewise.
23365 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23366 (block_label): Drop use of SET_BB_HEAD.
23367 (fixup_abnormal_edges): Drop use of SET_BB_END.
23368 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23369 (relink_block_chain): Likewise.
23370 (fixup_reorder_chain): Drop use of SET_BB_END.
23371 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23372 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23373 rtx_insn **. Drop use of SET_BB_HEADER.
23374 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23376 (BB_HEAD): Delete this function.
23377 (SET_BB_HEAD): Likewise.
23378 (BB_END): Likewise.
23379 (SET_BB_END): Likewise.
23380 (BB_HEADER): Likewise.
23381 (SET_BB_HEADER): Likewise.
23382 * emit-rtl.c (add_insn_after): Rename param "insn" to
23383 "uncast_insn", adding a new local "insn" and a checked cast to
23384 rtx_insn *. Drop use of SET_BB_END.
23385 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23386 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23387 (reorder_insns): Drop use of SET_BB_END.
23388 (emit_insn_after_1): Strengthen param "first" and locals "last",
23389 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23390 (emit_pattern_after_noloc): Add checked cast.
23391 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23392 (restore_other_notes): Likewise.
23393 (move_insn): Likewise.
23394 (sched_extend_bb): Likewise.
23395 (fix_jump_move): Likewise.
23396 * ifcvt.c (noce_process_if_block): Likewise.
23397 (dead_or_predicable): Likewise.
23398 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23399 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23400 * sel-sched-ir.c (sel_move_insn): Likewise.
23401 * sel-sched.c (move_nop_to_previous_block): Likewise.
23403 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23405 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23407 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23409 * basic-block.h (create_basic_block_structure): Strengthen params
23410 1 "head" and 2 "end" from rtx to rtx_insn *.
23411 * cfgrtl.c (create_basic_block_structure): Likewise.
23412 (rtl_create_basic_block): Update casts from void * to rtx to
23413 rtx_insn *, so that we can pass them as rtx_insn * to
23414 create_basic_block_structure.
23415 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23417 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23419 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23421 (check_for_inc_dec): Strengthen param "insn" from rtx to
23424 * cselib.h (cselib_process_insn): Likewise.
23426 * cselib.c (cselib_record_sets): Likewise.
23427 (cselib_process_insn): Likewise.
23429 * dse.c (struct insn_info): Likewise for field "insn".
23430 (check_for_inc_dec_1): Likewise for local "insn".
23431 (check_for_inc_dec): Likewise for param "insn".
23432 (scan_insn): Likewise.
23433 (dse_step1): Likewise for local "insn".
23435 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23436 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23438 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23440 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23441 from rtx to rtx_insn *.
23442 (DEP_PRO): Delete this function and...
23443 (SET_DEP_PRO): ...this function in favor of...
23444 (DEP_PRO): ...reinstate this macro.
23445 (DEP_CON): Delete this function and...
23446 (SET_DEP_CON): ...this function in favor of...
23447 (DEP_CON): ...reinstate this old macro.
23448 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23449 (init_dep): Likewise.
23450 (set_priorities): Likewise for both params.
23451 (sd_copy_back_deps): Likewise for params 1 and 2.
23453 * haifa-sched.c (priority): Likewise for param "insn" and local
23455 (set_priorities): Likewise for params "head" and "tail" and local
23457 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23459 (add_to_speculative_block): Add a checked cast.
23460 (create_check_block_twin): Drop use of SET_DEP_CON.
23461 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23464 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23465 Drop use of SET_DEP_PRO
23466 (init_dep): Strengthen params "pro" and "con" from rtx to
23468 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23469 use of SET_DEP_CON.
23472 (SET_DEP_PRO): Delete.
23473 (SET_DEP_CON): Delete.
23475 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23477 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23478 from rtx to rtx_insn *.
23479 (VINSN_INSN_RTX): Eliminate rvalue function and...
23480 (SET_VINSN_INSN): ...lvalue function in favor of...
23481 (VINSN_INSN_RTX): reinstate this old macro.
23483 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23484 in favor of VINSN_INSN_RTX.
23485 (VINSN_INSN_RTX): Delete this function.
23486 (SET_VINSN_INSN_RTX): Likewise.
23488 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23490 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23491 (BND_TO): Delete this function and...
23492 (SET_BND_TO): ...this functions in favor of...
23493 (BND_TO): ...reinstating this macro.
23494 (struct _fence): Strengthen field "executing_insns" from
23495 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23496 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23497 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23498 and param "insn" from rtx to insn_t.
23499 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23502 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23504 (rtx_vec_t): Likewise.
23505 (struct sched_deps_info_def): Strengthen param of "start_insn"
23506 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23507 "note_mem_dep" callback and first param of "note_dep" callback.
23509 * haifa-sched.c (add_to_speculative_block): Strengthen param
23510 "insn" from rtx to rtx_insn *.
23511 (clear_priorities): Likewise.
23512 (calc_priorities): Likewise for local "insn".
23514 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23515 Remove redundant checked cast.
23516 (haifa_note_mem_dep): Likewise for param "pending_insn".
23517 (haifa_note_dep): Likewise for param "elem".
23518 (note_mem_dep): Likewise for param "e".
23519 (sched_analyze_1): Add checked casts.
23520 (sched_analyze_2): Likewise.
23522 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23523 from rtx to rtx_insn *.
23524 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23525 from vec<rtx> * to vec<rtx_insn *> *.
23527 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23529 (flist_add): Strengthen param "executing_insns" from
23530 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23531 (advance_deps_context): Remove now-redundant checked cast.
23532 (init_fences): Replace uses of NULL_RTX with NULL.
23533 (merge_fences): Strengthen params "last_scheduled_insn" and
23534 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23535 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23536 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23537 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23538 an instruction, rather than doing double-duty as a pattern.
23539 (return_nop_to_pool): Update for change of insn_t.
23540 (deps_init_id): Remove now-redundant checked cast.
23541 (struct sched_scan_info_def): Strengthen param of "init_insn"
23542 callback from rtx to insn_t.
23543 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23544 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23546 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23547 "end" from rtx to rtx_insn *.
23548 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23549 (rtx insn_rtx, bool force_unique_p)
23550 (BND_TO): Delete function.
23551 (SET_BND_TO): Delete function.
23553 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23555 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23556 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23558 (undo_transformations): Likewise for param "insn".
23559 (update_liveness_on_insn): Likewise.
23560 (compute_live_below_insn): Likewise for param "insn" and local
23562 (update_data_sets): Likewise for param "insn".
23563 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23564 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23565 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23567 (move_cond_jump): Likewise for param "insn".
23568 (move_cond_jump): Drop use of SET_BND_TO.
23569 (compute_av_set_on_boundaries): Likewise.
23570 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23571 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23572 from rtx to rtx_insn *.
23573 (maybe_emit_renaming_copy): Likewise for param "insn".
23574 (maybe_emit_speculative_check): Likewise.
23575 (handle_emitting_transformations): Likewise.
23576 (remove_insn_from_stream): Likewise.
23577 (code_motion_process_successors): Strengthen local "succ" from rtx
23580 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23582 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23583 ilist_t, not _xlist_t;
23584 (ILIST_INSN): Define in terms of new union field "insn".
23585 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23587 (struct _list_node): Add new field "insn" to the union, of type
23589 (ilist_add): Replace macro with an inline function, requiring an
23591 (ilist_remove): Define this macro directly in terms of
23592 _list_remove, rather than indirectly via _xlist_remove.
23593 (ilist_clear): Likewise, in terms of _list_clear rather than
23595 (ilist_is_in_p): Replace macro with an inline function, requiring
23597 (_list_iter_cond_insn): New function.
23598 (ilist_iter_remove): Define this macro directly in terms of
23599 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23600 (ilist_iterator): Define directly in terms of _list_iterator
23601 rather than indirectly through _xlist_iterator.
23602 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23603 than in terms of _FOR_EACH_X.
23604 (FOR_EACH_INSN_1): Likewise.
23606 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23610 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23611 DECL_HARD_REGISTER and return for invalid register specifications.
23612 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23613 DECL_HARD_REGISTER, call expand_one_error_var.
23614 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23615 CC_REGNUM with non-MODE_CC modes.
23616 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23618 2014-08-26 Marek Polacek <polacek@redhat.com>
23621 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23623 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23625 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23626 qi cost; add di cost.
23627 (cortexa57_addrcost_table): Likewise.
23629 2014-08-26 Marek Polacek <polacek@redhat.com>
23632 * expr.c (is_aligning_offset): Remove logical not.
23634 2014-08-26 Marek Polacek <polacek@redhat.com>
23637 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23638 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23640 2014-08-26 Richard Biener <rguenther@suse.de>
23642 PR tree-optimization/62175
23643 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23644 expand possibly trapping operations.
23646 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23648 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23649 "insn" from rtx to rtx_insn *.
23650 (permute_load): Likewise for param "insn".
23651 (permute_store): Likewise.
23652 (handle_special_swappables): Likewise for local "insn".
23653 (replace_swap_with_copy): Likewise for locals "insn" and
23655 (rs6000_analyze_swaps): Likewise for local "insn".
23657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23659 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23664 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23665 "note_list" from rtx to rtx_insn *.
23666 (BB_NOTE_LIST): Replace this function and...
23667 (SET_BB_NOTE_LIST): ...this function with...
23668 (BB_NOTE_LIST): ...the former macro implementation.
23670 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23671 local "from_start" from rtx to rtx_insn *. Strengthen param
23672 "to_endp" from rtx * to rtx_insn **.
23674 * haifa-sched.c (concat_note_lists): Likewise.
23675 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23677 (sel_restore_notes): Likewise.
23678 (move_bb_info): Likewise.
23679 (BB_NOTE_LIST): Delete this function.
23680 (SET_BB_NOTE_LIST): Delete this function.
23681 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23682 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23684 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23686 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23687 from rtx * to rtx_insn **.
23688 (reorder2): Likewise.
23689 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23690 from rtx to rtx_insn *.
23692 * doc/tm.texi: Update mechanically for above change to target.def.
23694 * sched-int.h (note_list): Strengthen this variable from rtx to
23696 (remove_notes): Likewise for both params.
23697 (restore_other_notes): Likewise for return type and first param.
23698 (struct ready_list): Strengthen field "vec" from rtx * to
23700 (struct dep_replacement): Strenghten field "insn" from rtx to
23702 (struct deps_desc): Likewise for fields "last_debug_insn",
23704 (struct haifa_sched_info): Likewise for callback field
23705 "can_schedule_ready_p"'s param, for first param of "new_ready"
23706 callback field, for both params of "rank" callback field, for
23707 first field of "print_insn" callback field (with a const), for
23708 both params of "contributes_to_priority" callback, for param
23709 of "insn_finishes_block_p" callback, for fields "prev_head",
23710 "next_tail", "head", "tail", for first param of "add_remove_insn"
23711 callback, for first param of "begin_schedule_ready" callback, for
23712 both params of "begin_move_insn" callback, and for second param
23713 of "advance_target_bb" callback.
23714 (add_dependence): Likewise for params 1 and 2.
23715 (sched_analyze): Likewise for params 2 and 3.
23716 (deps_analyze_insn): Likewise for param 2.
23717 (ready_element): Likewise for return type.
23718 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23719 (try_ready): Strenghten param from rtx to rtx_insn *.
23720 (sched_emit_insn): Likewise for return type.
23721 (record_delay_slot_pair): Likewise for params 1 and 2.
23722 (add_delay_dependencies): Likewise for param.
23723 (contributes_to_priority): Likewise for both params.
23724 (find_modifiable_mems): Likewise.
23726 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23727 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23728 "first_older_only_insn" from rtx to rtx_insn *.
23729 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23732 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23733 "last_scheduled_iter0" from rtx to rtx_insn *.
23734 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23735 (c6x_sched_reorder_1): Strengthen param "ready" and locals
23736 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23737 "insn" from rtx to rtx_insn *.
23738 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
23740 (c6x_sched_reorder2): Strengthen param "ready" and locals
23741 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23742 "insn" from rtx to rtx_insn *.
23743 (c6x_variable_issue): Add a checked cast when assigning from insn
23744 to ss.last_scheduled_iter0.
23745 (split_delayed_branch): Strengthen param "insn" and local "i1"
23746 from rtx to rtx_insn *.
23747 (split_delayed_nonbranch): Likewise.
23748 (undo_split_delayed_nonbranch): Likewise for local "insn".
23749 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23750 "entry_after", "end_packet", "head_insn", "tail_insn",
23751 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23752 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23753 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23754 but add a checked cast on loop->start_label. Consolidate calls to
23755 avoid assigning result of gen_spkernel to "insn", now an
23758 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23759 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23761 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23762 rtx_insn **. Strengthen locals "top", "next" from rtx to
23764 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23765 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23766 (add_parameter_dependencies): Strengthen params "call", "head" and
23767 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23768 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23769 (add_dependee_for_func_arg): Likewise for param "arg" and local
23771 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23772 "tail" and locals "insn", "first_arg".
23774 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23775 for params "head", "tail" and locals "insn", "next", "next_tail".
23776 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23777 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23778 "insn", "lowest", "highest" from rtx to rtx_insn *.
23779 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23781 (ia64_sched_reorder2): Likewise.
23783 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23784 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23785 from rtx * to rtx_insn **.
23786 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23788 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23790 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23791 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23794 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23795 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23797 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23798 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23799 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23801 (vr4130_reorder): Likewise.
23802 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23804 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23806 (mips_sched_reorder): Likewise.
23807 (mips_sched_reorder2): Likewise.
23809 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23811 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23812 Strengthen local "tmp" from rtx to rtx_insn *.
23813 (rs6000_sched_reorder2): Likewise.
23815 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23816 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23817 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23818 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23820 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23821 "tmp2" from rtx to rtx_insn *.
23822 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23823 Strengthen local "insn" from rtx to rtx_insn *.
23824 (ready_reorder): Strengthen param "ready" from rtx * to
23825 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23826 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23827 (sh_reorder2): Likewise.
23829 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23830 local "insn" from rtx to rtx_insn *.
23832 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23834 (scheduled_insns): Strengthen this variable from vec<rtx> to
23836 (set_modulo_params): Likewise for locals "i1", "i2".
23837 (record_delay_slot_pair): Likewise for params "i1", "i2".
23838 (add_delay_dependencies): Likewise for param "insn".
23839 (cond_clobbered_p): Likewise.
23840 (recompute_todo_spec): Likewise for local "prev".
23841 (last_scheduled_insn): Likewise for this variable.
23842 (nonscheduled_insns_begin): Likewise.
23843 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23845 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23847 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23848 Strengthen local "insn" from rtx to rtx_insn *.
23849 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23850 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23851 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23852 (ready_remove_first): Likewise for return type and local "t".
23853 (ready_element): Likewise for return type.
23854 (ready_remove): Likewise for return type and local "t".
23855 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23856 (check_clobbered_conditions): Strengthen local "x" from rtx to
23857 rtx_insn *, adding a checked cast.
23858 (schedule_insn): Likewise for param "insn".
23859 (remove_notes): Likewise for params "head", "tail" and locals
23860 "next_tail", "insn", "next".
23861 (struct haifa_saved_data): Likewise for fields
23862 "last_scheduled_insn", "nonscheduled_insns_begin".
23863 (save_backtrack_point): Update for change to field "vec" of
23865 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23867 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23868 from rtx to rtx_insn *
23869 (resolve_dependencies): Strengthen param "insn" from rtx to
23871 (restore_other_notes): Likewise for return type, for param "head"
23872 and local "note_head".
23873 (undo_all_replacements): Likewise for local "insn".
23874 (first_nonscheduled_insn): Likewise for return type and local "insn".
23875 (queue_to_ready): Likewise for local "insn", adding checked casts.
23876 (early_queue_to_ready): Likewise for local "insn".
23877 (debug_ready_list_1): Strengthen local "p" from rtx * to
23879 (move_insn): Strengthen param "insn" and local "note" from rtx to
23881 (insn_finishes_cycle_p): Likewise for param "insn".
23882 (max_issue): Likewise for local "insn".
23883 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23885 (commit_schedule): Strengthen param "prev_head" and local "insn"
23886 from rtx to rtx_insn *
23887 (prune_ready_list): Likewise for local "insn".
23888 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23889 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23890 (set_priorities): Likewise for local "prev_head".
23891 (try_ready): Likewise for param "next".
23892 (fix_tick_ready): Likewise.
23893 (change_queue_index): Likewise.
23894 (sched_extend_ready_list): Update for change to field "vec" of
23896 (generate_recovery_code): Strengthen param "insn" from rtx to
23898 (begin_speculative_block): Likewise.
23899 (create_check_block_twin): Likewise for param "insn" and locals
23900 "label", "check", "twin". Introduce local "check_pat" to avoid
23901 "check" being used as a plain rtx before being used as an insn.
23902 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23903 extracting elements from ready_list.
23904 (sched_remove_insn): Strengthen param "insn" from rtx to
23906 (sched_emit_insn): Likewise for return type.
23907 (ready_remove_first_dispatch): Likewise for return type and local
23910 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23912 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23915 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23916 from rtx to rtx_insn *.
23917 (add_dependence_list): Likewise for param "insn". Add a checked
23919 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23920 to rtx_insn *. Strengthen param "list_p" from rtx * to
23922 (chain_to_prev_insn): Strengthen param "insn" and locals
23923 "prec_nonnote", "i" from rtx to rtx_insn *.
23924 (flush_pending_lists): Likewise for param "insn".
23925 (cur_insn): Likewise for this variable.
23926 (haifa_start_insn): Add a checked cast.
23927 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23928 (sched_analyze_reg): Likewise for param "insn".
23929 (sched_analyze_1): Likewise.
23930 (sched_analyze_2): Likewise. Add checked casts.
23931 (sched_analyze_insn): Likewise. Also for local "prev".
23932 (deps_analyze_insn): Likewise for param "insn".
23933 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23934 (add_dependence_1): Likewise for params "insn", "elem".
23935 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23936 (parse_add_or_inc): Likewise for param "insn".
23937 (find_inc): Likewise for local "inc_cand".
23938 (find_modifiable_mems): Likewise for params "head", "tail" and
23939 locals "insn", "next_tail".
23941 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23942 (begin_schedule_ready): Likewise for param "insn".
23943 (begin_move_insn): Likewise for params "insn" and "last".
23944 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23946 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23947 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23948 (ebb_add_remove_insn): Likewise for param "insn".
23949 (advance_target_bb): Likewise.
23951 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23953 (check_live): Likewise for param "insn".
23954 (init_ready_list): Likewise for local "insn".
23955 (can_schedule_ready_p): Likewise for param "insn".
23956 (begin_schedule_ready): Likewise.
23957 (new_ready): Likewise for param "next".
23958 (rgn_print_insn): Likewise for param "insn".
23959 (rgn_rank): Likewise for params "insn1", "insn2".
23960 (contributes_to_priority): Likewise for params "next", "insn".
23961 (rgn_insn_finishes_block_p): Likewise for param "insn".
23962 (add_branch_dependences): Likewise for params "head", "tail" and
23963 locals "insn", "last".
23964 (rgn_add_remove_insn): Likewise for param "insn".
23965 (advance_target_bb): Likewise.
23967 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23968 const_rtx to const rtx_insn *.
23970 * sel-sched-dump.h (sel_print_insn): Likewise.
23972 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23973 (deps_init_id): Likewise.
23975 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23976 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23981 * output.h (final_start_function): Strengthen param 1 from rtx to
23984 * final.c (final_start_function): Likewise, renaming back from
23985 "uncast_first" to "first", and dropping the checked cast from rtx
23988 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23990 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23991 * final.c (final): Likewise. Rename param back from
23992 "uncast_first" to "first" and eliminate the checked cast from rtx
23995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23997 * output.h (shorten_branches): Strengthen param from rtx to
24000 * final.c (shorten_branches): Likewise, renaming param back from
24001 "uncast_first" to "first", and dropping the checked cast from rtx
24004 * genattr.c (gen_attr): Likewise when writing out the prototype of
24007 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24009 * sched-int.h (struct haifa_sched_info): Strengthen fields
24010 "prev_head" and "next_tail" from rtx to rtx_insn *.
24012 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24014 * rtl.h (rtx_jump_table_data::get_labels): New method.
24015 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
24016 with use of the new rtx_jump_table_data::get_labels method.
24017 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
24018 to rtx_jump_table_data *. Simplify by using get_labels method.
24019 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
24020 a dyn_cast, introducing local "table", using it to replace
24021 label-lookup logic with a get_labels method call.
24022 (patch_jump_insn): Simplify using get_labels method.
24023 * dwarf2cfi.c (create_trace_edges): Likewise.
24024 * rtlanal.c (label_is_jump_target_p): Likewise.
24026 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24028 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
24031 * emit-rtl.c (unshare_all_rtl_1): Likewise.
24032 (unshare_all_rtl_again): Likewise, also for local "p".
24034 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24036 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
24038 * cfgrtl.c (delete_insn_and_edges): Likewise.
24040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24042 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
24043 from rtx to rtx_insn *.
24045 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
24047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24049 * function.c (thread_prologue_and_epilogue_insns): Likewise for
24050 locals "returnjump", "epilogue_end", "insn", "next".
24052 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
24053 "returnjump" from rtx * to rtx_insn **.
24054 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
24056 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24058 * basic-block.h (struct edge_def). Strengthen "r" within
24059 union edge_def_insns from rtx to rtx_insn *.
24061 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
24062 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
24064 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
24065 from rtx to rtx_insn *.
24066 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
24068 * postreload-gcse.c (reg_killed_on_edge): Likewise.
24069 (reg_used_on_edge): Likewise.
24070 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
24071 (gt_pch_nx): New overload for rtx_insn *&.
24072 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
24073 from rtx to rtx_insn *.
24075 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24077 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
24078 from rtx to rtx_insn *.
24079 (BB_FOOTER): Replace function with access macro.
24080 (SET_BB_FOOTER): Delete.
24082 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
24084 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24085 (emit_barrier_after_bb): Likewise.
24086 (record_effective_endpoints): Likewise.
24087 (relink_block_chain): Likewise.
24088 (fixup_fallthru_exit_predecessor): Likewise.
24089 (cfg_layout_duplicate_bb): Likewise.
24090 (cfg_layout_split_block): Likewise.
24091 (cfg_layout_delete_block): Likewise.
24092 (cfg_layout_merge_blocks): Likewise.
24093 (BB_FOOTER): Delete function.
24094 (SET_BB_FOOTER): Delete function.
24095 * combine.c (update_cfg_for_uncondjump): Replace uses of
24096 SET_BB_FOOTER with BB_FOOTER.
24098 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24100 * except.h (struct eh_landing_pad_d): Strengthen field
24101 "landing_pad" from rtx to rtx_code_label *.
24103 * except.c (sjlj_emit_dispatch_table): Likewise for param
24105 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
24107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24109 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
24110 first param from rtx to rtx_insn *.
24111 * config/xtensa/xtensa.c (struct machine_function): Likewise for
24112 field "set_frame_ptr_insn".
24113 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
24114 "csend" from rtx to rtx_code_label *.
24115 (xtensa_expand_atomic): Likewise for local "csloop".
24116 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
24118 (xtensa_call_tls_desc): Likewise for return type and locals
24119 "call_insn", "insns".
24120 (xtensa_legitimize_tls_address): Likewise for local "insns".
24121 (xtensa_expand_prologue): Likewise for locals "insn", "first".
24123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24125 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
24126 first param from rtx to rtx_insn *.
24127 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
24130 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24132 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
24133 Strengthen param 1 from rtx to rtx_insn *.
24134 (tilepro_output_cbranch): Likewise.
24135 (tilepro_adjust_insn_length): Likewise.
24136 (tilepro_final_prescan_insn): Likewise for sole param.
24138 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
24139 Likewise for local "last".
24140 (cbranch_predicted_p): Likewise for param "insn".
24141 (tilepro_output_simple_cbranch_with_opcode): Likewise.
24142 (tilepro_output_cbranch_with_opcode): Likewise.
24143 (tilepro_output_cbranch): Likewise.
24144 (frame_emit_load): Likewise for return type and locals "seq",
24146 (emit_sp_adjust): Likewise for return type and local "insn".
24147 (tilepro_expand_epilogue): Likewise for locals "last_insn",
24149 (tilepro_adjust_insn_length): Likewise for param "insn".
24150 (next_insn_to_bundle): Likewise for return type and params
24152 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
24153 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
24155 (match_addli_pcrel): Likewise for param "insn".
24156 (replace_addli_pcrel): Likewise.
24157 (match_auli_pcrel): Likewise.
24158 (replace_auli_pcrel): Likewise.
24159 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
24161 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24162 "queue", "next_queue", "prev".
24163 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
24164 (tilepro_final_prescan_insn): Likewise for param "insn".
24166 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24168 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
24169 Strengthen param 1 from rtx to rtx_insn *.
24170 (tilegx_output_cbranch): Likewise.
24171 (tilegx_adjust_insn_length): Likewise.
24172 (tilegx_final_prescan_insn): Likewise for sole param.
24174 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
24176 (cbranch_predicted_p): Likewise for param "insn".
24177 (tilegx_output_simple_cbranch_with_opcode): Likewise.
24178 (tilegx_output_cbranch_with_opcode): Likewise.
24179 (tilegx_output_cbranch): Likewise.
24180 (frame_emit_load): Likewise for return type.
24181 (set_frame_related_p): Likewise for locals "seq", "insn".
24182 (emit_sp_adjust): Likewise for return type, and for local "insn".
24183 Introduce local "pat" for use in place of "insn" where the latter
24184 isn't an instruction.
24185 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
24186 from rtx to rtx_insn *.
24187 (tilegx_adjust_insn_length): Likewise for param "insn".
24188 (next_insn_to_bundle): Likewise for return type and params "r" and
24190 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
24192 (replace_insns): Likewise for params "old_insn", "new_insns".
24193 (replace_mov_pcrel_step1): Likewise for param "insn" and local
24195 (replace_mov_pcrel_step2): Likewise.
24196 (replace_mov_pcrel_step3): Likewise.
24197 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
24199 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24200 "queue", "next_queue", "prev".
24201 (tilegx_output_mi_thunk): Likewise for local "insn".
24202 (tilegx_final_prescan_insn): Likewise for param "insn".
24204 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24206 * config/spu/spu.c (frame_emit_store): Strengthen return type from
24208 (frame_emit_load): Likewise.
24209 (frame_emit_add_imm): Likewise, also for local "insn".
24210 (spu_expand_prologue): Likewise for local "insn".
24211 (struct spu_bb_info): Likewise for field "prop_jump".
24212 (emit_nop_for_insn): Likewise for param "insn" and local
24214 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
24216 (spu_emit_branch_hint): Likewise for params "before", "branch" and
24217 locals "hint", "insn".
24218 (get_branch_target): Likewise for param "branch".
24219 (insn_clobbers_hbr): Likewise for param "insn".
24220 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
24221 locals "insn", "before_4", "before_16".
24222 (insert_hbrp): Likewise for local "insn".
24223 (spu_machine_dependent_reorg): Likewise for locals "branch",
24224 "insn", "next", "bbend".
24225 (uses_ls_unit): Likewise for param "insn".
24226 (get_pipe): Likewise.
24227 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
24228 introducing a checked cast.
24229 (spu_sched_adjust_cost): Likewise for params "insn" and
24231 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
24232 (spu_sms_res_mii): Likewise.
24234 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24236 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
24237 from rtx to rtx_insn *.
24238 (output_cbranch): Likewise for param 6.
24239 (output_return): Likewise for param 1.
24240 (output_sibcall): Likewise.
24241 (output_v8plus_shift): Likewise.
24242 (output_v8plus_mult): Likewise.
24243 (output_v9branch): Likewise for param 7.
24244 (output_cbcond): Likewise for param 3.
24246 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
24248 (sparc_legitimize_pic_address): Likewise.
24249 (sparc_emit_call_insn): Likewise.
24250 (emit_save_or_restore_regs): Likewise.
24251 (emit_window_save): Likewise for return type and local "insn".
24252 (sparc_expand_prologue): Likewise for local "insn".
24253 (sparc_flat_expand_prologue): Likewise.
24254 (output_return): Likewise for param "insn".
24255 (output_sibcall): Likewise for param "insn" and local "delay".
24256 (output_ubranch): Likewise for param "insn".
24257 (output_cbranch): Likewise.
24258 (output_cbcond): Likewise.
24259 (output_v9branch): Likewise.
24260 (output_v8plus_shift): Likewise.
24261 (sparc_output_mi_thunk): Likewise for local "insn".
24262 (get_some_local_dynamic_name): Likewise.
24263 (output_v8plus_mult): Likewise for param "insn".
24265 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24267 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
24268 from rtx to rtx_insn *.
24269 (output_branchy_insn): Likewise for param 3.
24270 (output_far_jump): Likewise for param 1.
24271 (final_prescan_insn): Likewise.
24272 (sh_insn_length_adjustment): Likewise for sole param.
24274 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
24275 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
24277 (sh_emit_compare_and_set): Likewise for local "lab".
24278 (output_far_jump): Strengthen param "insn" and local "prev" from
24280 (output_branchy_insn): Likewise for param "insn" and local
24282 (output_ieee_ccmpeq): Likewise for param "insn".
24283 (struct label_ref_list_d): Strengthen field "label" from rtx to
24285 (pool_node): Likewise.
24286 (pool_window_label): Likewise for this global.
24287 (add_constant): Likewise for return type and locals "lab", "new_rtx".
24288 (dump_table): Strengthen params "start", "barrier" and local
24289 "scan" from rtx to rtx_insn *.
24290 (broken_move): Likewise for param "insn".
24291 (untangle_mova): Likewise for params "first_mova" and "new_mova".
24292 Strengthen param "first_mova" from rtx * to rtx_insn **.
24293 (mova_p): Likewise for param "insn".
24294 (fixup_mova): Likewise for param "mova".
24295 (find_barrier): Likewise for return type, params "mova" and
24296 "from", and locals "barrier_before_mova", "found_barrier",
24297 "good_barrier", "orig", "last_symoff", "next". Strengthen local
24298 "label" from rtx to rtx_code_label *.
24299 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24301 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24302 (split_branches): Likewise for param "first" and local "insn".
24303 (final_prescan_insn): Likewise for param "insn".
24304 (sequence_insn_p): Likewise for locals "prev", "next".
24305 (sh_insn_length_adjustment): Likewise for param "insn".
24306 (sh_can_redirect_branch): Likewise for local "insn".
24307 (find_r0_life_regions): Likewise for locals "end", "insn".
24308 (sh_output_mi_thunk): Likewise for local "insns".
24310 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24312 * config/score/score.c (score_output_mi_thunk): Strengthen local
24313 "insn" from rtx to rtx_insn *.
24314 (score_prologue): Likewise.
24316 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24318 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24319 1 from rtx to rtx_insn *.
24320 (s390_emit_jump): Likewise for return type.
24321 (s390_emit_call): Likewise.
24322 (s390_load_got): Likewise.
24324 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24326 (s390_match_ccmode): Likewise for param "insn".
24327 (s390_emit_jump): Likewise for return type.
24328 (s390_split_branches): Likewise for local "label".
24329 (struct constant): Strengthen field "label" from rtx to
24331 (struct constant_pool): Likewise for field "label". Strengthen
24332 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24334 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24336 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24337 (s390_end_pool): Likewise.
24338 (s390_dump_pool): Likewise for local "insn".
24339 (s390_mainpool_start): Likewise.
24340 (s390_chunkify_start): Likewise.
24341 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24342 with insns. Strengthen locals "label", "jump", "barrier", "next",
24343 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24344 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24346 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24347 "jump", "label", "next_insn".
24348 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24349 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24351 (s390_load_got): Likewise for return type and local "insns".
24352 (s390_save_gprs_to_fprs): Likewise for local "insn".
24353 (s390_restore_gprs_from_fprs): Likewise.
24354 (pass_s390_early_mach::execute): Likewise.
24355 (s390_emit_prologue): Likewise for local "insns".
24356 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24358 (s390_emit_call): Strengthen return type and local "insn" from
24360 (s390_emit_tpf_eh_return): Likewise for local "insn".
24361 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24362 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24363 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24365 (s390_non_addr_reg_read_p): Likewise for param "insn".
24366 (find_cond_jump): Likewise for return type and param "insn".
24367 (s390_swap_cmp): Likewise for param "insn".
24368 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24369 "prev_insn", "next_insn".
24370 (s390_reorg): Likewise for locals "insn", "target".
24371 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24372 (s390_sched_variable_issue): For now, rename param "insn" to
24373 "uncast_insn", introducing a checked cast.
24374 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24376 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24377 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24379 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24381 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24382 param from rtx to rtx_insn *.
24383 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24387 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24388 4 from rtx to rtx_insn *.
24389 (rs6000_final_prescan_insn): Likewise for first param.
24390 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24392 (rs6000_get_some_local_dynamic_name): Likewise.
24393 (output_cbranch): Likewise for param "insn".
24394 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24395 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24396 (rs6000_emit_allocate_stack): Likewise for local "insn".
24397 (load_cr_save): Likewise.
24398 (restore_saved_cr): Likewise.
24399 (restore_saved_lr): Likewise.
24400 (emit_cfa_restores): Likewise.
24401 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24402 "deleted_debug_label".
24403 (rs6000_output_mi_thunk): Likewise for local "insn".
24404 (rs6000_final_prescan_insn): Likewise for param "insn".
24406 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24408 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24409 Strengthen param "insn" from rtx to rtx_insn *.
24410 * config/picochip/picochip.c (picochip_current_prescan_insn):
24411 Likewise for this variable.
24412 (picochip_final_prescan_insn): Likewise for param "insn".
24414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24416 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24417 from rtx to rtx_insn *.
24418 (pa_output_indirect_call): Likewise.
24419 (pa_adjust_insn_length): Likewise.
24420 (pa_attr_length_millicode_call): Likewise.
24421 (pa_attr_length_call): Likewise.
24422 (pa_attr_length_indirect_call): Likewise.
24424 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24426 (pa_attr_length_millicode_call): Likewise.
24427 (pa_attr_length_call): Likewise.
24428 (pa_output_call): Likewise.
24429 (pa_attr_length_indirect_call): Likewise.
24430 (pa_output_indirect_call): Likewise.
24432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24434 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24435 Strengthen first param from rtx to rtx_insn *.
24436 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24441 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24442 type from rtx to rtx_insn *.
24443 (mips_expand_call): Likewise.
24444 (mips_adjust_insn_length): Likewise for first param.
24445 (mips_output_conditional_branch): Likewise.
24446 (mips_output_order_conditional_branch): Likewise.
24447 (mips_final_prescan_insn): Likewise.
24449 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24450 rtx_insn * for the SEQUENCE case.
24451 (SEQ_END): Likewise.
24452 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24453 (mips_emit_call_insn): Likewise, also for local "insn".
24454 (mips16_gp_pseudo_reg): Likewise for local "scan".
24455 (mips16_build_call_stub): Likewise for return type and for local
24456 "insn". Introduce a new local "pattern" so that "insn" can indeed
24458 (mips_expand_call): Strengthen return type and local "insn" from
24460 (mips_block_move_loop): Strengthen local "label" from rtx to
24462 (mips_expand_synci_loop): Likewise for locals "label",
24464 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24466 (mips16e_collect_argument_saves): Likewise for locals "insn",
24468 (mips_find_gp_ref): Likewise for param of callback for "pred"
24469 param, and for local "insn".
24470 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24471 (mips_insn_has_flexible_gp_ref_p): Likewise.
24472 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24474 (mips_epilogue_set_cfa): Likewise for local "insn".
24475 (mips_expand_epilogue): Likewise.
24476 (mips_adjust_insn_length): Likewise for param "insn".
24477 (mips_output_conditional_branch): Likewise.
24478 (mips_output_order_conditional_branch): Likewise.
24479 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24480 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24481 "falu2_turn_enabled_insn".
24482 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24483 "done_label" from rtx to rtx_code_label *.
24484 (struct mips16_constant): Likewise for field "label".
24485 (mips16_add_constant): Likewise for return type.
24486 (mips16_emit_constants_1): Strengthen return type and param "insn"
24487 from rtx to rtx_insn *.
24488 (mips16_emit_constants): Likewise for param "insn".
24489 (mips16_insn_length): Likewise.
24490 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24491 to rtx_code_label *.
24492 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24493 from rtx to rtx_insn *.
24494 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24495 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24496 (r10k_simplify_address): Strengthen param "insn" and local
24497 "def_insn" from rtx to rtx_insn *.
24498 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24500 (r10k_needs_protection_p_1): Update target type of cast of data
24501 from to rtx to rtx_insn *.
24502 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24503 rtx * to rtx_insn **.
24504 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24506 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24507 (mips_call_expr_from_insn): Likewise for param "insn".
24508 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24509 (mips_find_pic_call_symbol): Likewise for param "insn".
24510 (mips_annotate_pic_calls): Likewise for local "insn".
24511 (mips_sim_insn): Likewise for this variable.
24512 (struct mips_sim): Likewise for field "insn" within elements of
24514 (mips_sim_wait_reg): Likewise for param "insn".
24515 (mips_sim_wait_regs): Likewise.
24516 (mips_sim_wait_units): Likewise.
24517 (mips_sim_wait_insn): Likewise.
24518 (mips_sim_issue_insn): Likewise.
24519 (mips_sim_finish_insn): Likewise.
24520 (mips_seq_time): Likewise for param "seq" and local "insn".
24521 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24522 locals "first", "second".
24523 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24524 "last", "last2", "next".
24525 (mips_avoid_hazard): Likewise for params "after", "insn".
24526 (mips_reorg_process_insns): Likewise for locals "insn",
24527 "last_insn", "subinsn", "next_insn".
24528 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24529 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24531 (mips_output_mi_thunk): Likewise for local "insn".
24532 (mips_final_prescan_insn): Likewise for param "insn".
24534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24536 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24537 Strengthen return type and local "insns" from rtx to rtx_insn *.
24538 (microblaze_legitimize_tls_address): Likewise for local "insns".
24539 (microblaze_block_move_loop): Strengthen local "label" from rtx
24540 to rtx_code_label *.
24541 (microblaze_expand_prologue): Strengthen two locals named "insn"
24542 from rtx to rtx_insn *.
24543 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24544 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24545 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24546 to rtx_code_label *.
24548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24550 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24551 param from rtx to rtx_insn *.
24552 (mep_reuse_lo): Likewise for third param.
24553 (mep_use_post_modify_p): Likewise for first param.
24554 (mep_core_address_length): Likewise.
24555 (mep_cop_address_length): Likewise.
24556 (mep_final_prescan_insn): Likewise.
24557 (mep_store_data_bypass_p): Likewise for both params.
24558 (mep_mul_hilo_bypass_p): Likewise.
24559 (mep_ipipe_ldc_p): Likewise for param.
24561 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24562 (mep_rewrite_mult): Likewise.
24563 (mep_rewrite_mulsi3): Likewise.
24564 (mep_rewrite_maddsi3): Likewise.
24565 (mep_reuse_lo_p_1): Likewise.
24566 (mep_reuse_lo_p): Likewise.
24567 (mep_frame_expr): Likewise.
24568 (mep_make_parallel): Likewise for both params.
24569 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24571 (mep_use_post_modify_p): Likewise for param "insn".
24572 (mep_core_address_length): Likewise.
24573 (mep_cop_address_length): Likewise.
24574 (mep_reg_set_in_function): Likewise for local "insn".
24575 (mep_asm_without_operands_p): Likewise.
24576 (F): Likewise for return type and param "x".
24577 (add_constant): Likewise for local "insn".
24578 (maybe_dead_move): Likewise for return type and local "insn".
24579 (mep_expand_prologue): Likewise for local "insn".
24580 (mep_final_prescan_insn): Likewise for param "insn".
24581 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24582 "next", "follow", "x".
24583 (mep_insert_repeat_label_last): Likewise for return type, param
24584 "last_insn", and locals "next", "prev". Strengthen param "label"
24585 from rtx to rtx_code_label *.
24586 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24588 (struct mep_doloop_end): Likewise for fields "insn" and
24590 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24591 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24592 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24594 (mep_invert_branch): Likewise for params "insn" and "after".
24595 (mep_reorg_erepeat): Likewise for param "insns" and locals
24596 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24597 "l" from rtx to rtx_code_label *.
24598 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24599 from rtx to rtx_insn *.
24600 (mep_reorg_addcombine): Likewise for param "insns" and locals
24602 (add_sp_insn_p): Likewise for param "insn".
24603 (mep_reorg_noframe): Likewise for param "insns" and locals
24604 "start_frame_insn", "end_frame_insn", "next".
24605 (mep_reorg): Likewise for local "insns".
24606 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24608 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24609 (mep_mul_hilo_bypass_p): Likewise.
24610 (mep_ipipe_ldc_p): Likewise for param "insn".
24611 (mep_make_bundle): Likewise for return type, param "cop" and local
24612 "insn", splitting out the latter into a new local "seq" for when it
24613 is a SEQUENCE rather than an insn.
24614 (core_insn_p): Likewise for param "insn".
24615 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24616 "last", "first", "note", "prev", "core_insn".
24618 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24620 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24622 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24623 (m68k_final_prescan_insn): Likewise for first param.
24625 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24626 (m68k_set_frame_related): Likewise for param "insn".
24627 (output_btst): Likewise for param "insn".
24628 (m68k_final_prescan_insn): Likewise.
24629 (m68k_move_to_reg): Likewise for local "insn".
24630 (m68k_call_tls_get_addr): Likewise for local "insns".
24631 (m68k_call_m68k_read_tp): Likewise.
24632 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24633 (m68k_output_mi_thunk): Likewise for local "insn".
24635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24637 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24638 first param from rtx to rtx_insn *.
24639 (iq2000_adjust_insn_length): Likewise.
24640 (iq2000_output_conditional_branch): Likewise.
24641 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24642 "insn" and local "nop_insn".
24643 (iq2000_annotate_frame_insn): Likewise for param "insn".
24644 (iq2000_expand_prologue): Likewise for both locals "insn".
24645 (iq2000_adjust_insn_length): Likewise for param "insn".
24646 (iq2000_output_conditional_branch): Likewise.
24648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24650 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24651 "insns" from rtx to rtx_insn *.
24652 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24653 (struct spill_fill_data): Likewise for field "init_after" and for
24654 elements of array field "prev_insn".
24655 (spill_restore_mem): Likewise for locals "insn", "first".
24656 (do_spill): Likewise for local "insn".
24657 (do_restore): Likewise.
24658 (ia64_expand_prologue): Likewise.
24659 (ia64_expand_epilogue): Likewise.
24660 (emit_insn_group_barriers): Likewise for locals "insn",
24662 (emit_all_insn_group_barriers): Likewise for locals "insn",
24664 (dfa_stop_insn): Likewise for this global.
24665 (dfa_pre_cycle_insn): Likewise.
24666 (ia64_nop): Likewise.
24667 (final_emit_insn_group_barriers): Likewise for locals "insn",
24669 (emit_predicate_relation_info): Likewise for locals "head", "n",
24671 (ia64_reorg): Likewise for local "insn".
24672 (ia64_output_mi_thunk): Likewise.
24673 (expand_vec_perm_interleave_2): Likewise for local "seq".
24675 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24677 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24678 param 1 "insn" from rtx to rtx_insn *.
24679 (ix86_use_lea_for_mov): Likewise.
24680 (ix86_avoid_lea_for_addr): Likewise.
24681 (ix86_split_lea_for_addr): Likewise.
24682 (ix86_lea_for_add_ok): Likewise.
24683 (ix86_output_call_insn): Likewise.
24685 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24686 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24687 (ix86_output_function_epilogue): Likewise for locals "insn",
24688 "deleted_debug_label".
24689 (legitimize_tls_address): Likewise for local "insn".
24690 (get_some_local_dynamic_name): Likewise.
24691 (increase_distance): Likewise for params "prev", "next".
24692 (distance_non_agu_define_in_bb): Likewise for params "insn",
24693 "start" and locals "prev", "next".
24694 (distance_non_agu_define): Likewise for param "insn".
24695 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24696 locals "next", "prev".
24697 (distance_agu_use): Likewise for param "insn".
24698 (ix86_lea_outperforms): Likewise.
24699 (ix86_ok_to_clobber_flags): Likewise.
24700 (ix86_avoid_lea_for_add): Likewise.
24701 (ix86_use_lea_for_mov): Likewise.
24702 (ix86_avoid_lea_for_addr): Likewise.
24703 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24704 (ix86_split_lea_for_addr): Likewise for param "insn".
24705 (ix86_lea_for_add_ok): Likewise for param "insn".
24706 (ix86_expand_carry_flag_compare): Likewise for local
24708 (ix86_expand_int_movcc): Likewise.
24709 (ix86_output_call_insn): Likewise for param "insn".
24710 (ix86_output_call_insn): Likewise for local "i".
24711 (x86_output_mi_thunk): Introduce local "insn", using it in place
24712 of "tmp" when dealing with insns.
24713 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24715 (ix86_pad_returns): Likewise for locals "ret", "prev".
24716 (ix86_count_insn_bb): Likewise for local "insn".
24717 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24718 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24719 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24720 (expand_vec_perm_interleave2): Likewise for local "seq".
24721 (expand_vec_perm_vperm2f128_vblend): Likewise.
24722 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24723 call to for_each_rtx with for_each_rtx_in_insn.
24725 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24727 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24728 "label" from rtx to rtx_code_label *.
24729 (ix86_expand_prologue): Likewise.
24730 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24732 (ix86_split_idivmod): Likewise for locals "end_label" and
24734 (ix86_expand_branch): Likewise for local "label2".
24735 (ix86_expand_aligntest): Likewise for return type and local "label".
24736 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24738 (expand_movmem_epilogue): Likewise for the various locals named
24740 (expand_setmem_epilogue): Likewise.
24741 (expand_small_movmem_or_setmem): Likewise for local "label".
24742 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24743 Strengthen param "done_label" from rtx * to rtx_code_label **.
24744 Strengthen locals "loop_label" and "label" from rtx to
24746 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24747 Likewise for locals "loop_label", "label".
24748 (ix86_expand_set_or_movmem): Likewise for locals "label",
24749 "jump_around_label", "hot_label".
24750 (ix86_expand_strlensi_unroll_1): Likewise for locals
24751 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24753 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24754 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24755 "label2", "jump_label".
24756 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24758 (ix86_expand_lfloorceil): Likewise for local "label".
24759 (ix86_expand_rint): Likewise.
24760 (ix86_expand_floorceildf_32): Likewise.
24761 (ix86_expand_floorceil): Likewise.
24762 (ix86_expand_rounddf_32): Likewise.
24763 (ix86_expand_trunc): Likewise.
24764 (ix86_expand_truncdf_32): Likewise.
24765 (ix86_expand_round): Likewise.
24767 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24769 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24770 first param from rtx to rtx_insn *.
24771 (h8300_insn_length_from_table): Likewise.
24772 * config/h8300/h8300.c (F): Likewise for return type and param
24774 (Fpa): Add a checked cast to rtx_insn *.
24775 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24777 (final_prescan_insn): Likewise for param "insn".
24778 (h8300_binary_length): Likewise.
24779 (h8300_insn_length_from_table): Likewise.
24781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24783 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24784 Strengthen first param "insn" from rtx to rtx_insn *.
24786 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24788 (frame_insn): Likewise for return type. Introduce local "insn"
24789 for use in place of local "x" for use as an rtx_insn *.
24790 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24791 (epiphany_expand_prologue): Likewise for local "insn".
24792 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24793 * config/epiphany/resolve-sw-modes.c
24794 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24799 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24800 param from rtx to rtx_insn *.
24801 (c6x_final_prescan_insn): Likewise for first param.
24803 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24804 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24805 (c6x_expand_compare): Strengthen local "insns" from rtx to
24807 (c6x_get_unit_specifier): Likewise for param "insn".
24808 (c6x_print_unit_specifier_field): Likewise.
24809 (c6x_final_prescan_insn): Likewise.
24810 (emit_add_sp_const): Likewise for local "insn".
24811 (c6x_expand_prologue): Likewise.
24813 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24815 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24816 param 1 from rtx to rtx_insn *.
24817 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24818 the various locals named "insn".
24819 (expand_epilogue_reg_restore): Likewise.
24820 (frame_related_constant_load): Likewise.
24821 (add_to_reg): Likewise.
24822 (emit_link_insn): Likewise.
24823 (do_link): Likewise.
24824 (expand_interrupt_handler_prologue): Likewise.
24825 (branch_dest): Likewise for param "branch".
24826 (asm_conditional_branch): Likewise for param "insn".
24827 (gen_one_bundle): Likewise for elements of param "slot" and local
24829 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24830 elements of local "slot".
24831 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24832 "queue", "next_queue", "prev".
24833 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24834 (add_sched_insns_for_speculation): Likewise for local "insn".
24836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24838 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24839 from rtx to rtx_insn *.
24840 (output_movhi): Likewise.
24841 (output_movsisf): Likewise.
24842 (avr_out_tstsi): Likewise.
24843 (avr_out_tsthi): Likewise.
24844 (avr_out_tstpsi): Likewise.
24845 (avr_out_compare): Likewise.
24846 (avr_out_compare64): Likewise.
24847 (avr_out_movpsi): Likewise.
24848 (ashlqi3_out): Likewise.
24849 (ashlhi3_out): Likewise.
24850 (ashlsi3_out): Likewise.
24851 (ashrqi3_out): Likewise.
24852 (ashrhi3_out): Likewise.
24853 (ashrsi3_out): Likewise.
24854 (lshrqi3_out): Likewise.
24855 (lshrhi3_out): Likewise.
24856 (lshrsi3_out): Likewise.
24857 (avr_out_ashlpsi3): Likewise.
24858 (avr_out_ashrpsi3): Likewise.
24859 (avr_out_lshrpsi3): Likewise.
24860 (avr_out_fract): Likewise.
24861 (avr_out_sbxx_branch): Likewise.
24862 (avr_out_round): Likewise.
24863 (avr_out_xload): Likewise.
24864 (avr_out_movmem): Likewise.
24865 (adjust_insn_length): Likewise.
24866 (avr_out_lpm): Likewise.
24867 (reg_unused_after): Likewise.
24868 (_reg_unused_after): Likewise.
24869 (avr_jump_mode): Likewise for second param.
24870 (jump_over_one_insn): Likewise for first param.
24871 (avr_final_prescan_insn): Likewise.
24872 (out_shift_with_cnt): Likewise for second param.
24874 * config/avr/avr.c (get_sequence_length): Likewise for param
24875 "insns" and local "insn".
24876 (emit_push_byte): Likewise for local "insn".
24877 (emit_push_sfr): Likewise.
24878 (avr_prologue_setup_frame): Likewise for locals "insn",
24879 "fp_plus_insns", "sp_plus_insns".
24880 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24882 (avr_jump_mode): Likewise for param "insn".
24883 (avr_final_prescan_insn): Likewise.
24884 (avr_find_unused_d_reg): Likewise.
24885 (avr_out_lpm_no_lpmx): Likewise.
24886 (avr_out_lpm): Likewise.
24887 (avr_out_xload): Likewise.
24888 (output_movqi): Likewise.
24889 (output_movhi): Likewise.
24890 (out_movqi_r_mr): Likewise.
24891 (out_movhi_r_mr): Likewise.
24892 (out_movsi_r_mr): Likewise.
24893 (out_movsi_mr_r): Likewise.
24894 (output_movsisf): Likewise.
24895 (avr_out_load_psi): Likewise.
24896 (avr_out_store_psi): Likewise.
24897 (avr_out_movpsi): Likewise.
24898 (out_movqi_mr_r): Likewise.
24899 (avr_out_movhi_mr_r_xmega): Likewise.
24900 (out_movhi_mr_r): Likewise.
24901 (compare_condition): Likewise for param "insn" and local "next".
24902 (compare_sign_p): Likewise for param "insn".
24903 (compare_diff_p): Likewise.
24904 (compare_eq_p): Likewise.
24905 (avr_out_compare): Likewise.
24906 (avr_out_compare64): Likewise.
24907 (avr_out_tsthi): Likewise.
24908 (avr_out_tstpsi): Likewise.
24909 (avr_out_tstsi): Likewise.
24910 (out_shift_with_cnt): Likewise.
24911 (ashlqi3_out): Likewise.
24912 (ashlhi3_out): Likewise.
24913 (avr_out_ashlpsi3): Likewise.
24914 (ashlsi3_out): Likewise.
24915 (ashrqi3_out): Likewise.
24916 (ashrhi3_out): Likewise.
24917 (avr_out_ashrpsi3): Likewise.
24918 (ashrsi3_out): Likewise.
24919 (lshrqi3_out): Likewise.
24920 (lshrhi3_out): Likewise.
24921 (avr_out_lshrpsi3): Likewise.
24922 (lshrsi3_out): Likewise.
24923 (avr_out_fract): Likewise.
24924 (avr_out_round): Likewise.
24925 (avr_adjust_insn_length): Likewise.
24926 (reg_unused_after): Likewise.
24927 (_reg_unused_after): Likewise.
24928 (avr_compare_pattern): Likewise.
24929 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24930 and locals "branch1", "branch2", "insn2", "jump".
24931 (avr_reorg): Likewise for local "insn".
24932 (avr_2word_insn_p): Likewise for param "insn".
24933 (jump_over_one_insn_p): Likewise.
24934 (avr_out_sbxx_branch): Likewise.
24935 (avr_out_movmem): Likewise.
24937 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24939 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24940 param from rtx to rtx_insn *.
24941 (thumb1_final_prescan_insn): Likewise.
24942 (thumb2_final_prescan_insn): Likewise.
24944 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24946 (struct minipool_node): Likewise for field "insn".
24947 (dump_minipool): Likewise for param "scan".
24948 (create_fix_barrier): Likewise for local "from". Strengthen local
24949 "label" from rtx to rtx_code_label *.
24950 (push_minipool_barrier): Strengthen param "insn" from rtx to
24952 (push_minipool_fix): Likewise.
24953 (note_invalid_constants): Likewise.
24954 (thumb2_reorg): Likewise for local "insn".
24955 (arm_reorg): Likewise.
24956 (thumb2_final_prescan_insn): Likewise for param
24957 "insn" and local "first_insn".
24958 (arm_final_prescan_insn): Likewise for param "insn" and locals
24959 "start_insn", "this_insn".
24960 (arm_debugger_arg_offset): Likewise for param "insn".
24961 (thumb1_emit_multi_reg_push): Likewise for return type and local
24963 (thumb1_final_prescan_insn): Likewise for param "insn".
24964 (thumb_far_jump_used_p): Likewise for local "insn".
24965 (thumb1_expand_prologue): Likewise.
24966 (arm_expand_epilogue_apcs_frame): Likewise.
24967 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24968 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24969 from rtx to rtx_code_label *.
24970 (arm_split_atomic_op): Likewise for local "label".
24971 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24975 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24976 first param from rtx to rtx_insn *.
24977 (arc_verify_short): Likewise.
24978 (arc_short_long): Likewise.
24979 (arc_need_delay): Likewise.
24981 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24983 (arc_ccfsm_advance): Likewise for param "insn" and locals
24984 "start_insn", "this_insn".
24985 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24986 (arc_ccfsm_post_advance): Likewise for param "insn".
24987 (arc_next_active_insn): Likewise for return type and param "insn".
24988 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24989 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24990 (output_short_suffix): Likewise for local "insn".
24991 (arc_final_prescan_insn): Likewise for param "insn". Remove
24992 now-redundant checked cast.
24993 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24994 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24995 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24996 for use where lc_set became an insn.
24997 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24999 (arc_get_insn_variants): Likewise for local "prev".
25000 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
25002 (arc_predicate_delay_insns): Likewise for local "insn".
25003 (arc_pad_return): Likewise for local "prev". For now, add a
25004 checked cast when extracting the insn from "final_sequence".
25005 (arc_short_long): Likewise for param "insn".
25006 (arc_need_delay): Likewise for param "insn" and local "next".
25007 (arc_label_align): Likewise for locals "prev", "next".
25009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
25011 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
25012 "insn" from rtx to rtx_insn *.
25013 (alpha_gp_save_rtx): Likewise for local "seq".
25014 (alpha_instantiate_decls): Likewise for local "top".
25015 (get_some_local_dynamic_name): Likewise for local "insn".
25016 (alpha_does_function_need_gp): Likewise.
25017 (set_frame_related_p): Likewise for return type and for locals
25019 (emit_frame_store_1): Likewise for local "insn".
25020 (alpha_expand_prologue): Likewise for locals "insn", "seq".
25021 (alpha_end_function): Likewise for local "insn".
25022 (alpha_output_mi_thunk_osf): Likewise.
25023 (alphaev4_insn_pipe): Likewise for param "insn".
25024 (alphaev5_insn_pipe): Likewise.
25025 (alphaev4_next_group): Likewise for return type and param 1
25027 (alphaev5_next_group): Likewise.
25028 (alpha_align_insns_1): Likewise for return type and param 1 of
25029 callback param "next_group", and for locals "i", "next", "prev",
25030 "where", "where2", "insn".
25032 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
25034 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
25035 rather than modifying the stmt.
25037 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25039 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
25040 cgraph_state conversion.
25042 2014-08-25 David Malcolm <dmalcolm@redhat.com>
25044 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25045 Strengthen local "insns" from rtx to rtx_insn *.
25046 (aarch64_set_frame_expr): Likewise for local "insn".
25047 (aarch64_save_or_restore_fprs): Likewise.
25048 (aarch64_save_or_restore_callee_save_registers): Likewise.
25049 (aarch64_expand_prologue): Likewise.
25050 (aarch64_expand_epilogue): Likewise.
25051 (aarch64_output_mi_thunk): Likewise.
25052 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
25053 "label2" from rtx to rtx_code_label *.
25054 (aarch64_split_atomic_op): Likewise for local "label".
25056 2014-08-25 Martin Liska <mliska@suse.cz>
25058 * cgraph.h (symtab_node):
25059 (bool needed_p (void)): created from decide_is_symbol_needed
25060 (bool referred_to_p (void)): created from referred_to_p
25061 (static cgraph_node *get_for_asmname (tree asmname)):
25062 created from symtab_node_for_asm
25063 * cgraph.h (cgraph_node):
25064 (void assemble_thunks_and_aliases (void)):
25065 created from assemble_thunks_and_aliases
25066 (void expand (void)): created from expand_function
25067 (static void finalize_function (tree, bool)):
25068 created from cgraph_finalize_function
25069 (static cgraph_local_info *local_info (tree decl)):
25070 created from cgraph_local_info
25071 (static cgraph_global_info *global_info (tree)):
25072 created from cgraph_global_info
25073 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
25074 * cgraph.h (varpool_node):
25075 (static void add (tree decl): created from varpool_add_new_variable
25076 * cgraph.h (cgraph_edge):
25077 void remove (void);
25078 (void remove_caller (void)): created from cgraph_edge_remove_caller
25079 (void remove_callee (void)): created from cgraph_edge_remove_callee
25080 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
25081 created from cgraph_set_call_stmt
25082 (void redirect_callee (cgraph_node *n)): created from
25083 cgraph_redirect_edge_callee
25084 (cgraph_edge *make_direct (cgraph_node *callee)): created from
25085 cgraph_make_edge_direct
25086 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
25087 gimple redirect_call_stmt_to_callee (void)): created from
25088 cgraph_turn_edge_to_speculative
25089 (void speculative_call_info (cgraph_edge *&direct,
25090 cgraph_edge *&indirect, ipa_ref *&reference)): created from
25091 cgraph_speculative_call_info
25092 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
25093 unsigned stmt_uid, gcov_type count_scale,
25094 int freq_scale, bool update_original)): created from cgraph_clone_edge
25095 (cgraph_edge *resolve_speculation (tree callee_decl)):
25096 created from cgraph_resolve_speculation
25097 (bool cannot_lead_to_return_p (void)): created from
25098 cannot_lead_to_return_p
25099 (bool recursive_p (void)): created from cgraph_edge_recursive_p
25100 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
25101 (static unsigned int rebuild_edges (void)): created from
25102 rebuild_cgraph_edges
25103 (static void rebuild_references (void)): created from
25104 cgraph_rebuild_references
25105 * cgraph.h (symbol_table):
25106 (create_reference): renamed from add_reference
25107 (maybe_create_reference): renamed from maybe_add_reference
25108 (void register_symbol (symtab_node *node)): new function
25109 (void clear_asm_symbols (void)): new function
25110 (void unregister (symtab_node *node)): new function
25111 (void release_symbol (cgraph_node *node, int uid)): new function
25112 (cgraph_node * allocate_cgraph_symbol (void)): new function
25113 (void initialize (void)): created from cgraph_init
25114 (symtab_node *first_symbol (void)):new function
25115 (asm_node *first_asm_symbol (void)):new function
25116 (symtab_node *first_defined_symbol (void)):new function
25117 (varpool_node *first_variable (void)):new function
25118 (varpool_node *next_variable (varpool_node *node)):new function
25119 (varpool_node *first_static_initializer (void)):new function
25120 (varpool_node *next_static_initializer (varpool_node *node)):new
25122 (varpool_node *first_defined_variable (void)):new function
25123 (varpool_node *next_defined_variable (varpool_node *node)):new function
25124 (cgraph_node *first_defined_function (void)):new function
25125 (cgraph_node *next_defined_function (cgraph_node *node)):new function
25126 (cgraph_node *first_function (void)):new function
25127 (cgraph_node *next_function (cgraph_node *node)):new function
25128 (cgraph_node *first_function_with_gimple_body (void)):new function
25129 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
25131 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
25132 created from symtab_remove_unreachable_nodes
25133 (void remove_unreferenced_decls (void)): created from
25134 varpool_remove_unreferenced_decls
25135 (void process_new_functions (void)): created from
25136 cgraph_process_new_functions
25137 (void process_same_body_aliases (void)): created from
25138 cgraph_process_same_body_aliases
25139 (bool output_variables (void)): created from
25140 varpool_node::output_variables
25141 (void output_asm_statements (void)): created from output_asm_statements
25142 (void finalize_compilation_unit (void)): created from
25143 finalize_compilation_unit
25144 (void compile (void)): created from compile
25145 (void output_weakrefs (void)): created from output_weakrefs
25146 (cgraph_node *create_empty (void)): created from
25147 cgraph_node::create_empty
25148 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
25149 gimple call_stmt, gcov_type count, int freq,
25150 bool indir_unknown_callee)): created from cgraph_node::create_edge
25151 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
25152 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
25153 created from cgraph_next_function_with_gimple_body
25154 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
25155 created from cgraph_remove_edge_removal_hook
25156 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
25157 void *)): created from cgraph_add_node_removal_hook
25158 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
25159 created from cgraph_remove_node_removal_hook
25160 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
25161 void *)): created from varpool_add_node_removal_hook
25162 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
25163 created from varpool_remove_node_removal_hook
25164 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
25165 void *)): created from cgraph_add_function_insertion_hook
25166 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
25167 created from cgraph_remove_function_insertion_hook
25168 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
25169 void *)): created from varpool_add_variable_insertion_hook
25170 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
25171 created from varpool_remove_variable_insertion_hook
25172 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
25173 void *)): created from cgraph_add_edge_duplication_hook
25174 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
25175 created from cgraph_remove_edge_duplication_hook
25176 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
25177 void *)): created from cgraph_add_node_duplication_hook
25178 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
25179 created from cgraph_remove_node_duplication_hook
25180 (void call_edge_removal_hooks (cgraph_edge *e)):
25181 created from cgraph_call_edge_removal_hooks
25182 (void call_cgraph_insertion_hooks (cgraph_node *node)):
25183 created from call_function_insertion_hooks
25184 (void call_cgraph_removal_hooks (cgraph_node *node)):
25185 created from cgraph_call_node_removal_hooks
25186 (void call_cgraph_duplication_hooks (cgraph_node *node,
25187 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
25188 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
25189 created from cgraph_call_edge_duplication_hooks
25190 (void call_varpool_removal_hooks (varpool_node *node)):
25191 created from varpool_call_node_removal_hooks
25192 (void call_varpool_insertion_hooks (varpool_node *node)):
25193 created from varpool_call_variable_insertion_hooks
25194 (void insert_to_assembler_name_hash (symtab_node *node,
25195 bool with_clones)): created from insert_to_assembler_name_hash
25196 (void unlink_from_assembler_name_hash (symtab_node *node,
25197 bool with_clones)): created from unlink_from_assembler_name_hash
25198 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
25199 created from symtab_prevail_in_asm_name_hash
25200 (void symtab_initialize_asm_name_hash (void)):
25201 created from symtab_initialize_asm_name_hash
25202 (void change_decl_assembler_name (tree decl, tree name)):
25203 created from change_decl_assembler_name
25204 (void materialize_all_clones (void)): created from
25205 cgraph_materialize_all_clones
25206 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
25207 created from decl_assembler_name_hash
25208 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
25209 created from decl_assembler_name_equal
25210 (static hashval_t hash_node_by_assembler_name (const void *p)):
25211 created from hash_node_by_assembler_name
25212 (static int eq_assembler_name (const void *p1, const void *p2)):
25213 created from eq_assembler_name
25215 2014-08-25 Marek Polacek <polacek@redhat.com>
25217 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
25219 2014-08-25 Petr Murzin <petr.murzin@intel.com>
25221 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
25222 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
25223 SWI1248_AVX512BW mode iterator.
25225 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
25228 * config/sh/predicates.md (general_extend_operand): Disable
25229 TRUNCATE before reload completes.
25231 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
25233 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
25235 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
25238 * config/sh/sh.opt (musermode): Allow negative form.
25239 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
25240 targets that don't support it.
25241 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
25242 Document -mno-usermode option.
25244 2014-08-24 Kito Cheng <kito@0xlab.org>
25246 * system.h (CALLER_SAVE_PROFITABLE): Poison.
25247 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
25248 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
25249 * doc/tm.texi: Regenerate.
25251 2014-08-24 Kito Cheng <kito@0xlab.org>
25253 * ira.c: Fix typo in comment.
25255 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
25257 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
25258 Deprecate c++1y. Change language to reflect greater confidence in C++14.
25260 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
25263 * config/pa/pa.c (pa_output_function_epilogue): Don't set
25264 last_address when the current function is a thunk.
25265 (pa_asm_output_mi_thunk): When we don't have named sections or they
25266 are not being used, check that thunk can reach the stub table with a
25269 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25271 * web.c (union_match_dups): Strengthen param "insn" from rtx to
25273 (pass_web::execute): Likewise for local "insn".
25275 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25277 * var-tracking.c (struct micro_operation_def): Strengthen field
25278 "insn" from rtx to rtx_insn *.
25279 (struct emit_note_data_def): Likewise.
25280 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
25281 (vt_stack_adjustments): Likewise for local "insn".
25282 (adjust_insn): Likewise for param "insn".
25283 (val_store): Likewise.
25284 (val_resolve): Likewise.
25285 (struct count_use_info): Likewise for field "insn".
25286 (log_op_type): Likewise for param "insn".
25287 (reverse_op): Likewise.
25288 (prepare_call_arguments): Likewise.
25289 (add_with_sets): The initial param takes an insn, but we can't
25290 yet strengthen it from rtx to rtx_insn * since it's used as a
25291 cselib_record_sets_hook callback. For now rename initial param
25292 from "insn" to "uncast_insn", and introduce a local "insn" of
25293 the stronger rtx_insn * type, with a checked cast.
25294 (compute_bb_dataflow): Strengthen local "insn" from rtx to
25296 (emit_note_insn_var_location): Likewise.
25297 (emit_notes_for_changes): Likewise.
25298 (emit_notes_for_differences): Likewise.
25299 (next_non_note_insn_var_location): Likewise for return type and
25301 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25302 (vt_initialize): Likewise for local "insn".
25303 (delete_debug_insns): Likewise for locals "insn" and "next".
25305 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25307 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25309 (mark_constant_pool): Likewise for local "insn".
25311 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25313 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25315 (dead_debug_promote_uses): Likewise.
25316 (dead_debug_insert_temp): Likewise.
25318 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25320 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25321 from const_rtx to const rtx_insn *.
25322 (store_killed_after): Likewise. Strengthen locals "last", "act"
25323 from rtx to rtx_insn *.
25324 (store_killed_before): Strengthen param "insn" from const_rtx to
25325 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25326 (find_moveable_store): Strengthen param "insn" from rtx to
25328 (compute_store_table): Likewise for local "insn".
25329 (insert_insn_start_basic_block): Likewise for param "insn" and
25330 locals "prev", "before", "insn".
25331 (insert_store): For now, add a checked cast to rtx_insn * on the
25332 result of gen_move_insn.
25333 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25335 (replace_store_insn): Likewise. For now, add a checked cast to
25336 rtx_insn * on the result of gen_move_insn.
25338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25340 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25342 (expand_sjlj_dispatch_table): Likewise.
25344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25346 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25347 "insn" from rtx to rtx_insn *.
25349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25351 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25352 "insn" from rtx to rtx_insn *.
25353 (dup_block_and_redirect): Likewise for param 3 "before".
25355 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25356 from rtx to rtx_insn *.
25357 (move_insn_for_shrink_wrap): Likewise.
25358 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25359 (dup_block_and_redirect): Likewise for param "before" and local
25361 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25363 (convert_to_simple_return): Likewise for local "start".
25365 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25366 Strengthen local "insn" from rtx to rtx_insn *, for use when
25367 invoking requires_stack_frame_p.
25369 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25371 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25373 (speculate_expr): Likewise for locals "orig_insn_rtx",
25375 (eq_transformed_insns): Likewise for locals "i1", "i2".
25376 (check_for_new_jump): Likewise for return type and local "end".
25377 (find_new_jump): Likewise for return type and local "jump".
25378 (sel_split_edge): Likewise for local "jump".
25379 (sel_create_recovery_block): Likewise.
25380 (sel_redirect_edge_and_branch_force): Likewise.
25381 (sel_redirect_edge_and_branch): Likewise.
25383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25385 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25386 "new_insn" from rtx to rtx_insn *.
25387 (create_insn_rtx_with_rhs): Likewise for return type and for local
25389 (create_insn_rtx_with_lhs): Likewise.
25390 (create_speculation_check): Likewise for local "insn_rtx".
25391 (implicit_clobber_conflict_p): Likewise for local "insn".
25392 (get_expr_cost): Likewise.
25393 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25394 (move_cond_jump): Likewise for locals "next", "prev", "link",
25395 "head", "from", "to".
25397 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25399 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25400 "next" from rtx to rtx_insn *.
25401 (find_conditional_protection): Likewise for local "next".
25402 (is_conditionally_protected): Likewise for local "insn1".
25403 (is_pfree): Likewise for locals "insn1", "insn2".
25405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25407 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25408 from rtx to rtx_insn *.
25410 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25411 locals "insn1", "insn2" from rtx to rtx_insn *.
25412 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25413 locals "insn", "prev", "last_jump", "next_tail".
25414 (schedule_ebb): Likewise for params "head", "tail".
25415 (schedule_ebbs): Likewise for locals "tail", "head".
25417 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25418 to rtx_insn on "last_insn" in one of the invocations of
25421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25423 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25424 "elem", "insn" from rtx to rtx_insn *.
25425 (change_spec_dep_to_hard): Likewise.
25426 (get_back_and_forw_lists): Likewise for local "con".
25427 (sd_add_dep): Likewise for locals "elem", "insn".
25428 (sd_resolve_dep): Likewise for locals "pro", "con".
25429 (sd_unresolve_dep): Likewise.
25430 (sd_delete_dep): Likewise.
25431 (chain_to_prev_insn): Likewise for local "pro".
25432 (find_inc): Likewise for locals "pro", "con".
25434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25436 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25438 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25440 (modified_between_p): Strengthen local "insn" from rtx to
25442 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25443 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25446 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25448 * resource.c (next_insn_no_annul): Strengthen local "next" from
25450 (mark_referenced_resources): Likewise for local "insn".
25452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25454 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25456 (find_reloads): Likewise for param 1.
25457 (subst_reloads): Likewise for sole param.
25458 (find_equiv_reg): Likwise for param 2.
25459 (regno_clobbered_p): Likwise for param 2.
25460 (reload): Likewise for param 1.
25462 * caller-save.c (save_call_clobbered_regs): Strengthen local
25463 "insn" from rtx to rtx_insn *.
25464 (insert_one_insn): Likewise for local "insn".
25466 * reload.c (this_insn): Likewise for this global.
25467 (find_reloads): Likewise for param "insn".
25468 (find_reloads_toplev): Likewise.
25469 (find_reloads_address): Likewise.
25470 (subst_reg_equivs): Likewise.
25471 (update_auto_inc_notes): Likewise.
25472 (find_reloads_address_1): Likewise.
25473 (find_reloads_subreg_address): Likewise.
25474 (subst_reloads): Likewise.
25475 (find_equiv_reg): Likewise, also for local "p".
25476 (regno_clobbered_p): Likewise for param "insn".
25478 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25480 (spill_reg_store): Likewise for the elements of this array.
25481 (remove_init_insns): Likewise for local "equiv_insn".
25482 (will_delete_init_insn_p): Likewise for param "insn".
25483 (reload): Likewise for param ""first" and local "insn".
25484 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25486 (calculate_elim_costs_all_insns): Likewise.
25487 (delete_caller_save_insns): Likewise.
25488 (spill_failure): Likewise for param "insn".
25489 (delete_dead_insn): Likewise.
25490 (set_label_offsets): Likewise.
25491 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25493 (elimination_costs_in_insn): Likewise for param "insn".
25494 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25495 when referring to an insn.
25496 (set_initial_label_offsets): Likewise.
25497 (set_offsets_for_label): Strengthen param "insn" from rtx to
25499 (init_eliminable_invariants): Likewise for param "first" and local
25501 (fixup_eh_region_note): Likewise for param "insn".
25502 (reload_as_needed): Likewise for locals "prev", "insn",
25503 "old_next", "old_prev", "next".
25504 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25506 (reload_inheritance_insn): Strengthen elements of this array from
25508 (failed_reload): Likewise for param "insn".
25509 (choose_reload_regs): Likewise for local "insn". Replace use of
25510 NULL_RTX with NULL when referring to an insn.
25511 (input_reload_insns): Strengthen elements of this array from rtx
25513 (other_input_address_reload_insns): Likewise for this global.
25514 (other_input_reload_insns): Likewise for this global.
25515 (input_address_reload_insns): Likwise for the elements of this
25517 (inpaddr_address_reload_insns): Likwise for the elements of this
25519 (output_reload_insns): Likewise for the elements of this array.
25520 (output_address_reload_insns): Likewise for the elements of this
25522 (outaddr_address_reload_insns): Likewise for the elements of this
25524 (operand_reload_insns): Likewise for this global.
25525 (other_operand_reload_insns): Likewise for this global.
25526 (other_output_reload_insns): Likewise for the elements of this
25528 (new_spill_reg_store): Likewise for the elements of this
25530 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25531 Strengthen local "where" from rtx * to rtx_insn **.
25532 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25533 from rtx to rtx_insn *.
25534 (do_input_reload): Likewise for local "insn".
25535 (do_output_reload): Likewise for local "insn".
25536 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25537 (emit_insn_if_valid_for_reload): Likewise for return type and local
25538 "last". Add checked cast to rtx_insn when returning "insn" since
25539 this has been through emit_insn.
25540 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25541 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25542 returning "insn" since it's been through
25543 emit_insn_if_valid_for_reload at this point.
25544 (delete_output_reload): Strengthen param "insn" and locals
25545 "output_reload_insn", "i2" from rtx to rtx_insn *.
25546 (delete_address_reloads): Likewise for params "dead_insn",
25547 "current_insn" and locals "prev", "next".
25548 (delete_address_reloads_1): Likewise for params "dead_insn",
25549 "current_insn" and locals "prev", "i2".
25550 (inc_for_reload): Likewise for locals "last", "add_insn".
25551 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25554 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25555 param of this duplicate of the prototype from reload.h
25557 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25559 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25561 (regstat_bb_compute_calls_crossed): Likewise.
25563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25565 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25567 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25569 (regrename_analyze): Strengthen local "insn" from rtx to
25571 (scan_rtx_reg): Likewise for param "insn".
25572 (scan_rtx_address): Likewise.
25573 (scan_rtx): Likewise.
25574 (restore_operands): Likewise.
25575 (record_out_operands): Likewise.
25576 (build_def_use): Likewise for local "insn". Replace use of
25577 NULL_RTX with NULL when dealing with an insn.
25579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25581 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25582 * reginfo.c (reg_scan): Likewise, also for local "insn".
25583 (reg_scan_mark_refs): Likewise for param "insn".
25584 (init_subregs_of_mode): Likewise for local "insn".
25586 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25588 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25589 "insn" from rtx to rtx_insn *.
25590 (replace_oldest_value_reg): Likewise for param "insn".
25591 (replace_oldest_value_addr): Likewise.
25592 (replace_oldest_value_mem): Likewise.
25593 (apply_debug_insn_changes): Likewise for local "last_insn".
25594 (copyprop_hardreg_forward_1): Likewise for local "insn".
25596 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25598 * reg-stack.c (next_flags_user): Strengthen return type and param
25599 "insn" from rtx to rtx_insn *.
25600 (straighten_stack): Likewise for param "insn".
25601 (check_asm_stack_operands): Likewise.
25602 (remove_regno_note): Likewise.
25603 (emit_pop_insn): Likewise for return type, param "insn", local
25605 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25606 "limit" from rtx to rtx_insn *.
25607 (swap_to_top): Likewise for param "insn".
25608 (move_for_stack_reg): Likewise.
25609 (move_nan_for_stack_reg): Likewise.
25610 (swap_rtx_condition): Likewise.
25611 (compare_for_stack_reg): Likewise.
25612 (subst_all_stack_regs_in_debug_insn): Likewise.
25613 (subst_stack_regs_pat): Likewise, and local "insn2".
25614 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25616 (subst_stack_regs): Likewise.
25617 (change_stack): Likewise.
25618 (convert_regs_1): Likewise for locals "insn", "next".
25620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25622 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25624 (combine_set_extension): Likewise for param "curr_insn".
25625 (transform_ifelse): Likewise for param "def_insn".
25626 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25627 from vec<rtx> * to vec<rtx_insn *> *.
25628 (is_cond_copy_insn): Likewise for param "insn".
25629 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25630 to vec<rtx_insn *>.
25631 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25632 local "def_insn" from rtx to rtx_insn *.
25633 (get_sub_rtx): Likewise for param "def_insn".
25634 (merge_def_and_ext): Likewise.
25635 (combine_reaching_defs): Likewise.
25636 (add_removable_extension): Likewise for param "insn".
25637 (find_removable_extensions): Likewise for local "insn".
25638 (find_and_remove_re): Likewise for locals "curr_insn" and
25639 "def_insn". Strengthen locals "reinsn_del_list" and
25640 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25644 * recog.c (split_insn): Strengthen param "insn" and locals
25645 "first", "last" from rtx to rtx_insn *.
25646 (split_all_insns): Likewise for locals "insn", "next".
25647 (split_all_insns_noflow): Likewise.
25649 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25651 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25653 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25654 (debug_rtx_find): Likewise for param 1 "x".
25656 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25657 const_rtx to const rtx_insn *. Likewise for local "insn".
25658 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25659 (debug_rtx_find): Likewise for param 1 "x".
25660 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25661 from const_rtx to const rtx_insn * within the appropriate cases of
25662 the switch statement.
25664 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25665 Strengthen local "insns" from rtx to rtx_insn * since this is
25666 passed to a call to debug_rtx_list.
25668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25670 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25673 * function.c (stack_protect_epilogue): Add checked cast to
25674 rtx_insn for now when invoking predict_insn_def.
25676 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25678 (predict_insn_def): Likewise.
25679 (rtl_predict_edge): Likewise for local "last_insn".
25680 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25682 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25684 (bb_estimate_probability_locally): Likewise for local "last_insn".
25685 (expensive_function_p): Likewise for local "insn".
25687 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25688 local "jmp", since this is used when invoking predict_insn_def.
25690 2014-08-22 Marek Polacek <polacek@redhat.com>
25693 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25695 2014-08-22 Marek Polacek <polacek@redhat.com>
25698 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25699 a comparison in parens.
25700 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25703 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25705 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25708 * cprop.c (fis_get_condition): Likewise.
25710 * postreload.c (reload_cse_regs): Likewise for param "first".
25711 (reload_cse_simplify): Likewise for param "insn".
25712 (reload_cse_regs_1): Likewise for local "insn".
25713 (reload_cse_simplify_set): Likewise for param "insn".
25714 (reload_cse_simplify_operands): Likewise.
25715 (struct reg_use): Likewise for field "insn".
25716 (reload_combine_purge_insn_uses): Likewise for param "insn".
25717 (fixup_debug_insns): Likewise for params "from", "to" and local
25719 (try_replace_in_use): Likewise for local "use_insn".
25720 (reload_combine_recognize_const_pattern): Likewise for param
25721 "insn" and locals "add_moved_after_insn", "use_insn".
25722 (reload_combine_recognize_pattern): Likewise for param "insn" and
25724 (reload_combine): Likewise for locals "insn", "prev".
25725 (reload_combine_note_use): Likewise for param "insn".
25726 (move2add_use_add2_insn): Likewise.
25727 (move2add_use_add3_insn): Likewise.
25728 (reload_cse_move2add): Likewise, also for local "next".
25729 (move2add_note_store): Likewise for local "insn".
25731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25733 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25735 (struct unoccr): Likewise.
25736 (struct modifies_mem): Likewise.
25737 (alloc_mem): Likewise for local "insn".
25738 (insert_expr_in_table): Likewise for param "insn".
25739 (dump_expr_hash_table_entry): Likewise for local "insn".
25740 (oprs_unchanged_p): Likewise for param "insn".
25741 (load_killed_in_block_p): Likewise for local "setter".
25742 (record_last_reg_set_info): Likewise for param "insn".
25743 (record_last_reg_set_info_regno): Likewise.
25744 (record_last_mem_set_info): Likewise.
25745 (record_last_set_info): Likewise for local "last_set_insn".
25746 (record_opr_changes): Likewise for param "insn".
25747 (hash_scan_set): Likewise.
25748 (compute_hash_table): Likewise for local "insn".
25749 (get_avail_load_store_reg): Likewise for param "insn".
25750 (eliminate_partially_redundant_load): Likewise, also for locals
25751 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25753 (eliminate_partially_redundant_loads): Likewise for local "insn".
25755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25757 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25759 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25760 (expand_twoval_unop): Likewise for locals entry_last", "last".
25761 (expand_twoval_binop): Likewise.
25762 (expand_twoval_binop_libfunc): Likewise for local "insns".
25763 (widen_leading): Likewise for local "last".
25764 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25765 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25766 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25767 (expand_parity): Likewise for locals "last" and "seq".
25768 (expand_ffs): Likewise for local "seq". Strengthen local
25769 "nonzero_label" from rtx to rtx_code_label *.
25770 (expand_absneg_bit): Strengthen local "insns" from rtx to
25772 (expand_unop_direct): Likewise for local "last".
25773 (expand_unop): Likewise for locals "last", "insns".
25774 (expand_abs_nojump): Likewise for local "last".
25775 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25776 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25778 (expand_copysign_absneg): Strengthen local "label" from rtx to
25780 (expand_copysign_bit): Strengthen local "insns" from rtx to
25782 (struct no_conflict_data): Likewise for fields "first", "insn".
25783 (emit_libcall_block_1): Likewise for param "insns" and locals
25784 "next", "last", "insn".
25785 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25786 on "insns" when invoking emit_libcall_block_1. Ultimately we
25787 want to strengthen insns itself.
25788 (prepare_cmp_insn): Strengthen local "last" from rtx to
25790 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25791 (prepare_float_lib_cmp): Likewise for local "insns".
25792 (emit_conditional_move): Likewise for local "last".
25793 (emit_conditional_add): Likewise.
25794 (have_sub2_insn): Likewise for local "seq".
25795 (expand_float): Likewise for local "insns". Strengthen locals
25796 "label", "neglabel" from rtx to rtx_code_label *.
25797 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25798 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25799 (expand_fixed_convert): Likewise for local "insns" (to
25801 (expand_sfix_optab): Likewise for local "last".
25802 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25803 to rtx_code_label *.
25804 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25805 from rtx to rtx_insn *.
25806 (expand_atomic_fetch_op): Likewise for local "insn".
25807 (maybe_legitimize_operand_same_code): Likewise for local "last".
25808 (maybe_legitimize_operands): Likewise.
25810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25812 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25813 "insn" from rtx to rtx_insn *.
25814 (ps_rtl_insn): Likewise for return type.
25815 (doloop_register_get): Likewise for params "head", "tail" and
25816 locals "insn", "first_insn_not_to_check".
25817 (schedule_reg_move): Likewise for local "this_insn".
25818 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25819 of gen_move_insn for now.
25820 (reset_sched_times): Strengthen local "insn" from rtx to
25822 (permute_partial_schedule): Likewise.
25823 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25824 (dump_insn_location): Likewise for param "insn".
25825 (loop_canon_p): Likewise for local "insn".
25826 (sms_schedule): Likewise.
25827 (print_partial_schedule): Likewise.
25828 (ps_has_conflicts): Likewise.
25830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25832 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25833 "tailp" from rtx * to rtx_insn **.
25835 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25836 from rtx to rtx_insn *.
25837 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25838 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25839 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25841 * modulo-sched.c (const_iteration_count): Strengthen return type
25842 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25843 use of NULL_RTX with NULL when working with insns.
25844 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25846 (sms_schedule): Likewise.
25847 * sched-rgn.c (init_ready_list): Likewise, also for locals
25848 "src_head" and "src_next_tail".
25849 (compute_block_dependences): Likewise.
25850 (free_block_dependencies): Likewise.
25851 (debug_rgn_dependencies): Likewise.
25852 (free_rgn_deps): Likewise.
25853 (compute_priorities): Likewise.
25854 (schedule_region): Likewise.
25855 * sel-sched.c (find_ebb_boundaries): Likewise.
25857 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25858 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25860 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25862 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25863 from rtx to rtx_insn *.
25864 (new_seginfo): Likewise for param "insn".
25865 (create_pre_exit): Likewise for locals "last_insn",
25866 "before_return_copy", "return_copy".
25867 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25872 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25873 from rtx to rtx_insn *.
25874 (lra_push_insn): Likewise for 1st param.
25875 (lra_push_insn_and_update_insn_regno_info): Likewise.
25876 (lra_pop_insn): Likewise for return type.
25877 (lra_invalidate_insn_data): Likewise for 1st param.
25878 (lra_set_insn_deleted): Likewise.
25879 (lra_delete_dead_insn): Likewise.
25880 (lra_process_new_insns): Likewise for first 3 params.
25881 (lra_set_insn_recog_data): Likewise for 1st param.
25882 (lra_update_insn_recog_data): Likewise.
25883 (lra_set_used_insn_alternative): Likewise.
25884 (lra_invalidate_insn_regno_info): Likewise.
25885 (lra_update_insn_regno_info): Likewise.
25886 (lra_former_scratch_operand_p): Likewise.
25887 (lra_eliminate_regs_1): Likewise.
25888 (lra_get_insn_recog_data): Likewise.
25890 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25893 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25895 (substitute_within_insn): New.
25896 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25897 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25898 Replace call to "substitute" with call to substitute_within_insn.
25900 * lra-constraints.c (curr_insn): Strengthen from rtx to
25902 (get_equiv_with_elimination): Likewise for param "insn".
25903 (match_reload): Strengthen params "before" and "after" from rtx *
25905 (emit_spill_move): Likewise for return type. Add a checked cast
25906 to rtx_insn * on result of gen_move_insn for now.
25907 (check_and_process_move): Likewise for local "before". Replace
25908 NULL_RTX with NULL when referring to insns.
25909 (process_addr_reg): Strengthen params "before" and "after" from
25910 rtx * to rtx_insn **.
25911 (insert_move_for_subreg): Likewise.
25912 (simplify_operand_subreg): Strengthen locals "before" and "after"
25913 from rtx to rtx_insn *.
25914 (process_address_1): Strengthen params "before" and "after" from
25915 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25917 (process_address): Strengthen params "before" and "after" from
25918 rtx * to rtx_insn **.
25919 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25920 (curr_insn_transform): Strengthen locals "before" and "after"
25921 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25923 (loc_equivalence_callback): Update cast of "data", changing
25924 resulting type from rtx to rtx_insn *.
25925 (substitute_pseudo_within_insn): New.
25926 (inherit_reload_reg): Strengthen param "insn" from rtx to
25927 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25928 NULL when referring to insns. Add a checked cast to rtx_insn *
25929 when using usage_insn to invoke lra_update_insn_regno_info.
25930 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25931 likewise for locals "restore", "save". Add checked casts to
25932 rtx_insn * when using usage_insn to invoke
25933 lra_update_insn_regno_info and lra_process_new_insns. Replace
25934 NULL_RTX with NULL when referring to insns.
25935 (split_if_necessary): Strengthen param "insn" from rtx to
25937 (update_ebb_live_info): Likewise for params "head", "tail" and local
25939 (get_last_insertion_point): Likewise for return type and local "insn".
25940 (get_live_on_other_edges): Likewise for local "last".
25941 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25942 "prev_insn", "next_insn", "restore".
25943 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25944 (undo_optional_reloads): Likewise for local "insn".
25946 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25948 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25950 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25952 (spill_pseudos): Likewise for local "insn".
25953 (init_elimination): Likewise.
25954 (process_insn_for_elimination): Likewise for param "insn".
25956 * lra-lives.c (curr_insn): Likewise.;
25958 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25959 (remove_pseudos): Likewise for param "insn".
25960 (spill_pseudos): Likewise for local "insn".
25961 (lra_final_code_change): Likewise for locals "insn", "curr".
25963 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25964 (lra_set_insn_deleted): Likewise.
25965 (lra_delete_dead_insn): Likewise, and for local "prev".
25966 (new_insn_reg): Likewise for param "insn".
25967 (lra_set_insn_recog_data): Likewise.
25968 (lra_update_insn_recog_data): Likewise.
25969 (lra_set_used_insn_alternative): Likewise.
25970 (get_insn_freq): Likewise.
25971 (invalidate_insn_data_regno_info): Likewise.
25972 (lra_invalidate_insn_regno_info): Likewise.
25973 (lra_update_insn_regno_info): Likewise.
25974 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25976 (lra_push_insn_1): Strengthen param "insn" from rtx to
25978 (lra_push_insn): Likewise.
25979 (lra_push_insn_and_update_insn_regno_info): Likewise.
25980 (lra_pop_insn): Likewise for return type and local "insn".
25981 (push_insns): Likewise for params "from", "to", and local "insn".
25982 (setup_sp_offset): Likewise for params "from", "last" and locals
25984 (lra_process_new_insns): Likewise for params "insn", "before",
25985 "after" and local "last".
25986 (struct sloc): Likewise for field "insn".
25987 (lra_former_scratch_operand_p): Likewise for param "insn".
25988 (remove_scratches): Likewise for locals "insn", "last".
25989 (check_rtl): Likewise for local "insn".
25990 (add_auto_inc_notes): Likewise for param "insn".
25991 (update_inc_notes): Likewise for local "insn".
25992 (lra): Replace NULL_RTX with NULL when referring to insn.
25994 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25996 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25998 (resolve_reg_notes): Likewise.
25999 (resolve_simple_move): Likewise for return type, param "insn", and
26000 locals "insns", "minsn".
26001 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
26002 (resolve_use): Likewise.
26003 (resolve_debug): Likewise.
26004 (find_decomposable_shift_zext): Likewise.
26005 (resolve_shift_zext): Likewise for return type, param "insn", and
26006 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
26007 (decompose_multiword_subregs): Likewise for local "insn",
26008 "orig_insn", "decomposed_shift", "end".
26010 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26012 * basic-block.h (basic_block split_edge_and_insert): Strengthen
26013 param "insns" from rtx to rtx_insn *.
26015 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
26017 (struct iv_to_split): Likewise.
26018 (loop_exit_at_end_p): Likewise for local "insn".
26019 (split_edge_and_insert): Likewise for param "insns".
26020 (compare_and_jump_seq): Likewise for return type, param "cinsn",
26021 and locals "seq", "jump".
26022 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
26023 "branch_code"; update invocations of compare_and_jump_seq to
26024 eliminate NULL_RTX in favor of NULL.
26025 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
26027 (reset_debug_uses_in_loop): Likewise.
26028 (analyze_insn_to_expand_var): Likewise for param "insn".
26029 (analyze_iv_to_split_insn): Likewise.
26030 (analyze_insns_in_loop): Likewise for local "insn".
26031 (insert_base_initialization): Likewise for param
26032 "insn" and local "seq".
26033 (split_iv): Likewise for param "insn" and local "seq".
26034 (expand_var_during_unrolling): Likewise for param "insn".
26035 (insert_var_expansion_initialization): Likewise for local "seq".
26036 (combine_var_copies_in_loop_exit): Likewise.
26037 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
26039 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
26040 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
26043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26045 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
26047 (iv_analyze_result): Likewise.
26048 (iv_analyze_expr): Likewise.
26051 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
26052 local "def_insn" from rtx to rtx_insn *.
26053 (get_biv_step_1): Likewise for local "insn".
26054 (iv_analyze_expr): Likewise for param "insn".
26055 (iv_analyze_def): Likewise for local "insn".
26056 (iv_analyze_op): Likewise for param "insn".
26057 (iv_analyze): Likewise.
26058 (iv_analyze_result): Likewise.
26060 (suitable_set_for_replacement): Likewise.
26061 (simplify_using_initial_values): Likewise for local "insn".
26062 (iv_number_of_iterations): Likewise for param "insn".
26063 (check_simple_exit): Add checked cast to rtx_insn when invoking
26064 iv_number_of_iterations for now (until get_condition is
26067 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
26068 "insn" from rtx to rtx_insn *.
26069 (analyze_insns_in_loop): Likewise for local "insn".
26071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26073 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
26075 (struct invariant): Likewise.
26076 (hash_invariant_expr_1): Likewise for param "insn".
26077 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
26078 (find_exits): Likewise for local "insn".
26079 (create_new_invariant): Likewise for param "insn".
26080 (check_dependencies): Likewise.
26081 (find_invariant_insn): Likewise.
26082 (record_uses): Likewise.
26083 (find_invariants_insn): Likewise.
26084 (find_invariants_bb): Likewise for local "insn".
26085 (get_pressure_class_and_nregs): Likewise for param "insn".
26086 (calculate_loop_reg_pressure): Likewise for local "insn".
26088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26090 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
26092 (add_test): Likewise for locals "seq", "jump".
26093 (doloop_modify): Likewise for locals "sequence", "jump_insn".
26095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26097 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
26099 (rebuild_jump_labels_chain): Likewise for param "chain".
26101 * cfgexpand.c (pass_expand::execute): Add checked cast to
26102 rtx_insn * when calling rebuild_jump_labels_chain in region where
26103 we know e->insns.r is non-NULL.
26105 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
26107 (rebuild_jump_labels): Likewise.
26108 (rebuild_jump_labels_chain): Likewise for param "chain".
26109 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
26110 (init_label_info): Likewise for param "f".
26111 (maybe_propagate_label_ref): Likewise for params "jump_insn",
26112 "prev_nonjump_insn".
26113 (mark_all_labels): Likewise for param "f" and locals "insn",
26114 "prev_nonjump_insn".
26116 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26118 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
26119 from rtx to rtx_insn *insn.
26120 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
26121 (ira_add_allocno_copy): Likewise.
26122 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
26124 (ira_create_copy): Likewise.
26125 (ira_add_allocno_copy): Likewise.
26126 (create_bb_allocnos): Likewise for local "insn".
26127 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
26128 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
26129 process_regs_for_copy for rtx_insn * param.
26130 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
26131 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
26132 process_regs_for_copy for rtx_insn * param.
26133 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
26134 * ira-costs.c (record_reg_classes): Likewise for param "insn".
26135 (record_operand_costs): Likewise.
26136 (scan_one_insn): Likewise for return type, and for param "insn".
26137 (process_bb_for_costs): Likewise for local "insn".
26138 (process_bb_node_for_hard_reg_moves): Likewise.
26139 * ira-emit.c (struct move): Likewise for field "insn".
26140 (create_move): Eliminate use of NULL_RTX when dealing with an
26142 (emit_move_list): Strengthen return type and locals "result",
26143 "insn" from rtx to rtx_insn *insn.
26144 (emit_moves): Likewise for locals "insns", "tmp".
26145 (ira_emit): Likewise for local "insn".
26146 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
26148 (find_call_crossed_cheap_reg): Likewise.
26149 (process_bb_node_lives): Likewise for local "insn".
26150 * ira.c (decrease_live_ranges_number): Likewise.
26151 (compute_regs_asm_clobbered): Likewise.
26152 (build_insn_chain): Likewise.
26153 (find_moveable_pseudos): Likewise, also locals "def_insn",
26154 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
26155 to rtx_insn **. Add a checked cast when assigning from
26156 "closest_use" into closest_uses array in a region where we know
26157 it's a non-NULL insn.
26158 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
26160 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
26161 "last_interesting_insn", "uin".
26162 (move_unallocated_pseudos): Likewise for locals "def_insn",
26163 "move_insn", "newinsn".
26165 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26167 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
26168 Strengthen locals "done_label", "do_error" from rtx to
26170 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
26171 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
26173 (ubsan_expand_si_overflow_neg_check): Likewise for locals
26174 "done_label", "do_error" to rtx_code_label * and local "last" to
26176 (ubsan_expand_si_overflow_mul_check): Likewise for locals
26177 "done_label", "do_error", "large_op0", "small_op0_large_op1",
26178 "one_small_one_large", "both_ops_large", "after_hipart_neg",
26179 "after_lopart_neg", "do_overflow", "hipart_different" to
26180 rtx_code_label * and local "last" to rtx_insn *.
26182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26184 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
26185 "insn" and "move_insn" from rtx to rtx_insn *.
26187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26189 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
26191 (cheap_bb_rtx_cost_p): Likewise.
26192 (first_active_insn): Likewise for return type and local "insn".
26193 (last_active_insn): Likewise for return type and locals "insn",
26195 (struct noce_if_info): Likewise for fields "jump", "insn_a",
26197 (end_ifcvt_sequence): Likewise for return type and locals "insn",
26199 (noce_try_move): Likewise for local "seq".
26200 (noce_try_store_flag): Likewise.
26201 (noce_try_store_flag_constants): Likewise.
26202 (noce_try_addcc): Likewise.
26203 (noce_try_store_flag_mask): Likewise.
26204 (noce_try_cmove): Likewise.
26205 (noce_try_minmax): Likewise.
26206 (noce_try_abs): Likewise.
26207 (noce_try_sign_mask): Likewise.
26208 (noce_try_bitop): Likewise.
26209 (noce_can_store_speculate_p): Likewise for local "insn".
26210 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
26212 (check_cond_move_block): Likewise for local "insn".
26213 (cond_move_convert_if_block): Likewise.
26214 (cond_move_process_if_block): Likewise for locals "seq",
26216 (noce_find_if_block): Likewise for local "jump".
26217 (merge_if_block): Likewise for local "last".
26218 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
26219 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
26220 (block_has_only_trap): Likewise for return type and local "trap".
26221 (find_if_case_1): Likewise for local "jump".
26222 (dead_or_predicable): Likewise for locals "head", "end", "jump",
26225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26227 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
26228 "last_insn", "loop_end" from rtx to rtx_insn *.
26230 * hw-doloop.c (scan_loop): Likewise for local "insn".
26231 (discover_loop): Likewise for param "tail_insn".
26232 (discover_loops): Likewise for local "tail".
26234 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
26235 cast to rtx_insn * when assigning from an rtx local to a
26236 hwloop_info's "last_insn" field.
26238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26240 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
26241 (add_delay_dependencies): Strengthen local "pro" from rtx to
26243 (recompute_todo_spec): Likewise.
26244 (dep_cost_1): Likewise for locals "insn", "used".
26245 (schedule_insn): Likewise for local "dbg".
26246 (schedule_insn): Likewise for locals "pro", "next".
26247 (unschedule_insns_until): Likewise for local "con".
26248 (restore_pattern): Likewise for local "next".
26249 (estimate_insn_tick): Likewise for local "pro".
26250 (resolve_dependencies): Likewise for local "next".
26251 (fix_inter_tick): Likewise.
26252 (fix_tick_ready): Likewise for local "pro".
26253 (add_to_speculative_block): Likewise for locals "check", "twin",
26255 (sched_extend_bb): Likewise for locals "end", "insn".
26256 (init_before_recovery): Likewise for local "x".
26257 (sched_create_recovery_block): Likewise for local "barrier".
26258 (create_check_block_twin): Likewise for local "pro".
26259 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
26261 (unlink_bb_notes): Update for change to type of bb_header.
26262 Strengthen locals "prev", "label", "note", "next" from rtx to
26264 (clear_priorities): Likewise for local "pro".
26266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26268 * gcse.c (struct occr): Strengthen field "insn" from rtx to
26270 (test_insn): Likewise for this global.
26271 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
26273 (oprs_anticipatable_p): Likewise.
26274 (oprs_available_p): Likewise.
26275 (insert_expr_in_table): Strengthen param "insn" from rtx to
26277 (hash_scan_set): Likewise.
26278 (hash_scan_clobber): Likewise.
26279 (hash_scan_call): Likewise.
26280 (hash_scan_insn): Likewise.
26281 (compute_hash_table_work): Likewise for local "insn".
26282 (process_insert_insn): Likewise for return type and local "pat".
26283 (insert_insn_end_basic_block): Likewise for locals "new_insn",
26284 "pat", "pat_end", "maybe_cc0_setter".
26285 (pre_edge_insert): Likewise for local "insn".
26286 (pre_insert_copy_insn): Likewise for param "insn".
26287 (pre_insert_copies): Likewise for local "insn".
26288 (struct set_data): Likewise for field "insn".
26289 (single_set_gcse): Likewise for param "insn".
26290 (gcse_emit_move_after): Likewise.
26291 (pre_delete): Likewise for local "insn".
26292 (update_bb_reg_pressure): Likewise for param "from" and local
26294 (should_hoist_expr_to_dom): Likewise for param "from".
26295 (hoist_code): Likewise for local "insn".
26296 (get_pressure_class_and_nregs): Likewise for param "insn".
26297 (calculate_bb_reg_pressure): Likewise for local "insn".
26298 (compute_ld_motion_mems): Likewise.
26300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26302 * genpeep.c (main): Rename param back from "uncast_ins1" to
26303 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26306 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26308 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26311 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26312 documentation to state it is only for VSX operations.
26314 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26315 constraint only active if VSX.
26317 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26318 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26319 (lfiwzx): Likewise.
26321 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26323 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26324 Strengthen local "insn" from rtx to rtx_insn *.
26325 (use_killed_between): Likewise for param "target_insn".
26326 (all_uses_available_at): Likewise for param "target_insn" and
26328 (update_df_init): Likewise for params "def_insn", "insn".
26329 (update_df): Likewise for param "insn".
26330 (try_fwprop_subst): Likewise for param "def_insn" and local
26332 (free_load_extend): Likewise for param "insn".
26333 (forward_propagate_subreg): Likewise for param "def_insn" and
26335 (forward_propagate_asm): Likewise for param "def_insn" and local
26337 (forward_propagate_and_simplify): Likewise for param "def_insn"
26338 and local "use_insn".
26339 (forward_propagate_into): Likewise for locals "def_insn" and
26342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26344 * function.c (emit_initial_value_sets): Strengthen local "seq"
26345 from rtx to rtx_insn *.
26346 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26348 (instantiate_virtual_regs): Likewise for local "insn".
26349 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26350 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26351 (expand_function_end): Likewise for locals "insn" and "seq".
26352 (epilogue_done): Likewise for local "insn".
26353 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26355 (reposition_prologue_and_epilogue_notes): Likewise for locals
26356 "insn", "last", "note", "first".
26357 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26358 (pass_match_asm_constraints::execute): Likewise for local "insn".
26360 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26362 * output.h (final_scan_insn): Strengthen return type from rtx to
26364 (final_forward_branch_p): Likewise for param.
26365 (current_output_insn): Likewise for this global.
26367 * final.c (rtx debug_insn): Likewise for this variable.
26368 (current_output_insn): Likewise.
26369 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26370 adding "insn" back in as an rtx_insn * with a checked cast, so
26371 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26373 (compute_alignments): Strengthen local "label" from rtx to
26375 (shorten_branches): Rename param from "first" to "uncast_first",
26376 introducing a new local rtx_insn * "first" using a checked cast to
26377 effectively strengthen "first" from rtx to rtx_insn * without
26378 affecting the type signature. Strengthen locals "insn", "seq",
26379 "next", "label" from rtx to rtx_insn *.
26380 (change_scope): Strengthen param "orig_insn" and local "insn" from
26382 (final_start_function): Rename param from "first" to "uncast_first",
26383 introducing a new local rtx_insn * "first" using a checked cast to
26384 effectively strengthen "first" from rtx to rtx_insn * without
26385 affecting the type signature. Strengthen local "insn" from rtx to
26387 (dump_basic_block_info): Strengthen param "insn" from rtx to
26389 (final): Rename param from "first" to "uncast_first",
26390 introducing a new local rtx_insn * "first" using a checked cast to
26391 effectively strengthen "first" from rtx to rtx_insn * without
26392 affecting the type signature. Strengthen locals "insn", "next"
26393 from rtx to rtx_insn *.
26394 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26396 (call_from_call_insn): Strengthen param "insn" from rtx to
26398 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26399 introducing a new local rtx_insn * "insn" using a checked cast to
26400 effectively strengthen "insn" from rtx to rtx_insn * without
26401 affecting the type signature. Strengthen return type and locals
26402 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26403 now-redundant checked cast to rtx_insn * from both invocations of
26404 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26405 introducing a local "call_insn" for use when invoking
26406 call_from_call_insn.
26407 (notice_source_line): Strengthen param "insn" from rtx to
26409 (leaf_function_p): Likewise for local "insn".
26410 (final_forward_branch_p): Likewise.
26411 (leaf_renumber_regs): Likewise for param "first".
26412 (rest_of_clean_state): Likewise for locals "insn" and "next".
26413 (self_recursive_call_p): Likewise for param "insn".
26414 (collect_fn_hard_reg_usage): Likewise for local "insn".
26415 (get_call_fndecl): Likewise for param "insn".
26416 (get_call_cgraph_rtl_info): Likewise.
26417 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26418 introducing a new local rtx_insn * "insn" using a checked cast to
26419 effectively strengthen "insn" from rtx to rtx_insn * without
26420 affecting the type signature.
26422 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26423 cast when assigning from param "insn" to current_output_insn.
26424 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26425 so that we can assign it back to current_output_insn.
26427 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26429 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26430 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26431 atmxt540s and atmxt540sreva devices.
26432 * config/avr/avr-tables.opt: Regenerate.
26433 * config/avr/t-multilib: Regenerate.
26434 * doc/avr-mmcu.texi: Regenerate.
26436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26438 * expr.c (convert_move): Strengthen local "insns" from rtx to
26440 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26441 "top_label" from rtx to rtx_code_label *.
26442 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26444 (emit_single_push_insn): Likewise for locals "prev", "last".
26445 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26446 to rtx_code_label *.
26447 (store_constructor): Likewise for locals "loop_start", "loop_end".
26448 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26450 (expand_expr_real_2): Likewise.
26451 (expand_expr_real_1): Strengthen local "label" from rtx to
26454 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26456 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26457 from rtx to rtx_insn *.
26458 (store_bit_field_1): Likewise.
26459 (extract_bit_field_1): Likewise.
26460 (expand_mult_const): Likewise for local "insns".
26461 (expmed_mult_highpart): Strengthen local "label" from rtx to
26463 (expand_smod_pow2): Likewise.
26464 (expand_sdiv_pow2): Likewise.
26465 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26466 rtx_insn *. Strengthen locals "label", "label1", "label2",
26467 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26468 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26469 (emit_store_flag): Likewise.
26470 (emit_store_flag_force): Strengthen local "label" from rtx to
26472 (do_cmp_and_jump): Likewise for param "label".
26474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26476 * explow.c (force_reg): Strengthen local "insn" from rtx to
26478 (adjust_stack_1): Likewise.
26479 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26480 "final_label", "available_label", "space_available" from rtx to
26482 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26483 (anti_adjust_stack_and_probe): Likewise.
26485 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26487 * except.h (sjlj_emit_function_exit_after): Strengthen param
26488 "after" from rtx to rtx_insn *. This is only called with
26489 result of get_last_insn (in function.c) so type-change should be
26492 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26493 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26494 to rtx_insn *. These fields are only used from except.c so this
26495 type-change should be self-contained to this patch.
26497 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26498 local "last" from rtx to rtx_insn *.
26499 (dw2_build_landing_pads): Likewise for local "seq".
26500 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26501 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26502 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26504 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26506 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26507 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26508 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26509 referring to an insn. Strengthen local "dispatch_label" from
26510 rtx to rtx_code_label *.
26511 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26513 (expand_eh_return): Strengthen local "around_label" from
26514 rtx to rtx_code_label *.
26515 (convert_to_eh_region_ranges): Strengthen locals "iter",
26516 "last_action_insn", "first_no_action_insn",
26517 "first_no_action_insn_before_switch",
26518 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26520 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26522 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26523 from rtx to rtx_insn *.
26524 (cached_next_real_insn): Likewise.
26525 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26526 working with insns.
26527 (dwarf2out_var_location): Strengthen locals "next_real",
26528 "next_note", "expected_next_loc_note", "last_start", "insn" from
26531 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26533 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26534 from rtx to rtx_insn *.
26535 (create_pseudo_cfg): Likewise for local "insn".
26537 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26539 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26540 from rtx to rtx_insn *.
26541 (df_bb_regno_last_def_find): Likewise.
26543 * df-problems.c (df_rd_bb_local_compute): Likewise.
26544 (df_lr_bb_local_compute): Likewise.
26545 (df_live_bb_local_compute): Likewise.
26546 (df_chain_remove_problem): Likewise.
26547 (df_chain_create_bb): Likewise.
26548 (df_word_lr_bb_local_compute): Likewise.
26549 (df_remove_dead_eq_notes): Likewise for param "insn".
26550 (df_note_bb_compute): Likewise for local "insn".
26551 (simulate_backwards_to_point): Likewise.
26552 (df_md_bb_local_compute): Likewise.
26554 * df-scan.c (df_scan_free_bb_info): Likewise.
26555 (df_scan_start_dump): Likewise.
26556 (df_scan_start_block): Likewise.
26557 (df_install_ref_incremental): Likewise for local "insn".
26558 (df_insn_rescan_all): Likewise.
26559 (df_reorganize_refs_by_reg_by_insn): Likewise.
26560 (df_reorganize_refs_by_insn_bb): Likewise.
26561 (df_recompute_luids): Likewise.
26562 (df_bb_refs_record): Likewise.
26563 (df_update_entry_exit_and_calls): Likewise.
26564 (df_bb_verify): Likewise.
26566 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26568 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26569 "first_note" from rtx to rtx_insn *.
26570 (get_node_of_insn): Likewise for param 2 "insn".
26571 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26573 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26575 (mem_write_insn_p): Likewise.
26576 (mem_access_insn_p): Likewise.
26577 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26578 (def_has_ccmode_p): Likewise for param "insn".
26579 (add_cross_iteration_register_deps): Likewise for locals
26580 "def_insn" and "use_insn".
26581 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26582 (build_intra_loop_deps): Likewise for local "src_insn".
26583 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26585 (get_node_of_insn): Likewise for param "insn".
26587 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26589 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26590 (deletable_insn_p): Strengthen param "insn" from rtx to
26591 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26592 find_call_stack_args, since this is guarded by CALL_P (insn).
26593 (marked_insn_p): Strengthen param "insn" from rtx to
26595 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26596 invoking find_call_stack_args, since this is guarded by
26598 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26599 rtx_insn *; we know this is an insn since this was called by
26600 mark_nonreg_stores.
26601 (mark_nonreg_stores_2): Likewise.
26602 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26604 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26605 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26607 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26608 from rtx to rtx_insn *.
26609 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26610 "next", "ref_insn".
26611 (delete_unmarked_insns): Likewise for locals "insn", "next".
26612 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26613 (mark_reg_dependencies): Likewise for param "insn".
26614 (rest_of_handle_ud_dce): Likewise for local "insn".
26615 (word_dce_process_block): Likewise.
26616 (dce_process_block): Likewise.
26618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26620 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26621 from rtx to rtx_insn *.
26622 (struct change_cc_mode_args): Likewise for field "insn".
26623 (this_insn): Strengthen from rtx to rtx_insn *.
26624 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26626 (validate_canon_reg): Strengthen param "insn" from rtx to
26628 (canon_reg): Likewise.
26629 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26631 (record_jump_equiv): Strengthen param "insn" from rtx to
26633 (try_back_substitute_reg): Likewise, also for locals "prev",
26635 (find_sets_in_insn): Likewise for param "insn".
26636 (canonicalize_insn): Likewise.
26637 (cse_insn): Likewise. Add a checked cast.
26638 (invalidate_from_clobbers): Likewise for param "insn".
26639 (invalidate_from_sets_and_clobbers): Likewise.
26640 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26642 (cse_prescan_path): Strengthen local "insn" from rtx to
26644 (cse_extended_basic_block): Likewise for locals "insn" and
26646 (cse_main): Likewise for param "f".
26647 (check_for_label_ref): Likewise for local "insn".
26648 (set_live_p): Likewise for second param ("insn").
26649 (insn_live_p): Likewise for first param ("insn") and for local
26651 (cse_change_cc_mode_insn): Likewise for first param "insn".
26652 (cse_change_cc_mode_insns): Likewise for first and second params
26654 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26656 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26659 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26660 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26661 Anna Tikhonova <anna.tikhonova@intel.com>
26662 Ilya Tocar <ilya.tocar@intel.com>
26663 Andrey Turetskiy <andrey.turetskiy@intel.com>
26664 Ilya Verbin <ilya.verbin@intel.com>
26665 Kirill Yukhin <kirill.yukhin@intel.com>
26666 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26668 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26670 * config/i386/sse.md
26671 (define_mode_iterator VI248_AVX2): Delete.
26672 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26673 (define_mode_iterator VI48_AVX2): Ditto.
26674 (define_insn <shift_insn><mode>3): Delete.
26675 (define_insn "<shift_insn><mode>3<mask_name>" with
26676 VI2_AVX2_AVX512BW): New.
26677 (define_insn "<shift_insn><mode>3<mask_name>" with
26680 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26681 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26682 Anna Tikhonova <anna.tikhonova@intel.com>
26683 Ilya Tocar <ilya.tocar@intel.com>
26684 Andrey Turetskiy <andrey.turetskiy@intel.com>
26685 Ilya Verbin <ilya.verbin@intel.com>
26686 Kirill Yukhin <kirill.yukhin@intel.com>
26687 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26689 * config/i386/sse.md
26690 (define_mode_iterator VI4F_BRCST32x2): New.
26691 (define_mode_attr 64x2_mode): Ditto.
26692 (define_mode_attr 32x2mode): Ditto.
26693 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26694 with VI4F_BRCST32x2): Ditto.
26695 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26696 with V16FI mode iterator): Ditto.
26697 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26698 with V16FI): Ditto.
26699 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26700 with VI8F_BRCST64x2): Ditto.
26702 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26704 Anna Tikhonova <anna.tikhonova@intel.com>
26705 Ilya Tocar <ilya.tocar@intel.com>
26706 Andrey Turetskiy <andrey.turetskiy@intel.com>
26707 Ilya Verbin <ilya.verbin@intel.com>
26708 Kirill Yukhin <kirill.yukhin@intel.com>
26709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26711 * config/i386/sse.md
26712 (define_mode_iterator VI8_AVX512VL): New.
26713 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26715 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26717 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26718 (define_mode_iterator V48_AVX512VL): New.
26719 (define_mode_iterator V12_AVX512VL): Ditto.
26720 (define_insn <avx512>_load<mode>_mask): Split into two similar
26721 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26722 Refactor output template.
26723 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26725 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26727 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26729 (reg_available_p): Likewise for param "insn".
26730 (insert_set_in_table): Likewise.
26731 (hash_scan_set): Likewise.
26732 (hash_scan_insn): Likewise.
26733 (make_set_regs_unavailable): Likewise.
26734 (compute_hash_table_work): Likewise for local "insn".
26735 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26737 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26738 (try_replace_reg): Likewise.
26739 (find_avail_set): Likewise.
26740 (cprop_jump): Likewise for params "setcc", "jump".
26741 (constprop_register): Likewise for param "insn".
26742 (cprop_insn): Likewise.
26743 (do_local_cprop): Likewise.
26744 (local_cprop_pass): Likewise for local "insn".
26745 (bypass_block): Likewise for params "setcc" and "jump".
26746 (bypass_conditional_jumps): Likewise for locals "setcc" and
26748 (one_cprop_pass): Likewise for local "insn".
26750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26752 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26753 from rtx to rtx_insn *.
26754 (struct comparison): Likewise, also for field "prev_clobber".
26755 (conforming_compare): Likewise for param "insn".
26756 (arithmetic_flags_clobber_p): Likewise.
26757 (find_flags_uses_in_insn): Likewise.
26758 (find_comparison_dom_walker::before_dom_children): Likewise for
26759 locals "insn", "next", "last_clobber".
26760 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26762 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26764 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26765 "insn" from rtx to rtx_insn *.
26766 (single_set_for_csa): Likewise for param "insn".
26767 (record_one_stack_ref): Likewise.
26768 (try_apply_stack_adjustment): Likewise.
26769 (struct record_stack_refs_data): Likewise for field "insn".
26770 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26771 (prev_active_insn_bb): Likewise for return type and param "insn".
26772 (next_active_insn_bb): Likewise.
26773 (force_move_args_size_note): Likewise for params "prev" and "last"
26774 and locals "test", "next_candidate", "prev_candidate".
26775 (combine_stack_adjustments_for_block): Strengthen locals
26776 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26779 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26781 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26782 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26783 (subst_insn): Likewise for this variable.
26784 (added_links_insn): Likewise.
26785 (struct insn_link): Likewise for field "insn".
26786 (alloc_insn_link): Likewise for param "insn".
26787 (struct undobuf): Likewise for field "other_insn".
26788 (find_single_use): Likewise for param "insn" and local "next".
26789 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26790 (delete_noop_moves): Likewise for locals "insn", "next".
26791 (create_log_links): Likewise for locals "insn", "use_insn".
26792 Strengthen local "next_use" from rtx * to rtx_insn **.
26793 (insn_a_feeds_b): Likewise for params "a", "b".
26794 (combine_instructions): Likewise for param "f" and locals "insn",
26795 "next", "prev", "first", "last_combined_insn", "link", "link1",
26796 "temp". Replace use of NULL_RTX with NULL when referring to
26798 (setup_incoming_promotions): Likewise for param "first"
26799 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26800 (can_combine_p): Likewise for params "insn", "i3", "pred",
26801 "pred2", "succ", "succ2" and for local "p".
26802 (combinable_i3pat): Likewise for param "i3".
26803 (cant_combine_insn_p): Likewise for param "insn".
26804 (likely_spilled_retval_p): Likewise.
26805 (adjust_for_new_dest): Likewise.
26806 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26807 (try_combine): Likewise for return type and for params "i3", "i2",
26808 "i1", "i0", "last_combined_insn", and for locals "insn",
26809 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26810 "i0_insn". Eliminate local "tem" in favor of new locals
26811 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26812 checked cast for now to rtx_insn * on the return type of
26813 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26815 (find_split_point): Strengthen param "insn" from rtx to
26817 (simplify_set): Likewise for local "other_insn".
26818 (recog_for_combine): Likewise for param "insn".
26819 (record_value_for_reg): Likewise.
26820 (record_dead_and_set_regs_1): Likewise for local
26821 "record_dead_insn".
26822 (record_dead_and_set_regs): Likewise for param "insn".
26823 (record_promoted_value): Likewise.
26824 (check_promoted_subreg): Likewise.
26825 (get_last_value_validate): Likewise.
26826 (reg_dead_at_p): Likewise.
26827 (move_deaths): Likewise for param "to_insn".
26828 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26829 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26830 in favor of new locals "tem_note" and "tem_insn", the latter being
26832 (distribute_links): Strengthen locals "place", "insn" from rtx to
26835 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26837 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26839 (can_delete_label_p): Require a const rtx_code_label * rather than
26841 (delete_insn): Add checked cast to rtx_code_label * when we know
26842 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26844 (delete_insn_chain): Strengthen locals "prev" and "current" from
26845 rtx to rtx_insn *. Add a checked cast when assigning from
26846 "finish" (strengthening the params will come later). Add a
26847 checked cast to rtx_note * in region where we know
26849 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26851 (compute_bb_for_insn): Likewise.
26852 (free_bb_for_insn): Likewise for local "insn".
26853 (compute_bb_for_insn): Likewise.
26854 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26855 local "insn" from rtx to rtx_insn *
26856 (flow_active_insn_p): Require a const rtx_insn * rather than a
26858 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26860 (can_fallthru): Likewise for locals "insn" and "insn2".
26861 (bb_note): Likewise for local "note".
26862 (first_insn_after_basic_block_note): Likewise for local "note" and
26864 (rtl_split_block): Likewise for locals "insn" and "next".
26865 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26867 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26868 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26870 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26871 them), "kill_from", "barrier", "new_insn".
26872 (patch_jump_insn): Likewise for params "insn", "old_label".
26873 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26874 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26875 "old_label", "new_label".
26876 (rtl_tidy_fallthru_edge): Likewise for local "q".
26877 (rtl_split_edge): Likewise for locals "before", "last".
26878 (commit_one_edge_insertion): Likewise for locals "before",
26879 "after", "insns", "tmp", "last", adding a checked cast where
26880 currently necessary.
26881 (commit_edge_insertions): Likewise.
26882 (rtl_dump_bb): Likewise for locals "insn", "last".
26883 (print_rtl_with_bb): Likewise for local "x".
26884 (rtl_verify_bb_insns): Likewise for local "x".
26885 (rtl_verify_bb_pointers): Likewise for local "insn".
26886 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26888 (rtl_verify_fallthru): Likewise for local "insn".
26889 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26890 (purge_dead_edges): Likewise for local "insn".
26891 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26892 (skip_insns_after_block): Likewise for return type and for locals
26893 "insn", "last_insn", "next_head", "prev".
26894 (record_effective_endpoints): Likewise for locals "next_insn",
26896 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26897 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26898 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26899 (duplicate_insn_chain): For now, add checked cast from rtx to
26900 rtx_insn * when returning insn.
26901 (cfg_layout_duplicate_bb): Likewise for local "insn".
26902 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26903 "prev", "remaints".
26904 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26905 (rtl_block_empty_p): Likewise.
26906 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26907 "split_point", "last".
26908 (rtl_block_ends_with_call_p): Likewise for local "insn".
26909 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26911 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26912 "split_at_insn" from rtx to rtx_insn *.
26913 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26914 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26915 to const rtx_insn *.
26916 (rtl_account_profile_record): Likewise.
26918 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26920 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26922 (average_num_loop_insns): Likewise.
26923 (init_set_costs): Likewise for local "seq".
26924 (seq_cost): Likewise for param "seq", from const_rtx to const
26927 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26929 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26932 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26934 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26935 "f1" and "f2" from rtx * to rtx_insn **.
26936 (flow_find_head_matching_sequence): Likewise.
26938 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26939 "cbranch_insn" from rtx to rtx_insn *.
26940 (thread_jump): Likewise for local "insn".
26941 (try_forward_edges): Likewise for local "last".
26942 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26943 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26945 (can_replace_by): Likewise for params "i1", "i2".
26946 (old_insns_match_p): Likewise.
26947 (merge_notes): Likewise.
26948 (walk_to_nondebug_insn): Likewise for param "i1".
26949 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26950 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26951 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26952 (flow_find_head_matching_sequence): Strengthen params "f1" and
26953 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26954 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26956 (outgoing_edges_match): Likewise for locals "last1", "last2".
26957 (try_crossjump_to_edge): Likewise for local "insn".
26958 Replace call to for_each_rtx with for_each_rtx_in_insn.
26960 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26961 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26962 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26963 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26964 (try_optimize_cfg): Strengthen local "last" from rtx to
26966 (delete_dead_jumptables): Likewise for locals "insn", "next",
26969 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26970 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26971 "rtx else_first_tail", to reflect the basic-block.h changes above.
26973 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26975 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26977 (purge_dead_tablejump_edges): Likewise.
26978 (find_bb_boundaries): Likewise for locals "insn", "end",
26979 "flow_transfer_insn".
26981 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26983 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26984 "ins" and "prev" from rtx to rtx_insn *.
26986 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26988 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26990 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26991 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26993 (load_register_parameters): Likewise for local "before_arg".
26994 (check_sibcall_argument_overlap): Likewise for param "insn".
26995 (expand_call): Likewise for locals "normal_call_insns",
26996 "tail_call_insns", "insns", "before_call", "after_args",
26997 "before_arg", "last", "prev". Strengthen one of the "last" from
26998 rtx to rtx_call_insn *.
26999 (fixup_tail_calls): Strengthen local "insn" from rtx to
27001 (emit_library_call_value_1): Likewise for locals "before_call" and
27004 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27006 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
27007 and "last" from rtx to rtx_insn *.
27008 (expand_builtin_nonlocal_goto): Likewise for local "insn".
27009 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
27011 (expand_errno_check): Strengthen local "lab" from rtx to
27013 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
27015 (expand_builtin_mathfn_2): Likewise.
27016 (expand_builtin_mathfn_ternary): Likewise.
27017 (expand_builtin_mathfn_3): Likewise.
27018 (expand_builtin_interclass_mathfn): Likewise for local "last".
27019 (expand_builtin_int_roundingfn): Likewise for local "insns".
27020 (expand_builtin_int_roundingfn_2): Likewise.
27021 (expand_builtin_strlen): Likewise for local "before_strlen".
27022 (expand_builtin_strncmp): Likewise for local "seq".
27023 (expand_builtin_signbit): Likewise for local "last".
27024 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
27025 from rtx to rtx_code_label *.
27026 (expand_stack_restore): Strengthen local "prev" from rtx to
27029 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27031 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
27033 (struct btr_def_s): Likewise.
27034 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
27036 (add_btr_def): Likewise.
27037 (new_btr_user): Likewise.
27038 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
27040 (link_btr_uses): Likewise.
27041 (move_btr_def): Likewise for locals "insp", "old_insn",
27042 "new_insn". Add checked cast to rtx_insn * for now on result of
27044 (can_move_up): Strengthen param "insn" from const_rtx to
27047 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27049 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
27051 (get_uncond_jump_length): Likewise for locals "label", "jump".
27052 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
27054 (add_labels_and_missing_jumps): Likewise for local "new_jump".
27055 (fix_up_fall_thru_edges): Likewise for local "old_jump".
27056 (find_jump_block): Likewise for local "insn".
27057 (fix_crossing_conditional_branches): Likewise for locals
27058 "old_jump", "new_jump".
27059 (fix_crossing_unconditional_branches): Likewise for locals
27060 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
27061 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
27063 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27065 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
27067 (struct mem_insn): Likewise for field "insn".
27068 (reg_next_use): Strengthen from rtx * to rtx_insn **.
27069 (reg_next_inc_use): Likewise.
27070 (reg_next_def): Likewise.
27071 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
27072 from rtx to rtx_insn *.
27073 (move_insn_before): Likewise for param "next_insn" and local "insns".
27074 (attempt_change): Likewise for local "mov_insn".
27075 (try_merge): Likewise for param "last_insn".
27076 (get_next_ref): Likewise for return type and local "insn".
27077 Strengthen param "next_array" from rtx * to rtx_insn **.
27078 (parse_add_or_inc): Strengthen param "insn" from rtx to
27080 (find_inc): Likewise for locals "insn" and "other_insn" (three of
27082 (merge_in_block): Likewise for locals "insn", "curr",
27084 (pass_inc_dec::execute): Update allocations of the arrays to
27085 reflect the stronger types.
27087 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27089 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
27090 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
27091 from rtx to rtx_code_label *.
27093 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27095 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
27098 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
27100 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
27101 generated a warning and prevented bootstrapping the compiler.
27103 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27105 * rtl.h (delete_related_insns): Strengthen return type from rtx to
27108 * jump.c (delete_related_insns): Likewise, also for locals "next"
27111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27113 * genautomata.c (output_internal_insn_latency_func): When writing
27114 the function "internal_insn_latency" to insn-automata.c,
27115 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
27116 allowing the optional guard function of (define_bypass) clauses to
27117 expect a pair of rtx_insn *, rather than a pair of rtx.
27118 (output_insn_latency_func): When writing the function
27119 "insn_latency", add an "uncast_" prefix to params "insn" and
27120 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
27121 using checked casts from the params, thus enabling the above
27122 change to the generated "internal_insn_latency" function.
27124 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
27126 PR tree-optimization/62091
27127 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
27128 handle correctly arrays.
27129 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
27130 inheritance binfos.
27131 (record_known_type): Walk into inner type.
27132 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
27133 condition on no type changes.
27135 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27137 * genattrtab.c (write_attr_get): Within the generated get_attr_
27138 functions, rename param "insn" to "uncast_insn" and reintroduce
27139 "insn" as an local rtx_insn * using a checked cast, so that "insn"
27140 is an rtx_insn * within insn-attrtab.c
27142 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27144 * output.h (peephole): Strengthen return type from rtx to
27146 * rtl.h (delete_for_peephole): Likewise for both params.
27147 * genpeep.c (main): In generated "peephole" function, strengthen
27148 return type and local "insn" from rtx to rtx_insn *. For now,
27149 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
27150 rtx_insn *, with a checked cast.
27151 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
27152 locals "insn", "next", "prev" from rtx to rtx_insn *.
27154 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
27156 PR tree-optimization/62112
27157 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
27158 * gimple-iterator.h (gsi_replace): Return bool.
27159 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
27160 moved from ref_may_alias_global_p.
27161 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
27163 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
27164 (stmt_kills_ref_p_1): Rename...
27165 (stmt_kills_ref_p): ... to this.
27166 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
27167 stmt_kills_ref_p): Declare.
27168 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
27169 Move the self-assignment case...
27170 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
27172 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27174 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
27176 * emit-rtl.c (try_split): Likewise, also for locals "before" and
27177 "after". For now, don't strengthen param "trial", which requires
27178 adding checked casts when returning it.
27180 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27182 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
27183 "label" from rtx to rtx_code_label *. Strengthen param 1 of
27184 "var_location" hook from rtx to rtx_insn *.
27185 (debug_nothing_rtx): Delete in favor of...
27186 (debug_nothing_rtx_code_label): New prototype.
27187 (debug_nothing_rtx_rtx): Delete unused prototype.
27188 (debug_nothing_rtx_insn): New prototype.
27190 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
27191 invoking debug_hooks->var_location (in two places, one in a NOTE
27192 case of a switch statement, the other guarded by a CALL_P
27193 conditional. Add checked cast to rtx_code_label * when invoking
27194 debug_hooks->label (within CODE_LABEL case of switch statement).
27196 * dbxout.c (dbx_debug_hooks): Update "label" hook from
27197 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27198 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
27199 (xcoff_debug_hooks): Likewise.
27200 * debug.c (do_nothing_debug_hooks): Likewise.
27201 (debug_nothing_rtx): Delete in favor of...
27202 (debug_nothing_rtx_insn): New function.
27203 (debug_nothing_rtx_rtx): Delete unused function.
27204 (debug_nothing_rtx_code_label): New function.
27205 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
27206 debug_nothing_rtx to debug_nothing_rtx_code_label.
27207 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
27209 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
27210 debug_nothing_rtx to debug_nothing_rtx_insn.
27211 (sdbout_label): Strengthen param "insn" from rtx to
27213 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
27214 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27215 "var_location" hook from debug_nothing_rtx to
27216 debug_nothing_rtx_insn.
27218 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27220 * recog.h (insn_output_fn): Update this function typedef to match
27221 the changes below to the generated output functions, strengthening
27222 the 2nd param from rtx to rtx_insn *.
27224 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
27225 insn when invoking an output function, to match the new signature
27226 of insn_output_fn with a stronger second param.
27228 * genconditions.c (write_header): In the generated code for
27229 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
27230 to match the other changes in this patch.
27232 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
27233 the generated "gen_" functions from rtx to rtx_insn * within their
27236 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
27237 the subfunctions within the generated "recog_", "split", "peephole2"
27238 function trees from rtx to rtx_insn *. For now, the top-level
27239 generated functions ("recog", "split", "peephole2") continue to
27240 take a plain rtx for "insn", to avoid introducing dependencies on
27241 other patches. Rename this 2nd param from "insn" to
27242 "uncast_insn", and reintroduce "insn" as a local variable of type
27243 rtx_insn *, initialized at the top of the generated function with
27244 a checked cast on "uncast_insn".
27245 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
27246 the generated "gen_" functions from rtx to rtx_insn * within their
27249 * genoutput.c (process_template): Strengthen the 2nd param within
27250 the generated "output_" functions "insn" from rtx to rtx_insn *.
27252 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27254 * tree-profile.c (tree_profiling): Skip external functions
27255 when doing coverage instrumentation.
27256 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
27258 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27260 * config/rs6000/altivec.h (vec_cpsgn): New #define.
27261 (vec_mergee): Likewise.
27262 (vec_mergeo): Likewise.
27263 (vec_cntlz): Likewise.
27264 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
27265 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
27266 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
27267 VMRGEW, and VMRGOW.
27268 * doc/extend.texi: Document various forms of vec_cpsgn,
27269 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
27270 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
27271 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
27272 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
27273 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
27275 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27277 * config/rs6000/rs6000.c (context.h): New include.
27278 (tree-pass.h): Likewise.
27279 (make_pass_analyze_swaps): New decl.
27280 (rs6000_option_override): Register pass_analyze_swaps.
27281 (swap_web_entry): New subsclass of web_entry_base (df.h).
27282 (special_handling_values): New enum.
27283 (union_defs): New function.
27284 (union_uses): Likewise.
27285 (insn_is_load_p): Likewise.
27286 (insn_is_store_p): Likewise.
27287 (insn_is_swap_p): Likewise.
27288 (rtx_is_swappable_p): Likewise.
27289 (insn_is_swappable_p): Likewise.
27290 (chain_purpose): New enum.
27291 (chain_contains_only_swaps): New function.
27292 (mark_swaps_for_removal): Likewise.
27293 (swap_const_vector_halves): Likewise.
27294 (adjust_subreg_index): Likewise.
27295 (permute_load): Likewise.
27296 (permute_store): Likewise.
27297 (handle_special_swappables): Likewise.
27298 (replace_swap_with_copy): Likewise.
27299 (dump_swap_insn_table): Likewise.
27300 (rs6000_analyze_swaps): Likewise.
27301 (pass_data_analyze_swaps): New pass_data.
27302 (pass_analyze_swaps): New rtl_opt_pass.
27303 (make_pass_analyze_swaps): New function.
27304 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27306 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27308 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27309 type from rtx to rtx_insn *.
27310 (create_copy_of_insn_rtx): Likewise.
27311 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27312 (create_copy_of_insn_rtx): Likewise, also for local "res".
27314 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27316 * rtl.h (find_first_parameter_load): Strengthen return type from
27318 * rtlanal.c (find_first_parameter_load): Strengthen return type
27319 from rtx to rtx_insn *. Add checked cast for now, to postpone
27320 strengthening the params.
27322 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27325 * diagnostic.c: Set default caret.
27326 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27328 * diagnostic.h (struct diagnostic_context):
27330 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27332 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27333 (sel_bb_head): Strengthen return type insn_t (currently just an
27334 rtx) to rtx_insn *.
27335 (sel_bb_end): Likewise.
27337 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27338 (sel_bb_head): Strengthen return type and local "head" from
27339 insn_t (currently just an rtx) to rtx_insn *.
27340 (sel_bb_end): Likewise for return type.
27341 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27344 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27346 * basic-block.h (get_last_bb_insn): Strengthen return type from
27348 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27351 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27354 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27356 (diagnostic_report_diagnostic): ... from here.
27357 * toplev.c (general_init): Move code to c-family.
27359 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27361 * df.h (web_entry_base): Replace existing struct web_entry with a
27362 new class web_entry_base with only the predecessor member.
27363 (unionfind_root): Remove declaration and move to class member.
27364 (unionfind_union): Remove declaration and move to friend
27366 (union_defs): Remove declaration.
27367 * web.c (web_entry_base::unionfind_root): Modify to be member
27368 function and adjust accessors.
27369 (unionfind_union): Modify to be friend function and adjust
27371 (web_entry): New subclass of web_entry_base containing the reg
27373 (union_match_dups): Modify for struct -> class changes.
27374 (union_defs): Likewise.
27375 (entry_register): Likewise.
27376 (pass_web::execute): Likewise.
27378 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27380 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27381 builtin define __VEC_ELEMENT_REG_ORDER__.
27383 2014-08-20 Martin Jambor <mjambor@suse.cz>
27384 Wei Mi <wmi@google.com>
27387 PR middle-end/61776
27388 * tree-ssa-operands.c (update_stmt_operands): Remove
27389 MODIFIED_NORETURN_CALLS.
27390 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27391 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27392 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27393 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27394 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27395 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27396 (gimple_call_set_ctrl_altering): New func.
27397 (gimple_call_ctrl_altering_p): Ditto.
27398 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27399 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27400 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27401 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27402 remove MODIFIED_NORETURN_CALLS.
27404 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27406 * coverage.c (coverage_compute_profile_id): Return non-0;
27407 also handle symbols with unique name.
27408 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27410 2014-08-20 Steve Ellcey <sellcey@mips.com>
27412 PR middle-end/49191
27413 * doc/sourcebuild.texi (non_strict_align): New.
27415 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27417 * cgraphunit.c (ipa_passes, compile): Reshedule
27418 symtab_remove_unreachable_nodes passes; update comments.
27419 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27420 TODO_remove_functions before the pass; the functions ought to be
27422 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27423 TODO_remove_functions.
27424 * passes.c (pass_data_early_local_passes): Do not schedule function
27426 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27428 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27431 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27432 before setting the option.
27433 * diagnostic.c (diagnostic_classify_diagnostic): Record
27434 command-line status.
27436 2014-08-20 Richard Biener <rguenther@suse.de>
27439 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27440 to build uint{16,32,64}_type_node.
27442 2014-08-20 Terry Guo <terry.guo@arm.com>
27444 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27445 with immediate_operand.
27447 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27449 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27450 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27453 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27455 PR preprocessor/51303
27456 * incpath.c (remove_duplicates): Use cpp_warning.
27458 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27462 * doc/options.texi (CPP): Document it.
27463 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27464 * optc-gen.awk: Handle CPP.
27465 * opth-gen.awk: Likewise.
27467 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27469 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27471 (duplicate_insn_chain): Likewise.
27472 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27473 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27474 checked cast for now (until we can strengthen the params in the
27476 (duplicate_insn_chain): Likewise.
27478 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27480 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27482 (prev_cc0_setter): Likewise.
27484 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27485 rtx_insn *, adding checked casts for now as necessary.
27486 (prev_cc0_setter): Likewise.
27488 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27490 * expr.h (emit_move_insn): Strengthen return type from rtx to
27492 (emit_move_insn_1): Likewise.
27493 (emit_move_complex_push): Likewise.
27494 (emit_move_complex_parts): Likewise.
27496 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27497 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27499 (emit_move_complex_push): Strengthen return type from rtx to
27501 (emit_move_complex): Likewise, also for local "ret".
27502 (emit_move_ccmode): Likewise.
27503 (emit_move_multi_word): Likewise for return type and locals
27504 "last_insn", "seq".
27505 (emit_move_insn_1): Likewise for return type and locals "result",
27507 (emit_move_insn): Likewise for return type and local "last_insn".
27508 (compress_float_constant): Likewise.
27510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27512 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27513 from rtx to rtx_insn *.
27515 * rtl.h (emit_insn_before): Likewise.
27516 (emit_insn_before_noloc): Likewise.
27517 (emit_insn_before_setloc): Likewise.
27518 (emit_jump_insn_before): Likewise.
27519 (emit_jump_insn_before_noloc): Likewise.
27520 (emit_jump_insn_before_setloc): Likewise.
27521 (emit_call_insn_before): Likewise.
27522 (emit_call_insn_before_noloc): Likewise.
27523 (emit_call_insn_before_setloc): Likewise.
27524 (emit_debug_insn_before): Likewise.
27525 (emit_debug_insn_before_noloc): Likewise.
27526 (emit_debug_insn_before_setloc): Likewise.
27527 (emit_label_before): Likewise.
27528 (emit_insn_after): Likewise.
27529 (emit_insn_after_noloc): Likewise.
27530 (emit_insn_after_setloc): Likewise.
27531 (emit_jump_insn_after): Likewise.
27532 (emit_jump_insn_after_noloc): Likewise.
27533 (emit_jump_insn_after_setloc): Likewise.
27534 (emit_call_insn_after): Likewise.
27535 (emit_call_insn_after_noloc): Likewise.
27536 (emit_call_insn_after_setloc): Likewise.
27537 (emit_debug_insn_after): Likewise.
27538 (emit_debug_insn_after_noloc): Likewise.
27539 (emit_debug_insn_after_setloc): Likewise.
27540 (emit_label_after): Likewise.
27541 (emit_insn): Likewise.
27542 (emit_debug_insn): Likewise.
27543 (emit_jump_insn): Likewise.
27544 (emit_call_insn): Likewise.
27545 (emit_label): Likewise.
27546 (gen_clobber): Likewise.
27547 (emit_clobber): Likewise.
27548 (gen_use): Likewise.
27549 (emit_use): Likewise.
27552 (emit_barrier_before): Strengthen return type from rtx to
27554 (emit_barrier_after): Likewise.
27555 (emit_barrier): Likewise.
27557 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27558 from rtx to rtx_insn *. Add checked casts for now when converting
27559 "last" from rtx to rtx_insn *.
27560 (emit_insn_before_noloc): Likewise for return type.
27561 (emit_jump_insn_before_noloc): Likewise.
27562 (emit_call_insn_before_noloc): Likewise.
27563 (emit_debug_insn_before_noloc): Likewise.
27564 (emit_barrier_before): Strengthen return type and local "insn"
27565 from rtx to rtx_barrier *.
27566 (emit_label_before): Strengthen return type from rtx to
27567 rtx_insn *. Add checked cast for now when returning param
27568 (emit_pattern_after_noloc): Strengthen return type from rtx to
27569 rtx_insn *. Add checked casts for now when converting "last" from
27571 (emit_insn_after_noloc): Strengthen return type from rtx to
27573 (emit_jump_insn_after_noloc): Likewise.
27574 (emit_call_insn_after_noloc): Likewise.
27575 (emit_debug_insn_after_noloc): Likewise.
27576 (emit_barrier_after): Strengthen return type from rtx to
27578 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27579 Add checked cast for now when converting "label" from rtx to
27581 (emit_pattern_after_setloc): Strengthen return type from rtx to
27582 rtx_insn *. Add checked casts for now when converting "last" from
27584 (emit_pattern_after): Strengthen return type from rtx to
27586 (emit_insn_after_setloc): Likewise.
27587 (emit_insn_after): Likewise.
27588 (emit_jump_insn_after_setloc): Likewise.
27589 (emit_jump_insn_after): Likewise.
27590 (emit_call_insn_after_setloc): Likewise.
27591 (emit_call_insn_after): Likewise.
27592 (emit_debug_insn_after_setloc): Likewise.
27593 (emit_debug_insn_after): Likewise.
27594 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27595 when converting "last" from rtx to rtx_insn *.
27596 (emit_pattern_before): Strengthen return type from rtx to
27598 (emit_insn_before_setloc): Likewise.
27599 (emit_insn_before): Likewise.
27600 (emit_jump_insn_before_setloc): Likewise.
27601 (emit_jump_insn_before): Likewise.
27602 (emit_call_insn_before_setloc): Likewise.
27603 (emit_call_insn_before): Likewise.
27604 (emit_debug_insn_before_setloc): Likewise.
27605 (emit_debug_insn_before): Likewise.
27606 (emit_insn): Strengthen return type and locals "last", "insn",
27607 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27608 within cases where we know we have an insn.
27609 (emit_debug_insn): Likewise.
27610 (emit_jump_insn): Likewise.
27611 (emit_call_insn): Strengthen return type and local "insn" from rtx
27613 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27614 a checked cast to rtx_insn * for now on "label".
27615 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27616 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27617 (emit_use): Likewise.
27618 (gen_use): Likewise, also for local "seq".
27619 (emit): Likewise for return type and local "insn".
27620 (rtx_insn): Likewise for return type and local "new_rtx".
27622 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27623 from rtx to rtx_barrier *.
27625 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27626 changed return type from rtx to rtx_insn *, we must update
27627 "emit_fn" type, and this in turn means updating...
27628 (frame_insn): ...this. Strengthen return type from rtx to
27629 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27631 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27633 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27634 rtx to rtx_jump_table_data *. Also for local.
27635 * rtl.h (emit_jump_table_data): Likewise.
27637 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27639 * basic-block.h (create_basic_block_structure): Strengthen third
27640 param "bb_note" from rtx to rtx_note *.
27641 * rtl.h (emit_note_before): Strengthen return type from rtx to
27643 (emit_note_after): Likewise.
27644 (emit_note): Likewise.
27645 (emit_note_copy): Likewise. Also, strengthen param similarly.
27646 * function.h (struct rtl_data): Strengthen field
27647 "x_stack_check_probe_note" from rtx to rtx_note *.
27649 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27650 from rtx to rtx_note *.
27651 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27652 "bb_note" from rtx to rtx_note *.
27653 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27654 when calling emit_note_copy.
27655 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27657 (emit_note_after): Likewise.
27658 (emit_note_before): Likewise.
27659 (emit_note_copy): Likewise. Also, strengthen param similarly.
27660 (emit_note): Likewise.
27661 * except.c (emit_note_eh_region_end): Likewise for return type.
27662 Strengthen local "next" from rtx to rtx_insn *.
27663 (convert_to_eh_region_ranges): Strengthen local "note"
27664 from rtx to rtx_note *.
27665 * final.c (change_scope): Likewise.
27666 (reemit_insn_block_notes): Likewise, for both locals named "note".
27667 Also, strengthen local "insn" from rtx to rtx_insn *.
27668 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27670 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27671 strengthen local "seq" from rtx to rtx_insn *.
27672 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27674 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27676 (get_bb_note_from_pool): Strengthen return type from rtx to
27678 (sel_create_basic_block): Strengthen local "new_bb_note" from
27679 insn_t to rtx_note *.
27680 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27681 "note" from rtx to rtx_note *.
27682 (emit_notes_in_bb): Likewise.
27684 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27686 * function.h (struct rtl_data): Strengthen field
27687 "x_parm_birth_insn" from rtx to rtx_insn *.
27688 * function.c (struct assign_parm_data_all): Strengthen fields
27689 "first_conversion_insn" and "last_conversion_insn" from rtx to
27692 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27694 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27695 to rtx_insn *; also for local "var_end_seq".
27696 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27697 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27699 (expand_gimple_cond): Likewise for locals "last2" and "last".
27700 (mark_transaction_restart_calls): Likewise for local "insn".
27701 (expand_gimple_stmt): Likewise for return type and locals "last"
27703 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27704 (avoid_complex_debug_insns): Likewise for param "insn".
27705 (expand_debug_locations): Likewise for locals "insn", "last",
27706 "prev_insn" and "insn2".
27707 (expand_gimple_basic_block): Likewise for local "last".
27708 (construct_exit_block): Likewise for locals "head", "end",
27710 (pass_expand::execute): Likewise for locals "var_seq",
27711 "var_ret_seq", "next".
27713 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27715 * asan.h (asan_emit_stack_protection): Strengthen return type from
27717 * asan.c (asan_emit_stack_protection): Likewise. Add local
27718 "insns" to hold the return value.
27720 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27722 * basic-block.h (bb_note): Strengthen return type from rtx to
27724 * sched-int.h (bb_note): Likewise.
27725 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27727 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27729 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27732 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27733 "insn" from rtx to rtx_insn *.
27734 (make_debug_insn_raw): Strengthen return type from rtx to
27735 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27736 (make_jump_insn_raw): Strengthen return type from rtx to
27737 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27738 (make_call_insn_raw): Strengthen return type from rtx to
27739 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27740 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27741 callback from rtx to rtx_insn *; likewise for local "insn" and
27742 "next", adding a checked cast to rtx_insn in the relevant cases of
27743 the switch statement.
27744 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27745 callback from rtx to rtx_insn *.
27746 (emit_pattern_after_setloc): Likewise.
27747 (emit_pattern_after): Likewise.
27748 (emit_pattern_before_setloc): Likewise.
27749 (emit_pattern_before): Likewise.
27751 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27753 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27755 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27756 accepting an rtx_insn *.
27757 (last_call_insn): Strengthen return type from rtx to
27760 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27762 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27763 "insns" from rtx to rtx_insn *.
27764 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27765 locals "insn" and "prev".
27767 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27769 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27770 rtx_jump_table_data **.
27772 * cfgbuild.c (make_edges): Introduce local "table", using it in
27773 place of "tmp" for jump table data.
27774 (find_bb_boundaries): Strengthen local "table" from rtx to
27775 rtx_jump_table_data *.
27776 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27777 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27778 (try_crossjump_to_edge): Likewise.
27779 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27781 (patch_jump_insn): Introduce local "table", using it in place of
27782 "tmp" for jump table data.
27783 (force_nonfallthru_and_redirect): Introduce local "table", so that
27784 call to tablejump_p can receive an rtx_jump_table_data **. Update
27785 logic around the call to overwrite "note" appropriately if
27786 tablejump_p returns non-zero.
27787 (get_last_bb_insn): Introduce local "table", using it in place of
27788 "tmp" for jump table data.
27789 * dwarf2cfi.c (create_trace_edges): Likewise.
27791 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27792 from rtx to rtx_jump_table_data *.
27793 (create_fix_barrier): Strengthen local "tmp" from rtx to
27794 rtx_jump_table_data *.
27795 (arm_reorg): Likewise for local "table".
27797 * config/s390/s390.c (s390_chunkify_start): Likewise.
27799 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27801 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27802 rtx to rtx_jump_table_data *.
27804 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27805 rtx_jump_table_data **. Add a checked cast when writing through
27806 the pointer: we know there that local "table" is non-NULL and that
27807 JUMP_TABLE_DATA_P (table) holds.
27808 (label_is_jump_target_p): Introduce local "table", using it in
27809 place of "tmp" for jump table data.
27811 2014-08-19 Marek Polacek <polacek@redhat.com>
27814 * doc/invoke.texi: Document -Wbool-compare.
27816 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27818 * rtl.h (entry_of_function): Strengthen return type from rtx to
27820 * cfgrtl.c (entry_of_function): Likewise.
27822 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27824 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27825 rtx_insn *, adding a checked cast for now.
27826 (get_last_insn): Likewise.
27828 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27830 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27833 * emit-rtl.c (gen_label_rtx): Likewise.
27835 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27837 * rtl.h (previous_insn): Strengthen return type from rtx to
27839 (next_insn): Likewise.
27840 (prev_nonnote_insn): Likewise.
27841 (prev_nonnote_insn_bb): Likewise.
27842 (next_nonnote_insn): Likewise.
27843 (next_nonnote_insn_bb): Likewise.
27844 (prev_nondebug_insn): Likewise.
27845 (next_nondebug_insn): Likewise.
27846 (prev_nonnote_nondebug_insn): Likewise.
27847 (next_nonnote_nondebug_insn): Likewise.
27848 (prev_real_insn): Likewise.
27849 (next_real_insn): Likewise.
27850 (prev_active_insn): Likewise.
27851 (next_active_insn): Likewise.
27853 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27854 rtx_insn *, adding a checked cast.
27855 (previous_insn): Likewise.
27856 (next_nonnote_insn): Likewise.
27857 (next_nonnote_insn_bb): Likewise.
27858 (prev_nonnote_insn): Likewise.
27859 (prev_nonnote_insn_bb): Likewise.
27860 (next_nondebug_insn): Likewise.
27861 (prev_nondebug_insn): Likewise.
27862 (next_nonnote_nondebug_insn): Likewise.
27863 (prev_nonnote_nondebug_insn): Likewise.
27864 (next_real_insn): Likewise.
27865 (prev_real_insn): Likewise.
27866 (next_active_insn): Likewise.
27867 (prev_active_insn): Likewise.
27869 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27870 param "stepfunc" so that it returns an rtx_insn * rather than an
27871 rtx, to track the change to prev_nonnote_insn_bb, which is the
27872 only function this is called with.
27873 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27875 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27877 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27880 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27882 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27883 (class rtx_nonjump_insn): Likewise.
27884 (class rtx_jump_insn): Likewise.
27885 (class rtx_call_insn): Likewise.
27886 (class rtx_jump_table_data): Likewise.
27887 (class rtx_barrier): Likewise.
27888 (class rtx_code_label): Likewise.
27889 (class rtx_note): Likewise.
27891 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27892 adding the invariant DEBUG_INSN_P (X).
27893 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27894 the invariant NONJUMP_INSN_P (X).
27895 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27896 the invariant JUMP_P (X).
27897 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27898 the invariant CALL_P (X).
27899 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27900 invariant JUMP_TABLE_DATA_P (X).
27901 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27902 invariant BARRIER_P (X).
27903 (class rtx_code_label): New, a subclass of rtx_insn, adding
27904 the invariant LABEL_P (X).
27905 (class rtx_note): New, a subclass of rtx_insn, adding
27906 the invariant NOTE_P(X).
27907 (is_a_helper <rtx_debug_insn *>::test): New.
27908 (is_a_helper <rtx_nonjump_insn *>::test): New.
27909 (is_a_helper <rtx_jump_insn *>::test): New.
27910 (is_a_helper <rtx_call_insn *>::test): New.
27911 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27912 overloaded for both rtx and rtx_insn *.
27913 (is_a_helper <rtx_barrier *>::test): New.
27914 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27915 for both rtx and rtx_insn *.
27916 (is_a_helper <rtx_note *>::test): New.
27918 2014-08-19 Marek Polacek <polacek@redhat.com>
27920 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27921 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27922 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27923 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27925 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27927 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27928 rtx_insn *. To help with transition, for now, convert from an
27929 access macro into a pair of functions: BND_TO, returning an
27931 (SET_BND_TO): New function, for use where BND_TO is used as an
27934 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27936 (BND_TO): New function, adding a checked cast.
27937 (SET_BND_TO): New function.
27939 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27941 (compute_av_set_on_boundaries): Likewise.
27943 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27945 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27946 destination if it is used in source.
27947 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27948 (*popcount<mode>2_falsedep_1): Likewise.
27950 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27953 * configure.ac: Set install_gold_as_default to no first.
27954 * configure: Regenerated.
27956 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27958 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27959 "note_list" field will eventually be an rtx_insn *. To help with
27960 transition, for now, convert from an access macro into a pair of
27961 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27962 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27965 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27966 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27968 * sel-sched-ir.c (init_bb): Likewise.
27969 (sel_restore_notes): Likewise.
27970 (move_bb_info): Likewise.
27971 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27972 (SET_BB_NOTE_LIST): New function.
27974 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27976 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27977 field will eventually be an rtx_insn *. To help with transition,
27978 for now, convert from an access macro into a pair of functions:
27979 VINSN_INSN_RTX, returning an rtx_insn *, and...
27980 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27981 is used as an lvalue.
27983 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27984 SET_VINSN_INSN_RTX where it's used as an lvalue.
27985 (VINSN_INSN_RTX): New function.
27986 (SET_VINSN_INSN_RTX): New function.
27988 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27990 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27991 eventually be rtx_insn *, but to help with transition, for now,
27992 convert from an access macro into a pair of functions: DEP_PRO
27993 returning an rtx_insn * and...
27994 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27995 lvalue, returning an rtx&.
27996 (DEP_CON): Analogous changes to DEP_PRO above.
27997 (SET_DEP_CON): Likewise.
27999 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
28000 an lvalue to SET_DEP_CON.
28001 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
28002 (sd_copy_back_deps): Likewise for DEP_CON.
28003 (DEP_PRO): New function, adding a checked cast for now.
28004 (DEP_CON): Likewise.
28005 (SET_DEP_PRO): New function.
28006 (SET_DEP_CON): Likewise.
28008 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
28010 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
28011 (extra_options): Add i386/cygwin.opt.
28012 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
28013 (CPP_SPEC): Accept -pthread.
28014 (LINK_SPEC): Ditto.
28015 (GOMP_SELF_SPECS): Update comment.
28016 * config/i386/cygwin.opt: New file for -pthread flag.
28018 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28020 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
28021 * df.h (DF_REF_INSN): Convert from a macro to a function, so
28022 that we can return an rtx_insn *.
28024 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
28026 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
28027 when building executables, not DLLs. Add --large-address-aware
28028 under the same conditions.
28029 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
28030 when building executables, not DLLs. Add --large-address-aware
28031 under the same conditions when using -m32.
28033 * config/i386/cygwin-stdint.h: Throughout, make type
28034 definitions dependent on target architecture, not host.
28036 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28038 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
28039 the return type from rtx to rtx_insn *, which will enable various
28040 conversions in followup patches. For now this is is done by a
28042 (NEXT_INSN): Likewise.
28043 (SET_PREV_INSN): Convert to an inline function. This is intended
28044 for use as an lvalue, and so returns an rtx& to allow in-place
28046 (SET_NEXT_INSN): Likewise.
28048 2014-07-08 Mark Wielaard <mjw@redhat.com>
28051 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
28053 2014-08-19 Marek Polacek <polacek@redhat.com>
28056 * cgraphunit.c (handle_alias_pairs): Fix condition.
28058 2014-08-19 Richard Biener <rguenther@suse.de>
28060 * gimple-fold.c (fold_gimple_assign): Properly build a
28061 null-pointer constant when devirtualizing addresses.
28063 2014-07-07 Mark Wielaard <mjw@redhat.com>
28065 * dwarf2out.c (decl_quals): New function.
28066 (modified_type_die): Take one cv_quals argument instead of two,
28067 one for const and one for volatile.
28068 (add_type_attribute): Likewise.
28069 (generic_parameter_die): Call add_type_attribute with one modifier
28071 (base_type_for_mode): Likewise.
28072 (add_bounds_info): Likewise.
28073 (add_subscript_info): Likewise.
28074 (gen_array_type_die): Likewise.
28075 (gen_descr_array_type_die): Likewise.
28076 (gen_entry_point_die): Likewise.
28077 (gen_enumeration_type_die): Likewise.
28078 (gen_formal_parameter_die): Likewise.
28079 (gen_subprogram_die): Likewise.
28080 (gen_variable_die): Likewise.
28081 (gen_const_die): Likewise.
28082 (gen_field_die): Likewise.
28083 (gen_pointer_type_die): Likewise.
28084 (gen_reference_type_die): Likewise.
28085 (gen_ptr_to_mbr_type_die): Likewise.
28086 (gen_inheritance_die): Likewise.
28087 (gen_subroutine_type_die): Likewise.
28088 (gen_typedef_die): Likewise.
28089 (force_type_die): Likewise.
28091 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28093 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
28095 * configure: Regenerate.
28097 2014-08-19 Richard Biener <rguenther@suse.de>
28099 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
28100 DECL_EXTERNALs in BLOCKs as non-references.
28101 * tree-streamer-out.c (streamer_write_chain): Likewise.
28103 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
28104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28105 Anna Tikhonova <anna.tikhonova@intel.com>
28106 Ilya Tocar <ilya.tocar@intel.com>
28107 Andrey Turetskiy <andrey.turetskiy@intel.com>
28108 Ilya Verbin <ilya.verbin@intel.com>
28109 Kirill Yukhin <kirill.yukhin@intel.com>
28110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28112 * config/i386/sse.md
28113 (define_mode_iterator VI48_AVX512F): Delete.
28114 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
28115 (define_mode_iterator VI2_AVX512VL): Ditto.
28116 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
28119 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
28121 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
28122 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
28123 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
28124 with VI48_AVX512F_AVX512VL): New.
28125 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
28126 with VI2_AVX512VL): Ditto.
28128 2014-08-19 Marek Polacek <polacek@redhat.com>
28130 * doc/invoke.texi: Document -Wc99-c11-compat.
28132 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28134 * rtl.h (PREV_INSN): Split macro in two: the existing one,
28135 for rvalues, and...
28136 (SET_PREV_INSN): New macro, for use as an lvalue.
28137 (NEXT_INSN, SET_NEXT_INSN): Likewise.
28139 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
28140 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
28141 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
28142 (fixup_abnormal_edges): Likewise.
28143 (unlink_insn_chain): Likewise.
28144 (fixup_reorder_chain): Likewise.
28145 (cfg_layout_delete_block): Likewise.
28146 (cfg_layout_merge_blocks): Likewise.
28147 * combine.c (update_cfg_for_uncondjump): Likewise.
28148 * emit-rtl.c (link_insn_into_chain): Likewise.
28149 (remove_insn): Likewise.
28150 (delete_insns_since): Likewise.
28151 (reorder_insns_nobb): Likewise.
28152 (emit_insn_after_1): Likewise.
28153 * final.c (rest_of_clean_state): Likewise.
28154 (final_scan_insn): Likewise.
28155 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
28156 * haifa-sched.c (concat_note_lists): Likewise.
28157 (remove_notes): Likewise.
28158 (restore_other_notes): Likewise.
28159 (move_insn): Likewise.
28160 (unlink_bb_notes): Likewise.
28161 (restore_bb_notes): Likewise.
28162 * jump.c (delete_for_peephole): Likewise.
28163 * optabs.c (emit_libcall_block_1): Likewise.
28164 * reorg.c (emit_delay_sequence): Likewise.
28165 (fill_simple_delay_slots): Likewise.
28166 * sel-sched-ir.c (sel_move_insn): Likewise.
28167 (sel_remove_insn): Likewise.
28168 (get_bb_note_from_pool): Likewise.
28169 * sel-sched.c (move_nop_to_previous_block): Likewise.
28171 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
28172 * config/c6x/c6x.c (gen_one_bundle): Likewise.
28173 (c6x_gen_bundles): Likewise.
28174 (hwloop_optimize): Likewise.
28175 * config/frv/frv.c (frv_function_prologue): Likewise.
28176 (frv_register_nop): Likewise.
28177 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
28178 (ia64_reorg): Likewise.
28179 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
28180 (mep_make_bundle): Likewise.
28181 (mep_bundle_insns): Likewise.
28182 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
28183 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
28184 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
28186 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28188 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
28189 return type from rtx to rtx_insn *.
28190 (BB_END): Likewise.
28191 (BB_HEADER): Likewise.
28192 (BB_FOOTER): Likewise.
28193 (SET_BB_HEAD): Convert to a function.
28194 (SET_BB_END): Likewise.
28195 (SET_BB_HEADER): Likewise.
28196 (SET_BB_FOOTER): Likewise.
28198 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
28199 Strengthen the return type from rtx to rtx_insn *. For now, this
28200 is done by adding a checked cast, but this will eventually
28201 become a field lookup.
28202 (BB_END): Likewise.
28203 (BB_HEADER): Likewise.
28204 (BB_FOOTER): Likewise.
28205 (SET_BB_HEAD): New function, from macro of same name. This is
28206 intended for use as an lvalue, and so returns an rtx& to allow
28207 in-place modification.
28208 (SET_BB_END): Likewise.
28209 (SET_BB_HEADER): Likewise.
28210 (SET_BB_FOOTER): Likewise.
28212 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28214 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
28215 for rvalues, and...
28216 (SET_BB_HEAD): New macro, for use as a lvalue.
28217 (BB_END, SET_BB_END): Likewise.
28218 (BB_HEADER, SET_BB_HEADER): Likewise.
28219 (BB_FOOTER, SET_BB_FOOTER): Likewise.
28221 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
28222 of BB_* macros into SET_BB_* macros.
28223 (fix_crossing_unconditional_branches): Likewise.
28224 * caller-save.c (save_call_clobbered_regs): Likewise.
28225 (insert_one_insn): Likewise.
28226 * cfgbuild.c (find_bb_boundaries): Likewise.
28227 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
28228 (outgoing_edges_match): Likewise.
28229 (try_optimize_cfg): Likewise.
28230 * cfgexpand.c (expand_gimple_cond): Likewise.
28231 (expand_gimple_tailcall): Likewise.
28232 (expand_gimple_basic_block): Likewise.
28233 (construct_exit_block): Likewise.
28234 * cfgrtl.c (delete_insn): Likewise.
28235 (create_basic_block_structure): Likewise.
28236 (rtl_delete_block): Likewise.
28237 (rtl_split_block): Likewise.
28238 (emit_nop_for_unique_locus_between): Likewise.
28239 (rtl_merge_blocks): Likewise.
28240 (block_label): Likewise.
28241 (try_redirect_by_replacing_jump): Likewise.
28242 (emit_barrier_after_bb): Likewise.
28243 (fixup_abnormal_edges): Likewise.
28244 (record_effective_endpoints): Likewise.
28245 (relink_block_chain): Likewise.
28246 (fixup_reorder_chain): Likewise.
28247 (fixup_fallthru_exit_predecessor): Likewise.
28248 (cfg_layout_duplicate_bb): Likewise.
28249 (cfg_layout_split_block): Likewise.
28250 (cfg_layout_delete_block): Likewise.
28251 (cfg_layout_merge_blocks): Likewise.
28252 * combine.c (update_cfg_for_uncondjump): Likewise.
28253 * emit-rtl.c (add_insn_after): Likewise.
28254 (remove_insn): Likewise.
28255 (reorder_insns): Likewise.
28256 (emit_insn_after_1): Likewise.
28257 * haifa-sched.c (get_ebb_head_tail): Likewise.
28258 (restore_other_notes): Likewise.
28259 (move_insn): Likewise.
28260 (sched_extend_bb): Likewise.
28261 (fix_jump_move): Likewise.
28262 * ifcvt.c (noce_process_if_block): Likewise.
28263 (dead_or_predicable): Likewise.
28264 * ira.c (update_equiv_regs): Likewise.
28265 * reg-stack.c (change_stack): Likewise.
28266 * sel-sched-ir.c (sel_move_insn): Likewise.
28267 * sel-sched.c (move_nop_to_previous_block): Likewise.
28269 * config/c6x/c6x.c (hwloop_optimize): Likewise.
28270 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
28272 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28274 * rtl.h (for_each_rtx_in_insn): New function.
28275 * rtlanal.c (for_each_rtx_in_insn): Likewise.
28277 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28279 * coretypes.h (class rtx_insn): Add forward declaration.
28281 * rtl.h: Include is-a.h.
28282 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
28283 workaround to ensure gengtype knows inheritance is occurring,
28284 whilst continuing to use the pre-existing special-casing for
28286 (class rtx_insn): New subclass of rtx_def, adding the
28287 invariant that we're dealing with something we can sanely use
28288 INSN_UID, NEXT_INSN, PREV_INSN on.
28289 (is_a_helper <rtx_insn *>::test): New.
28290 (is_a_helper <const rtx_insn *>::test): New.
28292 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28294 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
28296 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28298 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
28299 turn UNDEF comdats as extern.
28301 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28303 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28304 to BUILT_IN_UNREACHABLE.
28306 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28309 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28311 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28312 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28313 (ffs<mode>2): Do not expand with tzcnt for
28314 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28315 (ffssi2_no_cmove): Ditto.
28316 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28317 (ctz<mode>2): New expander.
28318 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28319 (*ctz<mode>2_falsedep): New insn.
28320 (*ctz<mode>2): Rename from ctz<mode>2.
28321 (clz<mode>2_lzcnt): New expander.
28322 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28323 (*clz<mode>2_lzcnt_falsedep): New insn.
28324 (*clz<mode>2): Rename from ctz<mode>2.
28325 (popcount<mode>2): New expander.
28326 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28327 (*popcount<mode>2_falsedep): New insn.
28328 (*popcount<mode>2): Rename from ctz<mode>2.
28329 (*popcount<mode>2_cmp): Remove.
28330 (*popcountsi2_cmp_zext): Ditto.
28332 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28334 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28335 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28336 * config/microblaze/microblaze.h
28337 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28339 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28342 * configure.ac: Set install_gold_as_default to no for
28344 * configure: Regenerated.
28346 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28348 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28349 * config.in: Add undef of HAVE_isl.
28350 * configure: Regenerate.
28351 * configure.ac: Add definition of HAVE_isl.
28352 * graphite-blocking.c: Add checking of HAVE_isl.
28353 * graphite-dependences.c: Likewise.
28354 * graphite-interchange.c: Likewise.
28355 * graphite-isl-ast-to-gimple.c: Likewise.
28356 * graphite-optimize-isl.c: Likewise.
28357 * graphite-poly.c: Likewise.
28358 * graphite-scop-detection.c: Likewise.
28359 * graphite-sese-to-poly.c: Likewise.
28360 * graphite.c: Likewise.
28361 * toplev.c: Replace the checking of HAVE_cloog with the checking
28364 2014-08-18 Richard Biener <rguenther@suse.de>
28366 PR tree-optimization/62090
28367 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28368 (fold_builtin_3): Do not fold snprintf.
28369 (fold_builtin_4): Likewise.
28370 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28371 moved from builtins.c.
28372 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28373 (gimple_fold_builtin): Do not fold sprintf here.
28375 2014-08-18 Richard Biener <rguenther@suse.de>
28377 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28379 (maybe_canonicalize_mem_ref_addr): ... this function.
28380 (fold_stmt_1): Apply it here before all simplification.
28382 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28385 * cgraph.h (cgraph_node::create_indirect_edge): Add
28386 compute_indirect_info param.
28387 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28388 indirect_info only when it is required.
28389 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28390 indirect_info fore cloned indirect edge.
28392 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28393 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28394 Anna Tikhonova <anna.tikhonova@intel.com>
28395 Ilya Tocar <ilya.tocar@intel.com>
28396 Andrey Turetskiy <andrey.turetskiy@intel.com>
28397 Ilya Verbin <ilya.verbin@intel.com>
28398 Kirill Yukhin <kirill.yukhin@intel.com>
28399 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28401 * config/i386/sse.md
28402 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28403 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28405 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28406 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28407 Anna Tikhonova <anna.tikhonova@intel.com>
28408 Ilya Tocar <ilya.tocar@intel.com>
28409 Andrey Turetskiy <andrey.turetskiy@intel.com>
28410 Ilya Verbin <ilya.verbin@intel.com>
28411 Kirill Yukhin <kirill.yukhin@intel.com>
28412 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28414 * config/i386/sse.md
28415 (define_mode_iterator VF1_AVX512VL): New.
28416 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28417 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28420 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28421 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28422 Anna Tikhonova <anna.tikhonova@intel.com>
28423 Ilya Tocar <ilya.tocar@intel.com>
28424 Andrey Turetskiy <andrey.turetskiy@intel.com>
28425 Ilya Verbin <ilya.verbin@intel.com>
28426 Kirill Yukhin <kirill.yukhin@intel.com>
28427 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28429 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28430 ufloatv8siv8df2_mask.
28431 * config/i386/i386.md
28432 (define_code_iterator any_float): New.
28433 (define_code_attr floatsuffix): New.
28434 * config/i386/sse.md
28435 (define_mode_iterator VF1_128_256VL): New.
28436 (define_mode_iterator VF2_512_256VL): New.
28437 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28438 unnecessary TARGET check.
28439 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28440 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28442 (define_mode_attr qq2pssuff): New.
28443 (define_mode_attr sselongvecmode): New.
28444 (define_mode_attr sselongvecmodelower): New.
28445 (define_mode_attr sseintvecmode3): New.
28446 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28448 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28449 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28450 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28451 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28453 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28454 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28455 Anna Tikhonova <anna.tikhonova@intel.com>
28456 Ilya Tocar <ilya.tocar@intel.com>
28457 Andrey Turetskiy <andrey.turetskiy@intel.com>
28458 Ilya Verbin <ilya.verbin@intel.com>
28459 Kirill Yukhin <kirill.yukhin@intel.com>
28460 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28462 * config/i386/sse.md
28463 (define_mode_iterator VF2_AVX512VL): New.
28464 (define_mode_attr sseintvecmode2): New.
28465 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28466 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28467 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28469 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28471 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28473 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28476 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28477 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28478 Anna Tikhonova <anna.tikhonova@intel.com>
28479 Ilya Tocar <ilya.tocar@intel.com>
28480 Andrey Turetskiy <andrey.turetskiy@intel.com>
28481 Ilya Verbin <ilya.verbin@intel.com>
28482 Kirill Yukhin <kirill.yukhin@intel.com>
28483 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28485 * config/i386/i386.md
28486 (define_insn "*movoi_internal_avx"): Add evex version.
28487 (define_insn "*movti_internal"): Ditto.
28489 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28490 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28491 Anna Tikhonova <anna.tikhonova@intel.com>
28492 Ilya Tocar <ilya.tocar@intel.com>
28493 Andrey Turetskiy <andrey.turetskiy@intel.com>
28494 Ilya Verbin <ilya.verbin@intel.com>
28495 Kirill Yukhin <kirill.yukhin@intel.com>
28496 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28498 * config/i386/i386.md
28499 (define_attr "isa"): Add avx512dq, noavx512dq.
28500 (define_attr "enabled"): Ditto.
28501 * config/i386/sse.md
28502 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28504 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28506 Anna Tikhonova <anna.tikhonova@intel.com>
28507 Ilya Tocar <ilya.tocar@intel.com>
28508 Andrey Turetskiy <andrey.turetskiy@intel.com>
28509 Ilya Verbin <ilya.verbin@intel.com>
28510 Kirill Yukhin <kirill.yukhin@intel.com>
28511 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28513 * config/i386/i386.c
28514 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28515 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28516 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28517 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28518 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28519 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28520 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28521 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28522 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28523 * config/i386/sse.md
28524 (define_mode_iterator VMOVE): Allow V4TI mode.
28525 (define_mode_iterator V_AVX512VL): New.
28526 (define_mode_iterator V): New handling for AVX512VL.
28527 (define_insn "avx512f_load<mode>_mask"): Delete.
28528 (define_insn "<avx512>_load<mode>_mask"): New.
28529 (define_insn "avx512f_store<mode>_mask"): Delete.
28530 (define_insn "<avx512>_store<mode>_mask"): New.
28533 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28536 * asan.c (instrument_derefs): Fix bitfield check.
28538 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28540 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28541 * config/rs6000/htm.md (ttest): Remove clobber.
28542 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28543 (and_operand): Reformat.
28544 (and_2rld_operand): New predicate.
28545 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28547 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28548 parameter. Handle AND directly.
28549 (rs6000_split_logical_di): Remove last parameter.
28550 (rs6000_split_logical): Remove last parameter. Remove obsolete
28552 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28553 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28554 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28555 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28556 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28557 and 5 anonymous splitters): Delete.
28558 (and<mode>3): New expander.
28559 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28560 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28561 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28562 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28563 (floatdisf2_internal1): Remove clobbers.
28564 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28565 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28566 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28567 (and<mode>3 for BOOL_128): Remove clobber.
28568 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28569 rs6000_split_logical.
28570 (*bool<mode>3_internal for BOOL_128): Adjust call of
28571 rs6000_split_logical.
28572 (*boolc<mode>3_internal1 for BOOL_128,
28573 *boolc<mode>3_internal2 for BOOL_128,
28574 *boolcc<mode>3_internal1 for BOOL_128,
28575 *boolcc<mode>3_internal2 for BOOL_128,
28576 *eqv<mode>3_internal1 for BOOL_128,
28577 *eqv<mode>3_internal2 for BOOL_128,
28578 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28579 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28581 (*vec_reload_and_reg_<mptrsize>): Delete.
28583 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28585 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28586 and split, *boolccsi3_internal3 and split): Delete.
28587 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28588 *boolccdi3_internal3 and split): Delete.
28589 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28590 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28592 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28594 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28595 and split, *boolcsi3_internal3 and split): Delete.
28596 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28597 *boolcdi3_internal3 and split): Delete.
28598 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28600 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28602 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28603 <'u'>: Also support printing the low-order 16 bits.
28604 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28605 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28606 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28607 *booldi3_internal3 and split): Delete.
28608 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28609 *bool<mode>3_dot2): New.
28610 (two anonymous define_splits for non_logical_cint_operand): Merge.
28612 2014-08-17 Marek Polacek <polacek@redhat.com>
28613 Manuel López-Ibáñez <manu@gcc.gnu.org>
28616 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28617 (diagnostic_show_locus): Don't print caret diagnostic
28618 if a column is larger than the line_width.
28620 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28622 * common.opt: Make the ISL AST generator to be the main code generator
28625 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28627 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28629 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28632 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28634 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28635 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28636 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28638 * config/pa/pa.md (begin_brtab): Delete insn.
28639 (end_brtab): Likewise.
28641 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28643 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28645 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28647 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28648 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28649 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28650 (get_dynamic_type): Remove.
28651 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28652 (clear_speculation): Bring to ipa-deivrt.h
28653 (get_class_context): Rename to ...
28654 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28655 (contains_type_p): Update.
28656 (get_dynamic_type): Rename to ...
28657 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28658 (possible_polymorphic_call_targets): UPdate.
28659 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28660 * ipa-prop.c (ipa_analyze_call_uses): Update.
28662 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28664 * doc/invoke.texi (SH options): Document missing processor variant
28665 options. Remove references to Hitachi. Undocument deprecated mspace
28668 2014-08-15 Jason Merrill <jason@redhat.com>
28670 * tree.c (type_hash_canon): Uncomment assert.
28672 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28674 * input.h (in_system_header_at): Add comment.
28676 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28679 * diagnostic.c (build_message_string): Make it extern.
28680 * diagnostic.h (build_message_string): Make it extern.
28682 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28684 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28685 load/store from/to non-floating class pseudo.
28687 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28689 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28691 2014-08-15 Richard Biener <rguenther@suse.de>
28693 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28694 (get_constraint_for_ssa_var): Remove dead code.
28695 (get_constraint_for_1): Adjust.
28696 (find_what_var_points_to): Likewise.
28697 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28699 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28702 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28703 (_mm512_mask_cmpge_epu32_mask): Ditto.
28704 (_mm512_cmpge_epu32_mask): Ditto.
28705 (_mm512_mask_cmpge_epi64_mask): Ditto.
28706 (_mm512_cmpge_epi64_mask): Ditto.
28707 (_mm512_mask_cmpge_epu64_mask): Ditto.
28708 (_mm512_cmpge_epu64_mask): Ditto.
28709 (_mm512_mask_cmple_epi32_mask): Ditto.
28710 (_mm512_cmple_epi32_mask): Ditto.
28711 (_mm512_mask_cmple_epu32_mask): Ditto.
28712 (_mm512_cmple_epu32_mask): Ditto.
28713 (_mm512_mask_cmple_epi64_mask): Ditto.
28714 (_mm512_cmple_epi64_mask): Ditto.
28715 (_mm512_mask_cmple_epu64_mask): Ditto.
28716 (_mm512_cmple_epu64_mask): Ditto.
28717 (_mm512_mask_cmplt_epi32_mask): Ditto.
28718 (_mm512_cmplt_epi32_mask): Ditto.
28719 (_mm512_mask_cmplt_epu32_mask): Ditto.
28720 (_mm512_cmplt_epu32_mask): Ditto.
28721 (_mm512_mask_cmplt_epi64_mask): Ditto.
28722 (_mm512_cmplt_epi64_mask): Ditto.
28723 (_mm512_mask_cmplt_epu64_mask): Ditto.
28724 (_mm512_cmplt_epu64_mask): Ditto.
28725 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28726 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28727 (_mm512_cmpneq_epu32_mask): Ditto.
28728 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28729 (_mm512_cmpneq_epi64_mask): Ditto.
28730 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28731 (_mm512_cmpneq_epu64_mask): Ditto.
28732 (_mm512_castpd_ps): Ditto.
28733 (_mm512_castpd_si512): Ditto.
28734 (_mm512_castps_pd): Ditto.
28735 (_mm512_castps_si512): Ditto.
28736 (_mm512_castsi512_ps): Ditto.
28737 (_mm512_castsi512_pd): Ditto.
28738 (_mm512_castpd512_pd128): Ditto.
28739 (_mm512_castps512_ps128): Ditto.
28740 (_mm512_castsi512_si128): Ditto.
28741 (_mm512_castpd512_pd256): Ditto.
28742 (_mm512_castps512_ps256): Ditto.
28743 (_mm512_castsi512_si256): Ditto.
28744 (_mm512_castpd128_pd512): Ditto.
28745 (_mm512_castps128_ps512): Ditto.
28746 (_mm512_castsi128_si512): Ditto.
28747 (_mm512_castpd256_pd512): Ditto.
28748 (_mm512_castps256_ps512): Ditto.
28749 (_mm512_castsi256_si512): Ditto.
28750 (_mm512_cmpeq_epu32_mask): Ditto.
28751 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28752 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28753 (_mm512_cmpeq_epu64_mask): Ditto.
28754 (_mm512_cmpgt_epu32_mask): Ditto.
28755 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28756 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28757 (_mm512_cmpgt_epu64_mask): Ditto.
28758 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28759 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28760 * config/i386/i386.c (enum ix86_builtins): Add
28761 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28762 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28763 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28764 (bdesc_args): Add __builtin_ia32_si512_256si,
28765 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28766 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28767 __builtin_ia32_pd512_pd.
28768 (ix86_expand_args_builtin): Handle new FTYPEs.
28769 * config/i386/sse.md (castmode): Add 512-bit modes.
28770 (AVX512MODE2P): New.
28771 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28772 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28774 2014-08-15 Richard Biener <rguenther@suse.de>
28776 * fold-const.c (tree_swap_operands_p): Put all constants
28777 last, also strip sign-changing NOPs when considering further
28778 canonicalization. Canonicalize also when optimizing for size.
28780 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28782 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28783 one_match > zero_match case to just before simple_sequence.
28785 2014-08-15 Richard Biener <rguenther@suse.de>
28787 * data-streamer.h (streamer_string_index, string_for_index):
28789 * data-streamer-out.c (streamer_string_index): Make static.
28790 * data-streamer-in.c (string_for_index): Likewise.
28791 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28792 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28794 2014-08-15 Richard Biener <rguenther@suse.de>
28796 PR tree-optimization/62031
28797 * tree-data-ref.c (dr_analyze_indices): Do not set
28798 DR_UNCONSTRAINED_BASE.
28799 (dr_may_alias_p): All indirect accesses have to go the
28800 formerly DR_UNCONSTRAINED_BASE path.
28801 * tree-data-ref.h (struct indices): Remove
28802 unconstrained_base member.
28803 (DR_UNCONSTRAINED_BASE): Remove.
28805 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28807 PR middle-end/62092
28808 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28809 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28810 in OMP_CLAUSE_MAP in some outer target region.
28812 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28814 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28815 name_expansion_cache.
28816 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28817 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28818 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28819 (difference_cannot_overflow_p): New parameter. Use affine
28820 expansion for equality check.
28821 (iv_elimination_compare_lt): Pass new argument.
28823 2014-08-14 DJ Delorie <dj@redhat.com>
28825 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28826 variables to the accumulator.
28828 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28829 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28830 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28831 with far-far moves.
28833 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28834 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28835 (umulqihi3_virt): Likewise.
28836 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28837 (umulqihi3_real): Likewise.
28839 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28841 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28843 PR tree-optimization/62091
28844 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28845 function_entry_reached.
28846 (walk_aliased_vdefs): Clear it here.
28847 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28849 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28851 * ipa-utils.h (compare_virtual_tables): Declare.
28852 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28854 2014-08-14 Marek Polacek <polacek@redhat.com>
28857 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28858 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28860 2014-08-14 Tom de Vries <tom@codesourcery.com>
28862 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28864 2014-08-14 Tom de Vries <tom@codesourcery.com>
28866 PR rtl-optimization/62004
28867 PR rtl-optimization/62030
28868 * ifcvt.c (rtx_interchangeable_p): New function.
28869 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28870 * emit-rtl.h (mem_attrs_eq_p): Declare.
28872 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28874 * graphite-scop-detection.c:
28875 Add inclusion of cp-tree.h.
28876 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28877 in case they are pointers to object types
28879 2014-08-14 Richard Biener <rguenther@suse.de>
28881 * BASE-VER: Change to 5.0.0
28883 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28884 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28885 Anna Tikhonova <anna.tikhonova@intel.com>
28886 Ilya Tocar <ilya.tocar@intel.com>
28887 Andrey Turetskiy <andrey.turetskiy@intel.com>
28888 Ilya Verbin <ilya.verbin@intel.com>
28889 Kirill Yukhin <kirill.yukhin@intel.com>
28890 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28892 * config/i386/sse.md (define_mode_attr avx512): New.
28893 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28895 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28896 (define_mode_attr ssse3_avx2): Ditto.
28897 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28898 (define_mode_attr avx2_avx512bw): New.
28899 (define_mode_attr ssedoublemodelower): New.
28900 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28901 V32HI, V64QI modes.
28902 (define_mode_attr ssebytemode): Allow V8DI modes.
28903 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28904 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28905 (define_mode_attr ssePSmode2): New.
28906 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28907 V16HI, V32HI modes.
28908 (define_mode_attr dbpsadbwmode): New.
28909 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28910 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28911 (vi8_sse4_1_avx2_avx512): New.
28912 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28914 (define_mode_attr blendbits): Move before its immediate use.
28916 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28918 Anna Tikhonova <anna.tikhonova@intel.com>
28919 Ilya Tocar <ilya.tocar@intel.com>
28920 Andrey Turetskiy <andrey.turetskiy@intel.com>
28921 Ilya Verbin <ilya.verbin@intel.com>
28922 Kirill Yukhin <kirill.yukhin@intel.com>
28923 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28925 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28926 * config/i386/subst.md
28927 (define_mode_iterator SUBST_V): Update.
28928 (define_mode_iterator SUBST_A): Ditto.
28929 (define_subst_attr "mask_operand7"): New.
28930 (define_subst_attr "mask_operand10"): New.
28931 (define_subst_attr "mask_operand_arg34") : New.
28932 (define_subst_attr "mask_expand_op3"): New.
28933 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28934 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28935 (define_subst_attr "mask_avx512vl_condition"): New.
28936 (define_subst_attr "round_mask_operand4"): Ditto.
28937 (define_subst_attr "round_mask_scalar_op3"): Delete.
28938 (define_subst_attr "round_mask_op4"): New.
28939 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28941 (define_subst_attr "round_modev8sf_condition"): New.
28942 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28944 (define_subst_attr "round_saeonly_mask_operand4"): New.
28945 (define_subst_attr "round_saeonly_mask_op4"): New.
28946 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28947 V8DImode, V16SImode.
28948 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28949 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28950 (define_subst_attr "mask_expand4_args"): New.
28951 (define_subst "mask_expand4"): New.
28953 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28954 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28955 Anna Tikhonova <anna.tikhonova@intel.com>
28956 Ilya Tocar <ilya.tocar@intel.com>
28957 Andrey Turetskiy <andrey.turetskiy@intel.com>
28958 Ilya Verbin <ilya.verbin@intel.com>
28959 Kirill Yukhin <kirill.yukhin@intel.com>
28960 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28962 * config/i386/i386.md
28963 (define_attr "isa"): Add avx512bw,noavx512bw.
28964 (define_attr "enabled"): Ditto.
28965 (define_split): Add 32/64-bit mask logic.
28966 (define_insn "*k<logic>qi"): New.
28967 (define_insn "*k<logic>hi"): New.
28968 (define_insn "*anddi_1"): Add mask version.
28969 (define_insn "*andsi_1"): Ditto.
28970 (define_insn "*<code><mode>_1"): Ditto.
28971 (define_insn "*<code>hi_1"): Ditto.
28972 (define_insn "kxnor<mode>"): New.
28973 (define_insn "kunpcksi"): New.
28974 (define_insn "kunpckdi"): New.
28975 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28976 (define_insn "*one_cmplhi2_1"): Ditto.
28978 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28979 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28980 Anna Tikhonova <anna.tikhonova@intel.com>
28981 Ilya Tocar <ilya.tocar@intel.com>
28982 Andrey Turetskiy <andrey.turetskiy@intel.com>
28983 Ilya Verbin <ilya.verbin@intel.com>
28984 Kirill Yukhin <kirill.yukhin@intel.com>
28985 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28987 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28990 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28991 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28992 Anna Tikhonova <anna.tikhonova@intel.com>
28993 Ilya Tocar <ilya.tocar@intel.com>
28994 Andrey Turetskiy <andrey.turetskiy@intel.com>
28995 Ilya Verbin <ilya.verbin@intel.com>
28996 Kirill Yukhin <kirill.yukhin@intel.com>
28997 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28999 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
29001 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
29002 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
29003 xmm/ymm16+ when availble.
29004 * config/i386/i386.h
29005 (HARD_REGNO_NREGS): Add mask regs.
29006 (VALID_AVX512F_REG_MODE): Ditto.
29007 (VALID_AVX512F_REG_MODE) : Define.
29008 (VALID_MASK_AVX512BW_MODE): Ditto.
29009 (reg_class) (MASK_REG_P(X)): Define.
29010 * config/i386/i386.md: Do not split long moves with mask register,
29011 use kmovb if avx512bw is availible.
29012 (movdi_internal): Handle mask registers.
29014 2014-08-14 Richard Biener <rguenther@suse.de>
29016 PR tree-optimization/62081
29017 * tree-ssa-loop.c (pass_fix_loops): New pass.
29018 (pass_tree_loop::gate): Do not fixup loops here.
29019 * tree-pass.h (make_pass_fix_loops): Declare.
29020 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
29022 2014-08-14 Richard Biener <rguenther@suse.de>
29024 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
29025 (type_hash_canon): ... this and avoid 2nd lookup for the add.
29027 2014-08-14 Richard Biener <rguenther@suse.de>
29029 PR tree-optimization/62090
29030 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
29031 (fold_builtin_2): Do not fold sprintf.
29032 (fold_builtin_3): Likewise.
29033 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
29034 moved from builtins.c.
29035 (gimple_fold_builtin): Fold sprintf.
29037 2014-08-14 Richard Biener <rguenther@suse.de>
29039 PR rtl-optimization/62079
29040 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
29043 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
29045 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
29046 current_function_decl.
29048 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
29050 * cgraph.c (cgraph_node::function_symbol): Fix wrong
29051 cgraph_function_node to cgraph_node::function_symbol
29054 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
29056 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
29057 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
29059 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
29061 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
29064 2014-08-13 Roman Gareev <gareevroman@gmail.com>
29066 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
29069 2014-08-12 Jakub Jelinek <jakub@redhat.com>
29072 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
29073 any registers that are used in mem_insn.
29075 2014-08-12 Steve Ellcey <sellcey@mips.com>
29077 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
29079 2014-08-12 Steve Ellcey <sellcey@mips.com>
29081 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
29082 (MULTILIB_DIRNAMES): Ditto.
29083 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
29084 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
29085 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
29086 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
29087 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
29088 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
29090 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29093 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
29094 of __ARM_SIZEOF_WCHAR_T.
29096 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29099 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
29100 Remove unnecessary attributes.
29102 2014-08-12 Yury Gribov <y.gribov@samsung.com>
29104 * internal-fn.c (init_internal_fns): Fix off-by-one.
29106 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
29107 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29108 Anna Tikhonova <anna.tikhonova@intel.com>
29109 Ilya Tocar <ilya.tocar@intel.com>
29110 Andrey Turetskiy <andrey.turetskiy@intel.com>
29111 Ilya Verbin <ilya.verbin@intel.com>
29112 Kirill Yukhin <kirill.yukhin@intel.com>
29113 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29115 * config/i386/i386.c (standard_sse_constant_opcode): Use
29116 vpxord/vpternlog if avx512 is availible.
29118 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
29120 PR middle-end/62103
29121 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
29122 bitfields, that is when size doesn't match the size of type or the
29123 size of the constructor.
29125 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29127 * config/rs6000/constraints.md (wh constraint): New constraint,
29128 for FP registers if direct move is available.
29129 (wi constraint): New constraint, for VSX/FP registers that can
29130 handle 64-bit integers.
29131 (wj constraint): New constraint for VSX/FP registers that can
29132 handle 64-bit integers for direct moves.
29133 (wk constraint): New constraint for VSX/FP registers that can
29134 handle 64-bit doubles for direct moves.
29135 (wy constraint): Make documentation match implementation.
29137 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
29138 scalar_in_vmx_p field to simplify tests of whether SFmode or
29139 DFmode can go in the Altivec registers.
29140 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
29141 (rs6000_setup_reg_addr_masks): Likewise.
29142 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
29143 field, and wh/wi/wj/wk constraints.
29144 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
29145 the wh/wi/wj/wk constraints.
29146 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
29147 upper registers, prefer VSX registers unless the operation is a
29148 memory operation with REG+OFFSET addressing.
29150 * config/rs6000/vsx.md (VSr mode attribute): Add support for
29151 DImode. Change SFmode to use ww constraint instead of d to allow
29152 SF registers in the upper registers.
29155 (VSr5): Fix thinko in comment.
29156 (VSa): New mode attribute that is an alternative to wa, that
29157 returns the VSX register class that a mode can go in, but may not
29158 be the preferred register class.
29159 (VS_64dm): New mode attribute for appropriate register classes for
29160 referencing 64-bit elements of vectors for direct moves and normal
29162 (VS_64reg): Likewise.
29163 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
29164 register allocator to only registers the data type can handle.
29165 (vsx_le_perm_load_<mode>): Likewise.
29166 (vsx_le_perm_store_<mode>): Likewise.
29167 (vsx_xxpermdi2_le_<mode>): Likewise.
29168 (vsx_xxpermdi4_le_<mode>): Likewise.
29169 (vsx_lxvd2x2_le_<mode>): Likewise.
29170 (vsx_lxvd2x4_le_<mode>): Likewise.
29171 (vsx_stxvd2x2_le_<mode>): Likewise.
29172 (vsx_add<mode>3): Likewise.
29173 (vsx_sub<mode>3): Likewise.
29174 (vsx_mul<mode>3): Likewise.
29175 (vsx_div<mode>3): Likewise.
29176 (vsx_tdiv<mode>3_internal): Likewise.
29177 (vsx_fre<mode>2): Likewise.
29178 (vsx_neg<mode>2): Likewise.
29179 (vsx_abs<mode>2): Likewise.
29180 (vsx_nabs<mode>2): Likewise.
29181 (vsx_smax<mode>3): Likewise.
29182 (vsx_smin<mode>3): Likewise.
29183 (vsx_sqrt<mode>2): Likewise.
29184 (vsx_rsqrte<mode>2): Likewise.
29185 (vsx_tsqrt<mode>2_internal): Likewise.
29186 (vsx_fms<mode>4): Likewise.
29187 (vsx_nfma<mode>4): Likewise.
29188 (vsx_eq<mode>): Likewise.
29189 (vsx_gt<mode>): Likewise.
29190 (vsx_ge<mode>): Likewise.
29191 (vsx_eq<mode>_p): Likewise.
29192 (vsx_gt<mode>_p): Likewise.
29193 (vsx_ge<mode>_p): Likewise.
29194 (vsx_xxsel<mode>): Likewise.
29195 (vsx_xxsel<mode>_uns): Likewise.
29196 (vsx_copysign<mode>3): Likewise.
29197 (vsx_float<VSi><mode>2): Likewise.
29198 (vsx_floatuns<VSi><mode>2): Likewise.
29199 (vsx_fix_trunc<mode><VSi>2): Likewise.
29200 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
29201 (vsx_x<VSv>r<VSs>i): Likewise.
29202 (vsx_x<VSv>r<VSs>ic): Likewise.
29203 (vsx_btrunc<mode>2): Likewise.
29204 (vsx_b2trunc<mode>2): Likewise.
29205 (vsx_floor<mode>2): Likewise.
29206 (vsx_ceil<mode>2): Likewise.
29207 (vsx_<VS_spdp_insn>): Likewise.
29208 (vsx_xscvspdp): Likewise.
29209 (vsx_xvcvspuxds): Likewise.
29210 (vsx_float_fix_<mode>2): Likewise.
29211 (vsx_set_<mode>): Likewise.
29212 (vsx_extract_<mode>_internal1): Likewise.
29213 (vsx_extract_<mode>_internal2): Likewise.
29214 (vsx_extract_<mode>_load): Likewise.
29215 (vsx_extract_<mode>_store): Likewise.
29216 (vsx_splat_<mode>): Likewise.
29217 (vsx_xxspltw_<mode>): Likewise.
29218 (vsx_xxspltw_<mode>_direct): Likewise.
29219 (vsx_xxmrghw_<mode>): Likewise.
29220 (vsx_xxmrglw_<mode>): Likewise.
29221 (vsx_xxsldwi_<mode>): Likewise.
29222 (vsx_xscvdpspn): Tighten constraints to only use register classes
29224 (vsx_xscvspdpn): Likewise.
29225 (vsx_xscvdpspn_scalar): Likewise.
29227 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
29228 wj, and wk constraints.
29229 (GPR_REG_CLASS_P): New helper macro for register classes targeting
29230 general purpose registers.
29232 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
29234 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
29235 DImode instead of wm. Use wk constraint for direct move of DFmode
29237 (extendsidi2_lfiwax): Likewise.
29238 (lfiwax): Likewise.
29239 (lfiwzx): Likewise.
29240 (movdi_internal64): Likewise.
29242 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
29243 wk constraints. Make the wy constraint documentation match them
29246 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
29248 Replacement of isl_int by isl_val
29249 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
29250 (compute_bounds_for_param): use isl_val instead of isl_int
29251 (compute_bounds_for_loop): likewise
29252 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
29253 (build_linearized_memory_access): use isl_val instead of isl_int
29254 (pdr_stride_in_loop): likewise
29255 * graphite-optimize-isl.c:
29256 (getPrevectorMap): use isl_val instead of isl_int
29258 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
29259 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
29260 (extern the_isl_ctx): declare
29261 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
29262 (extract_affine_gmp): likewise
29264 (build_loop_iteration_domains): likewise
29265 (add_param_constraints): likewise
29267 2014-08-11 Richard Biener <rguenther@suse.de>
29269 PR tree-optimization/62075
29270 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
29271 handle uses in patterns.
29273 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29275 Anna Tikhonova <anna.tikhonova@intel.com>
29276 Ilya Tocar <ilya.tocar@intel.com>
29277 Andrey Turetskiy <andrey.turetskiy@intel.com>
29278 Ilya Verbin <ilya.verbin@intel.com>
29279 Kirill Yukhin <kirill.yukhin@intel.com>
29280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29282 * common/config/i386/i386-common.c
29283 (OPTION_MASK_ISA_AVX512VL_SET): Define.
29284 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
29285 (ix86_handle_option): Handle OPT_mavx512vl.
29286 * config/i386/cpuid.h (bit_AVX512VL): Define.
29287 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
29288 set -mavx512vl accordingly.
29289 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29290 OPTION_MASK_ISA_AVX512VL.
29291 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
29292 (ix86_option_override_internal): Define PTA_AVX512VL, handle
29293 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
29294 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
29295 * config/i386/i386.h (TARGET_AVX512VL): Define.
29296 (TARGET_AVX512VL_P(x)): Ditto.
29297 * config/i386/i386.opt: Add mavx512vl.
29299 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29301 PR tree-optimization/62073
29302 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29305 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29306 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29307 Anna Tikhonova <anna.tikhonova@intel.com>
29308 Ilya Tocar <ilya.tocar@intel.com>
29309 Andrey Turetskiy <andrey.turetskiy@intel.com>
29310 Ilya Verbin <ilya.verbin@intel.com>
29311 Kirill Yukhin <kirill.yukhin@intel.com>
29312 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29314 * common/config/i386/i386-common.c
29315 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29316 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29317 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29318 (ix86_handle_option): Handle OPT_mavx512bw.
29319 * config/i386/cpuid.h (bit_AVX512BW): Define.
29320 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29321 set -mavx512bw accordingly.
29322 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29323 OPTION_MASK_ISA_AVX512BW.
29324 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29325 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29326 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29327 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29328 * config/i386/i386.h (TARGET_AVX512BW): Define.
29329 (TARGET_AVX512BW_P(x)): Ditto.
29330 * config/i386/i386.opt: Add mavx512bw.
29332 2014-08-11 Richard Biener <rguenther@suse.de>
29334 PR tree-optimization/62070
29335 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29336 Remove SSA checking.
29338 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29340 * asan.c (asan_check_flags): New enum.
29341 (build_check_stmt_with_calls): Removed function.
29342 (build_check_stmt): Split inlining logic to
29343 asan_expand_check_ifn.
29344 (instrument_derefs): Rename parameter.
29345 (instrument_mem_region_access): Rename parameter.
29346 (instrument_strlen_call): Likewise.
29347 (asan_expand_check_ifn): New function.
29348 (asan_instrument): Remove old code.
29349 (pass_sanopt::execute): Change handling of
29350 asan-instrumentation-with-call-threshold.
29351 (asan_clear_shadow): Fix formatting.
29352 (asan_function_start): Likewise.
29353 (asan_emit_stack_protection): Likewise.
29354 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29355 Update description.
29356 * internal-fn.c (expand_ASAN_CHECK): New function.
29357 * internal-fn.def (ASAN_CHECK): New internal function.
29358 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29359 Update description.
29360 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29361 * tree.c: Small comment fix.
29363 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29365 * gimple.c (gimple_call_fnspec): Support internal functions.
29366 (gimple_call_return_flags): Use const.
29367 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29368 * internal-fn.def: Add fnspec information.
29369 * internal-fn.h (internal_fn_fnspec): New function.
29370 (init_internal_fns): Declare new function.
29371 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29372 (init_internal_fns): New function.
29373 * tree-core.h: Update macro call.
29374 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29376 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29378 * lto-streamer.h (struct output_block::symbol): Change from
29379 struct symtab_node to plain symtab_node.
29380 (referenced_from_this_partition_p): Change first parameter
29381 from struct symtab_node to plain symtab_node.
29383 2014-08-10 Marek Polacek <polacek@redhat.com>
29386 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29388 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29390 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29391 DECL correctly; do not give up on types in static storage.
29393 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29395 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29397 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29399 * graphite-isl-ast-to-gimple.c:
29400 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29402 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29404 2014-08-08 Guozhi Wei <carrot@google.com>
29406 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29408 2014-08-08 Cary Coutant <ccoutant@google.com>
29410 * dwarf2out.c (get_skeleton_type_unit): Remove.
29411 (output_skeleton_debug_sections): Remove skeleton type units.
29412 (output_comdat_type_unit): Likewise.
29413 (dwarf2out_finish): Likewise.
29415 2014-08-07 Yi Yang <ahyangyi@google.com>
29417 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29419 2014-08-08 Richard Biener <rguenther@suse.de>
29421 * lto-streamer.h (struct lto_input_block): Make it a class
29422 with a constructor.
29423 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29424 (struct lto_function_header, struct lto_simple_header,
29425 struct lto_simple_header_with_strings,
29426 struct lto_decl_header, struct lto_function_header): Make
29427 a simple inheritance hieararchy. Remove unused fields.
29428 (struct lto_asm_header): Remove.
29429 * lto-streamer-out.c (produce_asm): Adjust.
29430 (lto_output_toplevel_asms): Likewise.
29431 (produce_asm_for_decls): Likewise.
29432 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29433 * data-streamer-in.c (string_for_index): Likewise.
29434 * ipa-inline-analysis.c (inline_read_section): Likewise.
29435 * ipa-prop.c (ipa_prop_read_section): Likewise.
29436 (read_replacements_section): Likewise.
29437 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29438 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29439 (lto_destroy_simple_input_block): Likewise.
29440 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29441 (lto_input_toplevel_asms): Likewise.
29443 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29445 Anna Tikhonova <anna.tikhonova@intel.com>
29446 Ilya Tocar <ilya.tocar@intel.com>
29447 Andrey Turetskiy <andrey.turetskiy@intel.com>
29448 Ilya Verbin <ilya.verbin@intel.com>
29449 Kirill Yukhin <kirill.yukhin@intel.com>
29450 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29452 * common/config/i386/i386-common.c
29453 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29454 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29455 (ix86_handle_option): Handle OPT_mavx512dq.
29456 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29457 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29458 set -mavx512dq accordingly.
29459 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29460 OPTION_MASK_ISA_AVX512DQ.
29461 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29462 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29463 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29464 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29465 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29466 (TARGET_AVX512DQ_P(x)): Ditto.
29467 * config/i386/i386.opt: Add mavx512dq.
29469 2014-08-08 Richard Biener <rguenther@suse.de>
29471 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29472 target_percent, target_percent_s): Export.
29473 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29474 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29475 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29476 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29477 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29478 Move to gimple-fold.c.
29479 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29481 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29482 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29483 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29484 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29485 (rewrite_call_expr_array): Remove.
29486 (fold_builtin_sprintf_chk): Likewise.
29487 (fold_builtin_snprintf_chk): Likewise.
29488 (fold_builtin_varargs): Remove handling of sprintf_chk,
29489 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29490 (gimple_fold_builtin_sprintf_chk): Remove.
29491 (gimple_fold_builtin_snprintf_chk): Likewise.
29492 (gimple_fold_builtin_varargs): Likewise.
29493 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29494 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29495 * gimple.c (gimple_seq_add_seq_without_update): New function.
29496 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29497 * gimple-fold.c: Include output.h.
29498 (gsi_replace_with_seq_vops): New function, split out from ...
29499 (gimplify_and_update_call_from_tree): ... here.
29500 (replace_call_with_value): New function.
29501 (replace_call_with_call_and_fold): Likewise.
29502 (var_decl_component_p): Moved from builtins.c.
29503 (gimple_fold_builtin_memory_op): Moved from builtins.c
29504 fold_builtin_memory_op and rewritten to GIMPLE.
29505 (gimple_fold_builtin_memset): Likewise.
29506 (gimple_fold_builtin_strcpy): Likewise.
29507 (gimple_fold_builtin_strncpy): Likewise.
29508 (gimple_fold_builtin_strcat): Likewise.
29509 (gimple_fold_builtin_fputs): Likewise.
29510 (gimple_fold_builtin_memory_chk): Likewise.
29511 (gimple_fold_builtin_stxcpy_chk): Likewise.
29512 (gimple_fold_builtin_stxncpy_chk): Likewise.
29513 (gimple_fold_builtin_snprintf_chk): Likewise.
29514 (gimple_fold_builtin_sprintf_chk): Likewise.
29515 (gimple_fold_builtin_strlen): New function.
29516 (gimple_fold_builtin_with_strlen): New function split out from
29517 gimple_fold_builtin.
29518 (gimple_fold_builtin): Change signature and handle
29519 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29520 here. Call gimple_fold_builtin_with_strlen.
29521 (gimple_fold_call): Adjust.
29523 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29525 * calls.c (precompute_arguments): Check
29526 promoted_for_signed_and_unsigned_p and set the promoted mode.
29527 (promoted_for_signed_and_unsigned_p): New function.
29528 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29529 and set the promoted mode.
29530 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29531 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29532 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29535 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29537 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29538 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29539 (expand_call): Likewise.
29540 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29541 to get promoted mode.
29542 * combine.c (record_promoted_value): Skip > 0 comparison with
29543 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29544 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29545 of SUBREG_PROMOTED_UNSIGNED_P.
29546 (convert_modes): Likewise.
29547 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29548 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29549 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29550 SUBREG_PROMOTED_UNSIGNED_SET.
29551 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29552 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29553 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29554 SUBREG_PROMOTED_SET.
29555 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29556 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29557 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29558 of SUBREG_PROMOTED_UNSIGNED_P.
29559 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29560 (SUBREG_PROMOTED_SET): New define.
29561 (SUBREG_PROMOTED_GET): Likewise.
29562 (SUBREG_PROMOTED_SIGN): Likewise.
29563 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29564 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29565 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29566 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29567 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29568 (nonzero_bits1): Skip > 0 comparison with the results as
29569 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29570 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29571 of !SUBREG_PROMOTED_UNSIGNED_P.
29572 * simplify-rtx.c (simplify_unary_operation_1): Use new
29573 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29574 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29575 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29576 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29578 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29580 * ipa-devirt.c: Include gimple-pretty-print.h
29581 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29583 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29584 (get_polymorphic_call_info): Fix return value
29585 (type_change_info): New sturcture based on ipa-prop
29587 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29588 based on ipa-prop variant.
29589 (extr_type_from_vtbl_ptr_store): New function
29590 based on ipa-prop variant.
29591 (record_known_type): New function.
29592 (check_stmt_for_type_change): New function.
29593 (get_dynamic_type): New function.
29594 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29595 * tree-ssa-pre.c: ipa-utils.h
29596 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29597 machinery; sanity check with ipa-prop devirtualization.
29598 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29601 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29603 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29604 * alias.c, cfgexpand.c, cgraphbuild.c,
29605 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29606 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29607 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29608 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29609 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29610 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29611 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29612 dse.c, except.c, gengtype.c, gimple-expr.c,
29613 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29614 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29615 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29616 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29617 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29618 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29620 * pointer-set.c: Remove file.
29621 * pointer-set.h: Remove file.
29623 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29625 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29626 * config/arm/types.md (f_sels, f_seld): Delete.
29628 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29630 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29631 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29632 (aarch64_movdi_<mode>high): Likewise.
29633 (aarch64_mov<mode>high_di): Likewise.
29634 (aarch64_movdi_<mode>low): Likewise.
29635 (aarch64_mov<mode>low_di): Likewise.
29636 (aarch64_movtilow_tilow): Likewise.
29637 Add comment explaining usage of fp,simd attributes and of
29638 TARGET_FLOAT and TARGET_SIMD.
29640 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29641 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29643 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29644 Use MOVN when one of the half-words is 0xffff.
29646 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29648 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29650 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29652 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29653 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29654 (rfs_str): String corresponding to RFS_* constants.
29655 (rank_for_schedule_stats_t): New typedef.
29656 (rank_for_schedule_stats): New static variable.
29657 (rfs_result): New static function.
29658 (rank_for_schedule): Track statistics for deciding heuristics.
29659 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29661 (ready_sort): Use them for debug printouts.
29662 (schedule_block): Init statistics state. Print statistics on
29663 rank_for_schedule decisions.
29665 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29667 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29669 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29671 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29674 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29676 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29677 function to not conflict.
29678 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29679 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29680 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29681 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29682 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29685 2014-08-07 Marek Polacek <polacek@redhat.com>
29687 * fold-const.c (fold_binary_loc): Add folding of
29688 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29690 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29692 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29693 instead of type size.
29694 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29696 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29698 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29699 (*thumb1_movqi_insn): Likewise.
29700 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29702 2014-08-07 Tom de Vries <tom@codesourcery.com>
29704 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29705 (glibc_2_11_or_earlier): Remove effective-target keywords.
29707 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29709 * config/arm/arm.c (bdesc_2arg): Fix typo.
29710 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29712 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29714 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29716 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29719 * haifa-sched.c (advance_one_cycle): Fix dump.
29720 (schedule_block): Don't advance cycle if we are already at the
29721 beginning of the cycle.
29723 2014-08-06 Martin Jambor <mjambor@suse.cz>
29726 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29728 2014-08-06 Richard Biener <rguenther@suse.de>
29731 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29733 (lto_input_tree): Pop SCCs here.
29735 2014-08-06 Richard Biener <rguenther@suse.de>
29737 PR tree-optimization/61320
29738 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29739 handle misaligned loads.
29741 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29743 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29744 (aarch64_expand_vec_perm_const): Check for dup before zip.
29746 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29748 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29749 CONST_INT_P instead of GET_CODE and compare.
29750 (aarch64_select_cc_mode): Likewise.
29751 (aarch64_print_operand): Likewise.
29752 (aarch64_rtx_costs): Likewise.
29753 (aarch64_simd_valid_immediate): Likewise.
29754 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29755 (aarch64_simd_emit_pair_result_insn): Likewise.
29757 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29759 * gdbhooks.py (find_gcc_source_dir): New helper function.
29760 (class PassNames): New class, locating and parsing passes.def.
29761 (class BreakOnPass): New command "break-on-pass".
29763 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29765 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29768 2014-08-05 Richard Biener <rguenther@suse.de>
29770 PR rtl-optimization/61672
29771 * emit-rtl.h (mem_attrs_eq_p): Declare.
29772 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29773 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29774 * cfgcleanup.c (merge_memattrs): Likewise.
29775 Include emit-rtl.h.
29777 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29779 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29780 rather than singleton vectors.
29781 (vqdmlsls_lane_s32): Likewise.
29783 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29785 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29786 Use VSDQ_HSI mode iterator.
29787 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29788 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29789 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29790 Use BUILTIN_VDQHS macro.
29791 (sqrdmulh_laneq): Likewise.
29792 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29793 (vqdmlals_laneq_s32): Likewise.
29794 (vqdmlslh_laneq_s16): Likewise.
29795 (vqdmlsls_laneq_s32): Likewise.
29796 (vqdmulhh_laneq_s16): Likewise.
29797 (vqdmulhs_laneq_s32): Likewise.
29798 (vqrdmulhh_laneq_s16): Likewise.
29799 (vqrdmulhs_laneq_s32): Likewise.
29801 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29803 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29804 (vmuld_laneq_f64): Likewise.
29805 (vmuls_laneq_f32): Likewise.
29806 (vmul_n_f64): Likewise.
29807 (vmuld_lane_f64): Reimplement in C.
29808 (vmuls_lane_f32): Likewise.
29810 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29812 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29814 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29816 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29818 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29819 (rbitsi2): Likewise.
29820 (*arm_rev): Set predicable and predicable_short_it attributes.
29822 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29824 * convert.c (convert_to_integer): Guard transformation to lrint by
29827 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29829 * config/aarch64/aarch64-builtins.c
29830 (aarch64_simd_builtin_type_mode): Delete.
29831 (v8qi_UP): Remap to V8QImode.
29832 (v4hi_UP): Remap to V4HImode.
29833 (v2si_UP): Remap to V2SImode.
29834 (v2sf_UP): Remap to V2SFmode.
29835 (v1df_UP): Remap to V1DFmode.
29836 (di_UP): Remap to DImode.
29837 (df_UP): Remap to DFmode.
29838 (v16qi_UP):V16QImode.
29839 (v8hi_UP): Remap to V8HImode.
29840 (v4si_UP): Remap to V4SImode.
29841 (v4sf_UP): Remap to V4SFmode.
29842 (v2di_UP): Remap to V2DImode.
29843 (v2df_UP): Remap to V2DFmode.
29844 (ti_UP): Remap to TImode.
29845 (ei_UP): Remap to EImode.
29846 (oi_UP): Remap to OImode.
29847 (ci_UP): Map to CImode.
29848 (xi_UP): Remap to XImode.
29849 (si_UP): Remap to SImode.
29850 (sf_UP): Remap to SFmode.
29851 (hi_UP): Remap to HImode.
29852 (qi_UP): Remap to QImode.
29853 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29854 (VAR1): Build builtin name.
29855 (aarch64_init_simd_builtins): Remove dead code.
29857 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29859 * graphite-isl-ast-to-gimple.c:
29860 (set_options): New function.
29861 (scop_to_isl_ast): Add calling of set_options.
29863 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29865 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29866 (analyze_iv_to_split_insn): Don't initialize them.
29867 (get_ivts_expr): Removed.
29868 (allocate_basic_variable, insert_base_initialization): Use
29869 SET_SRC instead of *get_ivts_expr.
29870 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29872 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29874 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29875 (translate_isl_ast_for_loop): Add checking of the
29876 flag_loop_parallelize_all.
29877 (ast_build_before_for): New function.
29878 (scop_to_isl_ast): Add checking of the
29879 flag_loop_parallelize_all.
29880 * graphite-dependences.c: Move the defenition of the
29881 scop_get_dependences from graphite-optimize-isl.c to this file.
29882 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29883 (carries_deps): Add checking of the x's value.
29884 * graphite-optimize-isl.c: Move the defenition of the
29885 scop_get_dependences to graphite-dependences.c.
29886 * graphite-poly.h: Add declarations of scop_get_dependences
29889 2014-08-04 Rohit <rohitarulraj@freescale.com>
29892 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29894 (alt_reg_names): Likewise.
29895 (rs6000_dwarf_register_span): For SPE high registers, replace
29896 dwarf register numbers with GCC hard register numbers.
29897 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29898 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29899 register number for the corresponding GCC hard register number.
29900 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29901 newly added GCC hard register numbers for SPE high registers.
29902 (DWARF_FRAME_REGISTERS): Likewise.
29903 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29904 (DWARF_FRAME_REGNUM): Likewise.
29905 (FIXED_REGISTERS): Likewise.
29906 (CALL_USED_REGISTERS): Likewise.
29907 (CALL_REALLY_USED_REGISTERS): Likewise.
29908 (REG_ALLOC_ORDER): Likewise.
29909 (enum reg_class): Likewise.
29910 (REG_CLASS_NAMES): Likewise.
29911 (REG_CLASS_CONTENTS): Likewise.
29912 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29914 2014-08-04 Richard Biener <rguenther@suse.de>
29916 * gimple-fold.h (gimple_fold_builtin): Remove.
29917 * gimple-fold.c (gimple_fold_builtin): Make static.
29918 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29919 fold_stmt, not gimple_fold_builtin.
29921 2014-08-04 Martin Liska <mliska@suse.cz>
29923 * cgraph.h (csi_end_p): Removed.
29924 (csi_next): Likewise.
29925 (csi_node): Likewise.
29926 (csi_start): Likewise.
29927 (cgraph_node_in_set_p): Likewise.
29928 (cgraph_node_set_size): Likewise.
29929 (vsi_end_p): Likewise.
29930 (vsi_next): Likewise.
29931 (vsi_node): Likewise.
29932 (vsi_start): Likewise.
29933 (varpool_node_set_size): Likewise.
29934 (cgraph_node_set_nonempty_p): Likewise.
29935 (varpool_node_set_nonempty_p): Likewise.
29936 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29938 * ipa-inline-transform.c: Likewise.
29939 * ipa-utils.c (cgraph_node_set_new): Removed.
29940 (cgraph_node_set_add): Likewise.
29941 (cgraph_node_set_remove): Likewise.
29942 (cgraph_node_set_find): Likewise.
29943 (dump_cgraph_node_set): Likewise.
29944 (debug_cgraph_node_set): Likewise.
29945 (free_cgraph_node_set): Likewise.
29946 (varpool_node_set_new): Likewise.
29947 (varpool_node_set_add): Likewise.
29948 (varpool_node_set_remove): Likewise.
29949 (varpool_node_set_find): Likewise.
29950 (dump_varpool_node_set): Likewise.
29951 (free_varpool_node_set): Likewise.
29952 (debug_varpool_node_set): Likewise.
29953 * tree-emutls.c (struct tls_var_data):
29954 (emutls_index): Removed.
29955 (emutls_decl): Likewise.
29956 (gen_emutls_addr): Function implementation uses newly added
29957 hash_map<varpool_node *, tls_var_data>.
29958 (clear_access_vars): Likewise.
29959 (create_emultls_var): Likewise.
29960 (ipa_lower_emutls): Likewise.
29961 (reset_access): New function.
29963 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29965 * config/i386/i386.c (ix86_option_override_internal): Add
29966 PTA_RDRND and PTA_MOVBE for bdver4.
29968 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29969 James Greenhalgh <james.greenhalgh@arm.com>
29971 * doc/md.texi (clrsb): Document.
29972 (clz): Change reference to x into operand 1.
29974 (popcount): Likewise.
29976 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29979 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29980 move to subtarget in serial version if result is ignored.
29982 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29983 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29985 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29986 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29987 (sched_analyze_insn): Update use of try_group_insn to
29988 sched_macro_fuse_insns.
29989 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29990 arguments that are not conditional jumps.
29992 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29994 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29995 extended family information. Handle BTVER2 cpu with cpuid family value.
29997 2014-08-04 Tom de Vries <tom@codesourcery.com>
29999 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
30000 (glibc_2_11_or_earlier): Document effective-target keywords.
30002 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
30004 * ipa-devirt.c (odr_type_warn_count): Add type.
30005 (possible_polymorphic_call_targets): Set it.
30006 (ipa_devirt): Use it.
30008 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
30010 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
30012 * ipa-devirt.c: Include hash-map.h
30013 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
30014 (clear_speculation): Break out of ...
30015 (get_class_context): ... here; speed up handling obviously useless
30017 (odr_type_warn_count, decl_warn_count): New structures.
30018 (final_warning_record): New structure.
30019 (final_warning_records): New static variable.
30020 (possible_polymorphic_call_targets): Cleanup handling of
30021 speculative info; do not build speculation when user do not care;
30022 record info about warnings when asked for.
30023 (add_decl_warning): New function.
30024 (type_warning_cmp): New function.
30025 (decl_warning_cmp): New function.
30026 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
30027 (gate): Enable pass when warnings are requested.
30028 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
30031 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
30033 * hash-map.h (default_hashmap_traits::mark_key_deleted):
30035 (hash_map::remove): New method.
30036 (hash_map::traverse): New method.
30037 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
30038 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
30039 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
30040 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
30041 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
30042 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
30045 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
30047 * hash-set.h: new File.
30048 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
30049 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
30050 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
30051 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
30052 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
30053 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
30054 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
30055 varpool.c: Use hash_set instead of pointer_set.
30057 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
30059 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
30061 2014-08-01 Jiong Wang <jiong.wang@arm.com>
30063 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
30064 for frame access when strict_p is false.
30066 2014-08-01 Renlin Li <renlin.li@arm.com>
30067 2014-08-01 Jiong Wang <jiong.wang@arm.com>
30069 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
30070 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
30071 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
30073 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
30075 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
30076 aarch64_mem_pair_offset.
30078 2014-08-01 Jiong Wang <jiong.wang@arm.com>
30080 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
30082 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
30083 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
30085 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
30087 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
30089 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
30091 PR regression/61510
30092 * cgraphunit.c (analyze_functions): Use get_create rather than get
30093 for decls which are clones of abstract functions.
30095 2014-08-01 Martin Liska <mliska@suse.cz>
30097 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
30098 * ipa-prop.h (count_formal_params): Global function created from static.
30099 * ipa-prop.c (count_formal_params): Likewise.
30100 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
30101 profiles for semantically equivalent functions.
30102 * passes.c (do_per_function): If we load body of a function
30103 during WPA, this condition should behave same.
30104 * varpool.c (ctor_for_folding): More tolerant assert for variable
30105 aliases created during WPA.
30107 2014-08-01 Martin Liska <mliska@suse.cz>
30109 * doc/invoke.texi (Options That Control Optimization): Documentation
30110 for -foptimize-strlen introduced. Optimization levels default options
30113 2014-08-01 Jakub Jelinek <jakub@redhat.com>
30115 * opts.c (common_handle_option): Handle -fsanitize=alignment.
30116 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
30117 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
30119 * stor-layout.h (min_align_of_type): New prototype.
30120 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
30121 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
30123 * ubsan.c: Include builtins.h.
30124 (ubsan_expand_bounds_ifn): Change return type to bool,
30125 always return true.
30126 (ubsan_expand_null_ifn): Change return type to bool, change
30127 argument to gimple_stmt_iterator *. Handle both null and alignment
30128 sanitization, take type from ckind argument's type rather than
30130 (instrument_member_call): Removed.
30131 (instrument_mem_ref): Remove t argument, add mem and base arguments.
30132 Handle both null and alignment sanitization, don't say whole
30133 struct access is member access. Build 3 argument IFN_UBSAN_NULL
30134 call instead of 2 argument.
30135 (instrument_null): Adjust instrument_mem_ref caller. Don't
30136 instrument calls here.
30137 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
30138 like SANITIZE_NULL.
30139 * stor-layout.c (min_align_of_type): New function.
30140 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
30141 Or it into SANITIZE_UNDEFINED.
30142 * doc/invoke.texi (-fsanitize=alignment): Document.
30144 2014-07-31 Andi Kleen <ak@linux.intel.com>
30146 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
30148 2014-07-31 Andi Kleen <ak@linux.intel.com>
30150 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
30152 (vn_reference_compute_hash): Dito.
30153 (vn_nary_op_compute_hash): Dito.
30154 (vn_phi_compute_hash): Dito.
30155 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
30157 2014-07-31 Andi Kleen <ak@linux.intel.com>
30159 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
30160 Rename to inchash:add_expr_commutative. Convert to inchash.
30161 (iterative_hash_hashable_expr): Rename to
30162 inchash:add_hashable_expr. Convert to inchash.
30163 (avail_expr_hash): Dito.
30165 2014-07-31 Andi Kleen <ak@linux.intel.com>
30167 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
30168 Convert to inchash.
30170 2014-07-31 Andi Kleen <ak@linux.intel.com>
30172 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
30174 2014-07-31 Andi Kleen <ak@linux.intel.com>
30176 * Makefile.in (OBJS): Add rtlhash.o
30177 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
30178 (loc_checksum): Dito.
30179 (loc_checksum_ordered): Dito.
30180 (hash_loc_operands): Dito.
30182 (hash_loc_list): Dito.
30183 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
30184 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
30185 * rtlhash.c: New file.
30186 * rtlhash.h: New file.
30188 2014-07-31 Andi Kleen <ak@linux.intel.com>
30190 * inchash.h (inchash): Change inchash class to namespace.
30191 (class hash): ... Rename from inchash.
30192 (add_object): Move from macro to class template.
30193 * lto-streamer-out.c (hash_tree): Change inchash
30195 * tree.c (build_type_attribute_qual_variant): Dito.
30196 (type_hash_list): Dito.
30197 (attribute_hash_list): Dito.
30198 (iterative_hstate_expr): Rename to inchash::add_expr
30199 (build_range_type_1): Change inchash to inchash::hash
30200 and use hash::add_expr.
30201 (build_array_type_1): Dito.
30202 (build_function_type): Dito
30203 (build_method_type_directly): Dito.
30204 (build_offset_type): Dito.
30205 (build_complex_type): Dito.
30206 (make_vector_type): Dito.
30207 * tree.h (iterative_hash_expr): Dito.
30209 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
30211 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
30213 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30215 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
30216 correct alphabetical position.
30217 (vpaddd_f64): Rewrite using builtins.
30218 (vpaddd_s64): Move to correct alphabetical position.
30221 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
30224 * config/sh/sh.c (sh_legitimate_address_p,
30225 sh_legitimize_reload_address): Handle reg+reg address modes when
30226 ALLOW_INDEXED_ADDRESS is false.
30227 * config/sh/predicates.md (general_movsrc_operand,
30228 general_movdst_operand): Likewise.
30230 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30232 * config/aarch64/aarch64-builtins.c
30233 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
30236 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30238 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
30239 the generated mask based on BYTES_BIG_ENDIAN.
30240 (aarch64_simd_check_vect_par_cnst_half): New.
30241 * config/aarch64/aarch64-protos.h
30242 (aarch64_simd_check_vect_par_cnst_half): New.
30243 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
30244 the check out to aarch64_simd_check_vect_par_cnst_half.
30245 (vect_par_cnst_lo_half): Likewise.
30246 * config/aarch64/aarch64-simd.md
30247 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
30248 (move_hi_quad_<mode>): Always generate a low mask.
30250 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30252 * doc/invoke.texi (AVR Options): Add documentation about
30253 __AVR_DEVICE_NAME__ built-in macro.
30255 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
30258 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
30259 constraints are satisfied.
30260 (<shift>di3_neon): Likewise.
30262 2014-07-31 Richard Biener <rguenther@suse.de>
30264 PR tree-optimization/61964
30265 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
30266 by structural equality.
30268 2014-07-31 Yury Gribov <y.gribov@samsung.com>
30270 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
30271 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
30272 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
30274 * gcc.c (sanitize_spec_function): Support new option.
30275 (SANITIZER_SPEC): Remove now redundant check.
30276 * opts.c (common_handle_option): Support new option.
30277 (finish_options): Check for incompatibilities.
30278 * toplev.c (process_options): Split userspace-specific checks.
30280 2014-07-31 Richard Biener <rguenther@suse.de>
30282 * lto-streamer.h (struct output_block): Remove global.
30283 (struct data_in): Remove labels, num_named_labels and
30284 num_unnamed_labels.
30285 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
30286 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
30288 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
30291 * common.opt (-Wreturn-local-addr): Moved from c.opt.
30292 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
30293 (isolate_path): New argument to avoid inserting a trap.
30294 (find_implicit_erroneous_behaviour): Handle returning the address
30295 of a local variable.
30296 (find_explicit_erroneous_behaviour): Likewise.
30298 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30301 * toplev.c (init_random_seed): Move piece of code never called to
30303 (set_random_seed): see above.
30305 2014-07-31 Tom de Vries <tom@codesourcery.com>
30307 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30309 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30311 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30312 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30314 2014-07-31 Richard Biener <rguenther@suse.de>
30316 * data-streamer.h (streamer_write_data_stream): Declare here,
30318 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30319 * lto-cgraph.c (lto_output_node): Adjust.
30320 (lto_output_varpool_node): Likewise.
30321 * data-streamer-out.c (streamer_string_index): Likewise.
30322 (streamer_write_data_stream, lto_append_block): Move from ...
30323 * lto-section-out.c (lto_output_data_stream,
30324 lto_append_block): ... here.
30326 2014-07-30 Mike Stump <mikestump@comcast.net>
30328 * configure.ac: Also check for popen.
30329 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30330 * configure: Regenerate.
30331 * config.in: Regenerate.
30333 2014-07-30 Martin Jambor <mjambor@suse.cz>
30335 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30336 parameter to gimple.
30338 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30340 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30341 address as second parameter to __tpf_eh_return routine.
30343 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30345 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30348 2014-07-30 Tom Tromey <tromey@redhat.com>
30351 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30352 * doc/extend.texi (Type Attributes): Document designated_init
30355 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30357 * graphite-isl-ast-to-gimple.c:
30358 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30359 (gcc_expression_from_isl_expression): Pass type to
30360 gcc_expression_from_isl_ast_expr_id.
30362 2014-07-30 Richard Biener <rguenther@suse.de>
30364 * lto-streamer.h (lto_write_data): New function.
30365 * langhooks.c (lhd_append_data): Do not free block.
30366 * lto-section-out.c (lto_write_data): New function writing
30367 raw data to the current section.
30368 (lto_write_stream): Adjust for langhook semantic change.
30369 (lto_destroy_simple_output_block): Write header directly.
30370 * lto-opts.c (lto_write_options): Write options directly.
30371 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30372 (lto_output_toplevel_asms): Likewise.
30373 (copy_function_or_variable): Copy data directly.
30374 (write_global_references): Output index table directly.
30375 (lto_output_decl_state_refs): Likewise.
30376 (write_symbol): Write data directly.
30377 (produce_symtab): Adjust.
30378 (produce_asm_for_decls): Output header and refs directly.
30380 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30382 * ipa-devirt.c (polymorphic_call_target_d): Rename
30383 nonconstruction_targets to speculative_targets
30384 (get_class_context): Fix handling of contextes without outer type;
30385 avoid matching non-polymorphic types in LTO.
30386 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30387 parameter to speculative_targetsp; handle speculation.
30388 (dump_possible_polymorphic_call_targets): Update dumping.
30390 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30392 * common.opt (Wodr): Enable by default.
30394 2014-07-29 Olivier Hainque <hainque@adacore.com>
30396 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30398 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30401 * gengtype.c (strtoken): New function.
30402 (create_user_defined_type): Replace strtok with strtoken.
30404 2014-07-29 Nathan Sidwell <nathan@acm.org>
30406 * gcov-io.c (gcov_var): Make hidden.
30407 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30408 (gcov_do_dump): Declare.
30409 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30411 2014-07-29 Martin Jambor <mjambor@suse.cz>
30413 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30414 parameter to gimple.
30415 (sra_modify_assign): Likewise.
30417 2014-07-29 Richard Biener <rguenther@suse.de>
30419 PR middle-end/52478
30420 * expr.c (expand_expr_real_2): Revert last change.
30422 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30424 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30425 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30426 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30428 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30429 (contains_type_p): Forward declare.
30430 (polymorphic_call_target_hasher::hash): Hash speculative info.
30431 (polymorphic_call_target_hasher::equal): Compare speculative info.
30432 (get_class_context): Handle speuclation.
30433 (contains_type_p): Update.
30434 (get_polymorphic_call_info_for_decl): Update.
30435 (walk_ssa_copies): Break out from ...
30436 (get_polymorphic_call_info): ... here; set speculative context
30438 * ipa-prop.c (ipa_write_indirect_edge_info,
30439 ipa_read_indirect_edge_info): Stream speculative context.
30440 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30441 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30442 SPECULATIVE_MAYBE_DERIVED_TYPE).
30443 (possible_polymorphic_call_targets overriders): Update.
30444 (dump_possible_polymorphic_call_targets overriders): Update.
30445 (dump_possible_polymorphic_call_target_p overriders): Update.
30447 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30449 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30450 ipa-devirt path; fix thinko there.
30452 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30454 * config/i386/i386.c (ix86_return_in_memory): Replace one
30455 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30457 2014-07-28 Marek Polacek <polacek@redhat.com>
30459 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30461 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30463 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30464 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30465 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30466 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30467 (USE_LD_AS_NEEDED): Likewise.
30468 (ASM_APP_ON): Likewise.
30469 (ASM_APP_OFF): Likewise.
30470 (TARGET_POSIX_IO): Likewise.
30471 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30472 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30473 (USE_LD_AS_NEEDED): Likewise.
30474 (ASM_APP_ON): Likewise.
30475 (ASM_APP_OFF): Likewise.
30476 (TARGET_POSIX_IO): Likewise.
30478 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30480 PR middle-end/61734
30481 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30482 operators other than the equality operators.
30484 2014-07-28 Richard Biener <rguenther@suse.de>
30486 PR middle-end/52478
30487 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30488 sure to register SImode ones, not only >= word_mode ones.
30489 * expr.c (expand_expr_real_2): When expanding -ftrapv
30490 binops do not use OPTAB_LIB_WIDEN.
30492 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30494 PR middle-end/61919
30495 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30496 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30497 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30498 inserting them in the insn stream.
30500 2014-07-28 Marek Polacek <polacek@redhat.com>
30502 PR middle-end/61913
30503 * common.opt (Wodr): Add Var.
30505 2014-07-28 Richard Biener <rguenther@suse.de>
30507 PR tree-optimization/61921
30508 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30509 if there is a varpool node before dereferencing it.
30511 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30513 * graphite-sese-to-poly.c:
30514 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30515 id of the pbb), which contains pointer to the pbb1.
30517 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30519 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30521 * graphite-isl-ast-to-gimple.c:
30522 (graphite_create_new_guard): New function.
30523 (translate_isl_ast_node_if): New function.
30524 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30526 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30528 2014-07-27 Anthony Green <green@moxielogic.com>
30530 * config.gcc: Add moxie-*-moxiebox* configuration.
30531 * config/moxie/moxiebox.h: New file.
30533 2014-07-26 Andrew Pinski <apinski@cavium.com>
30535 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30536 from the read only register.
30538 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30540 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30541 as the allocation class if it isn't likely to be spilled.
30543 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30545 * rtl.h (tls_referenced_p): Declare.
30546 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30547 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30548 (mips_cannot_force_const_mem): Use tls_referenced_p.
30549 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30550 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30551 instead of pa_tls_referenced_p.
30552 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30553 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30554 (pa_legitimate_constant_p): Likewise.
30555 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30556 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30557 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30558 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30559 rs6000_tls_referenced_p.
30560 (rs6000_tls_symbol_ref_1): Delete.
30562 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30565 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30566 Optimize inverse of a VEC_CONCAT.
30568 2014-07-25 Xinliang David Li <davidxl@google.com>
30570 * params.def: New parameter.
30571 * coverage.c (get_coverage_counts): Check new flag.
30572 (coverage_compute_profile_id): Check new flag.
30573 (coverage_begin_function): Check new flag.
30574 (coverage_end_function): Check new flag.
30575 * value-prof.c (coverage_node_map_initialized_p): New function.
30576 (init_node_map): Populate map with all functions.
30577 * doc/invoke.texi: Document new parameter.
30579 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30580 Richard Biener <rguenther@suse.de>
30582 * lto-streamer-out.c (struct sccs): Turn to ...
30583 (class DFS): ... this one; refactor the DFS walk so it can
30584 be re-done on per-SCC basis.
30585 (DFS::DFS): New constructor.
30586 (DFS::~DFS): New destructor.
30587 (hash_tree): Add new MAP argument holding in-SCC hash values;
30588 remove POINTER_TYPE hashing hack.
30589 (scc_entry_compare): Rename to ...
30590 (DFS::scc_entry_compare): ... this one.
30591 (hash_scc): Rename to ...
30592 (DFS::hash_scc): ... this one; pass output_block instead
30593 of streamer_cache; work harder to get unique and stable SCC
30595 (DFS_write_tree): Rename to ...
30596 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30597 (lto_output_tree): Update.
30599 2014-07-25 Andi Kleen <ak@linux.intel.com>
30601 * lto-streamer-out.c (hash_tree): Convert to inchash.
30603 2014-07-25 Andi Kleen <ak@linux.intel.com>
30605 * tree.c (build_type_attribute_qual_variant): Use inchash.
30606 (type_hash_list): Dito.
30607 (attribute_hash_list): Dito
30608 (iterative_hstate_expr): Dito.
30609 (iterative_hash_expr): Dito.
30610 (build_range_type_1): Dito.
30611 (build_array_type_1): Dito.
30612 (build_function_type): Dito.
30613 (build_method_type_directly): Dito.
30614 (build_offset_type): Dito.
30615 (build_complex_type): Dito.
30616 (make_vector_type): Dito.
30617 * tree.h (iterative_hash_expr): Add compat wrapper.
30618 (iterative_hstate_expr): Add.
30620 2014-07-25 Andi Kleen <ak@linux.intel.com>
30622 * Makefile.in (OBJS): Add inchash.o.
30623 (PLUGIN_HEADERS): Add inchash.h.
30624 * ipa-devirt.c: Include inchash.h.
30625 * lto-streamer-out.c: Dito.
30626 * tree-ssa-dom.c: Dito.
30627 * tree-ssa-pre.c: Dito.
30628 * tree-ssa-sccvn.c: Dito.
30629 * tree-ssa-tail-merge.c: Dito.
30631 * tree.c (iterative_hash_hashval_t): Move to ...
30632 (iterative_hash_host_wide_int): Move to ...
30633 * inchash.c: Here. New file.
30634 * tree.h (iterative_hash_hashval_t): Move to ...
30635 (iterative_hash_host_wide_int): Move to ...
30636 * inchash.h: Here. New file.
30638 2014-07-25 Richard Biener <rguenther@suse.de>
30640 PR middle-end/61762
30641 PR middle-end/61894
30642 * fold-const.c (native_encode_int): Add and handle offset
30643 parameter to do partial encodings of expr.
30644 (native_encode_fixed): Likewise.
30645 (native_encode_real): Likewise.
30646 (native_encode_complex): Likewise.
30647 (native_encode_vector): Likewise.
30648 (native_encode_string): Likewise.
30649 (native_encode_expr): Likewise.
30650 * fold-const.c (native_encode_expr): Add offset parameter
30652 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30653 (fold_ctor_reference): Handle all reads from tcc_constant
30656 2014-07-25 Richard Biener <rguenther@suse.de>
30658 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30659 as possibly unused.
30661 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30663 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30665 2014-07-24 Kyle McMartin <kyle@redhat.com>
30667 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30669 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30671 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30673 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30675 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30676 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30677 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30679 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30681 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30682 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30683 aggregate types. Instead, *all* aggregate types, except for single-
30684 element or homogeneous float/vector aggregates, are quadword-aligned
30685 if required by their type alignment. Issue -Wpsabi note when a type
30686 is now treated differently than before.
30688 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30690 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30691 does not fit fully into floating-point registers, and there is still
30692 space in the register parameter area, use GPRs to pass those parts
30693 of the argument. Issue -Wpsabi note if any parameter is now treated
30694 differently than before.
30695 (rs6000_arg_partial_bytes): Update.
30697 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30699 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30701 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30703 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30704 * toplev.c (initialize_rtl): Don't use it. Move previously
30705 "language-dependent" calls to...
30706 (backend_init): ...here.
30707 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30708 Assert that RTL initialization hasn't happend yet.
30710 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30712 PR rtl-optimization/61629
30713 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30714 they have already been initialized.
30716 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30718 PR middle-end/61268
30719 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30720 DECL_INCOMING_RTL and entry_parm.
30721 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30722 * calls.c (load_register_parameters): Likewise argument values.
30723 (emit_library_call_value_1, store_one_arg): Likewise argument
30725 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30727 * explow.c (validize_mem): Modify the argument in-place.
30729 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30731 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30732 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30734 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30736 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30737 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30739 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30741 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30742 (aarch64_save_callee_saves): New parameter "skip_wb".
30743 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30745 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30747 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30749 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30751 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30753 * graphite-isl-ast-to-gimple.c:
30754 (graphite_create_new_loop): Add calling of isl_id_free to properly
30755 decrement reference counts.
30757 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30759 2014-07-24 Martin Liska <mliska@suse.cz>
30760 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30762 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30763 (rs6000_code_end): Likewise.
30765 2014-07-24 Martin Liska <mliska@suse.cz>
30767 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30768 symtab_node funtion used.
30769 (rs6000_xcoff_declare_object_name): Likewise.
30771 2014-07-24 Martin Liska <mliska@suse.cz>
30773 * cgraphunit.c (compile): Correct function used.
30775 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30777 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30780 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30783 * varasm.c (bss_initializer_p): Handle offlined ctors.
30784 (align_variable, get_variable_align): Likewise.
30785 (make_decl_one_only): Likewise.
30786 (default_binds_local_p_1): Likewise.
30787 (decl_binds_to_current_def_p): Likewise.
30788 (get_variable_section): Get constructor if it is offlined.
30789 (assemble_variable_contents): Sanity check that the caller
30790 streamed in the ctor in LTO.
30792 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30794 * graphite-isl-ast-to-gimple.c:
30795 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30796 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30797 isl_ast_op_pdiv_r to the different case.
30799 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30801 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30803 PR middle-end/61876
30804 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30805 when flag_errno_math is on.
30807 2014-07-24 Martin Liska <mliska@suse.cz>
30809 * cgraph.h (varpool_node):
30810 (availability get_availability (void)):
30811 created from cgraph_variable_initializer_availability
30812 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30813 created from: cgraph_variable_initializer_availability
30814 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30815 (void finalize_named_section_flags (void)):
30816 created from varpool_finalize_named_section_flags
30817 (bool assemble_decl (void)): created from varpool_assemble_decl
30818 (void analyze (void)): created from varpool_analyze_node
30819 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30820 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30821 (void remove_initializer (void)): created from varpool_remove_initializer
30822 (tree get_constructor (void)): created from varpool_get_constructor
30823 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30824 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30825 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30826 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30827 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30828 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30829 (static bool output_variables (void)): created from varpool_output_variables
30830 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30831 created from varpool_extra_name_alias
30832 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30833 (static void dump_varpool (FILE *f)): created from dump_varpool
30834 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30835 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30836 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30837 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30838 (void assemble_aliases (void)): created from assemble_aliases
30840 2014-07-24 Martin Liska <mliska@suse.cz>
30842 * cgraph.h (symtab_node):
30843 (void register_symbol (void)): created from symtab_register_node
30844 (void remove (void)): created from symtab_remove_node
30845 (void dump (FILE *f)): created from dump_symtab_node
30846 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30847 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30848 (struct ipa_ref *add_reference (symtab_node *referred_node,
30849 enum ipa_ref_use use_type)): created from add_reference
30850 (struct ipa_ref *add_reference (symtab_node *referred_node,
30851 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30852 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30853 gimple stmt)): created from maybe_add_reference
30854 (bool semantically_equivalent_p (symtab_node *target)): created from
30855 symtab_semantically_equivalent_p
30856 (void remove_from_same_comdat_group (void)): created from
30857 remove_from_same_comdat_group
30858 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30859 symtab_add_to_same_comdat_group
30860 (void dissolve_same_comdat_group_list (void)): created from
30861 symtab_dissolve_same_comdat_group_list
30862 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30863 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30864 created from symtab_alias_ultimate_target
30865 (inline symtab_node *next_defined_symbol (void)): created from
30866 symtab_next_defined_symbol
30867 (bool resolve_alias (symtab_node *target)): created from
30868 symtab_resolve_alias
30869 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30870 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30871 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30872 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30873 (void set_section (const char *section)): created from set_section_1
30874 (enum availability get_availability (void)): created from symtab_node_availability
30875 (void make_decl_local (void)): created from symtab_make_decl_local
30876 (bool real_symbol_p (void)): created from symtab_read_node
30877 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30878 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30879 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30880 symtab_in_same_comdat_p;
30881 (bool address_taken_from_non_vtable_p (void)): created from
30882 address_taken_from_non_vtable_p
30883 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30884 (static void dump_table (FILE *)): created from dump_symtab
30885 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30886 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30887 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30888 symtab_used_from_object_file_p
30889 (void dump_base (FILE *)): created from dump_symtab_base
30890 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30891 (void unregister (void)): created from symtab_unregister_node
30892 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30893 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30894 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30895 symtab_nonoverwritable_alias_1
30896 * cgraph.h (cgraph_node):
30897 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30898 created from cgraph_remove_node_and_inline_clones
30899 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30900 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30901 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30902 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30903 created from cgraph_function_node
30904 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30905 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30906 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30907 created from cgraph_create_clone
30908 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30909 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30910 created from cgraph_create_virtual_clone
30911 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30912 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30913 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30914 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30915 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30916 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30917 created from cgraph_function_version_info
30918 (struct cgraph_function_version_info *insert_new_function_version (void)):
30919 created from insert_new_cgraph_node_version
30920 (struct cgraph_function_version_info *function_version (void)): created from
30921 get_cgraph_node_version
30922 (void analyze (void)): created from analyze_function
30923 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30924 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30925 tree real_alias) cgraph_add_thunk
30926 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30927 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30928 created from cgraph_function_or_thunk_node
30929 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30930 created from expand_thunk
30931 (void reset (void)): created from cgraph_reset_node
30932 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30933 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30934 (void remove (void)): created from cgraph_remove_node
30935 (void dump (FILE *f)): created from dump_cgraph_node
30936 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30937 (bool get_body (void)): created from cgraph_get_body
30938 (void release_body (void)): created from cgraph_release_function_body
30939 (void unnest (void)): created from cgraph_unnest_node
30940 (void make_local (void)): created from cgraph_make_node_local
30941 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30942 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30943 gcov_type count, int freq)): created from cgraph_create_edge
30944 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30945 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30946 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30947 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30948 created from cgraph_create_edge_including_clones
30949 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30950 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30951 (void remove_callers (void)): created from cgraph_node_remove_callers
30952 (void remove_callees (void)): created from cgraph_node_remove_callees
30953 (enum availability get_availability (void)): created from cgraph_function_body_availability
30954 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30955 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30956 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30957 (void call_duplication_hooks (cgraph_node *node2)): created from
30958 cgraph_call_node_duplication_hooks
30959 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30960 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30961 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30962 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30963 (void call_function_insertion_hooks (void)):
30964 created from cgraph_call_function_insertion_hooks
30965 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30966 (bool local_p (void)): created from cgraph_local_node
30967 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30968 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30969 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30970 (inline bool only_called_directly_or_aliased_p (void)):
30971 created from cgraph_only_called_directly_or_aliased_p
30972 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30973 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30974 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30975 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30976 (bool can_remove_if_no_direct_calls_p (void)):
30977 created from cgraph_can_remove_if_no_direct_calls_p
30978 (inline bool has_gimple_body_p (void)):
30979 created from cgraph_function_with_gimple_body_p
30980 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30981 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30982 (static inline void debug_cgraph (void)): created from debug_cgraph
30983 (static void record_function_versions (tree decl1, tree decl2)):
30984 created from record_function_versions
30985 (static void delete_function_version (tree decl)):
30986 created from delete_function_version
30987 (static void add_new_function (tree fndecl, bool lowered)):
30988 created from cgraph_add_new_function
30989 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30990 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30991 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30992 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30993 (static cgraph_node *get_for_asmname (tree asmname)):
30994 created from cgraph_node_for_asm
30995 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30996 created from cgraph_same_body_alias
30997 (static bool used_from_object_file_p_worker (cgraph_node *node,
30998 void *): new function
30999 (static bool non_local_p (cgraph_node *node, void *)):
31000 created from cgraph_non_local_node_p_1
31001 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
31002 created from verify_cgraph
31003 (static bool make_local (cgraph_node *node, void *)):
31004 created from cgraph_make_node_local
31005 (static cgraph_node *create_alias (tree alias, tree target)):
31006 created from cgraph_create_function_alias
31007 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
31008 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
31009 created from cgraph_create_edge_1
31010 * cgraph.h (varpool_node):
31011 (void remove (void)): created from varpool_remove_node
31012 (void dump (FILE *f)): created from dump_varpool_node
31014 2014-07-24 Richard Biener <rguenther@suse.de>
31017 * tree-ssa-structalias.c (create_variable_info_for_1):
31018 Use varpool_get_constructor.
31019 (create_variable_info_for): Likewise.
31021 2014-07-24 Jiong Wang <jiong.wang@arm.com>
31023 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
31024 subtract outgoing area size when restoring stack_pointer_rtx.
31026 2014-07-24 Nick Clifton <nickc@redhat.com>
31028 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
31029 that operations are taking place in parallel.
31030 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
31032 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
31034 * omp-low.c (extract_omp_for_data): Add missing break statement.
31036 2014-07-24 Richard Biener <rguenther@suse.de>
31038 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
31039 * tree-inline.c (estimate_move_cost): Add speed_p parameter
31040 and adjust MOVE_RATIO query accordingly.
31041 (estimate_num_insns): Adjust callers.
31042 * ipa-prop.c (ipa_populate_param_decls): Likewise.
31043 * ipa-cp.c (gather_context_independent_values,
31044 estimate_local_effects): Likewise.
31045 * ipa-split.c (consider_split): Likewise.
31047 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
31049 * config/i386/driver-i386.c: Remove names of unused arguments and
31050 unnecessary unused attributes.
31051 * config/i386/host-mingw32.c: Likewise.
31052 * config/i386/i386.c: Likewise.
31053 * config/i386/winnt-stubs.c: Likewise.
31054 * config/i386/winnt.c: Likewise.
31056 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31058 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
31059 (aarch64_gen_loadwb_pair): New helper function.
31060 (aarch64_expand_epilogue): Simplify code using new helper functions.
31061 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
31063 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31065 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
31066 (aarch64_gen_storewb_pair): New helper function.
31067 (aarch64_expand_prologue): Simplify code using new helper functions.
31068 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
31070 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31072 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
31073 Rename to aarch64_save_callee_saves, remove restore code.
31074 (aarch64_restore_callee_saves): New function.
31076 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31078 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
31079 (aarch64_save_callee_saves): New function to handle reg save
31080 for both core and vectore regs.
31082 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31084 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
31085 (aarch64_gen_store_pair): New helper function.
31086 (aarch64_save_or_restore_callee_save_registers)
31087 (aarch64_save_or_restore_fprs): Use new helper functions.
31089 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31091 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
31092 (aarch64_save_or_restore_callee_save_registers)
31093 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
31095 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31097 * config/aarch64/aarch64.c
31098 (aarch64_save_or_restore_callee_save_registers)
31099 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
31101 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31103 * config/aarch64/aarch64.c
31104 (aarch64_save_or_restore_callee_save_registers)
31105 (aarch64_save_or_restore_fprs): Remove 'increment'.
31107 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31109 * config/aarch64/aarch64.c
31110 (aarch64_save_or_restore_callee_save_registers)
31111 (aarch64_save_or_restore_fprs): Use register offset in
31112 cfun->machine->frame.reg_offset.
31114 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31116 * config/aarch64/aarch64.c
31117 (aarch64_save_or_restore_callee_save_registers)
31118 (aarch64_save_or_restore_fprs): Remove base_rtx.
31120 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31122 * config/aarch64/aarch64.c
31123 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
31124 to 'start_offset'. Remove local variable 'start_offset'.
31126 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31128 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
31129 type to HOST_WIDE_INT.
31131 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31133 * config/aarch64/aarch64.c (aarch64_expand_prologue)
31134 (aarch64_save_or_restore_fprs)
31135 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
31137 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
31139 * config/arm/t-rtems-eabi: Add
31140 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
31141 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
31142 mbig-endian/mthumb/march=armv7-r, and
31143 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
31146 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
31147 Chris Johns <chrisj@rtems.org>
31148 Joel Sherrill <joel.sherrill@oarcorp.com>
31150 * config.gcc: Add nios2-*-rtems*.
31151 * config/nios2/rtems.h: New file.
31152 * gcc/config/nios2/t-rtems: New file.
31154 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
31157 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
31158 constant numbers, not general constants.
31159 (rs6000_expand_vector_init): Ditto.
31161 2014-07-23 Nathan Sidwell <nathan@acm.org>
31163 * gcov-tool.c (gcov_list): Declare here.
31164 (set_gcov_list): Remove.
31165 (gcov_output_files): Set gcov_list directly.
31167 2014-07-23 Host Schirmeier <horst@schirmeier.com>
31169 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
31171 2014-07-23 Jiong Wang <jiong.wang@arm.com>
31173 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
31174 callee-saved registers are available for padding purpose
31175 and r3 is not mandatory, then prefer use those callee-saved
31178 2014-07-23 Richard Biener <rguenther@suse.de>
31180 * params.def (PARAM_MAX_COMBINE_INSNS): New.
31181 * combine.c: Include statistics.h and params.h.
31182 (combine_instructions): Guard three and four insn combines
31183 with max-combine-insns value. Record statistics for combines
31185 * doc/invoke.texi (max-combine-insns): Document new param.
31187 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31189 * graphite-isl-ast-to-gimple.c:
31190 (translate_isl_ast_node_block): New function.
31191 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
31193 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
31194 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
31196 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31198 * graphite-isl-ast-to-gimple.c:
31199 (get_max_schedule_dimensions): New function.
31200 (extend_schedule): Likewise.
31201 (generate_isl_schedule): Add calling of extend_schedule and
31202 get_max_schedule_dimensions.
31204 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31206 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
31207 (case UNSPEC): Handle UNSPEC_RBIT.
31209 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31211 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
31212 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
31214 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31216 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
31218 2014-07-22 Roman Gareev <gareevroman@gmail.com>
31220 * graphite-isl-ast-to-gimple.c:
31221 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
31222 (ivs_params_clear):
31223 (build_iv_mapping): New function.
31224 (translate_isl_ast_node_user): Likewise.
31225 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
31227 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
31228 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
31229 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
31231 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31234 * config/arm/arm.md (setmem): New pattern.
31235 * config/arm/arm-protos.h (struct tune_params): New fields.
31236 (arm_gen_setmem): New prototype.
31237 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
31238 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31239 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31240 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
31241 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
31242 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
31243 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
31244 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31245 (arm_const_inline_cost): New function.
31246 (arm_block_set_max_insns): New function.
31247 (arm_block_set_non_vect_profit_p): New function.
31248 (arm_block_set_vect_profit_p): New function.
31249 (arm_block_set_unaligned_vect): New function.
31250 (arm_block_set_aligned_vect): New function.
31251 (arm_block_set_unaligned_non_vect): New function.
31252 (arm_block_set_aligned_non_vect): New function.
31253 (arm_block_set_vect, arm_gen_setmem): New functions.
31255 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31257 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
31259 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
31262 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
31263 out of #ifdef __OPTIMIZE__.
31265 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31267 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
31268 different trapping status if -fnon-call-exceptions is enabled.
31270 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31272 * expr.c (store_field): Handle VOIDmode for calls that return values
31273 in multiple locations.
31275 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31277 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
31278 (altivec_vsldoi_<mode>): Likewise.
31280 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31282 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
31283 to the number of characters in the line.
31285 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31287 * graphite-isl-ast-to-gimple.c: Add using of
31288 build_nonstandard_integer_type instead of int128_integer_type_node.
31290 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
31292 * toplev.c (output_stack_usage): Adjust the location of the warning.
31294 2014-07-19 Daniel Cederman <cederman@gaisler.com>
31296 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
31297 (*membar_storeload): Disable for LEON3.
31299 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31301 PR rtl-optimization/61461
31302 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31304 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31307 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31308 Fix instruction constraint.
31309 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31311 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31313 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31315 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31317 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31318 GNU coding standards.
31319 (nds32_register_move_cost): Likewise.
31320 (nds32_memory_move_cost): Likewise.
31321 (nds32_address_cost): Likewise.
31323 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31325 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31327 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31329 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31330 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31331 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31332 (HAVE_sync_compare_and_swapqi): Define.
31333 (HAVE_sync_compare_and_swaphi): Likewise.
31334 (HAVE_sync_compare_and_swapsi): Likewise.
31336 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31338 * config/mips/p5600.md: Add missing cpu tests.
31340 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31342 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31343 (vmla_f64): Likewise.
31344 (vfms_f64): Likewise.
31345 (vmls_f64): Likewise.
31347 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31349 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31350 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31352 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31354 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31355 (vmlal_high_lane_s32): Likewise.
31356 (vmlal_high_lane_u16): Likewise.
31357 (vmlal_high_lane_u32): Likewise.
31358 (vmlsl_high_lane_s16): Likewise.
31359 (vmlsl_high_lane_s32): Likewise.
31360 (vmlsl_high_lane_u16): Likewise.
31361 (vmlsl_high_lane_u32): Likewise.
31363 2014-07-17 Terry Guo <terry.guo@arm.com>
31365 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31366 (alus_reg): Renamed to alus_sreg.
31367 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31368 from alu_reg to alu_sreg. Change type of dsp instructions from
31369 alu_reg to alu_dsp_reg.
31370 * config/arm/thumb1.md: Likewise.
31371 * config/arm/thumb2.md: Likewise.
31372 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31373 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31374 with alu_sreg and alus_sreg.
31375 * config/arm/arm1026ejs.md (alu_op): Likewise.
31376 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31377 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31378 * config/arm/fa526.md (526_alu_op): Likewise.
31379 * config/arm/fa606te.md (606te_alu_op): Likewise.
31380 * config/arm/fa626te.md (626te_alu_op): Likewise.
31381 * config/arm/fa726te.md (726te_alu_op): Likewise.
31382 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31383 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31384 alu_sreg, alu_dsp_reg and alus_sreg.
31385 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31386 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31387 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31388 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31389 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31390 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31391 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31392 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31393 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31394 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31395 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31396 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31397 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31398 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31399 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31400 alus_reg to alus_sreg.
31402 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31404 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31407 2014-07-17 Richard Biener <rguenther@suse.de>
31409 PR rtl-optimization/61801
31410 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31411 don't set reg_pending_barrier if it appears in a debug-insn.
31413 2014-07-16 DJ Delorie <dj@redhat.com>
31415 * config/rx/rx.c (rx_option_override): Fix alignment values.
31416 (rx_align_for_label): Likewise.
31418 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31421 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31422 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31423 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31425 (cris_print_index, cris_print_operand, cris_constant_index_p)
31426 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31427 (cris_address_cost): Ditto last CONSTANT_P.
31428 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31429 callers changed. Yield cris_offsettable_symbol for non-PIC
31430 constant symbolic expressions including labels. Yield cris_unspec
31432 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31433 target to pic_offset_table_rtx for calls that will likely go
31434 through PLT, const0_rtx when they can't. All callers changed.
31435 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31436 symbolic expressions to be PICified. Remove second, redundant,
31437 assert on can_create_pseudo_p returning non-zero. Use
31438 replace_equiv_address_nv, not replace_equiv_address, for final
31440 * config/cris/cris.md ("movsi"): Move variable t to pattern
31441 toplevel. Adjust assert for new cris_symbol_type member. Use
31442 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31443 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31445 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31446 ("call", "call_value"): Use second incoming operand as a marker
31447 for pic-offset-table-register being used.
31448 ("*expanded_call_non_v32", "*expanded_call_v32")
31449 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31450 second incoming operand to CALL, match cris_call_type_marker.
31451 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31452 ("*expanded_call_side"): Ditto. Fix typo in comment.
31453 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31455 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31456 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31457 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31458 users changed. Add members cris_offsettable_symbol and cris_unspec.
31459 (cris_symbol_type): Rename from cris_pic_symbol_type.
31460 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31462 * config/cris/cris-protos.h (cris_symbol_type_of,
31463 cris_expand_pic_call_address): Adjust prototypes.
31464 (cris_legitimate_constant_p): New prototype.
31466 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31467 an existing tmake_file. Don't add t-slibgcc and t-linux.
31469 2014-07-17 Jason Merrill <jason@redhat.com>
31472 * symtab.c (symtab_remove_from_same_comdat_group): Also
31473 set_comdat_group to NULL_TREE.
31474 (verify_symtab): Fix diagnostic.
31476 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31479 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31481 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31483 Support location tracking for built-in macro tokens
31484 * input.h (is_location_from_builtin_token): New function declaration.
31485 * input.c (is_location_from_builtin_token): New function definition.
31486 * toplev.c (general_init): Tell libcpp what the pre-defined
31487 spelling location for built-in tokens is.
31489 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31491 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31492 on the FUNCTION_DECL.
31494 2014-07-16 Richard Biener <rguenther@suse.de>
31497 * doc/extend.texi (always_inline): Clarify.
31499 2014-07-15 Eric Christopher <echristo@gmail.com>
31501 * doc/invoke.texi (Link Options): Document -z option.
31503 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31505 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31506 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31508 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31510 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31512 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31514 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31515 varpool_assemble_decl.
31516 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31519 2014-07-15 Michael Matz <matz@suse.de>
31521 PR rtl-optimization/61772
31522 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31524 2014-07-15 Richard Biener <rguenther@suse.de>
31526 * opts.c (default_options_table): Disable bit-ccp at -Og.
31528 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31530 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31532 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31534 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31535 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31536 call langhook for unknown declaration.
31537 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31538 * tree.h (DECL_ARGUMENTS): Update.
31539 * print-tree.c (print_node): Update.
31540 * tree-core.h (tree_decl_non_common): Remove arguments.
31541 (tree_function_decl): Add arguments.
31543 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31545 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31547 2014-07-14 Richard Biener <rguenther@suse.de>
31549 PR tree-optimization/61779
31550 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31551 simplifying a condition.
31553 2014-07-14 Richard Biener <rguenther@suse.de>
31555 * builtins.c (c_strlen): Make only_value == 2 really only
31556 affect warning generation.
31558 2014-07-14 Richard Biener <rguenther@suse.de>
31560 PR tree-optimization/61757
31561 PR tree-optimization/61783
31562 PR tree-optimization/61787
31563 * tree-ssa-dom.c (record_equality): Revert canonicalization
31564 change and add comment.
31565 (propagate_rhs_into_lhs): Revert previous fix, removing
31566 loop depth restriction again.
31568 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31570 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31571 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31572 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31573 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31574 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31575 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31576 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31578 2014-07-14 Richard Biener <rguenther@suse.de>
31580 * cgraph.h (decl_in_symtab_p): Make inline.
31582 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31584 PR middle-end/61294
31585 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31588 * config/i386/i386.c (classify_argument): Don't merge classes above
31591 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31593 * cgraph.h (symtab_node): Add nonzero_address.
31594 (decl_in_symtab_p): Break out from ...
31595 (symtab_get_node): ... here.
31596 * fold-const.c: Include cgraph.h
31597 (tree_single_nonzero_warnv_p): Use symtab to determine
31598 if symbol is non-zero.
31599 * symtab.c (symtab_node::nonzero_address): New method.
31601 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31603 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31604 forgotten in previous commit.
31606 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31608 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31610 * ipa-devirt.c: Include stor-layout.h and intl.h
31611 (odr_subtypes_equivalent_p): New function.
31612 (warn_odr): New function.
31613 (warn_type_mismatch): New function.
31614 (odr_types_equivalent_p): New function.
31615 (add_type_duplicate): Use it.
31616 * common.opt (Wodr): New flag.
31617 * doc/invoke.texi (Wodr): Document new warning.
31619 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31621 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31622 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31623 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31624 (varpool_get_constructor): Push CTORS_IN timevar.
31625 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31627 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31629 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31630 Remove VOID_FTYPE_PUSHORT.
31631 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31632 Change code to USHORT_FTYPE_VOID.
31633 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31634 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31635 (ix86_atomic_assign_expand_fenv): Update for
31636 __builtin_ia32_fnstsw changes.
31637 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31638 (fnstsw): Change operand 0 to nonimmediate operand.
31640 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31642 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31643 (varpool_get_constructor): New function.
31644 (varpool_ctor_useable_for_folding_p): Break out from ...
31645 (ctor_for_folding): ... here; use varpool_get_constructor.
31646 (varpool_assemble_decl): Likewise.
31647 * lto-streamer.h (struct output_block): Turn cgraph_node
31649 (lto_input_variable_constructor): Declare.
31650 * ipa-visibility.c (function_and_variable_visibility): Use
31651 varpool_get_constructor.
31652 * cgraph.h (varpool_get_constructor): Declare.
31653 (varpool_ctor_useable_for_folding_p): New function.
31654 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31655 parameter; return error_mark_node for non-trivial constructors.
31656 (lto_write_tree_1, DFS_write_tree): Update use of
31657 get_symbol_initial_value.
31658 (output_function): Update initialization of symbol.
31659 (output_constructor): New function.
31660 (copy_function): Rename to ..
31661 (copy_function_or_variable): ... this one; handle vars too.
31662 (lto_output): Output variable sections.
31663 * lto-streamer-in.c (input_constructor): New function.
31664 (lto_read_body): Rename from ...
31665 (lto_read_body_or_constructor): ... this one; handle vars too.
31666 (lto_input_variable_constructor): New function.
31667 * ipa-prop.c (ipa_prop_write_jump_functions,
31668 ipa_prop_write_all_agg_replacement): Update.
31669 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31670 (output_cgraph_opt_summary): Set symbol to NULL.
31672 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31674 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31675 non-polymorphic types.
31676 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31677 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31678 of types is not polymorphic.
31680 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31682 * lra-constraints.c (remove_inheritance_pseudos): Process
31683 destination pseudo too.
31685 2014-07-11 Rong Xu <xur@google.com>
31687 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31690 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31692 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31693 * config/avr/avr-devices.c (AVR_MCU): Same.
31694 (avr_mcu_types): add text start value to end of device list.
31695 * config/avr/avr-mcus.def: Add text section start for all devices.
31696 (ata5782): Add new avr5 device.
31698 * config/avr/avr-tables.opt: Regenerate.
31699 * config/avr/avr.h: Add declaration for text section start handler.
31700 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31702 (LINK_SPEC): Include text section start handler to linker spec.
31703 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31704 pass -Ttext option to linker if the text section start for the device
31706 * config/avr/t-multilib: Regenerate.
31707 * doc/avr-mmcu.texi: Regenerate.
31709 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31711 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31712 * config/rs6000/aix52.h (LINK_SPEC): Same.
31713 * config/rs6000/aix53.h (LINK_SPEC): Same.
31714 * config/rs6000/aix61.h (LINK_SPEC): Same.
31715 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31717 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31719 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31720 (graphite_verify): New function.
31721 (ivs_params_clear): New function.
31722 (gcc_expression_from_isl_ast_expr_id): New function.
31723 (gcc_expression_from_isl_expr_int): New function.
31724 (binary_op_to_tree): New function.
31725 (ternary_op_to_tree): New function.
31726 (unary_op_to_tree): New function.
31727 (nary_op_to_tree): New function.
31728 (gcc_expression_from_isl_expr_op): New function.
31729 (gcc_expression_from_isl_expression): New function.
31730 (graphite_create_new_loop): New function.
31731 (translate_isl_ast_for_loop): New function.
31732 (get_upper_bound): New function.
31733 (graphite_create_new_loop_guard): New function.
31734 (translate_isl_ast_node_for): New function.
31735 (translate_isl_ast): New function.
31736 (add_parameters_to_ivs_params): New function.
31737 (scop_to_isl_ast): New parameter ip.
31738 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31740 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31742 * config/xtensa/predicates.md (call expander): Update for
31743 DECL_SECTION_NAME being string.
31745 2014-07-11 Richard Biener <rguenther@suse.de>
31747 PR middle-end/61473
31748 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31749 can be implemented with a single load followed by a single store.
31750 (c_strlen): Only warn when only_value is not 2.
31752 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31754 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31756 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31759 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31760 (*movhi_bytes): Likewise.
31761 (*arm_movqi_insn): Likewise.
31763 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31766 * config/alpha/alpha.c: Include tree-pass.h, context.h
31767 and pass_manager.h.
31768 (pass_data_handle_trap_shadows): New pass.
31769 (pass_handle_trap_shadows::gate): New pass gate function.
31770 (make_pass_handle_trap_shadows): New function.
31771 (rest_of_handle_trap_shadows): Ditto.
31773 (alpha_align_insns_1): Rename from alpha_align_insns.
31774 (pass_data_align_insns): New pass.
31775 (pass_align_insns::gate): New pass gate function.
31776 (make_pass_aling_insns): New function.
31777 (rest_of_align_insns): Ditto.
31778 (alpha_align_insns): Ditto.
31780 (alpha_option_override): Declare handle_trap_shadows info
31781 and align_insns_info. Register handle_trap_shadows and align_insns
31783 (alpha_reorg): Do not call alpha_trap_shadows and
31784 alpha_align_insn from here.
31786 (alpha_pad_function_end): Do not skip BARRIERs.
31788 2014-07-10 Rong Xu <xur@google.com>
31790 Add gcov-tool: an offline gcda profile processing tool support.
31791 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31792 (gcov_is_error): Ditto.
31793 (gcov_read_string): Ditto.
31794 (gcov_read_sync): Ditto.
31795 * gcov-io.h: Move counter defines to gcov-counter.def.
31796 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31797 * coverage.c: Ditto.
31798 * gcov-tool.c: Offline gcda profile processing tool.
31799 (unlink_gcda_file): Remove one gcda file.
31800 (unlink_profile_dir): Remove gcda files from the profile path.
31801 (gcov_output_files): Output gcda files to an output dir.
31802 (profile_merge): Merge two profiles in directory.
31803 (print_merge_usage_message): Print merge usage.
31804 (merge_usage): Print merge usage and exit.
31805 (do_merge): Driver for profile merge sub-command.
31806 (profile_rewrite): Rewrite profile.
31807 (print_rewrite_usage_message): Print rewrite usage.
31808 (rewrite_usage): Print rewrite usage and exit.
31809 (do_rewrite): Driver for profile rewrite sub-command.
31810 (print_usage): Print gcov-info usage and exit.
31811 (print_version): Print gcov-info version.
31812 (process_args): Process arguments.
31813 (main): Main routine for gcov-tool.
31814 * Makefile.in: Build and install gcov-tool.
31815 * gcov-counter.def: New file split from gcov-io.h.
31816 * doc/gcc.texi: Include gcov-tool.texi.
31817 * doc/gcov-tool.texi: Document for gcov-tool.
31819 2014-07-10 Richard Biener <rguenther@suse.de>
31821 PR tree-optimization/61757
31822 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31823 (propagate_rhs_into_lhs): Revert part of last change.
31825 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31827 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31830 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31832 PR middle-end/53590
31833 * function.c (allocate_struct_function): Revert r188667 change.
31835 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31837 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31839 * doc/install.texi: Remove links to defunct package providers for
31842 2014-07-09 Tom de Vries <tom@codesourcery.com>
31844 * final.c (get_call_fndecl): Declare.
31845 (self_recursive_call_p): New function.
31846 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31848 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31850 * ipa-devirt.c (record_node): Walk through aliases.
31852 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31854 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31856 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31859 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31861 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31863 * ipa-visibility.c (function_and_variable_visibility): Remove
31864 temporary hack disabling local aliases on AIX.
31866 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31868 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31869 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31871 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31873 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31874 * rs6000/rs6000.c: Inline output of .set instruction.
31875 (declare_alias_data): New struct.
31876 (rs6000_declare_alias): New function.
31877 (rs6000_xcoff_declare_function_name): Use it.
31878 (rs6000_xcoff_declare_object_name): New function.
31879 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31880 (ASM_OUTPUT_DEF): Turn to empty definition.
31882 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31885 * hash-table.h: use hash_table::value_type instead of
31886 Descriptor::value_type in the return types of several methods.
31888 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31890 * tree-pass.h (pass_data): Remove has_execute member.
31891 * passes.c (execute_one_pass): Don't check pass->has_execute.
31892 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31893 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31894 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31895 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31896 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31897 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31898 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31899 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31900 gimple-low.c, gimple-ssa-isolate-paths.c,
31901 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31902 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31903 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31904 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31905 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31906 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31907 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31908 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31909 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31910 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31911 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31912 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31913 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31914 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31915 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31916 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31917 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31918 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31919 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31920 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31921 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31922 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31923 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31924 web.c: Remove initializer for pass_data::has_execute.
31926 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31928 * graphite-htab.h: Use hash_map instead of hash_table.
31929 * graphite-clast-to-gimple.c: Adjust.
31930 * passes.c: Use hash_map instead of hash_table.
31931 * sese.c: Likewise.
31932 * sese.h: Remove now unused code.
31934 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31937 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31940 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31942 PR rtl-optimization/61673
31943 * combine.c (simplify_comparison): Test just mode's sign bit
31944 in tmode rather than the sign bit and any bits above it.
31946 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31948 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31949 Add __isl_give to the declaration.
31950 (generate_isl_schedule): Likewise.
31951 (scop_to_isl_ast): Likewise.
31953 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31955 * config/arm/arm.c (cortexa5_extra_costs): New table.
31956 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31958 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31960 PR tree-optimization/61725
31961 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31962 range, use range_includes_zerop_p instead of integer_zerop on
31963 vr0->min, only use log2 of max if min is not negative.
31965 2014-07-08 Richard Biener <rguenther@suse.de>
31967 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31968 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31969 restriction on loop depth difference.
31970 (record_equality): Likewise.
31971 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31972 (loop_depth_of_name): Remove.
31973 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31974 restriction on loop depth difference.
31975 (init_copy_prop): Likewise.
31977 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31979 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31981 (walk_aliased_vdefs): Likewise.
31982 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31983 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31984 (detect_type_change_from_memory_writes): Check if entry was reached.
31986 2014-07-08 Richard Biener <rguenther@suse.de>
31988 PR tree-optimization/61681
31989 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31990 NONLOCAL inside ESCAPED.
31992 2014-07-08 Richard Biener <rguenther@suse.de>
31994 PR tree-optimization/61680
31995 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31996 Handle properly all read-write dependences with group accesses.
31998 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
32000 PR tree-optimization/61576
32001 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
32002 block containing reduction statement is predecessor of phi basi block.
32004 2014-07-08 Marek Polacek <polacek@redhat.com>
32007 * fold-const.c (round_up_loc): Change the parameter type.
32009 * fold-const.h (round_up_loc): Adjust declaration.
32010 * stor-layout.c (finalize_record_size): Check for too large types.
32012 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
32014 * symtab.c: Include calls.h.
32015 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
32017 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
32019 * config/rs6000/rs6000.c (output_vec_const_move): Handle
32020 little-endian code generation.
32021 * config/rs6000/spe.md (spe_evmergehi): Rename to...
32022 (vec_perm00_v2si): ... this. Handle little-endian code generation.
32023 (spe_evmergehilo): Rename to...
32024 (vec_perm01_v2si): ... this. Handle little-endian code generation.
32025 (spe_evmergelo): Rename to...
32026 (vec_perm11_v2si): ... this. Handle little-endian code generation.
32027 (spe_evmergelohi): Rename to...
32028 (vec_perm10_v2si): ... this. Handle little-endian code generation.
32029 (spe_evmergehi, spe_evmergehilo): New expanders.
32030 (spe_evmergelo, spe_evmergelohi): Likewise.
32031 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
32032 (*frob_tf_ti): Likewise.
32033 (*frob_<mode>_di_2): Likewise.
32034 (*frob_tf_di_8_2): Likewise.
32035 (*frob_di_<mode>): Likewise.
32036 (*frob_ti_tf): Likewise.
32037 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
32038 (*frob_ti_<mode>_8_2): Likewise.
32039 (*frob_ti_tf_2): Likewise.
32040 (mov_si<mode>_e500_subreg0): Rename to...
32041 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
32043 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
32044 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
32045 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
32046 the big endianness only.
32047 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
32048 (*mov_si<mode>_e500_subreg0_2): Rename to...
32049 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
32050 big big endianness only.
32051 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
32052 (*mov_si<mode>_e500_subreg4): Rename to...
32053 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
32055 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
32056 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
32057 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
32058 the big endianness only.
32059 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
32061 (*mov_si<mode>_e500_subreg4_2): Rename to...
32062 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
32064 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
32065 (*mov_sitf_e500_subreg8): Rename to...
32066 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
32068 (*mov_sitf_e500_subreg8_le): New instruction pattern.
32069 (*mov_sitf_e500_subreg8_2): Rename to...
32070 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
32072 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
32073 (*mov_sitf_e500_subreg12): Rename to...
32074 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
32076 (*mov_sitf_e500_subreg12_le): New instruction pattern.
32077 (*mov_sitf_e500_subreg12_2): Rename to...
32078 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
32080 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
32082 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
32084 * asan.c (instrument_strlen_call): Do not instrument first byte
32085 in strlen if already instrumented.
32087 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32089 * config/arm/arm.opt (mwords-little-endian): Delete.
32090 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
32091 of TARGET_LITTLE_WORDS.
32092 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
32093 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
32095 * doc/invoke.texi: Remove references to -mwords-little-endian.
32097 2014-07-07 Jakub Jelinek <jakub@redhat.com>
32099 * expmed.c (struct init_expmed_rtl): Change all fields but
32100 pow2 and cint from struct rtx_def to rtx.
32101 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
32102 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
32105 2014-07-06 Marek Polacek <polacek@redhat.com>
32108 * doc/invoke.texi: Document -Wsizeof-array-argument.
32110 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
32112 * wide-int.h (wide_int_storage): Change declaration from struct
32115 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
32117 * cgraph.c (cgraph_create_indirect_edge): Update call of
32118 get_polymorphic_call_info.
32119 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
32120 (possible_polymorphic_call_targets): Add parameter call.
32121 (decl_maybe_in_construction_p): New predicate.
32122 (get_polymorphic_call_info): Add parameter call;
32123 use decl_maybe_in_construction_p.
32124 * gimple-fold.c (fold_gimple_assign): Update use of
32125 possible_polymorphic_call_targets.
32126 (gimple_fold_call): Likewise.
32127 * ipa-prop.c: Inlcude calls.h
32128 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
32129 (param_type_may_change_p): New predicate.
32130 (detect_type_change_from_memory_writes): Break out from ...
32131 (detect_type_change): ... this one; use param_type_may_change_p.
32132 (detect_type_change_ssa): Use param_type_may_change_p.
32133 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
32135 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
32138 * config/arm/arm-protos.h (arm_legitimate_address_p,
32139 arm_is_constant_pool_ref): Add prototypes.
32140 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
32141 (arm_is_constant_pool_ref) New function.
32142 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
32143 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
32144 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
32145 operand. Remove pool_range and neg_pool_range attributes.
32146 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
32147 pool_range and neg_pool_range attributes.
32148 * config/arm/constraints.md (Uh): New constraint.
32149 (Uq): Don't allow constant pool references.
32151 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
32153 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
32154 (move_lo_quad_internal_be_<mode>): Likewise.
32155 (move_lo_quad_<mode>): Convert to define_expand.
32156 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
32157 (aarch64_simd_move_hi_quad_be_<mode>): New.
32158 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
32159 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
32160 (aarch64_combinez_be<mode>): New.
32161 (aarch64_combine<mode>): Convert to define_expand.
32162 (aarch64_combine_internal<mode>): New.
32163 (aarch64_simd_combine<mode>): Remove bogus RTL description.
32165 2014-07-04 Tom de Vries <tom@codesourcery.com>
32167 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
32168 combination of earlyclobber and read/write modifiers.
32170 2014-07-04 Tom de Vries <tom@codesourcery.com>
32172 * config/aarch64/aarch64-simd.md
32173 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
32175 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
32178 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
32180 2014-07-04 Jakub Jelinek <jakub@redhat.com>
32182 PR middle-end/61654
32183 * cgraphunit.c (expand_thunk): Call free_dominance_info.
32185 PR tree-optimization/61684
32186 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
32187 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
32189 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32190 Kito Cheng <kito@0xlab.org>
32191 Monk Chiang <sh.chiang04@gmail.com>
32193 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
32194 (nds32_symbol_load_store_p): Move to ...
32195 (nds32_fp_as_gp_check_available): Move to ...
32196 * config/nds32/nds32-fp-as-gp.c: ... here.
32197 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
32198 extern declaration.
32200 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32201 Kito Cheng <kito@0xlab.org>
32202 Monk Chiang <sh.chiang04@gmail.com>
32204 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
32205 (nds32_expand_store_multiple): Move to ...
32206 (nds32_expand_movmemqi): Move to ...
32207 * config/nds32/nds32-memory-manipulation.c: ... here.
32209 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32210 Kito Cheng <kito@0xlab.org>
32211 Monk Chiang <sh.chiang04@gmail.com>
32213 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
32214 (nds32_output_casesi_pc_relative): Move to ...
32215 (nds32_output_casesi): Move to ...
32216 (nds32_mem_format): Move to ...
32217 (nds32_output_16bit_store): Move to ...
32218 (nds32_output_16bit_load): Move to ...
32219 (nds32_output_32bit_store): Move to ...
32220 (nds32_output_32bit_load): Move to ...
32221 (nds32_output_32bit_load_s): Move to ...
32222 (nds32_output_stack_push): Move to ...
32223 (nds32_output_stack_pop): Move to ...
32224 * config/nds32/nds32-md-auxiliary.c: ... here.
32226 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32227 Ling-Hua Tseng <uranus@tinlans.org>
32229 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
32230 the purpose of this file.
32232 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32233 Kito Cheng <kito@0xlab.org>
32234 Monk Chiang <sh.chiang04@gmail.com>
32236 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
32237 (nds32_address_cost): Move implementation to ...
32238 * config/nds32/nds32-cost.c: ... here.
32239 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
32240 (nds32_address_cost_impl): Declare.
32242 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32243 Kito Cheng <kito@0xlab.org>
32244 Monk Chiang <sh.chiang04@gmail.com>
32246 * config/nds32/nds32.c
32247 (nds32_consecutive_registers_load_store_p): Move to ...
32248 (nds32_valid_multiple_load_store): Move to ...
32249 (nds32_valid_stack_push_pop): Move to ...
32250 (nds32_can_use_bclr_p): Move to ...
32251 (nds32_can_use_bset_p): Move to ...
32252 (nds32_can_use_btgl_p): Move to ...
32253 (nds32_can_use_bitci_p): Move to ...
32254 * config/nds32/nds32-predicates.c: ... here.
32256 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32257 Kito Cheng <kito@0xlab.org>
32258 Monk Chiang <sh.chiang04@gmail.com>
32260 * config/nds32/nds32.c
32261 (nds32_expand_builtin_null_ftype_reg): Move to ...
32262 (nds32_expand_builtin_reg_ftype_imm): Move to ...
32263 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
32264 (nds32_init_builtins): Move implementation to ...
32265 (nds32_expand_builtin): Move implementation to ...
32266 * config/nds32/nds32-intrinsic.c: ... here.
32267 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
32268 (nds32_expand_builtin_impl): Declare.
32270 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32271 Kito Cheng <kito@0xlab.org>
32272 Monk Chiang <sh.chiang04@gmail.com>
32274 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
32275 (nds32_emit_section_tail_template): Move to ...
32276 (nds32_emit_isr_jmptbl_section): Move to ...
32277 (nds32_emit_isr_vector_section): Move to ...
32278 (nds32_emit_isr_reset_conten): Move to ...
32279 (nds32_check_isr_attrs_conflict): Move to ...
32280 (nds32_construct_isr_vectors_information): Move to ...
32281 (nds32_asm_file_start): Move implementation to ...
32282 (nds32_asm_file_end): Move implementation to ...
32283 * config/nds32/nds32-isr.c: ... here.
32284 * config/nds32/nds32-protos.h
32285 (nds32_check_isr_attrs_conflict): Declare.
32286 (nds32_construct_isr_vectors_information): Declare.
32287 (nds32_asm_file_start_for_isr): Declare.
32288 (nds32_asm_file_end_for_isr): Declare.
32290 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32291 Kito Cheng <kito@0xlab.org>
32292 Monk Chiang <sh.chiang04@gmail.com>
32294 * config.gcc (nds32*): Add new modules to extra_objs.
32295 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
32296 (nds32be-*-*): Likewise.
32297 * config/nds32/nds32-cost.c: New file.
32298 * config/nds32/nds32-fp-as-gp.c: New file.
32299 * config/nds32/nds32-intrinsic.c: New file.
32300 * config/nds32/nds32-isr.c: New file.
32301 * config/nds32/nds32-md-auxiliary.c: New file.
32302 * config/nds32/nds32-memory-manipulation.c: New file.
32303 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32304 * config/nds32/nds32-predicates.c: New file.
32305 * config/nds32/t-nds32: New file.
32307 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32309 PR tree-optimization/61682
32310 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32311 using cases and when one of the operands is equal to 1.
32313 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32315 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32316 ashr<mode>3): Correct mode of operands[2].
32317 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32318 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32319 Correct mode of operands[2]. Fix split condition.
32321 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32323 * arm.md (arch): Add armv6_or_vfpv3.
32324 (arch_enabled): Add test for the above.
32325 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32327 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32329 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32331 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32332 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32333 HWI 1 and negate the unsigned value.
32334 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32335 use AND instead of shift.
32336 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32338 2014-07-03 Marek Polacek <polacek@redhat.com>
32340 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32341 (-fsanitize=float-divide-by-zero): Move to the table with
32342 -fsanitize=undefined suboptions.
32343 (-fsanitize=float-cast-overflow): Likewise.
32345 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32347 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32348 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32351 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32353 * loop-invariant.c (struct invariant): Add a new member: eqno;
32354 (find_identical_invariants): Update eqno;
32355 (create_new_invariant): Init eqno;
32356 (get_inv_cost): Compute comp_cost with eqno;
32358 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32360 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32361 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32362 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32363 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32364 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32366 2014-07-02 Christian Bruel <christian.bruel@st.com>
32370 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32371 (make_preds_opaque): Delete.
32372 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32373 (commit_mode_sets): New function.
32374 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32375 Process all modes at once.
32376 * basic-block.h (pre_edge_lcm_avs): Declare.
32377 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32378 Call clear_aux_for_edges. Fix comments.
32379 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32380 (pre_edge_rev_lcm): Idem.
32381 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32383 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32384 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32386 * config/i386/i386.c (x96_emit_mode_set): Idem.
32387 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32388 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32389 (fpscr_toggle) Disallow from delay slot.
32390 * target.def (emit_mode_set): Add prev_mode parameter.
32391 * doc/tm.texi: Regenerate.
32393 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32395 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32398 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32400 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32401 vtable_pointer_value_to_vtable): Constify.
32402 (contains_polymorphic_type_p): Declare.
32403 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32404 vtable_pointer_value_to_vtable): Constify.
32405 (contains_polymorphic_type_p): New predicate.
32406 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32408 (ipa_set_ancestor_jf): Likewise.
32409 (detect_type_change): Return false in easy cases.
32410 (compute_complex_assign_jump_func): Require type to contain
32412 (compute_known_type_jump_func): Likewise.
32414 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32416 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32418 (type_in_anonymous_namespace_p): Constify argument.
32419 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32420 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32421 (main_odr_variant): New function.
32422 (hash_type_name): Make static; update assert; do not ICE on
32424 (types_same_for_odr): Bring here from tree.c; simplify and remove
32425 old structural comparing code that doesn't work for templates.
32426 (odr_hasher::equal): Update assert.
32427 (add_type_duplicate): Return true when bases should be computed;
32428 replace incomplete loader by complete; do not output duplicated
32429 warnings; do not ICE on non-records; set odr_violated flag.
32430 (get_odr_type): Be ready to replace incomplete type by complete
32431 one; work on ODR variants instead of main variants; reorder item
32432 in array so bases have still smaller indexes.
32433 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32434 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32436 2014-07-01 Cary Coutant <ccoutant@google.com>
32438 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32440 (resolve_addr_in_expr): When replacing the rtx in a location list
32441 entry, get a new address table entry.
32442 (dwarf2out_finish): Call index_location_lists even if there are no
32443 addr_index_table entries yet.
32445 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32447 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32448 change for not being obvious.
32450 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32452 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32455 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32457 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32458 (vcagt_f64): Likewise.
32459 (vcale_f64): Likewise.
32460 (vcaled_f64): Likewise.
32461 (vcales_f32): Likewise.
32462 (vcalt_f64): Likewise.
32463 (vcaltd_f64): Likewise.
32464 (vcalts_f32): Likewise.
32466 2014-07-01 Marek Polacek <polacek@redhat.com>
32468 * doc/invoke.texi: Document -Wint-conversion.
32470 2014-07-01 Marek Polacek <polacek@redhat.com>
32473 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32475 2014-07-01 Martin Liska <mliska@suse.cz>
32477 IPA REF alias refactoring
32478 * cgraph.h (iterate_direct_aliases): New function.
32479 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32480 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32481 FOR_EACH_ALIAS added.
32482 (cgraph_for_node_and_aliases): Likewise.
32483 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32484 * ipa-inline.c (reset_edge_caches): Likewise.
32485 (update_caller_keys): Likewise.
32486 * trans-mem.c (ipa_tm_execute): Likewise.
32487 *varpool.c (varpool_analyze_node): Likewise.
32488 (varpool_for_node_and_aliases): Likewise.
32489 * ipa-ref.h (first_alias): New function.
32490 (last_alias): Likewise.
32491 (has_aliases_p): Likewise.
32492 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32493 is sensitive to IPA_REF_ALIASes.
32494 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32495 are put at the beginning of the list.
32496 (symtab_node::iterate_direct_aliases): New function.
32498 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32501 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32503 (write_ts_type_common_tree_pointers): Do not stream fields not set
32504 for incomplete types; do not stream duplicated fields for variants;
32505 sanity check that variant and type match.
32506 (write_ts_type_non_common_tree_pointers): Likewise.
32507 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32508 TYPE_SIZE whether type is complete.
32509 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32510 write_ts_type_common_tree_pointers
32511 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32513 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32515 * var-tracking.c (add_stores): Return instead of asserting if old
32516 and new values for conditional store are the same.
32518 2014-06-30 Richard Henderson <rth@redhat.com>
32522 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32523 the cfg if there were any changes.
32524 * passes.def: Revert move of peephole2 after reorder_blocks;
32525 move duplicate_computed_gotos before peephole2.
32527 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32529 * except.c (emit_note_eh_region_end): New helper function.
32530 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32531 emit EH_REGION_END note.
32532 * jump.c (cleanup_barriers): Do not split a call and its
32533 corresponding CALL_ARG_LOCATION note.
32535 2014-06-30 Jeff Law <law@redhat.com>
32537 PR tree-optimization/61607
32538 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32539 deeper into the SSA_NAME_VALUE chain.
32541 2014-06-30 Marek Polacek <polacek@redhat.com>
32543 * convert.c (convert_to_integer): Don't instrument conversions if the
32544 function has no_sanitize_undefined attribute.
32545 * ubsan.c: Don't run the ubsan pass if the function has
32546 no_sanitize_undefined attribute.
32548 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32550 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32551 -fsanitize=undefined suboptions.
32553 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32555 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32556 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32557 against bigendian and adjust indices.
32559 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32561 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32563 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32566 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32567 Add alternative; make early clobber. Adjust both split patterns
32568 to use operand 0 as the working register.
32570 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32572 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32573 as ira_object_id_map might be NULL, or 1.
32575 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32577 * loop-invariant.c (get_inv_cost): Handle register class.
32578 (gain_for_invariant): Check the register pressure of the inv
32579 and its overlapped register class, other than all.
32581 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32583 * doc/invoke.texi (Optimize Options): Fix descriptions of
32584 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32586 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32588 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32591 2014-06-29 Tobias Grosser <tobias@grosser.es>
32594 * graphite-isl-ast-to-gimple.c: Add missing guards.
32596 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32598 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32599 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32600 * flag-types.h: Add new enum fgraphite_generator.
32601 * graphite-isl-ast-to-gimple.c: New.
32602 * graphite-isl-ast-to-gimple.h: New.
32603 * graphite.c (graphite_transform_loops): Add choice of Graphite
32604 code generator, which depends on flag_graphite_code_gen.
32606 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32608 * graphite-dependences.c (subtract_commutative_associative_deps):
32609 Add NULL checking of the following variables: must_raw_no_source,
32610 may_raw_no_source, must_war_no_source, may_war_no_source,
32611 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32612 must_war, may_war, must_waw, may_waw.
32614 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32616 * graphite-clast-to-gimple.c: gloog is renamed to
32617 graphite_regenerate_ast_cloog. gloog_error is renamed to
32618 graphite_regenerate_error.
32619 * graphite-clast-to-gimple.h: The definition of the struct
32620 bb_pbb_def is moved to graphite-htab.h.
32621 Add inclusion of the hash-table.h.
32622 * graphite-htab.h: The declaration of the function gloog is moved
32623 to graphite-clast-to-gimple.h and renamed to
32624 graphite_regenerate_ast_cloog.
32625 * graphite.c (graphite_transform_loops): gloog is renamed
32626 to graphite_regenerate_ast_cloog.
32628 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32630 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32632 (write_ts_type_common_tree_pointers): Do not stream fields not set
32633 for incomplete types; do not stream duplicated fields for variants;
32634 sanity check that variant and type match.
32635 (write_ts_type_non_common_tree_pointers): Likewise.
32636 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32637 TYPE_SIZE whether type is complete.
32638 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32639 write_ts_type_common_tree_pointers
32640 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32642 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32644 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32646 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32648 * tree-inline.c (remap_type_1): Do not duplicate fields
32649 that are shared in between type and its main variant.
32651 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32653 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32655 (ipa_set_ancestor_jf) Likewise.
32656 (check_stmt_for_type_change): Check that we work on main variant.
32657 (detect_type_change): Look into main variant.
32658 (compute_known_type_jump_func): Check that main variant has BINFO.
32660 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32662 * ipa-devirt.c (set_type_binfo): New function.
32663 (add_type_duplicate): Use it.
32664 (get_odr_type): Sanity check that binfos points to main variants.
32665 (get_class_context): Be sure the context's outer_type is main variant.
32666 (contains_type_p): Walk main variant.
32667 (get_polymorphic_call_info_for_decl): Set outer_type to be
32669 (get_polymorphic_call_info): Likewise.
32670 (possible_polymorphic_call_targets): Sanity check that we operate
32673 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32675 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32677 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32679 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32680 accidental change due to wide-int branch merge.
32682 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32684 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32685 compressed debug support.
32686 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32687 * configure: Regenerate.
32688 * config.in: Regenerate.
32689 * common.opt (compressed_debug_sections): New enum.
32690 (gz, gz=): New options.
32691 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32692 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32693 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32694 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32695 LINK_COMPRESS_DEBUG_SPEC.
32696 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32697 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32698 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32699 (Debugging Options): Document -gz[=type].
32701 2014-06-27 Martin Jambor <mjambor@suse.cz>
32704 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32705 args_to_skip, use those from node instead. Copy args_to_skip and
32706 combined_args_to_skip from node to the new thunk.
32707 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32708 (cgraph_create_virtual_clone): Moved computation of
32709 combined_args_to_skip...
32710 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32712 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32714 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32715 redundant diagnostic machinary.
32717 2014-06-27 Richard Biener <rguenther@suse.de>
32719 * tree-ssa-math-opts.c (bswap_replace): Fix
32720 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32722 2014-06-27 Martin Liska <mliska@suse.cz>
32724 * gimple.h (gimple_location_safe): New function introduced.
32725 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32726 of gimple_location_safe replaces gimple_location.
32727 (gimple_fold_call): Likewise.
32728 * ipa-devirt.c (ipa_devirt): Likewise.
32729 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32730 * ipa.c (walk_polymorphic_call_targets): Likewise.
32731 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32733 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32735 PR tree-optimization/57233
32736 PR tree-optimization/61299
32737 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32739 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32740 would be lowered to scalar shifts, check if corresponding
32741 shifts and vector BIT_IOR_EXPR are supported and don't lower
32742 or lower just to narrower vector type in that case.
32743 * expmed.c (expand_shift_1): Fix up handling of vector
32744 shifts and rotates.
32746 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32749 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32751 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32753 * doc/invoke.texi (-fsemantic-interposition): Document.
32754 * common.opt (fsemantic-interposition): New flag.
32755 * varasm.c (decl_replaceable_p): Use it.
32757 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32760 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32761 extraction other than index 3.
32763 2014-06-26 Teresa Johnson <tejohnson@google.com>
32765 * doc/invoke.texi: Fix typo.
32766 * dumpfile.c: Add support for documented -fdump-* options
32767 optimized/missed/note/optall.
32769 2014-06-26 Martin Jambor <mjambor@suse.cz>
32771 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32772 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32773 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32774 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32775 * opts.c (default_options_optimization): Set
32776 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32777 * doc/invoke.texi (allow-load-data-races)
32778 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32779 (allow-store-data-races): Document the new default.
32781 2014-06-26 Martin Jambor <mjambor@suse.cz>
32783 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32784 renamed to ipa_impossible_devirt_target. Fix typo.
32785 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32786 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32787 ipa_impossible_devirt_target.
32789 2014-06-26 Richard Biener <rguenther@suse.de>
32791 PR tree-optimization/61607
32792 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32793 explaining why we restrict copies on loop depth.
32794 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32796 (record_equivalences_from_phis): Instead add it here.
32798 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32800 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32801 (LTO_WRAPPER_OBJS): New variable.
32802 (lto-wrapper$(exeext)): Use it.
32803 * collect2.c: Include "collect-utils.h".
32804 (verbose, debug): Remove variables.
32805 (at_file_supplied): No longer static.
32806 (tool_name): New variable.
32807 (do_wait, fork_execute, maybe_unlink): Don't declare.
32808 (tool_cleanup): No longer static.
32809 (notice): Remove function.
32810 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32811 fork_execute calls.
32812 (collect_wait, do_wait, collect_execute): Remove functions.
32813 (maybe_unlink): No longer static.
32814 * collect2.h (verbose, debug): Don't declare.
32815 (at_file_supplied): Declare.
32816 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32818 (collect_execute): Replace with implementation from collect2, plus a
32819 new arg use_atfile. All callers changed.
32820 (collect_wait): Replace with implementation from collect2.
32821 (maybe_unlink_file): Remove function.
32822 (fork_execute): Replace with implementation from collect2, plus a
32823 new arg use_atfile. All callers changed.
32824 (do_wait): Add call to utils_cleanup to the error path.
32825 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32826 (tool_cleanup): Adjust declarations.
32827 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32828 * tlink.c: Include "collect-utils.h".
32829 (tlink_execute): New arg use_atfile. All callers changed.
32830 (tlink_init, tlink_execute): Remove declarations.
32832 * collect-utils.c (save_temps): New variable.
32833 (do_wait): Use it instead of debug. Use fatal_error.
32834 * collect-utils.h (save_temps): Declare.
32835 * collect2.c (verbose): Rename from vflag. All uses changed.
32836 (tool_cleanup): New function, copied from collect_atexit.
32837 (collect_atexit, handler): Just call it.
32838 * collect2.h (verbose): Declaration renamed from vflag.
32839 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32842 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32843 (lto-wrapper$(exeext)): Link with collect-utils.o.
32844 * collect-utils.c: New file.
32845 * collect-utils.h: New file.
32846 * lto-wrapper.c: Include "collect-utils.h".
32847 (args_name): Delete variable.
32848 (tool_name): New variable.
32849 (tool_cleanup): New function.
32850 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32851 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32852 (fork_execute): Remove functions.
32854 2014-06-26 Nick Clifton <nickc@redhat.com>
32856 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32858 * doc/extend.texi (Function Attributes): Fix typo in description
32859 of RX vector attribute.
32861 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32863 * config.gcc (supported_defaults): Error when passing either
32864 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32866 2014-06-26 Richard Biener <rguenther@suse.de>
32868 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32869 propagating volatile pointers.
32871 2014-06-26 Richard Biener <rguenther@suse.de>
32873 PR tree-optimization/61607
32874 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32875 loop if we redirected its latch edge.
32876 (thread_block_1): Do not cancel loops prematurely.
32878 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32880 * toplev.c (backend_init_target): Move init_emit_regs and
32882 (backend_init) ... here; skip ira_init_once and backend_init_target.
32883 (target_reinit) ... and here; clear
32884 this_target_rtl->lang_dependent_initialized.
32885 (lang_dependent_init_target): Clear
32886 this_target_rtl->lang_dependent_initialized;
32887 break out rtl initialization to ...
32888 (initialize_rtl): ... here; call also backend_init_target
32890 * toplev.h (initialize_rtl): New function.
32891 * function.c: Include toplev.h
32892 (init_function_start): Call initialize_rtl.
32893 * rtl.h (target_rtl): Add target_specific_initialized,
32894 lang_dependent_initialized.
32896 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32897 Jakub Jelinek <jakub@redhat.com>
32899 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32901 2014-06-25 Tom de Vries <tom@codesourcery.com>
32903 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32905 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32907 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32908 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32909 Issue a strict overflow warning if appropriate.
32911 2014-06-25 Martin Liska <mliska@suse.cz>
32913 IPA REF refactoring
32914 * Makefile.in: Removed header file (ipa-ref-inline.h).
32915 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32917 (cgraph_speculative_call_info): Likewise.
32918 (cgraph_for_node_thunks_and_aliases): Likewise.
32919 (cgraph_for_node_and_aliases): Likewise.
32920 (verify_cgraph_node): Likewise.
32921 * cgraph.h: Batch of IPA REF functions become member functions of
32922 symtab_node: add_reference, maybe_add_reference, clone_references,
32923 clone_referring, clone_reference, find_reference,
32924 remove_stmt_references, remove_all_references,
32925 remove_all_referring, dump_references, dump_referring,
32926 has_alias_p, iterate_reference, iterate_referring.
32927 * cgraphbuild.c (record_reference): New IPA REF function used.
32928 (record_type_list): Likewise.
32929 (record_eh_tables): Likewise.
32930 (mark_address): Likewise.
32931 (mark_load): Likewise.
32932 (mark_store): Likewise.
32933 (pass_build_cgraph_edges): Likewise.
32934 (rebuild_cgraph_edge): Likewise.
32935 (cgraph_rebuild_references): Likewise.
32936 (pass_remove_cgraph_callee_edges): Likewise.
32937 * cgraphclones.c (cgraph_clone_node): Likewise.
32938 (cgraph_create_virtual_clone): Likewise.
32939 (cgraph_materialize_clone): Likewise.
32940 (cgraph_materialize_all_clones): Likewise.
32941 * cgraphunit.c (cgraph_reset_node): Likewise.
32942 (cgraph_reset_node): Likewise.
32943 (analyze_function): Likewise.
32944 (assemble_thunks_and_aliases): Likewise.
32945 (expand_function): Likewise.
32946 * ipa-comdats.c (propagate_comdat_group): Likewise.
32947 (enqueue_references): Likewise.
32948 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32949 (create_specialized_node): Likewise.
32950 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32951 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32952 * ipa-inline.c (reset_edge_caches): Likewise.
32953 (update_caller_keys): Likewise.
32954 (execute): Likewise.
32955 * ipa-prop.c (remove_described_reference): Likewise.
32956 (propagate_controlled_uses): Likewise.
32957 (ipa_edge_duplication_hook): Likewise.
32958 (ipa_modify_call_arguments): Likewise.
32959 * ipa-pure-const.c (propagate_pure_const): Likewise.
32960 * ipa-ref-inline.h: Header file removed, functions moved
32961 to symtab_node class.
32962 * ipa-ref.c (remove_reference): New class member function.
32963 (cannot_lead_to_return): New class member function.
32964 (referring_ref_list): Likewise.
32965 (referred_ref_list): Likewise.
32966 Rest of functions moved to symtab_node class.
32967 * ipa-ref.h: New member functions remove_reference,
32968 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32970 ipa_ref_list class has new member functions: first_reference,
32971 first_referring, clear, nreferences.
32972 * ipa-reference.c (analyze_function): New IPA REF function used.
32973 (write_node_summary_p): Likewise.
32974 (ipa_reference_write_optimization_summary): Likewise.
32975 * ipa-split.c (split_function): Likewise.
32976 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32977 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32978 (function_and_variable_visibility): Likewise.
32979 * ipa.c (has_addr_references_p): Likewise.
32980 (process_references): Argument type changed.
32981 (symtab_remove_unreachable_nodes): New IPA REF function used.
32982 (process_references): Likewise.
32983 (set_writeonly_bit): Likewise.
32984 * lto-cgraph.c: Implementation of new symtab_node member functions
32985 that uses new IPA REF functions.
32986 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32988 * lto-streamer-out.c (output_symbol_p): Likewise.
32989 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32991 * symtab.c: Implementation of new IPA REF API.
32992 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32993 (ipa_tm_create_version): Likewise.
32994 (ipa_tm_execute): Likewise.
32995 * tree-emutls.c (gen_emutls_addr): Likewise.
32996 * tree-inline.c (copy_bb): Likewise.
32997 (delete_unreachable_blocks_update_callgraph): Likewise.
32998 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32999 (varpool_for_node_and_aliases): Likewise.
33001 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
33003 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
33005 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
33008 * fold-const.c (fold_checksum_tree): Use a hash_table of const
33009 tree_node * instead of tree_node *.
33011 (print_fold_checksum): Likewise.
33012 (fold_check_failed): Likewise.
33013 (debug_fold_checksum): Likewise.
33014 (fold_build1_stat_loc): Likewise.
33015 (fold_build2_stat_loc): Likewise.
33016 (fold_build3_stat_loc): Likewise.
33017 (fold_build_call_array_loc): Likewise.
33019 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
33021 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
33022 implementation with call to...
33023 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
33025 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
33028 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
33030 PR tree-optimization/57742
33031 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
33032 after replacing the statement.
33034 2014-06-25 Nick Clifton <nickc@redhat.com>
33036 * config/v850/v850.c (GHS_default_section_names): Change to const
33038 (GHS_current_section_names): Likewise.
33039 (v850_insert_attributes): Do not build strings, just assign the
33040 names directly. Change the type of 'chosen_section' to const
33042 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
33043 directly to the array entry.
33044 * config/v850/v850.h (GHS_default_section_names): Change to const
33046 (GHS_current_section_names): Likewise.
33048 2014-06-25 Jakub Jelinek <jakub@redhat.com>
33050 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
33051 (LANG_HOOKS_DECLS): Add it.
33052 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
33054 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
33055 * langhooks.h (struct lang_hooks_for_decls): Add
33056 omp_clause_linear_ctor hook.
33057 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
33058 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
33059 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
33060 combined simd loop use omp_clause_linear_ctor hook.
33062 2014-06-24 Cong Hou <congh@google.com>
33064 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
33065 pattern recognition.
33066 (type_conversion_p): PROMOTION is true if it's a type promotion
33067 conversion, and false otherwise. Return true if the given expression
33068 is a type conversion one.
33069 * tree-vectorizer.h: Adjust the number of patterns.
33070 * tree.def: Add SAD_EXPR.
33071 * optabs.def: Add sad_optab.
33072 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
33073 * expr.c (expand_expr_real_2): Likewise.
33074 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
33075 * gimple.c (get_gimple_rhs_num_ops): Likewise.
33076 * optabs.c (optab_for_tree_code): Likewise.
33077 * tree-cfg.c (estimate_operator_cost): Likewise.
33078 * tree-ssa-operands.c (get_expr_operands): Likewise.
33079 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
33080 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
33081 * doc/generic.texi: Add document for SAD_EXPR.
33082 * doc/md.texi: Add document for ssad and usad.
33084 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
33086 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
33087 qualification in cast.
33089 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
33091 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
33092 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
33093 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
33094 (tree_function_decl): ... here.
33095 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
33096 streaming of vindex to ...
33097 (write_ts_function_decl_tree_pointers): ... here.
33098 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
33099 Do not stream DECL_VINDEX.
33100 (lto_input_ts_function_decl_tree_pointers): Stream it here.
33102 2014-06-24 Catherine Moore <clm@codesourcery.com>
33103 Sandra Loosemore <sandra@codesourcery.com>
33105 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
33106 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
33107 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
33109 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
33111 * doc/invoke.texi (Warning Options): Remove duplicated
33112 -Wmaybe-uninitialized.
33114 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
33116 PR tree-optimization/57742
33117 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
33118 (handle_builtin_malloc, handle_builtin_memset): New functions.
33119 (strlen_optimize_stmt): Call them.
33120 * passes.def: Move strlen after loop+dom but before vrp.
33122 2014-06-24 Jakub Jelinek <jakub@redhat.com>
33125 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
33126 model family 6 CPU with has_longmode never use a CPU without
33129 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
33132 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
33135 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
33137 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
33138 * dominance.c (iterate_fix_dominators): Use hash_map instead of
33140 * hash-map.h: New file.
33141 * ipa-comdats.c: Use hash_map instead of pointer_map.
33143 * lto-section-out.c: Adjust.
33144 * lto-streamer.h: Replace pointer_map with hash_map.
33145 * symtab.c (verify_symtab): Likewise.
33146 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
33147 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
33148 * tree-streamer.h: Likewise.
33149 * tree-streamer.c: Adjust.
33150 * pointer-set.h: Remove pointer_map.
33152 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
33154 * hash-table.h: Add a template arg to choose between storing values
33155 and storing pointers to values, and then provide partial
33156 specializations for both.
33157 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
33158 should store, not the type values should point to.
33159 * tree-into-ssa.c (var_info_hasher): Likewise.
33160 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
33161 * tree-complex.c: Adjust.
33162 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
33163 table instead of int_tree_map *.
33164 * tree-parloops.c: Adjust.
33165 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
33166 type is being stored.
33167 * tree-vectorizer.c: Adjust.
33169 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
33171 * hash-table.h: Remove a layer of indirection from hash_table so that
33172 it contains the hash table's data instead of a pointer to the data.
33173 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
33174 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
33175 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
33176 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
33177 fold-const.c, gcse.c, ggc-common.c,
33178 gimple-ssa-strength-reduction.c, gimplify.c,
33179 graphite-clast-to-gimple.c, graphite-dependences.c,
33180 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
33181 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33182 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
33183 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
33184 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
33185 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
33186 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
33187 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
33188 tree-ssa-live.c, tree-ssa-loop-im.c,
33189 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
33190 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
33191 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33192 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
33193 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
33194 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
33195 vtable-verify.c, vtable-verify.h: Adjust.
33197 2014-06-24 Richard Biener <rguenther@suse.de>
33199 PR tree-optimization/61572
33200 * tree-ssa-sink.c (statement_sink_location): Do not sink
33201 loads from hard registers.
33203 2014-06-24 Jakub Jelinek <jakub@redhat.com>
33205 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
33206 not mentioned in clauses use private clause if the iterator is
33207 declared in #pragma omp for simd, and when adding lastprivate
33208 instead, add it to the outer #pragma omp for too. Diagnose
33209 if the variable is private in outer context. For simd collapse > 1
33210 loops, replace all iterators with temporaries.
33211 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
33212 same even in collapse > 1 loops.
33214 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
33215 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
33217 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
33218 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
33220 (gimplify_adjust_omp_clauses): Likewise.
33221 * omp-low.c (lower_rec_simd_input_clauses,
33222 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
33223 safelen the same as safelen(1).
33224 * tree-nested.c (convert_nonlocal_omp_clauses,
33225 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
33226 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
33227 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
33228 Fixup handling of GIMPLE_OMP_TARGET.
33229 (convert_tramp_reference_stmt, convert_gimple_call): Handle
33232 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
33234 PR tree-optimization/61554
33235 * tree-ssa-propagate.c: Include "bitmap.h".
33236 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
33237 properly update constructor/destructor.
33238 (substitute_and_fold_dom_walker::before_dom_children):
33239 Remove call to gimple_purge_dead_eh_edges, add bb->index to
33240 need_eh_cleaup instead.
33241 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
33244 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33246 * varpool.c (dump_varpool_node): Dump used_by_single_function.
33247 * tree-pass.h (make_pass_ipa_single_use): New pass.
33248 * cgraph.h (used_by_single_function): New flag.
33249 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
33251 * passes.def (pass_ipa_single_use): Scedule.
33252 * ipa.c (BOTTOM): New macro.
33253 (meet): New function
33254 (propagate_single_user): New function.
33255 (ipa_single_use): New function.
33256 (pass_data_ipa_single_use): New pass.
33257 (pass_ipa_single_use): New pass.
33258 (pass_ipa_single_use::gate): New gate.
33259 (make_pass_ipa_single_use): New function.
33261 2014-06-23 Kai Tietz <ktietz@redhat.com>
33264 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
33265 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
33267 2014-06-23 Richard Biener <rguenther@suse.de>
33269 * tree-ssa-loop.c (gate_loop): New function.
33270 (pass_tree_loop::gate): Call it.
33271 (pass_data_tree_no_loop, pass_tree_no_loop,
33272 make_pass_tree_no_loop): New.
33273 * tree-vectorizer.c: Include tree-scalar-evolution.c
33274 (pass_slp_vectorize::execute): Initialize loops and SCEV if
33276 (pass_slp_vectorize::clone): New method.
33277 * timevar.def (TV_TREE_NOLOOP): New.
33278 * tree-pass.h (make_pass_tree_no_loop): Declare.
33279 * passes.def (pass_tree_no_loop): New pass group with
33282 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
33285 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
33286 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
33288 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33290 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
33291 "yes" where needed.
33293 2014-06-23 Alan Modra <amodra@gmail.com>
33296 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
33297 to zero on debug statements.
33299 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33302 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33303 Ignore third operand if present by marking qualifier_internal.
33305 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33307 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33309 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33310 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33311 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33312 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33313 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33314 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33315 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33316 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33317 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33318 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33319 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33320 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33321 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33322 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33323 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33324 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33325 logic in GCC vector extensions
33327 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33328 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33329 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33330 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33331 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33332 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33333 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33334 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33335 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33336 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33338 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33340 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33343 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33344 (vget_low_s64): Use __GET_LOW macro.
33345 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33346 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33347 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33348 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33349 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33351 (vcombine_s64): Use GCC vector extensions; remove cast.
33352 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33353 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33354 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33355 Fix type signature; remove cast.
33357 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33360 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33362 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33364 (BUILTIN_VD1): New.
33365 (BUILTIN_VD_RE): Remove.
33366 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33367 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33368 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33369 variant but not df.
33370 (vreinterpretv1df*, vreinterpret*v1df): New.
33371 (vreinterpretdf*, vreinterpret*df): Remove.
33372 * config/aarch64/aarch64-simd.md (aarch64_create,
33373 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33374 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33376 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33377 (vcreate_f64): Remove cast, use v1df builtin.
33378 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33379 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33380 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33381 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33382 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33383 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33384 add range check using __builtin_aarch64_im_lane_boundsi.
33385 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33386 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33387 type signature, use gcc vector extensions.
33388 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33389 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33390 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33391 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33392 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33393 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33394 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33395 vreinterpret_u64_f64): Use v1df builtin not df.
33397 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33399 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33402 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33404 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33407 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33409 * loop-invariant.c (pre_check_invariant_p): New function.
33410 (find_invariant_insn): Call pre_check_invariant_p.
33412 2014-06-22 Richard Henderson <rth@redhat.com>
33415 * compare-elim.c (struct comparison): Add eh_note.
33416 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33417 a redundant comparison in a different EH region. Purge EH edges if
33420 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33422 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33423 (var_shift): Use it.
33424 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33425 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33426 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33427 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33428 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33429 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33430 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33431 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33432 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33433 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33434 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33435 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33436 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33437 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33438 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33439 *rotldi3_internal15be): Use the new attribute. Merge register and
33440 integer alternatives.
33442 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33444 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33445 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33446 split, *ashrdi3_internal3 and split): Delete, merge into...
33447 (ashr<mode>3): New expander.
33448 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33449 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33451 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33453 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33454 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33455 *rotldi3_internal3 and split): Delete, merge into...
33456 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33457 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33458 Use "rotlw" extended mnemonic.
33460 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33462 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33463 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33464 and split, *ashldi3_internal3 and split): Delete, merge into...
33465 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33466 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33468 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33470 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33471 (lshrsi3, two anonymous define_insns and define_splits,
33472 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33473 *lshrdi3_internal3 and split): Delete, merge into...
33474 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33475 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33477 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33479 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33480 Remove "O" alternative.
33482 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33484 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33485 (mips_move_from_gpr_cost): Likewise.
33486 (mips_register_move_cost): Update accordingly.
33487 (mips_secondary_reload_class): Remove name of in_p.
33489 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33492 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33493 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33495 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33497 * config/nios2/nios2.c: Include "builtins.h".
33499 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33501 * cgraph.h (tls_model_names): New variable.
33502 * print-tree.c (print_node): Simplify.
33503 * varpool.c (tls_model_names): New variable.
33504 (dump_varpool_node): Output tls model.
33506 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33508 * ipa-visibility.c (function_and_variable_visibility): Disable
33509 temporarily local aliases for some targets.
33511 2014-06-20 Marek Polacek <polacek@redhat.com>
33513 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33514 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33515 into SANITIZE_UNDEFINED.
33516 * doc/invoke.texi: Describe -fsanitize=bounds.
33517 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33518 functions created in the FEs.
33519 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33520 (expand_UBSAN_BOUNDS): New function.
33521 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33522 * internal-fn.h: Don't define internal functions here.
33523 * opts.c (common_handle_option): Add -fsanitize=bounds.
33524 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33525 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33526 * tree-core.h: Define internal functions here.
33527 (struct tree_base): Add ifn field.
33528 * tree-pretty-print.c: Include "internal-fn.h".
33529 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33530 * tree.c (get_callee_fndecl): Likewise.
33531 (build_call_expr_internal_loc): New function.
33532 * tree.def (CALL_EXPR): Update description.
33533 * tree.h (CALL_EXPR_IFN): Define.
33534 (build_call_expr_internal_loc): Declare.
33535 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33537 (ubsan_type_descriptor): Change bool parameter to enum
33538 ubsan_print_style. Adjust the code. Add handling of
33540 (ubsan_expand_bounds_ifn): New function.
33541 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33542 (ubsan_build_overflow_builtin): Likewise.
33543 (instrument_bool_enum_load): Likewise.
33544 (ubsan_instrument_float_cast): Likewise.
33545 * ubsan.h (enum ubsan_print_style): New enum.
33546 (ubsan_expand_bounds_ifn): Declare.
33547 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33549 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33551 * config/rs6000/rs6000.md: Append `DONE' to preparation
33552 statements of `bswap' pattern splitters.
33554 2014-06-20 Tom de Vries <tom@codesourcery.com>
33556 * target.def (call_fusage_contains_non_callee_clobbers): Update
33558 * doc/tm.texi: Regenerate.
33560 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33561 Max Ostapenko <m.ostapenko@partner.samsung.com>
33564 * asan.c (instrument_strlen_call): Fixed instrumentation of
33567 2014-06-20 Martin Jambor <mjambor@suse.cz>
33570 * ipa-prop.c (impossible_devirt_target): New function.
33571 (try_make_edge_direct_virtual_call): Use it, also instead of
33574 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33575 Max Ostapenko <m.ostapenko@partner.samsung.com>
33578 * asan.c (build_check_stmt): Add condition.
33580 2014-06-20 Martin Jambor <mjambor@suse.cz>
33583 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33586 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33588 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33590 (VCONQ): Make comment more helpful.
33592 * config/aarch64/aarch64-simd.md
33593 (aarch64_sqdmulh_lane<mode>):
33594 Use VCOND for operands 2. Update lane checking and flipping logic.
33595 (aarch64_sqrdmulh_lane<mode>): Likewise.
33596 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33597 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33598 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33599 attribute of operand 3 to VCOND.
33600 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33601 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33602 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33603 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33604 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33605 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33607 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33608 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33609 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33610 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33611 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33612 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33613 operand to VCOND. Update lane flipping and bounds checking logic.
33614 (aarch64_sqdmlal2_lane<mode>): Likewise.
33615 (aarch64_sqdmlsl_lane<mode>): Likewise.
33616 (aarch64_sqdmull_lane<mode>): Likewise.
33617 (aarch64_sqdmull2_lane<mode>): Likewise.
33618 (aarch64_sqdmlal_laneq<mode>):
33619 Replace VCON usage with VCONQ.
33620 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33621 (aarch64_sqdmlal2_laneq<mode>): Emit
33622 aarch64_sqdmlal2_laneq<mode>_internal insn.
33623 Replace VCON with VCONQ.
33624 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33625 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33626 (aarch64_sqdmull_laneq<mode>): Emit
33627 aarch64_sqdmull_laneq<mode>_internal insn.
33628 Replace VCON with VCONQ.
33629 (aarch64_sqdmull2_laneq<mode>): Emit
33630 aarch64_sqdmull2_laneq<mode>_internal insn.
33631 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33632 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33633 of 3rd argument to int16x4_t.
33634 (vqdmlalh_lane_s16): Likewise.
33635 (vqdmlslh_lane_s16): Likewise.
33636 (vqdmull_high_lane_s16): Likewise.
33637 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33638 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33639 (vqdmlsl_lane_s16): Likewise.
33640 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33641 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33642 (vqdmlals_lane_s32): Likewise.
33643 (vqdmlsls_lane_s32): Likewise.
33644 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33645 (vqdmulls_lane_s32): Likewise.
33646 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33647 (vqdmlsl_lane_s32): Likewise.
33648 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33649 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33650 (vqrdmulhh_lane_s16): Likewise.
33651 (vqdmlsl_high_lane_s16): Likewise.
33652 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33653 (vqdmlsl_high_lane_s32): Likewise.
33654 (vqrdmulhs_lane_s32): Likewise.
33656 2014-06-20 Tom de Vries <tom@codesourcery.com>
33658 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33659 get_call_reg_set_usage.
33661 2014-06-20 Tom de Vries <tom@codesourcery.com>
33663 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33664 it contains all call_used_regs.
33666 2014-06-20 Tom de Vries <tom@codesourcery.com>
33668 * final.c (collect_fn_hard_reg_usage): Add and use variable
33669 function_used_regs.
33671 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33673 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33674 (set_init_priority, get_init_priority, set_fini_priority,
33675 get_fini_priority): New methods.
33676 * tree.c (init_priority_for_decl): Remove.
33677 (init_ttree): Do not initialize init priority.
33678 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33679 (decl_priority_info): Remove.
33680 (decl_init_priority_insert): Rewrite.
33681 (decl_fini_priority_insert): Rewrite.
33682 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33683 tree_priority_map_marked_p): Remove.
33684 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33685 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33686 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33687 not output priorities.
33688 (pack_ts_function_decl_value_fields): Likewise.
33689 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33690 not input priorities.
33691 (unpack_ts_function_decl_value_fields): Likewise.
33692 * symtab.c (symbol_priority_map): Declare.
33693 (init_priority_hash): Declare.
33694 (symtab_unregister_node): Unregister from priority hash, too.
33695 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33697 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33698 (symbol_priority_info): New function.
33699 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33701 * tree-core.h (tree_priority_map): Remove.
33703 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33705 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33706 0xff to uint64_t before shifting it up.
33708 2014-06-20 Julian Brown <julian@codesourcery.com>
33709 Chung-Lin Tang <cltang@codesourcery.com>
33711 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33712 TARGET_THUMB1_ONLY. Add comments.
33714 2014-06-19 Tom de Vries <tom@codesourcery.com>
33716 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33717 return type to void.
33718 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33720 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33722 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33723 as "move", from depends_on.
33725 2014-06-19 Terry Guo <terry.guo@arm.com>
33727 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33730 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33732 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33734 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33736 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33739 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33740 addresses here if reload in progress or completed.
33742 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33744 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33745 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33746 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33747 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33748 (mips_register_priority): New function that implements the target
33749 hook TARGET_REGISTER_PRIORITY.
33750 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33751 (mips_lra_p): Likewise for TARGET_LRA_P.
33752 (TARGET_REGISTER_PRIORITY): Define macro.
33753 (TARGET_SPILL_CLASS): Likewise.
33754 (TARGET_LRA_P): Likewise.
33755 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33757 (REG_CLASS_NAMES): Likewise.
33758 (REG_CLASS_CONTENTS): Likewise.
33759 (BASE_REG_CLASS): Use M16_SP_REGS.
33760 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33761 New set attribute to enable alternatives depending on the register
33763 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33764 (*lea64): Disable pattern for MIPS16.
33765 * config/mips/mips.opt (mlra): New option.
33767 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33769 * lra-constraints.c (base_to_reg): New function.
33770 (process_address): Use new function.
33772 2014-06-18 Tom de Vries <tom@codesourcery.com>
33774 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33775 * config/aarch64/aarch64.c
33776 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33777 (aarch64_emit_call_insn): New function.
33778 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33780 * config/aarch64/aarch64.md (define_expand "call_internal")
33781 (define_expand "call_value_internal", define_expand "sibcall_internal")
33782 (define_expand "sibcall_value_internal"): New.
33783 (define_expand "call", define_expand "call_value")
33784 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33785 expand variant and aarch64_emit_call_insn.
33787 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33788 Tom de Vries <tom@codesourcery.com>
33790 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33791 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33793 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33794 clobbers to CALL_INSN_FUNCTION_USAGE.
33795 (define_expand "sibcall_internal")
33796 (define_expand "sibcall_value_internal"): New.
33797 (define_expand "call", define_expand "call_value"): Add argument to
33798 arm_emit_call_insn.
33799 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33800 (define_expand "sibcall_value"): Use sibcall_value_internal and
33801 arm_emit_call_insn.
33803 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33805 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33807 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33809 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33812 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33814 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33815 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33816 annotations. Fix DWARF information.
33818 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33820 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33821 __udivmoddi4, and fixups for negative operands.
33823 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33825 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33827 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33829 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33832 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33834 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33837 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33839 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33840 describing register usage on function entry and exit.
33842 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33844 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33845 (__aeabi_ldivmod): Fix whitespace.
33847 2014-06-18 Andreas Schwab <schwab@suse.de>
33849 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33850 Remove blank line after @item.
33852 2014-06-18 Richard Henderson <rth@redhat.com>
33855 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33857 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33859 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33860 POST_MODIFY for neon loads and stores.
33861 (arm_print_operand): Output post-index register for neon loads and
33864 2014-06-18 Richard Biener <rguenther@suse.de>
33866 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33868 2014-06-18 Richard Biener <rguenther@suse.de>
33870 * tree-pass.h (make_pass_dce_loop): Remove.
33871 * passes.def: Replace pass_dce_loop with pass_dce.
33872 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33873 changed free niter estimates and reset the scev cache.
33874 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33875 make_pass_dce_loop): Remove.
33876 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33877 (fini_copy_prop): Return whether something changed. Always
33878 let substitute_and_fold perform DCE and free niter estimates
33879 and reset the scev cache if so.
33880 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33881 (pass_data_copy_prop): Do not unconditionally schedule
33882 cleanup-cfg or update-ssa.
33884 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33886 PR tree-optimization/61518
33887 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33888 reduction var is used in reduction stmt or phi-function only.
33890 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33892 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33894 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33896 PR tree-optimization/61517
33897 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33898 whose rhs's first tree is the source expression instead of the
33900 (find_bswap_or_nop): Likewise.
33901 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33902 gimple stmt whose rhs's first tree is the source. In the memory source
33903 case, move the stmt to be replaced close to one of the original load to
33904 avoid the problem of a store between the load and the stmt's original
33906 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33909 2014-06-18 Andreas Schwab <schwab@suse.de>
33911 PR rtl-optimization/54555
33912 * postreload.c (move2add_use_add2_insn): Substitute
33913 STRICT_LOW_PART only if it is cheaper.
33915 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33917 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33918 Do not use unspec as call operand. Use memory_operand instead of
33919 memory_nox32_operand and add "m" operand constraint. Disable
33920 pattern for TARGET_X32.
33921 (*sibcall_pop_memory): Ditto.
33922 (*sibcall_value_memory): Ditto.
33923 (*sibcall_value_pop_memory): Ditto.
33924 (sibcall peepholes): Merge SImode and DImode patterns using
33925 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33926 Disable pattern for TARGET_X32. Check if eliminated register is
33927 really dead after call insn. Generate call RTX without unspec operand.
33928 (sibcall_value peepholes): Ditto.
33929 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33930 instead of memory_nox32_operand. Check if eliminated register is
33931 really dead after call insn. Generate call RTX without unspec operand.
33932 (sibcall_value_pop peepholes): Ditto.
33933 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33935 2014-06-18 Terry Guo <terry.guo@arm.com>
33938 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33941 2014-06-18 Olivier Hainque <hainque@adacore.com>
33943 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33944 memorization of the end of block source location.
33945 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33946 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33947 end source location info we have on the block entry/exit code we
33950 2014-06-18 Richard Biener <rguenther@suse.de>
33952 * common.opt (fssa-phiopt): New option.
33953 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33955 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33956 * doc/invoke.texi (-fssa-phiopt): Document.
33958 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33960 * genattrtab.c (n_bypassed): New variable.
33961 (process_bypasses): Initialise n_bypassed.
33962 Count number of bypassed reservations.
33963 (make_automaton_attrs): Allocate space for bypassed reservations
33964 rather than number of bypasses.
33966 2014-06-18 Richard Biener <rguenther@suse.de>
33968 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33969 we propagated anything.
33970 (substitute_and_fold_dom_walker::before_dom_children): Something
33971 changed if we propagated into PHI arguments.
33972 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33975 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33977 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33979 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33980 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33981 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33982 Introduces alternative way of loads group permutaions.
33983 (vect_transform_grouped_load): Try alternative way of permutations.
33985 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33987 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33988 changed in ORT_TARGET region, don't jump to do_outer.
33989 (struct gimplify_adjust_omp_clauses_data): New type.
33990 (gimplify_adjust_omp_clauses_1): Adjust for data being
33991 a struct gimplify_adjust_omp_clauses_data pointer instead
33992 of tree *. Pass pre_p as a new argument to
33993 lang_hooks.decls.omp_finish_clause hook.
33994 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33995 splay_tree_foreach to pass both list_p and pre_p.
33996 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33997 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33998 gimplify_adjust_omp_clauses callers.
33999 * langhooks.c (lhd_omp_finish_clause): New function.
34000 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
34001 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
34002 * langhooks.h (struct lang_hooks_for_decls): Add a new
34003 gimple_seq * argument to omp_finish_clause hook.
34004 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
34005 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
34006 (scan_omp_parallel, lower_omp_for): When adding
34007 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
34008 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
34009 * tree-nested.c (convert_nonlocal_omp_clauses,
34010 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
34011 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
34013 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
34015 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
34016 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
34018 2014-06-17 Xinliang David Li <davidxl@google.com>
34020 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
34021 * passes.c (pass_init_dump_file): Do not set initialize
34022 flag to false unconditionally.
34024 2014-06-17 Richard Biener <rguenther@suse.de>
34026 * genopinit.c (main): Use vec<>::qsort method.
34027 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
34029 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
34031 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
34033 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
34034 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
34035 (mips_move_to_gpr_cost): Remove ST_REGS case.
34036 (mips_move_from_gpr_cost): Likewise.
34037 (mips_register_move_cost): Likewise.
34038 (mips_secondary_reload_class): Likewise.
34040 2014-06-17 Richard Biener <rguenther@suse.de>
34042 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
34043 (pass_all_optimizations): Move 3rd copy-prop pass from after
34044 fre to before ifcombine/phiopt.
34046 2014-06-17 Richard Biener <rguenther@suse.de>
34048 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
34049 and allow all blocks to be forwarders.
34051 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
34054 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
34055 variable 'size'; calculate 'size' right in the front; use
34056 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
34057 pcum->aapcs_stack_words.
34059 2014-06-17 Nick Clifton <nickc@redhat.com>
34061 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
34062 (umulhi3, mulsidi3, umulsidi3): Likewise.
34064 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
34066 PR middle-end/61508
34067 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
34068 check for section name.
34070 2014-06-17 Richard Biener <rguenther@suse.de>
34072 * tree-ssa-propagate.c: Include domwalk.h.
34073 (substitute_and_fold): Outline main worker into a domwalker ...
34074 (substitute_and_fold_dom_walker::before_dom_children): ... here.
34075 Schedule stmts we can fully propagate for removal. Remove
34077 (substitute_and_fold): Apply a dominator walk to perform
34078 substitution. Process stmts scheduled for removal here.
34080 2014-06-17 Richard Biener <rguenther@suse.de>
34082 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
34083 of PHI node moving.
34085 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
34087 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
34088 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
34089 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
34090 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
34091 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
34093 (get_fpscr) : Likewise.
34095 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
34097 PR rtl-optimization/61325
34098 * lra-constraints.c (valid_address_p): Add forward declaration.
34099 (simplify_operand_subreg): Check address validity before and after
34100 alter_reg of memory subreg.
34102 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
34104 * config/i386/i386.c (decide_alg): Correctly handle
34105 maximum size of stringop algorithm.
34107 2014-06-16 Yury Gribov <y.gribov@samsung.com>
34109 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
34111 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
34113 PR rtl-optimization/61522
34114 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
34116 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
34119 * symtab.c (symtab_node::reset_section): New method.
34120 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34122 * cgraph.h (reset_section): Declare.
34123 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34124 do not consider comdat locals.
34125 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34127 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34128 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34129 reset sections of symbols dragged out of the comdats.
34130 (function_and_variable_visibility): Reset sections of
34133 2014-06-16 Richard Biener <rguenther@suse.de>
34135 PR tree-optimization/61482
34136 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
34137 [-INF(OVF), +INF(OVF)] range.
34139 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
34141 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
34142 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
34143 handling 32-bit multiplication.
34145 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
34147 PR middle-end/61430
34148 * lra-lives.c (process_bb_lives): Skip creating copy during
34149 insn scan when src/dest has constrained to same regno.
34151 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
34153 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
34154 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
34156 2014-06-16 Yury Gribov <y.gribov@samsung.com>
34158 * asan.c (check_func): New function.
34159 (maybe_create_ssa_name): Likewise.
34160 (build_check_stmt_with_calls): Likewise.
34161 (use_calls_p): Likewise.
34162 (report_error_func): Change interface.
34163 (build_check_stmt): Allow non-integer lengths; add support
34165 (asan_instrument): Likewise.
34166 (instrument_mem_region_access): Moved code to build_check_stmt.
34167 (instrument_derefs): Likewise.
34168 (instrument_strlen_call): Likewise.
34169 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
34170 * doc/invoke.texi: Describe new parameter.
34171 * params.def: Define new parameter.
34172 * params.h: Likewise.
34173 * sanitizer.def: Describe new builtins.
34175 2014-06-16 Richard Biener <rguenther@suse.de>
34177 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34178 Make all defs available at the end.
34179 (eliminate): If we remove a PHI node schedule cfg-cleanup.
34181 2014-06-18 Jakub Jelinek <jakub@redhat.com>
34184 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
34186 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
34189 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
34190 initialization. Replace remaining use of uid.
34192 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
34194 * c-family/c-common.c (handle_tls_model_attribute): Use
34195 set_decl_tls_model.
34196 * c-family/c-common.c (handle_tls_model_attribute): Use
34197 set_decl_tls_model.
34198 * cgraph.h (struct varpool_node): Add tls_model.
34199 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
34200 * tree.h (DECL_TLS_MODEL): Update.
34201 (DECL_THREAD_LOCAL_P): Check that variable is static.
34202 (decl_tls_model): Declare.
34203 (set_decl_tls_model): Declare.
34204 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
34205 set symbol prorperties.
34206 (get_emutls_init_templ_addr): Cleanup.
34207 (new_emutls_decl): Update.
34208 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
34209 (lto_input_varpool_node): Likewise.
34210 * lto-streamer-out.c (hash_tree): Likewise.
34211 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
34212 not stream DECL_TLS_MODEL.
34213 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
34214 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
34216 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34218 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
34220 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34222 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
34223 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
34225 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
34226 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
34227 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
34228 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
34229 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
34230 (df_get_artificial_defs, df_get_artificial_uses)
34231 (df_single_def, df_single_use): Update accordingly.
34232 (df_refs_chain_dump): Take the first element in a linked list as
34233 parameter, rather than a pointer to an array of pointers.
34234 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
34235 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
34236 (df_chain_create_bb_process_use): Likewise.
34237 (df_md_bb_local_compute_process_def): Likewise.
34238 * fwprop.c (process_defs, process_uses): Likewise.
34239 (register_active_defs, update_uses): Likewise.
34240 (forward_propagate_asm): Update for new df_ref linking.
34241 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
34242 (df_null_ref_rec, df_null_mw_rec): Likewise.
34243 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
34245 (df_scan_free_bb_info): Remove check for null artificial_defs.
34246 (df_install_ref_incremental): Adjust for new df_ref linking.
34247 Use a single-element insertion rather than a full sort.
34248 (df_ref_chain_delete_du_chain): Take the first element
34249 in a linked list as parameter, rather than a pointer to an array of
34251 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
34252 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
34253 (df_insn_info_delete): Remove check for null defs and call to
34254 df_scan_free_mws_vec.
34255 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
34256 null rather than df_null_*_rec.
34257 (df_insn_rescan_debug_internal): Likewise, and update null
34258 checks in the same way. Remove check for null defs.
34259 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
34260 Move a single element rather doing a full sort.
34261 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
34263 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
34264 Initialize df_ref and df_mw_hardreg lists to null rather than
34266 (df_ref_compare): Take df_refs as parameter, transferring the
34267 old interface to...
34268 (df_ref_ptr_compare): ...this new function.
34269 (df_sort_and_compress_refs): Update accordingly.
34270 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
34271 old interface to...
34272 (df_mw_ptr_compare): ...this new function.
34273 (df_sort_and_compress_mws): Update accordingly.
34274 (df_install_refs, df_install_mws): Return a linked list rather than
34275 an array of pointers.
34276 (df_refs_add_to_chains): Assert that old lists are empty rather
34278 (df_insn_refs_verify): Don't handle null defs speciailly.
34279 * web.c (union_match_dups): Update for new df_ref linking.
34281 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34283 * df.h (df_ref_create, df_ref_remove): Delete.
34284 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
34285 (df_ref_remove): Likewise.
34287 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34289 * df.h (df_single_def, df_single_use): New functions.
34290 * ira.c (find_moveable_pseudos): Use them.
34292 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34294 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
34295 * df-problems.c (df_note_bb_compute): Use it.
34296 * regstat.c (regstat_bb_compute_ri): Likewise.
34298 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34300 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34301 * cse.c (cse_extended_basic_block): Use them.
34302 * dce.c (mark_artificial_use): Likewise.
34303 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34304 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34305 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34306 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34307 (df_simulate_initialize_backwards): Likewise.
34308 (df_simulate_finalize_backwards): Likewise.
34309 (df_simulate_initialize_forwards): Likewise.
34310 (df_md_simulate_artificial_defs_at_top): Likewise.
34311 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34312 * regrename.c (init_rename_info): Likewise.
34313 * regstat.c (regstat_bb_compute_ri): Likewise.
34314 (regstat_bb_compute_calls_crossed): Likewise.
34316 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34318 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34319 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34320 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34321 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34322 * combine.c (create_log_links): Likewise.
34323 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34324 (try_eliminate_compare): Likewise.
34325 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34326 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34327 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34328 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34329 (word_dce_process_block, dce_process_block): Likewise.
34330 * ddg.c (def_has_ccmode_p): Likewise.
34331 * df-core.c (df_bb_regno_first_def_find): Likewise.
34332 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34333 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34334 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34335 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34336 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34337 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34338 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34339 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34340 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34341 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34342 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34343 * fwprop.c (local_ref_killed_between_p): Likewise.
34344 (all_uses_available_at, free_load_extend): Likewise.
34345 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34346 * hw-doloop.c (scan_loop): Likewise.
34347 * ifcvt.c (dead_or_predicable): Likewise.
34348 * init-regs.c (initialize_uninitialized_regs): Likewise.
34349 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34350 (process_bb_node_lives): Likewise.
34351 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34352 (find_moveable_pseudos): Likewise.
34353 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34354 * recog.c (peep2_find_free_register): Likewise.
34355 * ree.c (get_defs): Likewise.
34356 * regstat.c (regstat_bb_compute_ri): Likewise.
34357 (regstat_bb_compute_calls_crossed): Likewise.
34358 * sched-deps.c (find_inc, find_mem): Likewise.
34359 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34360 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34361 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34362 (prepare_shrink_wrap): Likewise.
34363 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34364 * web.c (union_defs, pass_web::execute): Likewise.
34365 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34366 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34368 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34370 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34371 to inheritance pseudos.
34372 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34374 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34377 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34378 (BU_MISC_2): Rename to ...
34379 (BU_LDBL128_2): ... this.
34380 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34381 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34382 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34383 RS6000_BTM_LDBL128.
34384 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34385 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34386 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34387 (unpacktf_1): Likewise.
34388 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34389 (__builtin_longdouble_dw1): Likewise.
34390 * doc/sourcebuild.texi (longdouble128): Document.
34392 2014-06-13 Jeff Law <law@redhat.com>
34394 PR rtl-optimization/61094
34395 PR rtl-optimization/61446
34396 * ree.c (combine_reaching_defs): Get the mode for the copy from
34397 the extension insn rather than the defining insn.
34399 2014-06-13 Dehao Chen <dehao@google.com>
34401 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34403 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34405 * doc/install.texi (--enable-linker-plugin-configure-flags)
34406 (--enable-linker-plugin-flags): Document new flags.
34408 2014-06-13 Martin Jambor <mjambor@suse.cz>
34411 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34412 cache_token if returning early.
34414 2014-06-13 Nick Clifton <nickc@redhat.com>
34416 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34417 requested alignment is active.
34418 (LABEL_ALIGN): Likewise.
34419 (LOOP_ALIGN): Likewise.
34421 2014-06-13 Richard Biener <rguenther@suse.de>
34423 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34424 Rewrite to propagate the VN result into all uses where
34425 possible and to remove stmts becoming dead because of that.
34426 (eliminate): Generalize stmt removal handling, remove in
34427 reverse dominator order to support proper debug stmt
34428 generation. Update stmts before removing stmts.
34429 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34431 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34433 PR tree-optimization/61375
34434 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34435 symbolic number cannot be represented in an uint64_t.
34436 (find_bswap_or_nop_1): Likewise.
34438 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34440 * symtab.c (symtab_node::reset_section): New method.
34441 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34443 * cgraph.h (reset_section): Declare.
34444 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34445 do not consider comdat locals.
34446 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34448 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34449 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34450 reset sections of symbols dragged out of the comdats.
34451 (function_and_variable_visibility): Reset sections of
34454 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34456 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34457 to use symtab and decl_binds_to_current_def_p
34458 * tree-vectorizer.c (increase_alignment): Increase alignment
34459 of alias target, too.
34461 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34463 PR middle-end/61486
34464 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34465 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34466 if outer combined construct is distribute.
34467 (gimplify_omp_for): For OMP_DISTRIBUTE set
34468 gimplify_omp_ctxp->distribute.
34469 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34470 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34471 mapping into decl map.
34473 2014-06-12 Jason Merrill <jason@redhat.com>
34475 * common.opt (fabi-version): Change default to 0.
34477 2014-06-12 Jason Merrill <jason@redhat.com>
34479 * toplev.c (process_options): Reject -fabi-version=1.
34481 2014-06-12 Jeff Law <law@redhat.com>
34483 PR tree-optimization/61009
34484 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34485 value when we stop processing a block due to problematic PHIs.
34487 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34489 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34490 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34491 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34492 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34493 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34494 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34495 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34496 are not in the spec.
34498 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34501 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34502 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34505 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34507 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34509 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34512 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34513 loading from address spaces.
34515 2014-06-12 Martin Liska <mliska@suse.cz>
34518 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34519 statement is reachable.
34521 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34523 * symtab.c (section_hash): New hash.
34524 (symtab_unregister_node): Clear section before freeing.
34525 (hash_section_hash_entry): New haser.
34526 (eq_sections): New function.
34527 (symtab_node::set_section_for_node): New method.
34528 (set_section_1): Update.
34529 (symtab_node::set_section): Take string instead of tree as parameter.
34530 (symtab_resolve_alias): Update.
34531 * cgraph.h (section_hash_entry_d): New structure.
34532 (section_hash_entry): New typedef.
34533 (cgraph_node): Change comdat_group_ to x_comdat_group,
34534 change section_ to x_section and turn into section_hash_entry;
34535 update accestors; put set_section_for_node offline.
34536 * tree.c (decl_section_name): Turn into string.
34537 (set_decl_section_name): Change parameter to be string.
34538 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34539 * sdbout.c (sdbout_one_type): Update.
34540 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34541 * varasm.c (IN_NAMED_SECTION, get_named_section,
34542 resolve_unique_section, hot_function_section, get_named_text_section,
34543 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34544 make_decl_rtl, default_unique_section): Update.
34545 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34546 (c6x_elf_unique_section): Update.
34547 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34548 * config/pa/pa.c (pa_function_section): Update.
34549 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34550 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34551 * config/arc/arc.c (arc_in_small_data_p): Update.
34552 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34553 * config/mcore/mcore.c (mcore_unique_section): Update.
34554 * config/mips/mips.c (mips16_build_function_stub): Update.
34555 (mips16_build_call_stub): Update.
34556 (mips_function_rodata_section): Update.
34557 (mips_in_small_data_p): Update.
34558 * config/score/score.c (score_in_small_data_p): Update.
34559 * config/rx/rx.c (rx_in_small_data): Update.
34560 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34561 (rs6000_xcoff_asm_named_section): Update.
34562 (rs6000_xcoff_unique_section): Update.
34563 * config/frv/frv.c (frv_string_begins_with): Update.
34564 (frv_in_small_data_p): Update.
34565 * config/v850/v850.c (v850_encode_data_area): Update.
34566 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34567 (bfin_handle_l1_data_attribute): Update.
34568 (bfin_handle_l2_attribute): Update.
34569 * config/mep/mep.c (mep_unique_section): Update.
34570 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34572 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34573 (h8300_handle_tiny_data_attribute): Update.
34574 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34575 (m32r_in_small_data_p): Update.
34576 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34577 * config/i386/i386.c (ix86_in_large_data_p): Update.
34578 * config/i386/winnt.c (i386_pe_unique_section): Update.
34579 * config/darwin.c (darwin_function_section): Update.
34580 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34581 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34582 (new_emutls_decl): Update.
34583 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34584 input_varpool_node): Update.
34585 (ead_string_cst): Turn to ...
34586 (read_string): ... this one.
34587 * dwarf2out.c (secname_for_decl): Update.
34588 * asan.c (asan_protect_global): Update.
34590 2014-06-11 DJ Delorie <dj@redhat.com>
34592 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34594 * config/rx/rx.c (rx_option_override): Likewise.
34595 (rx_align_for_label): Likewise.
34597 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34599 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34601 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34604 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34606 * common.md: New file.
34607 * doc/md.texi: Update description of generic, machine-independent
34609 * config/s390/constraints.md (e): Delete.
34610 * Makefile.in (md_file): Include common.md.
34611 * config/m32c/t-m32c (md_file): Likewise.
34612 * genpreds.c (general_mem): New array.
34613 (generic_constraint_letters): Remove constraints now defined by
34615 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34616 Allow the first character to be '<' or '>' as well.
34617 * genoutput.c (general_mem): New array.
34618 (indep_constraints): Remove constraints now defined by common.md.
34619 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34620 Remove special handling of 'm'.
34621 * ira-costs.c (record_reg_classes): Remove special handling of
34622 constraints now defined by common.md.
34623 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34624 * ira-lives.c (single_reg_class): Likewise.
34625 (ira_implicitly_set_insn_hard_regs): Likewise.
34626 * lra-constraints.c (reg_class_from_constraints): Likewise.
34627 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34628 * postreload.c (reload_cse_simplify_operands): Likewise.
34629 * reload.c (push_secondary_reload, scratch_reload_class)
34630 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34631 * reload1.c (maybe_fix_stack_asms): Likewise.
34632 * targhooks.c (default_secondary_reload): Likewise.
34633 * stmt.c (parse_output_constraint): Likewise.
34634 * recog.c (preprocess_constraints): Likewise.
34635 (constrain_operands, peep2_find_free_register): Likewise.
34636 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34637 must be handled specially.
34639 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34641 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34642 * genpreds.c (have_const_dbl_constraints): Delete.
34643 (add_constraint): Don't set it.
34644 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34645 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34646 constraints using the lookup_constraint logic.
34647 * ira-lives.c (single_reg_class): Likewise.
34648 * ira.c (ira_setup_alts): Likewise.
34649 * lra-constraints.c (process_alt_operands): Likewise.
34650 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34651 * reload.c (find_reloads): Likewise.
34653 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34655 * genpreds.c (const_int_start, const_int_end): New variables.
34656 (choose_enum_order): Output CONST_INT constraints before memory
34658 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34660 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34661 * ira.c (ira_setup_alts): Likewise.
34662 * lra-constraints.c (process_alt_operands): Likewise.
34663 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34664 * reload.c (find_reloads): Likewise.
34666 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34668 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34669 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34670 * recog.c (preprocess_constraints): Update accordingly.
34672 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34674 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34675 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34676 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34677 * genpreds.c (print_type_tree): New function.
34678 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34679 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34680 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34681 Write out enum constraint_type and get_constraint_type.
34682 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34683 constraint_num rather than a constraint string.
34684 (satisfies_address_constraint_p): Likewise.
34685 (reg_class_from_constraints): Avoid old constraint macros.
34686 (process_alt_operands, process_address_1): Likewise.
34687 (curr_insn_transform): Likewise.
34688 * ira-costs.c (record_reg_classes): Likewise.
34689 (record_operand_costs): Likewise.
34690 * ira-lives.c (single_reg_class): Likewise.
34691 (ira_implicitly_set_insn_hard_regs): Likewise.
34692 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34693 * postreload.c (reload_cse_simplify_operands): Likewise.
34694 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34695 (constrain_operands, peep2_find_free_register): Likewise.
34696 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34697 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34698 * reload1.c (maybe_fix_stack_asms): Likewise.
34699 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34700 * targhooks.c (default_secondary_reload): Likewise.
34701 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34702 to EXTRA_CONSTRAINT_STR.
34703 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34705 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34707 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34708 (write_constraint_satisfied_p_array): ...this new function.
34709 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34711 (write_insn_preds_c): Update accordingly.
34713 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34715 * genpreds.c (write_lookup_constraint): Rename to...
34716 (write_lookup_constraint_1): ...this.
34717 (write_lookup_constraint_array): New function.
34718 (write_tm_preds_h): Define lookup_constraint as an inline function
34719 that uses write_lookup_constraint_array where possible.
34720 (write_insn_preds_c): Update for the changes above.
34722 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34724 * doc/md.texi (regclass_for_constraint): Rename to...
34725 (reg_class_for_constraint): ...this.
34726 * genpreds.c (num_constraints, enum_order, register_start)
34727 (register_end, satisfied_start, memory_start, memory_end)
34728 (address_start, address_end): New variables.
34729 (add_constraint): Count the number of constraints.
34730 (choose_enum_order): New function.
34731 (write_enum_constraint_num): Iterate over enum_order.
34732 (write_regclass_for_constraint): Rename to...
34733 (write_reg_class_for_constraint_1): ...this and update output
34735 (write_constraint_satisfied_p): Rename to...
34736 (write_constraint_satisfied_p_1): ...this and update output
34737 accordingly. Do nothing if all extra constraints are register
34739 (write_insn_extra_memory_constraint): Delete.
34740 (write_insn_extra_address_constraint): Delete.
34741 (write_range_function): New function.
34742 (write_tm_preds_h): Define constraint_satisfied_p and
34743 reg_class_for_constraint as inline functions that do a range check
34744 before calling the out-of-line function. Use write_range_function
34745 to implement insn_extra_{register,memory,address}_constraint,
34746 the first of which is new.
34747 (write_insn_preds_c): Update after above changes to write_* functions.
34748 (main): Call choose_enum_order.
34750 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34752 PR tree-optimization/61306
34753 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34754 expression instead of its size.
34755 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34756 false to prevent optimization when the result is unpredictable due to
34757 arithmetic right shift of signed type with highest byte is set.
34758 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34759 (init_symbolic_number): Likewise.
34760 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34761 when the result is unpredictable due to sign extension.
34763 2014-06-11 Terry Guo <terry.guo@arm.com>
34765 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34766 (*thumb1_addsi3): Ditto.
34767 (*thumb_subdi3): Ditto.
34768 (thumb1_subsi3_insn): Ditto.
34769 (*thumb_mulsi3): Ditto.
34770 (*thumb_mulsi3_v6): Ditto.
34771 (*thumb1_andsi3_insn): Ditto.
34772 (thumb1_bicsi3): Ditto.
34773 (*thumb1_iorsi3_insn): Ditto.
34774 (*thumb1_xorsi3_insn): Ditto.
34775 (*thumb1_ashlsi3): Ditto.
34776 (*thumb1_ashrsi3): Ditto.
34777 (*thumb1_lshrsi3): Ditto.
34778 (*thumb1_rotrsi3): Ditto.
34779 (*thumb1_negdi2): Ditto.
34780 (*thumb1_negsi2): Ditto.
34781 (*thumb1_abssi2): Ditto.
34782 (*thumb1_neg_abssi2): Ditto.
34783 (*thumb1_one_cmplsi2): Ditto.
34784 (*thumb1_zero_extendhisi2): Ditto.
34785 (*thumb1_zero_extendqisi2): Ditto.
34786 (*thumb1_zero_extendqisi2_v6): Ditto.
34787 (thumb1_extendhisi2): Ditto.
34788 (thumb1_extendqisi2): Ditto.
34789 (*thumb1_movdi_insn): Ditto.
34790 (*thumb1_movsi_insn): Ditto.
34791 (*thumb1_movhi_insn): Ditto.
34792 (thumb_movhi_clobber): Ditto.
34793 (*thumb1_movqi_insn): Ditto.
34794 (*thumb1_movhf): Ditto.
34795 (*thumb1_movsf_insn): Ditto.
34796 (*thumb_movdf_insn): Ditto.
34797 (movmem12b): Ditto.
34799 (cbranchqi4): Ditto.
34800 (cbranchsi4_insn): Ditto.
34801 (cbranchsi4_scratch): Ditto.
34802 (*negated_cbranchsi4): Ditto.
34803 (*tbit_cbranch): Ditto.
34804 (*tlobits_cbranch): Ditto.
34805 (*tstsi3_cbranch): Ditto.
34806 (*cbranchne_decr1): Ditto.
34807 (*addsi3_cbranch): Ditto.
34808 (*addsi3_cbranch_scratch): Ditto.
34809 (*thumb_cmpdi_zero): Ditto.
34810 (cstoresi_eq0_thumb1): Ditto.
34811 (cstoresi_ne0_thumb1): Ditto.
34812 (*cstoresi_eq0_thumb1_insn): Ditto.
34813 (*cstoresi_ne0_thumb1_insn): Ditto.
34814 (cstoresi_nltu_thumb1): Ditto.
34815 (cstoresi_ltu_thumb1): Ditto.
34816 (thumb1_addsi3_addgeu): Ditto.
34817 (*thumb_jump): Ditto.
34818 (*call_reg_thumb1_v5): Ditto.
34819 (*call_reg_thumb1): Ditto.
34820 (*call_value_reg_thumb1_v5): Ditto.
34821 (*call_value_reg_thumb1): Ditto.
34822 (*call_insn): Ditto.
34823 (*call_value_insn): Ditto.
34824 (thumb1_casesi_internal_pic): Ditto.
34825 (thumb1_casesi_dispatch): Ditto.
34826 (*thumb1_indirect_jump): Ditto.
34827 (prologue_thumb1_interwork): Ditto.
34828 (*epilogue_insns): Ditto.
34829 (consttable_1): Ditto.
34830 (consttable_2): Ditto.
34831 (tablejump): Ditto.
34832 (*thumb1_tablejump): Ditto.
34833 (thumb_eh_return): Ditto.
34834 (define_peephole2): Two of them are thumb1 only and got moved into
34835 new file thumb1.md.
34836 (define_split): Six of them are thumb1 only and got moved into new
34838 * config/arm/thumb1.md: New file comprised of above thumb1 only
34841 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34843 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34844 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34846 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34847 (aarch64_crc_builtin_datum): New struct.
34848 (aarch64_crc_builtin_data): New.
34849 (aarch64_init_crc32_builtins): New function.
34850 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34851 (aarch64_crc32_expand_builtin): New.
34852 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34853 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34854 __ARM_FEATURE_CRC32 when appropriate.
34855 (TARGET_CRC32): Define.
34856 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34857 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34858 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34859 (aarch64_<crc_variant>): New pattern.
34860 * config/aarch64/arm_acle.h: New file.
34861 * config/aarch64/iterators.md (CRC): New int iterator.
34862 (crc_variant, crc_mode): New int attributes.
34863 * doc/aarch64-acle-intrinsics.texi: New file.
34864 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34865 Include aarch64-acle-intrinsics.texi.
34867 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34869 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34870 check for stores group of length 3.
34871 (vect_permute_store_chain): New permutations for stores group of
34873 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34874 of vec_perm_shuffle for the new permutations.
34876 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34878 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34879 table rewriting temporarily on targets not supporting ONE_ONLY.
34881 2014-06-11 Richard Biener <rguenther@suse.de>
34883 PR middle-end/61437
34885 2014-06-04 Richard Biener <rguenther@suse.de>
34887 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34888 TREE_PUBLIC and DECL_EXTERNAL decls.
34890 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34892 * varasm.c (set_implicit_section): New function.
34893 (resolve_unique_section): Use it to set implicit section
34895 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34896 (default_function_section): Likewise.
34897 (decl_binds_to_current_def_p): Constify argument.
34898 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34899 * asan.c (asan_protect_global): Use
34900 symtab_get_node (decl)->implicit_section.
34901 * symtab.c (dump_symtab_base): Dump implicit sections.
34902 (verify_symtab_base): Verify sanity of sectoins and comdats.
34903 (symtab_resolve_alias): Alias share the section of its target.
34904 (set_section_1): New function.
34905 (symtab_node::set_section): Move here, recurse to aliases.
34906 (verify_symtab): Check for duplicated symtab lists.
34907 * tree-core.h (implicit_section_name_p): Remove.
34908 * tree-vect-data-refs.c: Include varasm.h.
34909 (vect_can_force_dr_alignment_p): Fix conditional on when
34910 decl bints to current definition; use
34911 symtab_get_node (decl)->implicit_section.
34912 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34913 * cgraph.h (struct symtab_node): Add implicit_section.
34914 (set_section): Rename to ...
34915 (set_section_for_node): ... this one.
34916 (set_section): Declare.
34917 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34918 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34919 input_overwrite_node, input_varpool_node): Stream implicit_section.
34920 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34921 removal; it will fail in LTO.
34923 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34925 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34926 Change second alternative type to f_mcr.
34927 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34928 and 12th alternatives' types to f_mcr and f_mrc.
34929 (*movdi_aarch64): Same for 12th and 13th alternatives.
34930 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34931 (aarch64_movtilow_tilow): Change type to fmov.
34933 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34935 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34936 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34938 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34940 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34942 (aarch64_sqrdmulh_lane<mode>): Likewise.
34943 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34944 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34945 (aarch64_sqdmulh_laneq<mode>): New expander.
34946 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34947 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34948 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34949 (aarch64_sqdmulh_lane<mode>): New expander.
34950 (aarch64_sqrdmulh_lane<mode>): Likewise.
34951 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34952 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34953 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
34954 (aarch64_sqdmlal_laneq<mode>): Likewise.
34955 (aarch64_sqdmlsl_lane<mode>): Likewise.
34956 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34957 (aarch64_sqdmlal2_lane<mode>): Likewise.
34958 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34959 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34960 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34961 (aarch64_sqdmull_lane<mode>): Likewise.
34962 (aarch64_sqdmull_laneq<mode>): Likewise.
34963 (aarch64_sqdmull2_lane<mode>): Likewise.
34964 (aarch64_sqdmull2_laneq<mode>): Likewise.
34966 2014-06-10 Richard Biener <rguenther@suse.de>
34968 PR tree-optimization/61438
34969 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34970 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34971 insertion of IVs if running PRE.
34972 (eliminate): Adjust.
34973 (pass_pre::execute): Likewise.
34974 (pass_fre::execute): Likewise.
34976 2014-06-10 Richard Biener <rguenther@suse.de>
34978 PR middle-end/61456
34979 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34980 Do not use the main variant for the type comparison.
34981 (ncr_compar): Likewise.
34982 (nonoverlapping_component_refs_p): Likewise.
34984 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34986 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34987 REG_CFA_RESTORE mode.
34989 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34991 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34992 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34993 expand_vec_perm_pblendv.
34995 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34997 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34999 Simplify description of __crc32d and __crc32cd intrinsics.
35000 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
35003 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
35006 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
35007 * config.in: Regenerate.
35008 * configure: Likewise.
35010 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
35012 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
35014 (intersect_static_var_sets): Remove.
35015 (propagate): Do not prune local statics.
35017 2014-06-10 Jakub Jelinek <jakub@redhat.com>
35020 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
35021 Set lastprivate_firstprivate even if omp_private_outer_ref
35022 langhook returns true.
35023 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
35024 langhook, call unshare_expr on new_var and call
35025 build_outer_var_ref to get the last argument.
35027 2014-06-10 Marek Polacek <polacek@redhat.com>
35030 * doc/extend.texi: Add cindex for transparent_union.
35032 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35034 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
35035 init_symbolic_number ().
35037 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
35039 PR middle-end/61141
35040 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
35041 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
35042 (verify_rtl_sharing): Likewise.
35044 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
35047 * tree.c (build_qualified_type): Use a canonical type for
35050 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35052 * config/arm/arm-modes.def: Remove XFmode.
35054 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
35057 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
35058 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
35059 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
35060 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
35061 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
35062 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
35063 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
35064 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
35065 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
35067 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
35069 * tree-core.h (tree_decl_with_vis): Remove section_name.
35071 2014-06-09 Kito Cheng <kito@0xlab.org>
35073 * ira.c (ira): Don't call init_caller_save if LRA enabled
35074 since LRA use its own infrastructure to handle that.
35076 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
35078 * symtab.c (dump_symtab_base): Update dumping.
35079 (symtab_make_decl_local): Clear only DECL_COMDAT.
35080 * tree-vect-data-refs.c (Check that variable is static before
35081 tampering with sections.
35082 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
35083 (cgraph_create_virtual_clone): Likewise.
35084 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
35085 (decl_section_name, set_decl_section_name): New accessors.
35086 (find_decls_types_r): Do not walk section name
35087 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
35088 (decl_comdat_group, decl_comdat_group_id): Constify.
35089 (decl_section_name, set_decl_section_name): Update.
35090 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
35091 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
35092 (cgraph_make_node_local_1): Clear section and comdat group.
35093 * cgraph.h (set_comdat_group): Sanity check.
35094 (get_section, set_section): New.
35095 * ipa-comdats.c (ipa_comdats): Use get_section.
35096 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
35097 * lto-streamer-out.c: Do not follow section names.
35098 * c-family/c-common.c (handle_section_attribute): Update.
35099 * lto-cgraph.c (lto_output_node): Output section.
35100 (lto_output_varpool_node): Likewise.
35101 (read_comdat_group): Rename to ...
35102 (read_identifier): ... this one.
35103 (read_string_cst): New function.
35104 (input_node, input_varpool_node): Input section names.
35105 * tree-emutls.c (get_emutls_init_templ_addr): Update.
35106 (new_emutls_decl): Update.
35107 (secname_for_decl): Check section names only of static vars.
35108 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
35109 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
35110 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
35111 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
35112 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
35113 * config/mcore/mcore.c (mcore_unique_section): Likewise.
35114 * config/mips/mips.c (mips16_build_function_stub): Likewise.
35115 * config/v850/v850.c (v850_insert_attributes): Likewise.
35116 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
35118 (h8300_handle_tiny_data_attribute): Likewise.
35119 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
35120 (bfin_handle_l2_attribute): Likewise.
35122 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
35124 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
35125 remove static initializer.
35127 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
35129 * varasm.c (use_blocks_for_decl_p): Check symbol table
35130 instead of alias attribute.
35131 (place_block_symbol): Recurse on aliases.
35133 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
35135 * ipa-visibility.c: Include varasm.h
35136 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
35138 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
35140 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
35141 outputting aliases.
35143 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
35145 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
35146 from test_insn into GGC space escape via SET_SRC.
35148 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
35150 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
35151 call statement, if any.
35152 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
35153 statements, if any. Tidy up.
35155 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35158 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
35159 iterators, VSX_D that handles 64-bit types, and VSX_LE that
35160 handles swapping the two 64-bit double words on little endian
35161 systems. Include V1TImode and optionally TImode in VSX_LE so that
35162 these types are properly swapped. Change all of the insns and
35163 splits that do the 64-bit swaps to use VSX_LE.
35164 (vsx_le_perm_load_<mode>): Likewise.
35165 (vsx_le_perm_store_<mode>): Likewise.
35166 (splitters for little endian memory operations): Likewise.
35167 (vsx_xxpermdi2_le_<mode>): Likewise.
35168 (vsx_lxvd2x2_le_<mode>): Likewise.
35169 (vsx_stxvd2x2_le_<mode>): Likewise.
35171 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
35174 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
35175 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
35176 and corresponding splitters. Zero extend general register
35177 or memory input operand to XMM temporary. Enable for
35178 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
35179 (floatunssi<mode>2): Update expander predicate.
35181 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
35183 PR rtl-optimization/61325
35184 * lra-constraints.c (process_address_1): Check scale equal to one
35185 to prevent transformation: base + scale * index => base + new_reg.
35187 2014-06-06 Richard Biener <rguenther@suse.de>
35189 PR tree-optimization/59299
35190 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
35192 (nearest_common_dominator_of_uses): Likewise.
35193 (statement_sink_location): Adjust. Support sinking loads.
35195 2014-06-06 Martin Jambor <mjambor@suse.cz>
35197 * ipa-prop.c (get_place_in_agg_contents_list): New function.
35198 (build_agg_jump_func_from_list): Likewise.
35199 (determine_known_aggregate_parts): Renamed to
35200 determine_locally_known_aggregate_parts. Moved some functionality
35201 to the two functions above, removed bound checks.
35203 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
35205 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
35206 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
35207 (aarch64_progress_pointer): Likewise.
35208 (aarch64_copy_one_part_and_move_pointers): Likewise.
35209 (aarch64_expand_movmen): Likewise.
35210 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
35211 * config/aarch64/aarch64.md (movmem<mode>): New.
35213 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
35215 * targhooks.c (default_add_stmt_cost): Call target specific
35216 hook instead of default one.
35218 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35220 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
35221 endianness instead of host endianness.
35222 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
35225 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35228 * function.c (instantiate_decls): Process the saved static chain.
35229 (expand_function_start): If not optimizing, save the static chain
35231 * tree-nested.c (convert_all_function_calls): Always create the static
35232 chain for nested functions if not optimizing.
35234 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35236 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
35238 2014-06-06 Richard Biener <rguenther@suse.de>
35240 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
35241 (construct_init_block): Likewise.
35242 (construct_exit_block): Likewise.
35243 (pass_expand::execute): Likewise.
35244 * graphite.c (graphite_transforms): Replace check for current_loops
35245 with a check for > 1 loops.
35246 (pass_graphite_transforms::execute): Adjust.
35247 * ipa-split.c (split_function): Remove check for current_loops.
35248 * omp-low.c (expand_parallel_call): Likewise.
35249 (expand_omp_for_init_counts): Likewise.
35250 (extract_omp_for_update_vars): Likewise.
35251 (expand_omp_for_generic): Likewise.
35252 (expand_omp_sections): Likewise.
35253 (expand_omp_target): Likewise.
35254 * tracer.c (tail_duplicate): Likewise.
35255 (pass_tracer::execute): Likewise.
35256 * trans-mem.c (expand_transaction): Likewise.
35257 * tree-complex.c (expand_complex_div_wide): Likewise.
35258 * tree-eh.c (lower_resx): Likewise.
35259 (cleanup_empty_eh_merge_phis): Likewise.
35260 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
35261 current_loops with a check for > 1 loops.
35262 (pass_predcom::execute): Adjust.
35263 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
35264 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
35265 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
35266 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
35267 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
35268 * tree-switch-conversion.c (process_switch): Likewise.
35269 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
35270 * tree-vrp.c (vrp_visit_phi_node): Likewise.
35271 (execute_vrp): Likewise.
35272 * ubsan.c (ubsan_expand_null_ifn): Likewise.
35274 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35276 * rtl.h (insn_location): Declare.
35277 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
35278 with UNKNOWN_LOCATION.
35279 * emit-rtl.c (insn_location): New function.
35280 * final.c (notice_source_line): Check that the instruction has a
35281 location before retrieving it and use insn_location.
35282 * modulo-sched.c (loop_single_full_bb_p): Likewise.
35283 * print-rtl.c (print_rtx): Likewise.
35285 2014-06-06 Richard Biener <rguenther@suse.de>
35287 * passes.def: Move 2nd VRP pass before phi-only-cprop.
35289 2014-06-06 Christian Bruel <christian.bruel@st.com>
35291 PR tree-optimization/43934
35292 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
35295 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
35297 * ira-lives.c (single_reg_class): Add missing break. Explicitly
35298 return NO_REGS for extra address and memory constraints. Handle
35299 operands that match (or are equivalent to something that matches)
35300 extra constant constraints. Ignore other non-register operands.
35302 2014-06-06 Alan Modra <amodra@gmail.com>
35305 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35306 * doc/tm.texi: Regenerate.
35307 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35308 Use throughout in place of REG_PARM_STACK_SPACE.
35309 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35310 "incoming" param. Pass to rs6000_function_parms_need_stack.
35311 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35312 prototype_p when incoming. Use function decl when incoming
35313 to handle K&R style functions.
35314 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35315 (INCOMING_REG_PARM_STACK_SPACE): Define.
35317 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35320 * cfgexpand.c (expand_debug_expr): Use address space of nested
35321 TREE_TYPE for ADDR_EXPR and MEM_REF.
35323 2014-06-05 Jeff Law <law@redhat.com>
35325 PR tree-optimization/61289
35326 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35327 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35328 looking for those which match LHS. All callers changed.
35329 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35330 parameters and code which manipulated them. All callers changed.
35331 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35332 and DST_MAP parameters. Simplify invalidation code by just calling
35333 invalidate_equivalences. All callers changed.
35334 (thread_across_edge): Simplify now that we don't need to maintain
35335 the map of equivalences to invalidate.
35337 2014-06-05 Kai Tietz <ktietz@redhat.com>
35338 Richard Henderson <rth@redhat.com>
35341 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35342 checking for !TARGET_X32.
35343 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35344 (sibcall_intern): New define_insn, plus required peepholes.
35345 (sibcall_pop_intern): Likewise.
35346 (sibcall_value_intern): Likewise.
35347 (sibcall_value_pop_intern): Likewise.
35349 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35351 * tree-inline.c (tree_function_versioning): Check DF info existence
35352 before accessing it.
35354 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35356 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35358 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35359 aarch64_frame hard_fp_offset and frame_size.
35360 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35361 frame_size; remove original_frame_size.
35362 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35363 (aarch64_initial_elimination_offset): Remove frame_size and
35364 offset. Use aarch64_frame frame_size.
35366 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35367 Jiong Wang <jiong.wang@arm.com>
35368 Renlin <renlin.li@arm.com>
35370 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35371 initialization of R30 offset. Update offset. Iterate core
35372 regisers upto X30. Remove X29, X30 specific code.
35374 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35375 Jiong Wang <jiong.wang@arm.com>
35377 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35378 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35379 (aarch64_register_saved_on_entry): Adjust test.
35381 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35383 * config/aarch64/aarch64.h (machine_function): Move
35384 saved_varargs_size from here...
35385 (aarch64_frame): ... to here.
35387 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35388 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35389 (aarch64_initial_elimination_offset)
35390 (aarch64_setup_incoming_varargs): Adjust location of
35391 saved_varargs_size.
35393 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35395 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35398 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35399 Prachi Godbole <Prachi.Godbole@imgtec.com>
35401 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35402 mips32r5 entry to use PROCESSOR_P5600.
35403 * config/mips/mips-tables.opt: Regenerate.
35404 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35405 * config/mips/mips.c (mips_fmadd_bypass): New function.
35406 (mips_rtx_cost_data): Add costs for p5600.
35407 (mips_issue_rate): Add support for p5600.
35408 (mips_multipass_dfa_lookahead): Likewise.
35409 * config/mips/mips.h (TUNE_P5600): New define.
35410 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35411 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35412 * config/mips/mips.md: Include p5600.md.
35413 (processor): Add p5600.
35414 * config/mips/p5600.md: New file.
35416 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35418 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35419 * config/i386/predicates.md (palignr_operand): New.
35420 Indicates if permutation is suitable for palignr instruction.
35422 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35424 PR tree-optimization/61319
35425 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35426 stmt belongs to loop.
35428 2014-06-05 Richard Biener <rguenther@suse.de>
35430 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35431 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35432 (lookup_tmp_var): Adjust.
35433 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35435 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35437 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35439 2014-06-05 Marek Polacek <polacek@redhat.com>
35442 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35444 2014-06-04 Tom de Vries <tom@codesourcery.com>
35446 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35449 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35451 PR tree-optimization/61385
35452 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35454 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35456 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35457 changed to use fatal_error.
35458 (main): Ensure lto_wrapper_cleanup is run atexit.
35460 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35462 * lra-constraints.c (valid_address_p): Move earlier in file.
35463 (address_eliminator): New structure.
35464 (satisfies_memory_constraint_p): New function.
35465 (satisfies_address_constraint_p): Likewise.
35466 (process_alt_operands, process_address, curr_insn_transform): Use them.
35468 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35470 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35472 (target_lra_int, default_target_lra_int, this_target_lra_int)
35473 (op_alt_data): Delete.
35474 * lra.h (lra_init): Delete.
35475 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35476 (init_insn_code_data_once): Remove op_alt_data handling.
35477 (finish_insn_code_data_once): Likewise.
35478 (init_op_alt_data): Delete.
35479 (get_static_insn_data): Initialize operand_alternative to null.
35480 (free_insn_recog_data): Cast operand_alternative before freeing it.
35481 (setup_operand_alternative): Take the operand_alternative as
35482 parameter and assume it isn't already cached in the static
35484 (lra_set_insn_recog_data): Update accordingly.
35485 (lra_init): Delete.
35486 * ira.c (ira_init): Don't call lra_init.
35487 * target-globals.h (this_target_lra_int): Declare.
35488 (target_globals): Remove lra_int.
35489 (restore_target_globals): Update accordingly.
35490 * target-globals.c: Don't include lra-int.h.
35491 (default_target_globals, save_target_globals): Remove lra_int.
35493 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35495 * recog.h (operand_alternative): Convert reg_class, reject,
35496 matched and matches into bitfields.
35497 (preprocess_constraints): New overload.
35498 (preprocess_insn_constraints): New function.
35499 (preprocess_constraints): Take the insn as parameter.
35500 (recog_op_alt): Change into a pointer.
35501 (target_recog): Add x_op_alt.
35502 * recog.c (asm_op_alt): New variable.
35503 (recog_op_alt): Change into a pointer.
35504 (preprocess_constraints): New overload, replacing the old function
35505 definition with one that doesn't use global state.
35506 (preprocess_insn_constraints): New function.
35507 (preprocess_constraints): Use them. Take the insn as parameter.
35508 Use asm_op_alt for asms.
35509 (recog_init): Free existing x_op_alt entries.
35510 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35512 (make_early_clobber_and_input_conflicts): Likewise.
35513 (process_bb_node_lives): Pass the insn to process_constraints.
35514 * reg-stack.c (check_asm_stack_operands): Likewise.
35515 (subst_asm_stack_regs): Likewise.
35516 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35517 * regrename.c (build_def_use): Likewise.
35518 * sched-deps.c (sched_analyze_insn): Likewise.
35519 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35520 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35521 (note_invalid_constants): Likewise.
35522 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35523 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35526 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35528 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35529 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35531 (make_early_clobber_and_input_conflicts): Likewise.
35532 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35534 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35536 * recog.h (alternative_class): New function.
35537 (which_op_alt): Return a const recog_op_alt.
35538 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35539 (subst_asm_stack_regs): Likewise.
35540 * config/arm/arm.c (note_invalid_constants): Likewise.
35541 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35542 the operand_alternative; use alternative class instead.
35543 * sel-sched.c (get_reg_class): Likewise.
35544 * regrename.c (build_def_use): Likewise.
35545 (hide_operands, restore_operands, record_out_operands): Update type
35548 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35550 * recog.h (recog_op_alt): Convert to a flat array.
35551 (which_op_alt): New function.
35552 * recog.c (recog_op_alt): Convert to a flat array.
35553 (preprocess_constraints): Update accordingly, grouping all
35554 operands of the same alternative together, rather than the
35556 * ira-lives.c (check_and_make_def_conflict): Likewise.
35557 (make_early_clobber_and_input_conflicts): Likewise.
35558 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35559 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35560 (subst_asm_stack_regs): Likewise.
35561 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35562 * regrename.c (hide_operands, record_out_operands): Likewise.
35563 (build_def_use): Likewise.
35564 * sel-sched.c (get_reg_class): Likewise.
35565 * config/arm/arm.c (note_invalid_constants): Likewise.
35567 2014-06-04 Jason Merrill <jason@redhat.com>
35571 * gimplify.c (gimplify_arg): Non-static.
35572 * gimplify.h: Declare it.
35574 2014-06-04 Richard Biener <rguenther@suse.de>
35576 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35577 TREE_PUBLIC and DECL_EXTERNAL decls.
35579 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35581 * regcprop.c (copyprop_hardreg_forward_1): Account for
35582 HARD_REGNO_CALL_PART_CLOBBERED.
35584 2014-06-04 Richard Biener <rguenther@suse.de>
35586 * configure.ac: Check whether the underlying type of int64_t
35587 is long or long long.
35588 * configure: Regenerate.
35589 * config.in: Likewise.
35590 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35591 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35593 2014-06-04 Richard Biener <rguenther@suse.de>
35595 PR tree-optimization/60098
35596 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35598 (dse_optimize_stmt): Simplify, now that we found a kill
35601 2014-06-04 Richard Biener <rguenther@suse.de>
35603 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35604 of accesses with non-invariant address.
35606 2014-06-04 Martin Liska <mliska@suse.cz>
35608 * cgraph.h (cgraph_make_wrapper): New function introduced.
35609 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35610 * ipa-inline.h (inline_analyze_function): The function is global.
35611 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35613 2014-06-04 Martin Liska <mliska@suse.cz>
35615 * tree.h (private_lookup_attribute_starting): New function.
35616 (lookup_attribute_starting): Likewise.
35617 * tree.c (private_lookup_attribute_starting): Likewise.
35619 2014-06-04 Martin Liska <mliska@suse.cz>
35621 * cgraph.h (expand_thunk): New argument added.
35622 (address_taken_from_non_vtable_p): New global function.
35623 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35624 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35625 * cgraphunit.c (analyze_function): Likewise.
35626 (assemble_thunks_and_aliases): Argument added to call.
35627 (expand_thunk): New argument forces to produce GIMPLE thunk.
35629 2014-06-04 Martin Liska <mliska@suse.cz>
35631 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35632 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35633 * profile.c (branch_prob): Likewise.
35635 2014-06-04 Martin Jambor <mjambor@suse.cz>
35638 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35639 handler for switch on an ipa_ref_use enum.
35640 * ipa-reference.c (analyze_function): Likewise.
35642 2014-06-04 Kai Tietz <ktietz@redhat.com>
35644 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35645 from old call-instruction.
35647 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35649 * config/aarch64/aarch64.c (aarch64_classify_address)
35650 (aarch64_legitimize_reload_address): Support full addressing modes
35652 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35653 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35655 2014-06-03 Andrew Pinski <apinski@cavium.com>
35657 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35660 2014-06-03 Andrew Pinski <apinski@cavium.com>
35662 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35663 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35665 2014-06-03 Kai Tietz <ktietz@redhat.com>
35667 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35670 2014-06-03 Dehao Chen <dehao@google.com>
35672 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35675 2014-06-03 Marek Polacek <polacek@redhat.com>
35678 * doc/invoke.texi: Document -Wswitch-bool.
35679 * function.c (stack_protect_epilogue): Cast controlling expression of
35681 * gengtype.c (walk_type): Generate switch expression with its
35682 controlling expression cast to int.
35684 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35686 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35688 * config/avr/avr-tables.opt: Regenerate.
35689 * config/avr/t-multilib: Regenerate.
35690 * doc/avr-mmcu.texi: Regenerate.
35692 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35693 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35695 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35696 (ata6617c, ata664251): Add new avr35 devices.
35697 (ata6612c): Add new avr4 device.
35698 (ata6613c, ata6614q): Add new avr5 devices.
35699 * config/avr/avr-tables.opt: Regenerate.
35700 * config/avr/t-multilib: Regenerate.
35701 * doc/avr-mmcu.texi: Regenerate.
35703 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35705 * gcc/config/aarch64/aarch64-builtins.c
35706 (aarch64_types_binop_ssu_qualifiers): New static data.
35707 (TYPES_BINOP_SSU): Define.
35708 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35709 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35710 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35711 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35712 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35713 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35714 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35715 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35716 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35717 suffix to builtin function name, remove cast.
35718 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35719 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35720 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35722 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35724 * gcc/config/aarch64/aarch64-builtins.c
35725 (aarch64_types_binop_uus_qualifiers,
35726 aarch64_types_shift_to_unsigned_qualifiers,
35727 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35728 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35729 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35730 sqshlu_n, uqshl_n): Update qualifiers.
35731 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35732 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35733 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35734 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35735 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35736 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35737 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35738 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35739 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35740 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35741 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35742 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35743 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35744 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35745 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35746 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35747 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35748 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35749 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35750 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35751 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35752 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35753 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35754 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35755 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35756 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35757 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35759 2014-06-03 Teresa Johnson <tejohnson@google.com>
35761 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35763 2014-06-02 Jason Merrill <jason@redhat.com>
35766 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35768 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35770 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35773 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35775 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35777 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35778 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35779 * config/aarch64/iterators.md (REVERSE): New iterator.
35780 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35781 (rev_op): New int_attribute.
35782 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35783 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35784 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35785 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35786 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35787 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35788 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35789 Replace temporary __asm__ with __builtin_shuffle.
35791 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35793 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35795 * config/mips/mips-tables.opt: Regenerate.
35796 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35797 to use mips_isa_rev rather than ISA_MIPS32R2.
35798 * config/mips/mips.h (ISA_MIPS32R3): New define.
35799 (ISA_MIPS32R5): New define.
35800 (ISA_MIPS64R3): New define.
35801 (ISA_MIPS64R5): New define.
35802 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35803 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35804 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35806 (MIPS_ISA_SYNCI_SPEC): Likewise.
35807 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35808 (LINK_SPEC): Added mips32r3 and mips32r5.
35809 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35810 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35811 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35812 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35813 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35814 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35815 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35817 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35819 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35821 * config/mips/mips.opt (mxpa): New option.
35822 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35825 2014-06-03 Martin Jambor <mjambor@suse.cz>
35828 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35831 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35833 PR tree-optimization/61328
35834 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35835 initialization from find_bswap_or_nop_1.
35836 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35837 in source_expr2 before using the size value the function sets. Also
35838 make use of init_symbolic_number () in both the old place and
35839 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35840 doing recursion in the GIMPLE_BINARY_RHS case.
35842 2014-06-03 Richard Biener <rguenther@suse.de>
35844 PR tree-optimization/61383
35845 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35848 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35850 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35851 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35852 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35853 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35855 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35856 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35857 * system.h: ...here and make it unconditional.
35858 * target.def (conditional_register_usage): Mention
35859 define_register_constraint instead of old-style constraint macros.
35860 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35861 * doc/tm.texi: Regenerate.
35862 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35863 protected by !USE_MD_CONSTRAINTS.
35864 * config/frv/frv.md: Remove quote from old version of documentation.
35865 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35866 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35867 CONST_DOUBLE_OK_FOR_LETTER.
35868 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35870 2014-06-02 Andrew Pinski <apinski@cavium.com>
35872 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35873 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35874 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35875 file whose name depends on -mabi= and -mbig-endian.
35876 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35877 Handle LP64 better and handle ilp32 too.
35878 (MULTILIB_OPTIONS): Delete.
35879 (MULTILIB_DIRNAMES): Delete.
35881 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35883 * expr.h: Remove prototypes of functions defined in builtins.c.
35884 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35885 Remove prototypes of functions defined in builtins.c.
35886 * builtins.h: Update prototype list to include all exported functions.
35887 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35888 no_c99_libc_has_function): Move to targhooks.c
35889 (build_string_literal, build_call_expr_loc_array,
35890 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35892 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35893 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35894 no_c99_libc_has_function): Relocate from builtins.c.
35895 * tree.c: Include builtins.h.
35896 (build_call_expr_loc_array, build_call_expr_loc_vec,
35897 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35899 * fold-const.h (fold_fma): Move prototype to builtins.h.
35900 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35901 * asan.c: Include builtins.h.
35902 * cfgexpand.c: Likewise.
35903 * convert.c: Likewise.
35904 * emit-rtl.c: Likewise.
35905 * except.c: Likewise.
35906 * expr.c: Likewise.
35907 * fold-const.c: Likewise.
35908 * gimple-fold.c: Likewise.
35909 * gimple-ssa-strength-reduction.c: Likewise.
35910 * gimplify.c: Likewise.
35911 * ipa-inline.c: Likewise.
35912 * ipa-prop.c: Likewise.
35913 * lto-streamer-out.c: Likewise.
35914 * stmt.c: Likewise.
35915 * tree-inline.c: Likewise.
35916 * tree-object-size.c: Likewise.
35917 * tree-sra.c: Likewise.
35918 * tree-ssa-ccp.c: Likewise.
35919 * tree-ssa-forwprop.c: Likewise.
35920 * tree-ssa-loop-ivcanon.c: Likewise.
35921 * tree-ssa-loop-ivopts.c: Likewise.
35922 * tree-ssa-math-opts.c: Likewise.
35923 * tree-ssa-reassoc.c: Likewise.
35924 * tree-ssa-threadedge.c: Likewise.
35925 * tree-streamer-in.c: Likewise.
35926 * tree-vect-data-refs.c: Likewise.
35927 * tree-vect-patterns.c: Likewise.
35928 * tree-vect-stmts.c: Likewise.
35929 * config/aarch64/aarch64.c: Likewise.
35930 * config/alpha/alpha.c: Likewise.
35931 * config/arc/arc.c: Likewise.
35932 * config/arm/arm.c: Likewise.
35933 * config/avr/avr.c: Likewise.
35934 * config/bfin/bfin.c: Likewise.
35935 * config/c6x/c6x.c: Likewise.
35936 * config/cr16/cr16.c: Likewise.
35937 * config/cris/cris.c: Likewise.
35938 * config/epiphany/epiphany.c: Likewise.
35939 * config/fr30/fr30.c: Likewise.
35940 * config/frv/frv.c: Likewise.
35941 * config/h8300/h8300.c: Likewise.
35942 * config/i386/i386.c: Likewise.
35943 * config/i386/winnt.c: Likewise.
35944 * config/ia64/ia64.c: Likewise.
35945 * config/iq2000/iq2000.c: Likewise.
35946 * config/lm32/lm32.c: Likewise.
35947 * config/m32c/m32c.c: Likewise.
35948 * config/m32r/m32r.c: Likewise.
35949 * config/m68k/m68k.c: Likewise.
35950 * config/mcore/mcore.c: Likewise.
35951 * config/mep/mep.c: Likewise.
35952 * config/microblaze/microblaze.c: Likewise.
35953 * config/mips/mips.c: Likewise.
35954 * config/mmix/mmix.c: Likewise.
35955 * config/mn10300/mn10300.c: Likewise.
35956 * config/moxie/moxie.c: Likewise.
35957 * config/msp430/msp430.c: Likewise.
35958 * config/nds32/nds32.c: Likewise.
35959 * config/pa/pa.c: Likewise.
35960 * config/pdp11/pdp11.c: Likewise.
35961 * config/picochip/picochip.c: Likewise.
35962 * config/rl78/rl78.c: Likewise.
35963 * config/rs6000/rs6000.c: Likewise.
35964 * config/rx/rx.c: Likewise.
35965 * config/s390/s390.c: Likewise.
35966 * config/score/score.c: Likewise.
35967 * config/sh/sh.c: Likewise.
35968 * config/sparc/sparc.c: Likewise.
35969 * config/spu/spu.c: Likewise.
35970 * config/stormy16/stormy16.c: Likewise.
35971 * config/tilegx/tilegx.c: Likewise.
35972 * config/tilepro/tilepro.c: Likewise.
35973 * config/v850/v850.c: Likewise.
35974 * config/vax/vax.c: Likewise.
35975 * config/xtensa/xtensa.c: Likewise.
35977 2014-06-02 Jeff Law <law@redhat.com>
35979 PR rtl-optimization/61094
35980 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35981 was marked as do_no_reextend. If a copy is needed to eliminate
35982 an extension, then mark it as do_not_reextend.
35984 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35986 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35988 2014-06-02 Richard Henderson <rth@redhat.com>
35991 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35992 addresses inside asms. Use output_operand_lossage instead of
35995 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35998 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35999 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
36001 2014-06-02 Tom de Vries <tom@codesourcery.com>
36003 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
36004 case that x has VOIDmode.
36006 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
36008 * varasm.c (copy_constant): Delete function.
36009 (build_constant_desc): Don't call it.
36011 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36014 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
36015 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
36016 with immediate_operand.
36018 2014-06-02 Andreas Schwab <schwab@suse.de>
36020 * config/ia64/ia64.c
36021 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
36022 pending_data_specs first.
36024 2014-06-02 Richard Biener <rguenther@suse.de>
36026 PR tree-optimization/61378
36027 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
36028 valueized_anything.
36030 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
36032 * config/i386/constraints.md (Bw): Rename from 'w'.
36033 (Bz): Rename from 'z'.
36034 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
36036 2014-06-01 Kai Tietz <ktietz@redhat.com>
36039 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
36040 * config/i386/i386.md (sibcall_insn_operand): Use Bs
36041 instead of m constraint.
36043 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
36045 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
36046 a separate alternative where the scratch operand 2 is marked as
36049 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
36051 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
36052 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
36053 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
36054 and __builtins_arm_get_fpscr.
36055 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
36056 __builtins_arm_get_fpscr.
36057 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
36058 __builtins_arm_ldfpscr.
36059 (arm_atomic_assign_expand_fenv): New function.
36060 * config/arm/vfp.md (set_fpscr): New pattern.
36061 (get_fpscr) : Likewise.
36062 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
36064 * doc/extend.texi (AARCH64 Built-in Functions) : Document
36065 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
36067 2014-05-30 Jakub Jelinek <jakub@redhat.com>
36069 * asan.c (report_error_func): Add SLOW_P argument, use
36070 BUILT_IN_ASAN_*_N if set.
36071 (build_check_stmt): Likewise.
36072 (instrument_derefs): If T has insufficient alignment,
36073 force same handling as for odd sizes.
36075 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
36076 BUILT_IN_ASAN_REPORT_STORE_N): New.
36077 * asan.c (struct asan_mem_ref): Change access_size type to
36079 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
36080 update_mem_ref_hash_table): Likewise.
36081 (asan_mem_ref_hasher::hash): Hash in a HWI.
36082 (report_error_func): Change size_in_bytes argument to HWI.
36083 Use *_N builtins if size_in_bytes is larger than 16 or not power of
36085 (build_shadow_mem_access): New function.
36086 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
36087 Handle size_in_bytes not power of two or larger than 16.
36088 (instrument_derefs): Don't give up if size_in_bytes is not
36089 power of two or is larger than 16.
36091 2014-05-30 Kai Tietz <ktietz@redhat.com>
36094 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
36095 for sibling-tail-calls.
36096 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
36098 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
36099 (sibcall_insn_operand): Add check for sibcall_memory_operand.
36101 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
36103 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
36104 * config/avr/avr-tables.opt: Regenerate.
36105 * config/avr/t-multilib: Regenerate.
36106 * doc/avr-mmcu.texi: Regenerate.
36108 2014-05-30 Ian Lance Taylor <iant@google.com>
36110 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
36113 2014-05-30 Tom de Vries <tom@codesourcery.com>
36115 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
36118 2014-05-30 Tom de Vries <tom@codesourcery.com>
36120 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36121 * lra.c (initialize_lra_reg_info_element): Add init of
36122 actual_call_used_reg_set field.
36123 (lra): Call lra_create_live_ranges before lra_inheritance for
36125 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36127 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
36128 instead of call_used_reg_set for -fuse-caller-save.
36129 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36131 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36133 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
36135 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
36137 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
36139 * ira.c (ira_get_dup_out_num): Check for output operands at
36140 the start of the loop. Handle cases where an included alternative
36141 follows an excluded one.
36143 2014-05-29 Mike Stump <mikestump@comcast.net>
36146 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
36147 post ld passes when lto is used.
36149 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
36151 PR rtl-optimization/61325
36152 * lra-constraints.c (process_address): Rename to process_address_1.
36153 (process_address): New function.
36155 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
36157 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
36158 TYPES_BINOPV): New static data.
36159 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
36161 * config/aarch64/aarch64-simd.md (aarch64_ext,
36162 aarch64_im_lane_boundsi): New patterns.
36163 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
36165 (aarch64_evpc_ext): New function.
36167 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
36169 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
36170 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
36171 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
36172 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
36173 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
36175 2014-05-29 Tom de Vries <tom@codesourcery.com>
36177 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
36179 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
36180 Richard Sandiford <rdsandiford@googlemail.com>
36182 * arm/iterators.md (shiftable_ops): New code iterator.
36183 (t2_binop0, arith_shift_insn): New code attributes.
36184 * arm/predicates.md (shift_nomul_operator): New predicate.
36185 * arm/arm.md (insn_enabled): Delete.
36186 (enabled): Remove insn_enabled test.
36187 (*arith_shiftsi): Delete. Replace with ...
36188 (*<arith_shift_insn>_multsi): ... new pattern.
36189 (*<arith_shift_insn>_shiftsi): ... new pattern.
36190 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
36192 2014-05-29 Radovan Obradovic <robradovic@mips.com>
36193 Tom de Vries <tom@codesourcery.com>
36195 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
36196 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
36198 (mips_split_call): Use POST_CALL_TMP_REG.
36199 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
36201 2014-05-29 Tom de Vries <tom@codesourcery.com>
36203 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
36204 with #ifdef STACK_REGS.
36206 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
36208 * varasm.c (get_variable_section): Walk aliases.
36209 (place_block_symbol): Walk aliases.
36211 2014-05-28 Tom de Vries <tom@codesourcery.com>
36214 2014-05-28 Tom de Vries <tom@codesourcery.com>
36216 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36217 * lra.c (initialize_lra_reg_info_element): Add init of
36218 actual_call_used_reg_set field.
36219 (lra): Call lra_create_live_ranges before lra_inheritance for
36221 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36223 * lra-constraints.c (need_for_call_save_p): Use
36224 actual_call_used_reg_set instead of call_used_reg_set for
36226 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36228 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36230 * doc/md.texi: Document that the % constraint character must
36231 be at the beginning of the string.
36232 * genoutput.c (validate_insn_alternatives): Check that '=',
36233 '+' and '%' only appear at the beginning of a constraint.
36234 * ira.c (commutative_constraint_p): Delete.
36235 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
36236 at the start of the string.
36237 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
36239 * config/arm/neon.md (bicdi3_neon): Likewise.
36240 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
36241 (slt_si, sltu_si): Likewise.
36242 * config/vax/vax.md (sbcdi3): Likewise.
36243 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
36244 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
36245 (mul64): Move '%' to beginning of constraint.
36246 * config/arm/arm.md (*xordi3_insn): Likewise.
36247 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
36248 (xorsi3): Likewise.
36250 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36252 * doc/md.texi: Document the restrictions on the "enabled" attribute.
36254 2014-05-28 Jason Merrill <jason@redhat.com>
36257 * cgraph.h (symtab_node::get_comdat_group_id): New.
36258 * cgraphunit.c (analyze_functions): Call it.
36259 * symtab.c (dump_symtab_node): Likewise.
36260 * tree.c (decl_comdat_group_id): New.
36261 * tree.h: Declare it.
36262 * lto-streamer-out.c (write_symbol): Use it.
36263 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
36265 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36267 PR bootstrap/PR61146
36268 * wide-int.cc: Do not include longlong.h when compiling with clang.
36270 2014-05-28 Richard Biener <rguenther@suse.de>
36272 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
36273 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
36274 (vrp_visit_assignment_or_call): Print less vertical space.
36275 (vrp_visit_stmt): Likewise.
36276 (vrp_visit_phi_node): Likewise. For a PHI argument with
36277 VR_VARYING range consider recording it as copy.
36279 2014-05-28 Richard Biener <rguenther@suse.de>
36282 2014-05-28 Richard Biener <rguenther@suse.de>
36284 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36286 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
36288 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
36289 sufficiently aligned and an offset is used at the same time.
36290 (expand_expr_real_1): Likewise.
36292 2014-05-28 Richard Biener <rguenther@suse.de>
36294 PR middle-end/61045
36295 * fold-const.c (fold_comparison): When folding
36296 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
36297 the sign of the remaining constant operand stays the same.
36299 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36301 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36302 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36303 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36305 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36306 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36307 (m32bit-doubles) Likewise.
36308 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36309 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36312 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36314 * configure.ac ($gcc_cv_ld_clearcap): New test.
36315 * configure: Regenerate.
36316 * config.in: Regenerate.
36317 * config/sol2.opt (mclear-hwcap): New option.
36318 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36319 * config/sol2-clearcap.map: Moved here from
36320 testsuite/gcc.target/i386/clearcap.map.
36321 * config/sol2-clearcapv2.map: Move here from
36322 gcc.target/i386/clearcapv2.map.
36323 * config/t-sol2 (install): Depend on install-clearcap-map.
36324 (install-clearcap-map): New target.
36325 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36328 2014-05-28 Richard Biener <rguenther@suse.de>
36330 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36331 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36332 ... here and remove the rest.
36333 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36335 2014-05-28 Richard Biener <rguenther@suse.de>
36337 PR tree-optimization/61335
36338 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36339 new range fails, drop to varying.
36341 2014-05-28 Olivier Hainque <hainque@adacore.com>
36343 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36344 (CPP_SPEC): Add entry for -mcpu=8548.
36345 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36346 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36348 2014-05-28 Tom de Vries <tom@codesourcery.com>
36350 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36351 * lra.c (initialize_lra_reg_info_element): Add init of
36352 actual_call_used_reg_set field.
36353 (lra): Call lra_create_live_ranges before lra_inheritance for
36355 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36357 * lra-constraints.c (need_for_call_save_p): Use
36358 actual_call_used_reg_set instead of call_used_reg_set for
36360 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36362 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36363 Tom de Vries <tom@codesourcery.com>
36365 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36367 (@item -fuse-caller-save): New item.
36369 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36370 Tom de Vries <tom@codesourcery.com>
36372 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36373 OPT_fuse_caller_save.
36375 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36376 Tom de Vries <tom@codesourcery.com>
36378 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36379 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36380 get_call_reg_set_usage.
36381 * resource.c (mark_set_resources, mark_target_live_regs): Use
36382 get_call_reg_set_usage.
36383 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36385 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36386 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36387 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36388 * ira-build.c (ira_create_allocno): Init
36389 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36390 (create_cap_allocno, propagate_allocno_info)
36391 (propagate_some_info_from_allocno)
36392 (copy_info_to_removed_store_destinations): Handle
36393 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36394 * ira-costs.c (ira_tune_allocno_costs): Use
36395 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36397 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36398 Tom de Vries <tom@codesourcery.com>
36400 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36401 and function_used_regs_valid fields.
36402 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36403 find_all_hard_reg_sets.
36404 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36405 (get_call_reg_set_usage): New function.
36406 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36407 * regs.h (get_call_reg_set_usage): Declare.
36409 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36412 * config/dbx.h (License): Add Runtime Library Exception.
36413 * config/newlib-stdint.h (License): Same.
36414 * config/rtems.h (License): Same
36415 * config/initfini-array.h (License): Same
36416 * config/v850/v850.h (License): Same.
36417 * config/v850/v850-opts.h (License): Same
36418 * config/v850/rtems.h (License): Same.
36420 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36423 * doc/extend.texi (Local Labels): Note that label differences are
36424 not supported for AVR.
36426 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36427 Olivier Hainque <hainque@adacore.com>
36429 * rtl.h (set_for_reg_notes): Declare.
36430 * emit-rtl.c (set_for_reg_notes): New function.
36431 (set_unique_reg_note): Use it.
36432 * optabs.c (add_equal_note): Likewise
36434 2014-05-27 Andrew Pinski <apinski@cavium.com>
36436 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36437 Use <w> for the register in assembly template.
36438 (stack_protect_test): Use the mode of operands[0] for the result.
36439 (stack_protect_test_<mode>): Use <w> for the register
36440 in assembly template.
36442 2014-05-27 DJ Delorie <dj@redhat.com>
36444 * config/rx/rx.c (add_vector_labels): New.
36445 (rx_output_function_prologue): Call it.
36446 (rx_handle_func_attribute): Don't require empty arguments.
36447 (rx_handle_vector_attribute): New.
36448 (rx_attribute_table): Add "vector" attribute.
36449 * doc/extend.texi (interrupt, vector): Document new/changed
36450 RX-specific attributes.
36452 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36454 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36456 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36457 predicate to detect a negative quotient.
36459 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36461 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36462 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36463 Add X - Y CMP 0 to X CMP Y transformation.
36464 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36466 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36468 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36471 2014-05-27 Steve Ellcey <sellcey@mips.com>
36473 * config/mips/mips.c: Add include of cgraph.h.
36475 2014-05-27 Richard Biener <rguenther@suse.de>
36477 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36479 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36482 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36483 * config/arm/arm-cores.def (License): Same.
36484 * config/arm/arm-opts.h (License): Same.
36485 * config/arm/aout.h (License): Same.
36486 * config/arm/bpabi.h (License): Same.
36487 * config/arm/elf.h (License): Same.
36488 * config/arm/linux-elf.h (License): Same.
36489 * config/arm/linux-gas.h (License): Same.
36490 * config/arm/netbsd-elf.h (License): Same.
36491 * config/arm/uclinux-eabi.h (License): Same.
36492 * config/arm/uclinux-elf.h (License): Same.
36493 * config/arm/vxworks.h (License): Same.
36495 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36497 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36498 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36499 (arm_init_neon_builtins): Handle NEON_BSWAP.
36500 Define required type nodes.
36501 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36502 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36503 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36504 * config/arm/iterators.md (VDQHSD): New mode iterator.
36506 2014-05-27 Richard Biener <rguenther@suse.de>
36508 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36509 Try using literal operands when comparing value-ranges failed.
36511 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36513 * ira.c (commutative_operand): Adjust for change to recog_data.
36514 [Missing from previous commit.]
36516 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36518 * system.h (TEST_BIT): New macro.
36519 * recog.h (alternative_mask): New type.
36520 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36521 (recog_data_d): Replace alternative_enabled_p array with
36522 enabled_alternatives.
36523 (target_recog): New structure.
36524 (default_target_recog, this_target_recog): Declare.
36525 (get_enabled_alternatives, recog_init): Likewise.
36526 * recog.c (default_target_recog, this_target_recog): New variables.
36527 (get_enabled_alternatives): New function.
36528 (extract_insn): Use it.
36529 (recog_init): New function.
36530 (preprocess_constraints, constrain_operands): Adjust for change to
36532 * postreload.c (reload_cse_simplify_operands): Likewise.
36533 * reload.c (find_reloads): Likewise.
36534 * ira-costs.c (record_reg_classes): Likewise.
36535 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36536 all alternatives after a disabled one would be skipped.
36537 (ira_implicitly_set_insn_hard_regs): Likewise.
36538 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36539 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36540 with enabled_alternatives.
36541 * lra.c (free_insn_recog_data): Update accordingly.
36542 (lra_update_insn_recog_data): Likewise.
36543 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36544 * lra-constraints.c (process_alt_operands): Likewise. Handle
36545 only_alternative as part of the enabled mask.
36546 * target-globals.h (this_target_recog): Declare.
36547 (target_globals): Add a recog field.
36548 (restore_target_globals): Restore this_target_recog.
36549 * target-globals.c: Include recog.h.
36550 (default_target_globals): Initialize recog field.
36551 (save_target_globals): Likewise.
36552 * reginfo.c (reinit_regs): Call recog_init.
36553 * toplev.c (backend_init_target): Likewise.
36555 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36557 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36558 rather than any named insn's code.
36560 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36563 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36564 * config/arm/arm-cores.def (License): Same.
36566 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36568 * tree.h (decl_comdat_group): Declare.
36569 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36570 * tree.c (decl_comdat_group): Here.
36572 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36574 PR rtl-optimization/61222
36575 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36576 the shift, truncate the PLUS operand to the result mode.
36578 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36581 * config/i386/i386.c (ix86_rtx_costs)
36582 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36585 2014-05-26 Martin Jambor <mjambor@suse.cz>
36587 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36590 2014-05-26 Richard Biener <rguenther@suse.de>
36592 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36593 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36594 Provide specializations.
36595 (wi::int_traits <HOST_WIDE_INT>,
36596 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36598 2014-05-26 Alan Modra <amodra@gmail.com>
36601 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36602 params and return a bool. Remove dead code. Update comment.
36603 Assert we have a const_int source. Remove bogus code from
36604 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36605 handling of constants > 2G and reg_equal note, from..
36606 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36607 return value. Update comment. If we can, use a new pseudo
36608 for intermediate calculations.
36609 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36611 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36612 call to rs6000_emit_set_const in splitter.
36613 (movdi_internal64+2, +3): Likewise.
36615 2014-05-26 Richard Biener <rguenther@suse.de>
36617 * system.h: Define __STDC_FORMAT_MACROS before
36618 including inttypes.h.
36619 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36620 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36621 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36622 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36623 HOST_WIDEST_INT_C): Remove.
36624 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36625 if C99 inttypes.h is not available.
36626 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36627 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36628 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36629 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36630 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36631 (struct output_info): Likewise.
36632 (print_statistics): Adjust.
36633 (dump_bitmap_statistics): Likewise.
36634 * bt-load.c (migrate_btr_defs): Print with PRId64.
36635 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36636 (MAX_SAFE_MULTIPLIER): Adjust.
36637 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36638 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36639 dump_cgraph_node): Likewise.
36640 * final.c (dump_basic_block_info): Likewise.
36641 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36642 * gcov.c (format_gcov): Likewise.
36643 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36645 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36646 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36647 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36648 Use PRId64 for dumping.
36649 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36650 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36651 (add_allocno_hard_regs): Adjust.
36652 * loop-doloop.c (doloop_modify): Print using PRId64.
36653 * loop-iv.c (inverse): Compute in uint64_t.
36654 (determine_max_iter, iv_number_of_iterations): Likewise.
36655 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36656 Print using PRId64.
36657 * lto-streamer-out.c (write_symbol): Use uint64_t.
36658 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36659 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36660 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36661 * modulo-sched.c (const_iteration_count): Use int64_t.
36662 (sms_schedule): Dump using PRId64.
36663 * predict.c (dump_prediction): Likewise.
36664 * pretty-print.h (pp_widest_integer): Remove.
36665 * profile.c (get_working_sets, is_edge_inconsistent,
36666 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36667 * tree-pretty-print.c (pp_double_int): Remove case handling
36668 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36669 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36671 (pass_optimize_bswap::execute): Remove restriction on hosts.
36672 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36673 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36674 * tree.c (widest_int_cst_value): Remove.
36675 * tree.h (widest_int_cst_value): Likewise.
36676 * value-prof.c (dump_histogram_value): Print using PRId64.
36677 * gengtype.c (main): Also inject int64_t.
36678 * ggc-page.c (struct max_alignment): Use int64_t.
36679 * alloc-pool.c (struct allocation_object_def): Likewise.
36680 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36682 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36683 * doc/tm.texi: Regenerated.
36684 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36685 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36686 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36687 mmix_output_register_setting): Use [u]int64_t in prototypes.
36688 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36689 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36690 mmix_output_octa, mmix_output_shifted_value): Adjust.
36691 (mmix_intval): Adjust. Remove unreachable case.
36692 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36694 2014-05-26 Richard Biener <rguenther@suse.de>
36696 * configure.ac: Drop __int64 type check. Insist that we
36697 found uint64_t and int64_t.
36698 * hwint.h (HOST_BITS_PER___INT64): Remove.
36699 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36700 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36701 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36702 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36703 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36704 for dst_q_src_df_rms_cdt.
36705 * configure: Regenerate.
36706 * config.in: Likewise.
36708 2014-05-26 Michael Tautschnig <mt@debian.org>
36711 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36712 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36714 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36716 PR rtl-optimization/61278
36717 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36719 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36721 PR rtl-optimization/61220
36722 Part of PR rtl-optimization/61225
36723 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36724 insn; skip split_edge for a block with only one successor.
36726 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36728 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36731 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36733 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36734 (update_vtable_references): New function.
36735 (function_and_variable_visibility): Rewrite also vtable initializers.
36736 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36738 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36740 * ggc.h (ggc_grow): New function.
36741 * ggc-none.c (ggc_grow): New function.
36742 * ggc-page.c (ggc_grow): Likewise.
36744 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36746 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36747 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36748 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36749 varpool_externally_visible_p, can_replace_by_local_alias,
36750 update_visibility_by_resolution_info, function_and_variable_visibility,
36751 pass_data_ipa_function_and_variable_visibility,
36752 make_pass_ipa_function_and_variable_visibility,
36753 whole_program_function_and_variable_visibility,
36754 pass_data_ipa_whole_program_visibility,
36755 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36756 * cgraph.h (cgraph_local_node_p): Declare.
36757 * ipa-visibility.c: New file.
36758 * Makefile.in (OBJS): Add ipa-visiblity.o
36760 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36762 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36763 that var decl is available.
36765 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36767 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36768 symtab_node pointer.
36769 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36770 (find_decls_types_r): Do not walk COMDAT_GROUP.
36771 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36772 * varasm.c (make_decl_one_only): Use set_comdat_group;
36773 create node if needed.
36774 * ipa-inline-transform.c (save_inline_function_body): Update
36775 way we decl->symtab mapping.
36776 * symtab.c (symtab_hash, hash_node, eq_node
36777 symtab_insert_node_to_hashtable): Remove.
36778 (symtab_register_node): Update.
36779 (symtab_unregister_node): Update.
36780 (symtab_get_node): Reimplement as inline function.
36781 (symtab_add_to_same_comdat_group): Update.
36782 (symtab_dissolve_same_comdat_group_list): Update.
36783 (dump_symtab_base): Update.
36784 (verify_symtab_base): Update.
36785 (symtab_make_decl_local): Update.
36786 (fixup_same_cpp_alias_visibility): Update.
36787 (symtab_nonoverwritable_alias): Update.
36788 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36789 * ipa.c (update_visibility_by_resolution_info): UPdate.
36790 * bb-reorder.c: Include cgraph.h
36791 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36792 with comdat groups.
36793 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36794 * cgraph.c (cgraph_get_create_node): Update.
36795 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36797 (symtab_get_node): Make inline.
36798 (symtab_insert_node_to_hashtable): Remove.
36799 (symtab_can_be_discarded): Update.
36800 (decl_comdat_group): New function.
36801 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36803 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36805 (read_comdat_group): New function.
36806 (input_node, input_varpool_node): Use it.
36807 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36809 * mips.c (mips_start_unique_function): Likewise.
36810 (ix86_code_end): Likewise.
36811 (rs6000_code_end): Likweise.
36812 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36814 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36816 * gengtype-state.c (fatal_reading_state): Bring offline.
36817 * optabs.c (widening_optab_handler): Bring offline.
36818 * optabs.h (widening_optab_handler): Likewise.
36819 * final.c (get_attr_length_1): Likewise.
36821 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36823 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36825 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36827 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36828 (ppc440-compare): Include shift with dot.
36829 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36830 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36832 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36834 (e6500_sfx2): Include it.
36835 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36836 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36837 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36838 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36839 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36840 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36841 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36842 *lshiftrt_internal1le, *lshiftrt_internal1be,
36843 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36844 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36845 *rotldi3_internal10le, *rotldi3_internal10be,
36846 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36847 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36848 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36849 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36850 define_insns): Use type "shift" in the appropriate alternatives.
36852 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36854 * config/rs6000/rs6000.md (type): Add "logical". Delete
36856 (dot): Adjust comment.
36857 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36858 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36859 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36860 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36861 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36862 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36863 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36864 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36866 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36867 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36868 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36869 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36870 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36871 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36872 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36873 * config/rs6000/8540.md (ppc8540_su): Adjust.
36874 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36875 cell-cmp-microcoded): Adjust.
36876 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36877 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36878 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36879 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36880 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36881 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36882 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36883 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36884 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36886 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36887 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36888 Adjust. Adjust comment.
36889 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36890 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36892 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36894 * config/rs6000/rs6000.md (type): Add "add".
36895 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36896 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36897 define_insns): Use it.
36898 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36900 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36901 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36902 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36903 * config/rs6000/601.md (ppc601-integer): Adjust.
36904 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36905 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36906 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36907 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36908 * config/rs6000/8540.md (ppc8540_su): Adjust.
36909 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36910 cell-cmp-microcoded): Adjust.
36911 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36912 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36913 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36914 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36915 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36916 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36917 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36918 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36919 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36921 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36922 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36923 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36924 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36926 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36928 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36929 "delayed_compare", "var_delayed_compare".
36930 (var_shift): New attribute.
36931 (cell_micro): Adjust.
36932 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36933 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36934 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36935 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36936 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36937 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36938 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36939 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36940 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36941 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36942 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36943 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36944 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36945 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36946 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36947 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36948 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36949 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36950 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36951 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36952 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36953 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36954 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36955 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36956 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36958 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36959 * config/rs6000/440.md (ppc440-integer): Adjust.
36960 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36961 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36962 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36963 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36964 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36965 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36966 * config/rs6000/8540.md (ppc8540_su): Adjust.
36967 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36968 cell-cmp-microcoded): Adjust.
36969 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36970 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36971 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36972 e500mc64_delayed): Adjust.
36973 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36974 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36975 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36976 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36977 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36978 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36979 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36980 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36981 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36983 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36984 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36986 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36988 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36989 (bits): New mode_attr.
36990 (idiv_ldiv): Delete mode_attr.
36991 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36992 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36993 rs6000_adjust_priority, is_nonpipeline_insn,
36994 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36996 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36997 * config/rs6000/440.md (ppc440-idiv): Adjust.
36998 * config/rs6000/476.md (ppc476-idiv): Adjust.
36999 * config/rs6000/601.md (ppc601-idiv): Adjust.
37000 * config/rs6000/603.md (ppc603-idiv): Adjust.
37001 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
37002 ppc620-ldiv): Adjust.
37003 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
37004 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
37005 * config/rs6000/8540.md (ppc8540_divide): Adjust.
37006 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
37007 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
37008 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
37009 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
37010 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
37011 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
37012 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
37013 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
37014 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
37015 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
37016 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
37017 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
37018 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
37019 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
37020 * config/rs6000/titan.md (titan_fxu_div): Adjust.
37022 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
37024 * config/rs6000/rs6000.md (type): Delete "insert_word",
37025 "insert_dword". Add "insert".
37026 (size): Update comment.
37027 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
37028 insn_must_be_first_in_group): Adjust.
37029 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
37030 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
37031 *insvsi_internal6, insvdi_internal): Adjust.
37033 * config/rs6000/40x.md (ppc403-integer): Adjust.
37034 * config/rs6000/440.md (ppc440-integer): Adjust.
37035 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
37036 * config/rs6000/601.md (ppc601-integer): Adjust.
37037 * config/rs6000/603.md (ppc603-integer): Adjust.
37038 * config/rs6000/6xx.md (ppc604-integer): Adjust.
37039 * config/rs6000/7450.md (ppc7450-integer): Adjust.
37040 * config/rs6000/7xx.md (ppc750-integer): Adjust.
37041 * config/rs6000/8540.md (ppc8540_su): Adjust.
37042 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
37043 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
37044 * config/rs6000/e500mc.md (e500mc_su): Adjust.
37045 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
37046 * config/rs6000/e5500.md (e5500_sfx): Adjust.
37047 * config/rs6000/e6500.md (e6500_sfx): Adjust.
37048 * config/rs6000/mpc.md (mpccore-integer): Adjust.
37049 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
37050 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
37051 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
37052 * config/rs6000/power7.md (power7-integer): Adjust.
37053 * config/rs6000/power8.md (power8-1cyc): Adjust.
37054 * config/rs6000/rs64.md (rs64a-integer): Adjust.
37055 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
37057 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
37059 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
37060 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
37061 (size): New attribute.
37062 (dot): New attribute.
37063 (cell_micro): Adjust.
37064 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
37065 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
37066 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
37067 umuldi3_highpart): Adjust.
37068 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
37069 rs6000_adjust_priority, is_nonpipeline_insn,
37070 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
37072 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
37073 ppc405-imul3): Adjust.
37074 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
37075 * config/rs6000/476.md (ppc476-imul): Adjust.
37076 * config/rs6000/601.md (ppc601-imul): Adjust.
37077 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
37078 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
37079 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
37080 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
37081 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
37083 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
37084 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
37085 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
37086 cell-imul): Adjust.
37087 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
37088 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
37089 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
37090 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
37091 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
37092 * config/rs6000/mpc.md (mpccore-imul): Adjust.
37093 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
37094 power4-lmul, power4-imul, power4-imul3): Adjust.
37095 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
37096 power5-lmul, power5-imul, power5-imul3): Adjust.
37097 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
37098 power6-lmul, power6-imul, power6-imul3): Adjust.
37099 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
37100 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
37102 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
37103 rs64a-lmul): Adjust.
37104 * config/rs6000/titan.md (titan_imul): Adjust.
37106 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
37108 * config/rs6000/rs6000.md (type): Add new value "halfmul".
37109 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
37110 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
37111 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
37112 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
37113 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
37114 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
37115 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
37116 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
37117 * config/rs6000/titan.md: Delete nonsensical comment.
37118 (titan_imul): Add type imul3.
37119 (titan_mulhw): Remove type imul3; add type halfmul.
37121 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
37123 * config/rs6000/rs6000.md (type): Reorder, reformat.
37125 2014-05-23 Martin Jambor <mjambor@suse.cz>
37127 PR tree-optimization/53787
37128 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
37129 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
37130 analysis_done, update all uses.
37131 * ipa-prop.c: Include domwalk.h
37132 (param_analysis_info): Removed.
37133 (param_aa_status): New type.
37134 (ipa_bb_info): Likewise.
37135 (func_body_info): Likewise.
37136 (ipa_get_bb_info): New function.
37137 (aa_overwalked): Likewise.
37138 (find_dominating_aa_status): Likewise.
37139 (parm_bb_aa_status_for_bb): Likewise.
37140 (parm_preserved_before_stmt_p): Changed to use new param AA info.
37141 (load_from_unmodified_param): Accept func_body_info as a parameter
37142 instead of parms_ainfo.
37143 (parm_ref_data_preserved_p): Changed to use new param AA info.
37144 (parm_ref_data_pass_through_p): Likewise.
37145 (ipa_load_from_parm_agg_1): Likewise. Update callers.
37146 (compute_complex_assign_jump_func): Changed to use new param AA info.
37147 (compute_complex_ancestor_jump_func): Likewise.
37148 (ipa_compute_jump_functions_for_edge): Likewise.
37149 (ipa_compute_jump_functions): Removed.
37150 (ipa_compute_jump_functions_for_bb): New function.
37151 (ipa_analyze_indirect_call_uses): Likewise, moved variable
37153 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
37154 and info, moved variable declarations down.
37155 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
37157 (ipa_analyze_stmt_uses): Likewise.
37158 (ipa_analyze_params_uses): Removed.
37159 (ipa_analyze_params_uses_in_bb): New function.
37160 (ipa_analyze_controlled_uses): Likewise.
37161 (free_ipa_bb_info): Likewise.
37162 (analysis_dom_walker): New class.
37163 (ipa_analyze_node): Handle node-specific forbidden analysis,
37164 initialize and free func_body_info, use dominator walker.
37165 (ipcp_modif_dom_walker): New class.
37166 (ipcp_transform_function): Create and free func_body_info, use
37167 ipcp_modif_dom_walker, moved a lot of functionality there.
37169 2014-05-23 Marek Polacek <polacek@redhat.com>
37170 Jakub Jelinek <jakub@redhat.com>
37172 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
37173 * gcc.c (sanitize_spec_function): Likewise.
37174 * convert.c (convert_to_integer): Include "ubsan.h". Add
37175 floating-point to integer instrumentation.
37176 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
37177 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
37178 SANITIZE_NONDEFAULT.
37179 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
37180 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
37181 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
37182 * ubsan.c: Include "realmpfr.h" and "dfp.h".
37183 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
37184 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
37185 float/double/long double.
37186 (ubsan_instrument_float_cast): New function.
37187 * ubsan.h (ubsan_instrument_float_cast): Declare.
37189 2014-05-23 Jiong Wang <jiong.wang@arm.com>
37191 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
37193 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
37194 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
37195 Adjust for tailcalling through registers.
37196 * config/aarch64/aarch64.h (enum reg_class): New caller save
37198 (REG_CLASS_NAMES): Likewise.
37199 (REG_CLASS_CONTENTS): Likewise.
37200 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
37201 Allow tailcalling without decls.
37203 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37205 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37206 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
37208 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
37209 gsi, and variables v_* to v*.
37211 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
37213 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
37215 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37217 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
37218 * omp-low.c: Update accordingly.
37220 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
37221 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
37222 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
37223 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
37224 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
37225 GF_OMP_TARGET_KIND_UPDATE.
37227 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37228 Explicitly enumerate the expected region types.
37230 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
37233 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
37234 documentation; the old documentation didn't clearly state the
37235 constraints on the contents of the pointed-to storage.
37237 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37239 Fix bootstrap error on ia64
37240 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
37241 Return default value.
37243 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
37245 PR tree-optimization/54733
37246 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
37248 (find_bswap_or_nop_load): New.
37249 (find_bswap_1): Renamed to ...
37250 (find_bswap_or_nop_1): This. Also add support for memory source.
37251 (find_bswap): Renamed to ...
37252 (find_bswap_or_nop): This. Also add support for memory source and
37253 detection of bitwise operations equivalent to load in target
37255 (execute_optimize_bswap): Likewise. Also move its leading comment back
37256 in place and split statement transformation into ...
37257 (bswap_replace): This.
37259 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37261 PR rtl-optimization/61215
37262 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
37263 simplify_gen_subreg until final substitution.
37265 2014-05-23 Alan Modra <amodra@gmail.com>
37268 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
37269 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
37270 Use "Y" constraint rather than "m".
37272 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
37274 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
37276 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
37277 New function declaration.
37278 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
37279 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
37280 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
37281 (aarch64_init_builtins) : Initialize builtins
37282 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37283 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37284 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
37285 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
37286 and __builtins_aarch64_set_fpsr.
37287 (aarch64_atomic_assign_expand_fenv): New function.
37288 * config/aarch64/aarch64.md (set_fpcr): New pattern.
37289 (get_fpcr) : Likewise.
37290 (set_fpsr) : Likewise.
37291 (get_fpsr) : Likewise.
37292 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
37293 and UNSPECV_SET_FPSR.
37294 * doc/extend.texi (AARCH64 Built-in Functions) : Document
37295 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37296 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37298 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37300 PR rtl-optimization/60969
37301 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37302 constraints. Set up mem cost for NO_REGS case.
37304 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37306 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37308 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37310 * config/darwin.c: Include "lto-section-names.h".
37311 (LTO_SEGMENT_NAME): Don't define.
37312 * config/i386/winnt.c: Include "lto-section-names.h".
37313 * lto-streamer.c: Include "lto-section-names.h".
37314 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37315 * lto-wrapper.c: Include "lto-section-names.h".
37316 (LTO_SECTION_NAME_PREFIX): Don't define.
37317 * lto-section-names.h: New file.
37318 * cgraphunit.c: Include "lto-section-names.h".
37320 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37322 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37324 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37327 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37329 2014-05-22 Nick Clifton <nickc@redhat.com>
37331 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37333 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37335 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37336 -> (T)A transformation to integer types.
37338 2014-05-22 Teresa Johnson <tejohnson@google.com>
37340 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37341 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37342 (gcov_rewrite): Use gcov_nonruntime_assert.
37343 (gcov_open): Ditto.
37344 (gcov_write_words): Ditto.
37345 (gcov_write_length): Ditto.
37346 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37347 gcc_assert from IN_LIBGCOV code.
37348 (gcov_read_summary): Use gcov_error to flag profile corruption.
37349 (gcov_sync): Use gcov_nonruntime_assert.
37350 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37351 (gcov_histo_index): Use gcov_nonruntime_assert.
37352 (static void gcov_histogram_merge): Ditto.
37353 (compute_working_sets): Ditto.
37354 * gcov-io.h (gcov_nonruntime_assert): Define.
37355 (gcov_error): Define for !IN_LIBGCOV
37357 2014-05-22 Richard Biener <rguenther@suse.de>
37359 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37360 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37361 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37362 and deallocation site.
37363 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37364 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37365 passing through the incoming points-to set.
37366 (handle_lhs_call): Use flags argument instead of recomputing it.
37367 (find_func_aliases_for_call): Call handle_lhs_call with proper
37370 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37372 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37373 all padding bits in REAL_VALUE_TYPE are cleared.
37375 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37377 Cleanup and improve multipass_dfa_lookahead_guard
37378 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37379 (core2i7_first_cycle_multipass_begin,)
37380 (core2i7_first_cycle_multipass_issue,)
37381 (core2i7_first_cycle_multipass_backtrack): Update signature.
37382 * config/ia64/ia64.c
37383 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37384 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37385 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37387 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37388 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37390 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37392 * doc/tm.texi: Regenerate.
37394 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37395 * haifa-sched.c (ready_try): Make signed to allow negative values.
37396 (rebug_ready_list_1): Update.
37397 (choose_ready): Simplify.
37398 (sched_extend_ready_list): Update.
37400 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37402 Remove IA64 speculation tweaking flags
37403 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37404 speculation tuning flags.
37405 (msched-prefer-non-data-spec-insns,)
37406 (msched-prefer-non-control-spec-insns): Obsolete options.
37407 * haifa-sched.c (choose_ready): Remove handling of
37408 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37409 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37410 and PREFER_NON_DATA_SPEC.
37411 * sel-sched.c (process_spec_exprs): Remove handling of
37412 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37414 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37416 Improve scheduling debug output
37417 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37418 (advance_one_cycle): Update.
37419 (schedule_insn, queue_to_ready): Add debug printouts.
37420 (debug_ready_list_1): New static function.
37421 (debug_ready_list): Update.
37422 (max_issue): Add debug printouts.
37423 (dump_insn_stream): New static function.
37424 (schedule_block): Use it. Also better indent printouts.
37426 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37428 Fix sched_insn debug counter
37429 * haifa-sched.c (schedule_insn): Update.
37430 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37431 (save_backtrack_point, restore_backtrack_point): Update.
37432 (first_nonscheduled_insn): New static function.
37433 (queue_to_ready, choose_ready): Use it.
37434 (schedule_block): Init nonscheduled_insns_begin.
37435 (sched_emit_insn): Update.
37438 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37440 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37442 (aarch64_secondary_reload) : LikeWise.
37443 (aarch64_class_max_nregs) : Remove CORE_REGS.
37444 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37445 (REG_CLASS_NAMES) : Likewise.
37446 (REG_CLASS_CONTENTS) : LikeWise.
37447 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37449 2014-05-21 Guozhi Wei <carrot@google.com>
37452 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37454 (vqdmulhq_n_s16): Likewise.
37456 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37458 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37460 2014-05-21 Marek Polacek <polacek@redhat.com>
37463 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37465 2014-05-21 Martin Jambor <mjambor@suse.cz>
37467 * doc/invoke.texi (Optimize Options): Document parameters
37468 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37469 ipa-cp-array-index-hint-bonus.
37471 2014-05-21 Mark Wielaard <mjw@redhat.com>
37474 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37475 version >= 3 or not strict DWARF.
37476 * langhooks.h (struct lang_hooks_for_types): Add
37477 enum_underlying_base_type.
37478 * langhooks.c (lhd_enum_underlying_base_type): New function.
37479 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37480 enum_underlying_base_type.
37481 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37482 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37483 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37485 2014-05-21 Richard Biener <rguenther@suse.de>
37487 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37489 2014-05-21 John Marino <gnugcc@marino.st>
37491 * config.gcc (*-*-dragonfly*): New target.
37492 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37493 * configure: Regenerate.
37494 * config/dragonfly-stdint.h: New.
37495 * config/dragonfly.h: New.
37496 * config/dragonfly.opt: New.
37497 * config/i386/dragonfly.h: New.
37498 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37500 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37502 * tree.def (VOID_CST): New.
37503 * tree-core.h (TI_VOID): New.
37504 * tree.h (void_node): New.
37505 * tree.c (tree_node_structure_for_code, tree_code_size)
37506 (iterative_hash_expr): Handle VOID_CST.
37507 (build_common_tree_nodes): Initialize void_node.
37509 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37511 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37513 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37515 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37518 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37519 flag_reorder_blocks_and_partition.
37520 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37522 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37525 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37527 (*addc_r_t): Add new insn_and_split.
37529 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37531 PR middle-end/61252
37532 * omp-low.c (handle_simd_reference): New function.
37533 (lower_rec_input_clauses): Use it. Defer adding reference
37534 initialization even for reduction without placeholder if in simd,
37535 handle it properly later on.
37537 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37539 PR tree-optimization/60899
37540 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37541 assume all static symbols will have definition wile parsing and
37542 check the do have definition later in compilation; check that
37543 variable referring symbol will be output before concluding that
37544 reference is safe; be conservative for referring local statics;
37545 be more precise about when comdat is output in other partition.
37547 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37550 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37552 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37553 (ipa_inline): Loop inline_to_all_callers until no more aliases
37556 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37558 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37559 set writeonly flag only for vars actually written to.
37561 2014-05-20 Dehao Chen <dehao@google.com>
37563 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37564 and callee count to get clone count.
37565 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37566 count in copy_body.
37568 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37570 PR rtl-optimization/61243
37571 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37573 2014-05-20 Xinliang David Li <davidxl@google.com>
37575 * cgraphunit.c (walk_polymorphic_call_targets): Add
37576 dbgcnt and fopt-info support.
37577 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37578 * ipa-devirt.c (ipa_devirt): Ditto.
37579 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37580 * ipa.c (walk_polymorphic_call_targets): Ditto.
37581 * gimple-fold.c (fold_gimple_assign): Ditto.
37582 (gimple_fold_call): Ditto.
37583 * dbgcnt.def: New counter.
37585 2014-05-20 DJ Delorie <dj@redhat.com>
37587 * config/msp430/msp430.md (split): Don't allow subregs when
37588 splitting SImode adds.
37589 (andneghi): Fix subtraction logic.
37590 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37592 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37594 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37596 * except.c (switch_to_exception_section, resolve_unique_section,
37597 get_named_text_section, default_function_rodata_section,
37598 align_variable, get_block_for_decl, default_section_type_flags):
37599 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37600 * symtab.c (symtab_add_to_same_comdat_group,
37601 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37602 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37604 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37605 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37606 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37607 (c6x_function_in_section_p): Likewise.
37608 * config/darwin.c (machopic_select_section): Likewise.
37609 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37610 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37611 * config/mep/mep.c (mep_select_section): LIkewise.
37612 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37614 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37616 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37617 EH region of calls to pure functions that can throw an exception.
37618 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37619 (copy_reference_ops_from_call): Also copy the EH region of the call if
37620 it can throw an exception.
37622 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37624 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37625 nested VEC_SELECTs that are inverses of each other.
37627 2014-05-20 Richard Biener <rguenther@suse.de>
37629 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37630 (extract_and_process_scc_for_name): not here.
37631 (cond_dom_walker::before_dom_children): Only process
37632 stmts that end the BB in interesting ways.
37633 (run_scc_vn): Mark param uses as visited.
37635 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37637 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37640 2014-05-20 Nick Clifton <nickc@redhat.com>
37642 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37643 (msp430_gimplify_va_arg_expr): New function.
37644 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37646 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37647 operand 0 in order to prevent confusion about the number of
37648 registers involved.
37650 2014-05-20 Richard Biener <rguenther@suse.de>
37652 PR tree-optimization/61221
37653 * tree-ssa-pre.c (el_to_update): Remove.
37654 (eliminate_dom_walker::before_dom_children): Handle released
37655 VDEFs by value-numbering them to the associated VUSE. Update
37656 stmt immediately for substituted call address.
37657 (eliminate): Remove delayed stmt updating code.
37658 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37659 possibly late re-numbered vuses.
37660 (vn_reference_lookup_2): Adjust.
37661 (vn_reference_lookup_pieces): Likewise.
37662 (vn_reference_lookup): Likewise.
37664 2014-05-20 Richard Biener <rguenther@suse.de>
37666 * config.gcc: Remove need_64bit_hwint.
37667 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37668 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37670 * config.in: Regenerate.
37671 * configure: Likewise.
37673 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37675 * doc/extend.texi: Create Label Attributes section,
37676 move all label attributes into it and reference it.
37678 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37680 * arm.c (thumb1_reorg): When scanning backwards skip anything
37681 that's not a proper insn.
37683 2014-05-19 Richard Biener <rguenther@suse.de>
37685 PR tree-optimization/61221
37686 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37687 Do nothing for unreachable blocks.
37688 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37689 Improve unreachability detection.
37691 2014-05-19 Richard Biener <rguenther@suse.de>
37693 PR tree-optimization/61209
37694 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37696 2014-05-19 Nick Clifton <nickc@redhat.com>
37698 * except.c (init_eh): Fix computation of builtin setjmp buffer
37699 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37701 2014-05-19 Richard Biener <rguenther@suse.de>
37703 PR tree-optimization/61184
37704 * tree-vrp.c (is_negative_overflow_infinity): Use
37705 TREE_OVERFLOW_P and do that check first.
37706 (is_positive_overflow_infinity): Likewise.
37707 (is_overflow_infinity): Likewise.
37708 (vrp_operand_equal_p): Properly treat operands with
37709 differing overflow as not equal.
37711 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37713 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37714 shift simplification where it was intended.
37716 2014-05-19 Christian Bruel <christian.bruel@st.com>
37719 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37721 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37724 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37727 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37729 * reg-notes.def (CROSSING_JUMP): Likewise.
37730 * rtl.h (rtx_def): Update comment for jump flag.
37731 (CROSSING_JUMP_P): Define.
37732 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37733 of a REG_CROSSING_JUMP note.
37734 * cfghooks.c (tidy_fallthru_edges): Likewise.
37735 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37736 * emit-rtl.c (try_split): Likewise.
37737 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37738 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37739 * jump.c (redirect_jump_2): Likewise.
37740 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37741 (relax_delay_slots): Likewise.
37742 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37743 (bbit_di): Likewise.
37744 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37745 * config/sh/sh.md (jump_compact): Likewise.
37746 * bb-reorder.c (rotate_loop): Likewise.
37747 (pass_duplicate_computed_gotos::execute): Likewise.
37748 (add_reg_crossing_jump_notes): Rename to...
37749 (update_crossing_jump_flags): ...this.
37750 (pass_partition_blocks::execute): Update accordingly.
37752 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37754 * tree.h: Remove extraneous template <>.
37756 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37758 * ipa.c (symtab_remove_unreachable_nodes): Remove
37759 symbol from comdat group if its body was eliminated.
37760 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37761 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37762 (symtab_unregister_node): ... this one.
37763 (verify_symtab_base): More strict checking of comdats.
37764 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37766 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37768 * tree-pass.h (make_pass_ipa_comdats): New pass.
37769 * timevar.def (TV_IPA_COMDATS): New timevar.
37770 * passes.def (pass_ipa_comdats): Add.
37771 * Makefile.in (OBJS): Add ipa-comdats.o
37772 * ipa-comdats.c: New file.
37774 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37776 * ipa.c (update_visibility_by_resolution_info): New function.
37777 (function_and_variable_visibility): Use it.
37779 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37781 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37783 (FOR_EACH_DEFINED_SYMBOL): New macro.
37784 (varpool_first_static_initializer, varpool_next_static_initializer,
37785 varpool_first_defined_variable, varpool_next_defined_variable):
37787 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37789 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37791 * ggc-page.c (ggc_handle_finalizers): Add comment.
37793 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37795 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37796 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37797 (ggc_internal_cleared_alloc): Likewise.
37798 * ggc-page.c (finalizer): New class.
37799 (vec_finalizer): Likewise.
37800 (globals::finalizers): New member.
37801 (globals::vec_finalizers): Likewise.
37802 (ggc_internal_alloc): Record the finalizer if any for the block being
37804 (ggc_handle_finalizers): New function.
37805 (ggc_collect): Call ggc_handle_finalizers.
37806 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37808 (ggc_internal_cleared_alloc): Likewise.
37809 (finalize): New function.
37810 (need_finalization_p): Likewise.
37811 (ggc_alloc): Install the type's destructor as the finalizer if it
37812 might do something.
37813 (ggc_cleared_alloc): Likewise.
37814 (ggc_vec_alloc): Likewise.
37815 (ggc_cleared_vec_alloc): Likewise.
37817 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37819 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37821 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37823 * alias.c (record_alias_subset): Adjust.
37824 * bitmap.c (bitmap_element_allocate): Likewise.
37825 (bitmap_gc_alloc_stat): Likewise.
37826 * cfg.c (init_flow): Likewise.
37827 (alloc_block): Likewise.
37828 (unchecked_make_edge): Likewise.
37829 * cfgloop.c (alloc_loop): Likewise.
37830 (flow_loops_find): Likewise.
37831 (rescan_loop_exit): Likewise.
37832 * cfgrtl.c (init_rtl_bb_info): Likewise.
37833 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37834 (cgraph_allocate_node): Likewise.
37835 (cgraph_create_edge_1): Likewise.
37836 (cgraph_allocate_init_indirect_info): Likewise.
37837 * cgraphclones.c (cgraph_clone_edge): Likewise.
37838 * cgraphunit.c (add_asm_node): Likewise.
37839 (init_lowered_empty_function): Likewise.
37840 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37841 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37842 (alpha_use_linkage): Likewise.
37843 * config/arc/arc.c (arc_init_machine_status): Likewise.
37844 * config/arm/arm.c (arm_init_machine_status): Likewise.
37845 * config/avr/avr.c (avr_init_machine_status): Likewise.
37846 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37847 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37848 * config/cris/cris.c (cris_init_machine_status): Likewise.
37849 * config/darwin.c (machopic_indirection_name): Likewise.
37850 (darwin_build_constant_cfstring): Likewise.
37851 (darwin_enter_string_into_cfstring_table): Likewise.
37852 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37853 * config/frv/frv.c (frv_init_machine_status): Likewise.
37854 * config/i386/i386.c (get_dllimport_decl): Likewise.
37855 (ix86_init_machine_status): Likewise.
37856 (assign_386_stack_local): Likewise.
37857 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37858 (i386_pe_maybe_record_exported_symbol): Likewise.
37859 (i386_pe_record_stub): Likewise.
37860 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37861 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37862 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37863 (m32c_note_pragma_address): Likewise.
37864 * config/mep/mep.c (mep_init_machine_status): Likewise.
37865 (mep_note_pragma_flag): Likewise.
37866 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37867 (mips16_local_alias): Likewise.
37868 (mips_init_machine_status): Likewise.
37869 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37870 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37871 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37872 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37873 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37874 * config/pa/pa.c (pa_init_machine_status): Likewise.
37875 (pa_get_deferred_plabel): Likewise.
37876 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37877 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37878 (rs6000_init_machine_status): Likewise.
37879 (output_toc): Likewise.
37880 * config/s390/s390.c (s390_init_machine_status): Likewise.
37881 * config/score/score.c (score_output_external): Likewise.
37882 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37883 * config/spu/spu.c (spu_init_machine_status): Likewise.
37884 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37885 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37886 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37887 * coverage.c (coverage_end_function): Likewise.
37888 * dbxout.c (dbxout_init): Likewise.
37889 * doc/gty.texi: Don't mention variable_size attribute.
37890 * dwarf2cfi.c (new_cfi): Adjust.
37891 (new_cfi_row): Likewise.
37892 (copy_cfi_row): Likewise.
37893 (create_cie_data): Likewise.
37894 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37895 (new_loc_descr): Likewise.
37896 (find_AT_string_in_table): Likewise.
37897 (add_addr_table_entry): Likewise.
37898 (new_die): Likewise.
37899 (add_var_loc_to_decl): Likewise.
37900 (clone_die): Likewise.
37901 (clone_as_declaration): Likewise.
37902 (break_out_comdat_types): Likewise.
37903 (new_loc_list): Likewise.
37904 (add_loc_descr_to_each): Likewise.
37905 (add_location_or_const_value_attribute): Likewise.
37906 (add_linkage_name): Likewise.
37907 (lookup_filename): Likewise.
37908 (dwarf2out_var_location): Likewise.
37909 (new_line_info_table): Likewise.
37910 (dwarf2out_init): Likewise.
37911 (mem_loc_descriptor): Likewise.
37912 (loc_descriptor): Likewise.
37913 (add_const_value_attribute): Likewise.
37914 (tree_add_const_value_attribute): Likewise.
37915 (comp_dir_string): Likewise.
37916 (dwarf2out_vms_debug_main_pointer): Likewise.
37917 (string_cst_pool_decl): Likewise.
37918 * emit-rtl.c (set_mem_attrs): Likewise.
37919 (get_reg_attrs): Likewise.
37920 (start_sequence): Likewise.
37921 (init_emit): Likewise.
37922 (init_emit_regs): Likewise.
37923 * except.c (init_eh_for_function): Likewise.
37924 (gen_eh_region): Likewise.
37925 (gen_eh_region_catch): Likewise.
37926 (gen_eh_landing_pad): Likewise.
37927 (add_call_site): Likewise.
37928 * function.c (add_frame_space): Likewise.
37929 (insert_temp_slot_address): Likewise.
37930 (assign_stack_temp_for_type): Likewise.
37931 (get_hard_reg_initial_val): Likewise.
37932 (allocate_struct_function): Likewise.
37933 (prepare_function_start): Likewise.
37934 (types_used_by_var_decl_insert): Likewise.
37935 * gengtype.c (variable_size_p): Remove function.
37936 (enum alloc_quantity): Remove enum.
37937 (write_typed_alloc_def): Remove function.
37938 (write_typed_struct_alloc_def): Likewise.
37939 (write_typed_typedef_alloc_def): Likewise.
37940 (write_typed_alloc_defns): Likewise.
37942 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37943 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37944 * ggc.h (ggc_alloc): new function.
37945 (ggc_cleared_alloc): Likewise.
37946 (ggc_vec_alloc): Template on type of vector element, and remove
37947 element size argument.
37948 (ggc_cleared_vec_alloc): Likewise.
37949 * gimple.c (gimple_build_omp_for): Adjust.
37950 (gimple_copy): Likewise.
37951 * ipa-cp.c (get_replacement_map): Likewise.
37952 (find_aggregate_values_for_callers_subset): Likewise.
37953 (known_aggs_to_agg_replacement_list): Likewise.
37954 * ipa-devirt.c (get_odr_type): Likewise.
37955 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37956 (read_agg_replacement_chain): Likewise.
37957 * loop-iv.c (get_simple_loop_desc): Likewise.
37958 * lto-cgraph.c (input_node_opt_summary): Likewise.
37959 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37960 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37961 (input_eh_region): Likewise.
37962 (input_eh_lp): Likewise.
37963 (input_cfg): Likewise.
37964 * optabs.c (set_optab_libfunc): Likewise.
37965 (init_tree_optimization_optabs): Likewise.
37966 (set_conv_libfunc): Likewise.
37967 * passes.c (do_per_function_toporder): Likewise.
37968 * rtl.h: Don't use variable_size gty attribute.
37969 * sese.c (if_region_set_false_region): Adjust.
37970 * stringpool.c (gt_pch_save_stringpool): Likewise.
37971 * target-globals.c (save_target_globals): Likewise.
37972 * toplev.c (general_init): Likewise.
37973 * trans-mem.c (record_tm_replacement): Likewise.
37974 (split_bb_make_tm_edge): Likewise.
37975 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37976 * tree-data-ref.h (lambda_vector_new): Likewise.
37977 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37978 * tree-iterator.c (tsi_link_before): Likewise.
37979 (tsi_link_after): Likewise.
37980 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37981 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37982 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37983 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37984 * tree-ssa.c (init_tree_ssa): Adjust.
37985 * tree-ssanames.c (set_range_info): Likewise.
37986 (get_ptr_info): Likewise.
37987 (duplicate_ssa_name_ptr_info): Likewise.
37988 (duplicate_ssa_name_range_info): Likewise.
37989 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37990 (unpack_ts_fixed_cst_value_fields): Likewise.
37991 * tree.c (build_fixed): Likewise.
37992 (build_real): Likewise.
37993 (build_string): Likewise.
37994 (decl_priority_info): Likewise.
37995 (decl_debug_expr_insert): Likewise.
37996 (decl_value_expr_insert): Likewise.
37997 (decl_debug_args_insert): Likewise.
37998 (type_hash_add): Likewise.
37999 (build_omp_clause): Likewise.
38000 * ubsan.c (decl_for_type_insert): Likewise.
38001 * varasm.c (get_unnamed_section): Likewise.
38002 (get_noswitch_section): Likewise.
38003 (get_section): Likewise.
38004 (get_block_for_section): Likewise.
38005 (create_block_symbol): Likewise.
38006 (build_constant_desc): Likewise.
38007 (create_constant_pool): Likewise.
38008 (force_const_mem): Likewise.
38009 (record_tm_clone_pair): Likewise.
38010 * varpool.c (varpool_create_empty_node): Likewise.
38012 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
38014 * dwarf2out.c (tree_add_const_value_attribute): Call
38015 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
38016 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
38017 instead of ggc_internal_<x>alloc_stat.
38018 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
38019 (ggc_realloc): Likewise.
38020 * ggc-none.c (ggc_internal_alloc): Likewise.
38021 (ggc_internal_cleared_alloc): Likewise.
38022 * ggc-page.c: Likewise.
38023 * ggc.h (ggc_internal_alloc_stat): Likewise.
38024 (ggc_internal_alloc): Remove macro.
38025 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
38026 (ggc_internal_cleared_alloc): Remove macro.
38027 (GGC_RESIZEVEC): Adjust.
38028 (ggc_resizevar): Remove macro.
38029 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
38030 (ggc_internal_cleared_vec_alloc_stat): Likewise.
38031 (ggc_internal_vec_cleared_alloc): Remove macro.
38032 (ggc_alloc_atomic_stat): Drop _stat suffix.
38033 (ggc_alloc_atomic): Remove macro.
38034 (ggc_alloc_cleared_atomic): Remove macro.
38035 (ggc_alloc_string_stat): Drop _stat suffix.
38036 (ggc_alloc_string): Remove macro.
38037 (ggc_alloc_rtx_def_stat): Adjust.
38038 (ggc_alloc_tree_node_stat): Likewise.
38039 (ggc_alloc_cleared_tree_node_stat): Likewise.
38040 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
38041 (ggc_alloc_cleared_simd_clone_stat): Likewise.
38042 * gimple.c (gimple_build_omp_for): Likewise.
38043 (gimple_copy): Likewise.
38044 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
38045 * toplev.c (realloc_for_line_map): Adjust.
38046 * tree-data-ref.h (lambda_vector_new): Likewise.
38047 * tree-phinodes.c (allocate_phi_node): Likewise.
38048 * tree.c (grow_tree_vec_stat): Likewise.
38049 * vec.h (va_gc::reserve): Adjust.
38051 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
38053 * config/microblaze/microblaze.c (break_handler): New Declaration.
38054 (microblaze_break_function_p,microblaze_is_break_handler): New.
38055 (compute_frame_size): Use microblaze_break_function_p.
38056 Add the test of break_handler.
38057 (microblaze_function_prologue) : Add the test of variable
38058 break_handler. Check the fnname by BREAK_HANDLER_NAME.
38059 (microblaze_function_epilogue) : Add the test of break_handler.
38060 (microblaze_globalize_label) : Add the test of break_handler.
38061 Check the name by BREAK_HANDLER_NAME.
38063 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
38065 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
38066 microblaze_is_break_handler test.
38067 (call_internal1,call_value_intern): Use microblaze_break_function_p.
38068 Use SYMBOL_REF_DECL.
38070 * config/microblaze/microblaze-protos.h
38071 (microblaze_break_function_p,microblaze_is_break_handler):
38074 * doc/extend.texi (MicroBlaze break_handler Functions): Document
38075 new MicroBlaze break_handler functions.
38077 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
38079 * doc/extend.texi (Size of an asm): Move node text according
38080 to its @menu entry position.
38082 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
38084 PR tree-optimization/61140
38085 PR tree-optimization/61150
38086 PR tree-optimization/61197
38087 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
38089 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
38091 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
38093 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
38095 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
38096 __SIZEOF_INT128__ is defined.
38098 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
38100 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
38101 (rs6000_delegitimize_address): Use it.
38103 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
38105 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
38106 inplace argument. Store the new address in the original MEM when true.
38107 * emit-rtl.c (change_address_1): Likewise.
38108 (adjust_address_1, adjust_automodify_address_1, offset_address):
38109 Update accordingly.
38110 * rtl.h (plus_constant): Add an inplace argument.
38111 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
38112 when true. Avoid generating (plus X (const_int 0)).
38113 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
38114 in-place. Pass true to plus_constant.
38115 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
38117 2014-05-16 Dehao Chen <dehao@google.com>
38119 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
38121 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
38124 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
38126 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
38128 2014-05-16 Dehao Chen <dehao@google.com>
38130 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
38131 optimize_function_for_size_p.
38132 * regs.h (REG_FREQ_FROM_BB): Likewise.
38134 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
38137 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
38138 negt_reg_operand cases.
38139 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
38141 * config/sh/predicates.md (cbranch_treg_value): Simplify.
38143 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
38145 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
38148 2014-05-16 David Malcolm <dmalcolm@redhat.com>
38151 2014-04-29 David Malcolm <dmalcolm@redhat.com>
38153 * tree-cfg.c (dump_function_to_file): Dump the return type of
38154 functions, in a line to itself before the function body, mimicking
38155 the layout of a C function.
38157 2014-05-16 Dehao Chen <dehao@google.com>
38159 * cfghooks.c (make_forwarder_block): Use direct computation to
38160 get fall-through edge's count and frequency.
38162 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
38164 * config/arc/arc.c (arc_init): Fix typo in error message.
38165 * config/i386/i386.c (ix86_expand_builtin): Likewise.
38166 (split_stack_prologue_scratch_regno): Likewise.
38167 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
38168 word from error message.
38170 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38172 * ira-costs.c: Fix typo in comment.
38174 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
38176 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
38178 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
38180 * varpool.c (dump_varpool_node): Dump write-only flag.
38181 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
38183 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
38184 write-only variables.
38185 * ipa.c (process_references): New function.
38186 (set_readonly_bit): New function.
38187 (set_writeonly_bit): New function.
38188 (clear_addressable_bit): New function.
38189 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
38190 fix handling of aliases.
38191 * cgraph.h (struct varpool_node): Add writeonly flag.
38193 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
38195 PR rtl-optimization/60969
38196 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
38197 Calculate costs for this case.
38199 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
38201 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
38202 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
38204 2014-05-16 Richard Biener <rguenther@suse.de>
38206 PR tree-optimization/61194
38207 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
38208 bool patterns ending in a COND_EXPR.
38210 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38212 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
38214 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38216 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
38217 where we were unable to cost an RTX.
38219 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38221 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
38224 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38225 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38227 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
38229 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38230 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38232 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
38233 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
38235 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38236 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38238 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
38241 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38242 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38244 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38247 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38248 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38250 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
38251 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
38253 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38254 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38256 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38257 rotates and shifts.
38259 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38260 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38262 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
38263 ZERO_EXTEND and SIGN_EXTEND better.
38265 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38266 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38268 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
38269 logical operations.
38271 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38272 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38274 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
38275 costs when costing loads and stores to memory.
38277 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38278 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
38280 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
38283 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38285 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
38287 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38288 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38290 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
38292 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
38294 (aarch64_rtx_mult_cost): New.
38295 (aarch64_rtx_costs): Use it, refactor as appropriate.
38297 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38298 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38300 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38301 emit instructions, return number of instructions which would
38303 (aarch64_add_constant): Update call to aarch64_build_constant.
38304 (aarch64_output_mi_thunk): Likewise.
38305 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38308 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38310 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38311 (TARGET_RTX_COSTS): Call it.
38313 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38315 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38316 (cortexa57_vector_cost): Likewise.
38317 (cortexa57_tunings): Use them.
38319 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38321 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38322 (cpu_addrcost_table): Use it.
38323 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38324 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38327 2014-05-16 Richard Biener <rguenther@suse.de>
38329 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38330 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38331 (visit_phi): Ignore edges marked as not executable.
38332 (class cond_dom_walker): New.
38333 (cond_dom_walker::before_dom_children): Value-number
38334 control statements and mark successor edges as not
38335 executable if possible.
38336 (run_scc_vn): First walk all control statements in
38337 dominator order, marking edges as not executable.
38338 * tree-inline.c (copy_edges_for_bb): Be not confused
38339 about random edge flags.
38341 2014-05-16 Richard Biener <rguenther@suse.de>
38343 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38345 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38348 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38349 (__TM_simple_begin): Use it.
38350 (__TM_begin): Likewise.
38352 2014-05-15 Martin Jambor <mjambor@suse.cz>
38355 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38356 type_preserved flag when the indirect edge is polymorphic.
38358 2014-05-15 Martin Jambor <mjambor@suse.cz>
38360 PR tree-optimization/61090
38361 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38362 build_ref_for_model.
38364 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38366 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38367 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38369 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38371 PR tree-optimization/61158
38372 * fold-const.c (fold_binary_loc): If X is zero-extended and
38373 shiftc >= prec, make sure zerobits is all ones instead of
38374 invoking undefined behavior.
38376 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38378 * regcprop.h: New file.
38379 * regcprop.c (skip_debug_insn_p): New decl.
38380 (replace_oldest_value_reg): Check skip_debug_insn_p.
38381 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38382 * shrink-wrap.c: Include regcprop.h.
38383 (prepare_shrink_wrap): Call
38384 copyprop_hardreg_forward_bb_without_debug_insn.
38386 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38388 * shrink-wrap.h: Update comment.
38389 * shrink-wrap.c: Update comment.
38390 (next_block_for_reg): Rename to live_edge_for_reg.
38391 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38392 (move_insn_for_shrink_wrap): Split live_edge.
38393 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38395 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38397 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38399 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38400 * config/sparc/sparc.md (fptype_ut699): New attribute.
38401 (in_branch_delay): Return false if -mfix-ut699 is specified and
38402 fptype_ut699 is set to single.
38403 (truncdfsf2): Add fptype_ut699 attribute.
38404 (fix_truncdfsi2): Likewise.
38405 (floatsisf2): Change fptype attribute.
38406 (fix_truncsfsi2): Likewise.
38407 (negtf2_notv9): Delete.
38408 (negtf2_v9): Likewise.
38409 (negtf2_hq): New instruction.
38410 (negtf2): New instruction and splitter.
38411 (negdf2_notv9): Rewrite.
38412 (abstf2_notv9): Delete.
38413 (abstf2_hq_v9): Likewise.
38414 (abstf2_v9): Likewise.
38415 (abstf2_hq): New instruction.
38416 (abstf2): New instruction and splitter.
38417 (absdf2_notv9): Rewrite.
38419 2014-05-14 Cary Coutant <ccoutant@google.com>
38422 * opts.c (common_handle_option): Don't special-case "-g".
38423 (set_debug_level): Default to at least level 2 with "-g".
38425 2014-05-14 DJ Delorie <dj@redhat.com>
38427 * config/msp430/msp430.c (msp430_builtin): Add
38428 MSP430_BUILTIN_DELAY_CYCLES.
38429 (msp430_init_builtins): Register void __delay_cycles(long long).
38430 (msp430_builtin_decl): Add it.
38431 (cg_magic_constant): New.
38432 (msp430_expand_delay_cycles): New.
38433 (msp430_expand_builtin): Call it.
38434 (msp430_print_operand_raw): Change integer printing from "int" to
38436 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38437 (delay_cycles_start): New.
38438 (delay_cycles_end): New.
38439 (delay_cycles_32): New.
38440 (delay_cycles_32x): New.
38441 (delay_cycles_16): New.
38442 (delay_cycles_16x): New.
38443 (delay_cycles_2): New.
38444 (delay_cycles_1): New.
38445 * doc/extend.texi: Document __delay_cycles().
38447 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38449 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38450 length attribute computation.
38452 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38455 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38457 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38460 * config/sparc/sparc.md: Fix types of low and high in DI constant
38461 splitter. Use gen_int_mode in some other splitters.
38463 2014-05-14 Martin Jambor <mjambor@suse.cz>
38466 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38468 2014-05-14 James Norris <jnorris@codesourcery.com>
38470 * omp-low.c (expand_parallel_call): Remove shadow variable.
38471 (expand_omp_taskreg): Likewise.
38473 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38475 * common/config/i386/i386-common.c
38476 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38477 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38478 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38479 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38480 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38481 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38482 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38483 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38484 xsavecintrin.h, xsavesintrin.h.
38485 (x86_64-*-*): Ditto.
38486 * config/i386/clflushoptintrin.h: New.
38487 * config/i386/xsavecintrin.h: Ditto.
38488 * config/i386/xsavesintrin.h: Ditto.
38489 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38490 (bit_XSAVES): Ditto.
38491 (bit_XSAVES): Ditto.
38492 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38493 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38495 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38496 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38497 OPTION_MASK_ISA_XSAVES.
38498 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38499 -mxsavec, -mxsaves.
38500 (PTA_CLFLUSHOPT) Define.
38501 (PTA_XSAVEC): Ditto.
38502 (PTA_XSAVES): Ditto.
38503 (ix86_option_override_internal): Handle new options.
38504 (ix86_valid_target_attribute_inner_p): Ditto.
38505 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38506 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38507 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38508 (bdesc_special_args): Add __builtin_ia32_xsaves,
38509 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38510 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38511 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38512 (ix86_expand_builtin): Handle new builtins.
38513 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38514 (TARGET_CLFLUSHOPT_P): Ditto.
38515 (TARGET_XSAVEC): Ditto.
38516 (TARGET_XSAVEC_P): Ditto.
38517 (TARGET_XSAVES): Ditto.
38518 (TARGET_XSAVES_P): Ditto.
38519 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38520 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38521 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38523 (ANY_XRSTOR64): Ditto.
38525 (xrstor): Change into <xrstor>.
38526 (xrstor_rex64): Change into <xrstor>_rex64.
38527 (xrstor64): Change into <xrstor>64
38529 * config/i386/i386.opt (mclflushopt): New.
38532 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38534 * doc/invoke.texi: Document new options.
38536 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38538 PR rtl-optimization/60866
38539 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38540 Default it to -1. Pass it down to init_simplejump_data.
38541 (init_simplejump_data): New parameter old_seqno. Pass it down
38542 to get_seqno_for_a_jump.
38543 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38544 initializing new jump seqno as a last resort. Add comment.
38545 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38546 jump and pass it down to sel_init_new_insn.
38547 (sel_redirect_edge_and_branch_force): Likewise.
38549 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38551 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38552 shifted values to avoid build warning.
38554 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38556 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38557 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38558 (cfg_layout_merge_blocks): Likewise.
38559 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38561 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38563 PR rtl-optimization/60901
38564 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38565 bb predecessor belongs to the same scheduling region. Adjust comment.
38567 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38569 * doc/sourcebuild.texi: (dfp_hw): Document.
38570 (p8vector_hw): Likewise.
38571 (powerpc_eabi_ok): Likewise.
38572 (powerpc_elfv2): Likewise.
38573 (powerpc_htm_ok): Likewise.
38574 (ppc_recip_hw): Likewise.
38575 (vsx_hw): Likewise.
38577 2014-05-13 Cary Coutant <ccoutant@google.com>
38579 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38581 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38583 * gengtype-parse.c (require3): Eliminate in favor of...
38585 (require_template_declaration): Update to support optional single *
38588 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38589 (create_user_defined_type): Handle a single level of explicit
38590 pointerness within template arguments.
38591 (struct write_types_data): Add field "kind".
38592 (filter_type_name): Handle "*" character.
38593 (write_user_func_for_structure_ptr): Require a write_types_data
38594 rather than just a prefix string, so that we can look up the kind
38595 of the wtd and use it as an index into wrote_user_func_for_ptr,
38596 ensuring that such functions are written at most once. Support
38597 subclasses by invoking the marking function of the ultimate base class.
38598 (write_user_func_for_structure_body): Require a write_types_data
38599 rather than just a prefix string, so that we can pass this to
38600 write_user_func_for_structure_ptr.
38601 (write_func_for_structure): Likewise.
38602 (ggc_wtd): Add initializer of new "kind" field.
38603 (pch_wtd): Likewise.
38605 * gengtype.h (enum write_types_kinds): New.
38606 (struct type): Add field wrote_user_func_for_ptr to the "s"
38609 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38611 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38612 instead of const_binop.
38613 (fold_binary_loc): Likewise.
38615 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38617 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38618 calculation to match get_ref_base_and_extent.
38620 2014-05-13 Catherine Moore <clm@codesourcery.com>
38621 Sandra Loosemore <sandra@codesourcery.com>
38623 * configure.ac: Fix assembly for explicit JALR relocation check.
38624 * configure: Regenerate.
38626 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38628 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38629 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38630 Remove associated type declarations and initialisations.
38631 (arm_expand_neon_builtin): Likewise.
38632 (neon_emit_pair_result_insn): Delete.
38633 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38634 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38635 (neon_vzip<mode>): Likewise.
38636 (neon_vuzp<mode>): Likewise.
38638 2014-05-13 Richard Biener <rguenther@suse.de>
38641 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38642 it needs revisiting whether the call still may be tail-called.
38644 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38646 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38647 * rtl.h (block_symbol): Reduce number of fields to 2.
38648 (rtx_def): Add u2.symbol_ref_flags.
38649 (SYMBOL_REF_FLAGS): Use it.
38650 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38651 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38652 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38653 Lower index of SYMBOL_REF_DATA.
38654 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38655 Print SYMBOL_REF_FLAGS at the same time.
38656 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38658 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38660 * rtl.def (VAR_LOCATION): Remove "i" field.
38661 * rtl.h (rtx_def): Add u2.var_location_status.
38662 (PAT_VAR_LOCATION_STATUS): Use it.
38663 (gen_rtx_VAR_LOCATION): Declare.
38664 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38665 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38666 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38668 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38670 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38671 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38673 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38675 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38676 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38677 * rtl.h (rtx_def): Add insn_uid to u2 field.
38678 (RTX_FLAG_CHECK8): Delete in favor of...
38679 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38680 (INSN_DELETED_P): Update accordingly.
38681 (INSN_UID): Use u2.insn_uid.
38682 (INSN_CHAIN_CODE_P): Define.
38683 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38684 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38685 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38686 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38687 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38688 indices accordingly.
38689 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38690 Update indices for insn-chain rtxes.
38691 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38692 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38693 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38694 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38695 * combine.c (try_combine): Likewise.
38696 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38698 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38700 * rtl.def (REG): Remove middle field.
38701 * rtl.h (rtx_def): Add orignal_regno to u2.
38702 (ORIGINAL_REGNO): Use it instead of field 1.
38703 (REG_ATTRS): Lower field index accordingly.
38704 * gengtype.c (adjust_field_rtx_def): Remove handling of
38705 ORIGINAL_REGNO. Move REG_ATTRS index down.
38706 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38707 code that prints the REGNO.
38709 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38711 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38714 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38716 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38718 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38720 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38721 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38723 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38725 * config/aarch64/aarch64-protos.h
38726 (aarch64_hard_regno_caller_save_mode): New prototype.
38727 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38729 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38731 2014-05-13 Christian Bruel <christian.bruel@st.com>
38733 * target.def (mode_switching): New hook vector.
38734 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38735 (mode_exit, modepriority_to_mode): Likewise.
38736 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38737 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38738 * target.h: Include tm.h and hard-reg-set.h.
38739 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38740 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38741 * doc/tm.texi Regenerate.
38742 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38743 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38744 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38745 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38746 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38747 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38748 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38749 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38750 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38751 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38752 (ix86_emit_mode_set): Hookify.
38753 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38755 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38756 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38757 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38758 (epiphany_mode_priority_to_mode): Remove declaration.
38759 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38760 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38761 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38763 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38764 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38765 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38767 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38770 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38771 is const0_rtx, return immediately. Don't test count == 0 when
38774 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38776 * Makefile.in: add shrink-wrap.o.
38777 * config/i386/i386.c: include "shrink-wrap.h"
38778 * function.c: Likewise.
38779 (requires_stack_frame_p, next_block_for_reg,
38780 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38781 dup_block_and_redirect): Move to shrink-wrap.c
38782 (thread_prologue_and_epilogue_insns): Extract three code segments
38783 as functions in shrink-wrap.c
38784 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38786 * shrink-wrap.c: New file.
38787 * shrink-wrap.h: New file.
38789 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38791 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38792 reference to Solaris.
38794 2014-05-12 Mike Stump <mikestump@comcast.net>
38797 * genattrtab.c (filename): Add.
38798 (convert_set_attr_alternative): Improve error message.
38799 (check_defs): Restore read_md_filename for error messages.
38800 (gen_insn): Save filename.
38802 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38804 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38805 -fno-local-ivars and -fivar-visibility.
38806 * c-family/c.opt: Make -Wshadow also implicitly enable
38809 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38811 * doc/tm.texi: Remove reference to deleted macro.
38812 * doc/tm.texi.in: Likewise.
38814 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38817 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38820 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38823 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38824 * config/arm/aout.h (License): Same.
38825 * config/arm/bpabi.h (License): Same.
38826 * config/arm/elf.h (License): Same.
38827 * config/arm/linux-elf.h (License): Same.
38828 * config/arm/linux-gas.h (License): Same.
38829 * config/arm/netbsd-elf.h (License): Same.
38830 * config/arm/uclinux-eabi.h (License): Same.
38831 * config/arm/uclinux-elf.h (License): Same.
38832 * config/arm/vxworks.h (License): Same.
38834 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38836 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38837 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38838 number of operands to 3.
38839 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38840 * tree-nested.c (convert_nonlocal_omp_clauses,
38841 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38842 * gimplify.c (gimplify_scan_omp_clauses): Handle
38843 OMP_CLAUSE_LINEAR_STMT.
38844 * omp-low.c (lower_rec_input_clauses): Fix typo.
38845 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38846 cast between Fortran boolean_type_node and C _Bool if
38849 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38851 PR tree-optimization/61136
38852 * wide-int.h (multiple_of_p): Define a version that doesn't return
38854 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38855 integer_zerop/const_binop pair.
38856 (multiple_of_p): Likewise, converting both operands to widest_int
38859 2014-05-09 Teresa Johnson <tejohnson@google.com>
38861 * cgraphunit.c (analyze_functions): Use correct dump file.
38863 2014-05-09 Florian Weimer <fweimer@redhat.com>
38865 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38867 (stack_protect_return_slot_p): New function.
38868 (expand_used_vars): Call stack_protect_decl_p and
38869 stack_protect_return_slot_p for -fstack-protector-strong.
38871 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38872 Andrew Haley <aph@redhat.com>
38873 Richard Sandiford <rdsandiford@googlemail.com>
38875 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38878 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38880 PR middle-end/61111
38881 * fold-const.c (fold_binary_loc): Changed width of mask.
38883 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38885 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38886 unsigned int initializers for regno_in, regno_out.
38888 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38891 * config/avr/avr.md (cc): Add new attribute set_vzn.
38892 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38893 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38894 with INC, DEC or NEG.
38895 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38896 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38897 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38899 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38902 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38904 * wide-int.cc (UTItype): Define.
38905 (UDWtype): Define for appropriate W_TYPE_SIZE.
38907 2014-05-09 Richard Biener <rguenther@suse.de>
38909 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38910 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38911 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38912 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38913 ssa_propagate): Adjust.
38915 2014-05-08 Jeff Law <law@redhat.com>
38917 PR tree-optimization/61009
38918 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38919 tri-state rather than a boolean. When a block is too big to
38920 thread through, inform caller via negative return value.
38921 (thread_across_edge): If a block was too big for normal threading,
38922 then it's too big for a joiner too, so remove temporary equivalences
38923 and return immediately.
38925 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38926 Matthias Klose <doko@ubuntu.com>
38929 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38931 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38934 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38936 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38939 * config/alpha/alpha.c: Include gimple-iterator.h.
38940 (alpha_gimple_fold_builtin): New function. Move
38941 ALPHA_BUILTIN_UMULH folding from ...
38942 (alpha_fold_builtin): ... here.
38943 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38945 2014-05-08 Wei Mi <wmi@google.com>
38948 * config/i386/i386.c (ix86_compute_frame_layout): Update
38949 preferred_stack_boundary for call, expanded from tls descriptor.
38950 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38951 to depend on SP register.
38952 (*tls_local_dynamic_base_32_gnu): Ditto.
38953 (*tls_local_dynamic_32_once): Ditto.
38954 (tls_global_dynamic_64_<mode>): Set
38955 ix86_tls_descriptor_calls_expanded_in_cfun.
38956 (tls_local_dynamic_base_64_<mode>): Ditto.
38957 (tls_global_dynamic_32): Set
38958 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38959 to depend on SP register.
38960 (tls_local_dynamic_base_32): Ditto.
38962 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38964 * config/arm/arm_neon.h: Update comment.
38965 * config/arm/neon-docgen.ml: Delete.
38966 * config/arm/neon-gen.ml: Delete.
38967 * doc/arm-neon-intrinsics.texi: Update comment.
38969 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38971 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38973 (vand, vorr, veor, vorn, vbic): Remove.
38974 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38976 (neon_vsub_unspec): Likewise.
38977 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38979 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38981 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38982 (vadd_s16): Likewise.
38983 (vadd_s32): Likewise.
38984 (vadd_f32): Likewise.
38985 (vadd_u8): Likewise.
38986 (vadd_u16): Likewise.
38987 (vadd_u32): Likewise.
38988 (vadd_s64): Likewise.
38989 (vadd_u64): Likewise.
38990 (vaddq_s8): Likewise.
38991 (vaddq_s16): Likewise.
38992 (vaddq_s32): Likewise.
38993 (vaddq_s64): Likewise.
38994 (vaddq_f32): Likewise.
38995 (vaddq_u8): Likewise.
38996 (vaddq_u16): Likewise.
38997 (vaddq_u32): Likewise.
38998 (vaddq_u64): Likewise.
38999 (vmul_s8): Likewise.
39000 (vmul_s16): Likewise.
39001 (vmul_s32): Likewise.
39002 (vmul_f32): Likewise.
39003 (vmul_u8): Likewise.
39004 (vmul_u16): Likewise.
39005 (vmul_u32): Likewise.
39006 (vmul_p8): Likewise.
39007 (vmulq_s8): Likewise.
39008 (vmulq_s16): Likewise.
39009 (vmulq_s32): Likewise.
39010 (vmulq_f32): Likewise.
39011 (vmulq_u8): Likewise.
39012 (vmulq_u16): Likewise.
39013 (vmulq_u32): Likewise.
39014 (vsub_s8): Likewise.
39015 (vsub_s16): Likewise.
39016 (vsub_s32): Likewise.
39017 (vsub_f32): Likewise.
39018 (vsub_u8): Likewise.
39019 (vsub_u16): Likewise.
39020 (vsub_u32): Likewise.
39021 (vsub_s64): Likewise.
39022 (vsub_u64): Likewise.
39023 (vsubq_s8): Likewise.
39024 (vsubq_s16): Likewise.
39025 (vsubq_s32): Likewise.
39026 (vsubq_s64): Likewise.
39027 (vsubq_f32): Likewise.
39028 (vsubq_u8): Likewise.
39029 (vsubq_u16): Likewise.
39030 (vsubq_u32): Likewise.
39031 (vsubq_u64): Likewise.
39032 (vand_s8): Likewise.
39033 (vand_s16): Likewise.
39034 (vand_s32): Likewise.
39035 (vand_u8): Likewise.
39036 (vand_u16): Likewise.
39037 (vand_u32): Likewise.
39038 (vand_s64): Likewise.
39039 (vand_u64): Likewise.
39040 (vandq_s8): Likewise.
39041 (vandq_s16): Likewise.
39042 (vandq_s32): Likewise.
39043 (vandq_s64): Likewise.
39044 (vandq_u8): Likewise.
39045 (vandq_u16): Likewise.
39046 (vandq_u32): Likewise.
39047 (vandq_u64): Likewise.
39048 (vorr_s8): Likewise.
39049 (vorr_s16): Likewise.
39050 (vorr_s32): Likewise.
39051 (vorr_u8): Likewise.
39052 (vorr_u16): Likewise.
39053 (vorr_u32): Likewise.
39054 (vorr_s64): Likewise.
39055 (vorr_u64): Likewise.
39056 (vorrq_s8): Likewise.
39057 (vorrq_s16): Likewise.
39058 (vorrq_s32): Likewise.
39059 (vorrq_s64): Likewise.
39060 (vorrq_u8): Likewise.
39061 (vorrq_u16): Likewise.
39062 (vorrq_u32): Likewise.
39063 (vorrq_u64): Likewise.
39064 (veor_s8): Likewise.
39065 (veor_s16): Likewise.
39066 (veor_s32): Likewise.
39067 (veor_u8): Likewise.
39068 (veor_u16): Likewise.
39069 (veor_u32): Likewise.
39070 (veor_s64): Likewise.
39071 (veor_u64): Likewise.
39072 (veorq_s8): Likewise.
39073 (veorq_s16): Likewise.
39074 (veorq_s32): Likewise.
39075 (veorq_s64): Likewise.
39076 (veorq_u8): Likewise.
39077 (veorq_u16): Likewise.
39078 (veorq_u32): Likewise.
39079 (veorq_u64): Likewise.
39080 (vbic_s8): Likewise.
39081 (vbic_s16): Likewise.
39082 (vbic_s32): Likewise.
39083 (vbic_u8): Likewise.
39084 (vbic_u16): Likewise.
39085 (vbic_u32): Likewise.
39086 (vbic_s64): Likewise.
39087 (vbic_u64): Likewise.
39088 (vbicq_s8): Likewise.
39089 (vbicq_s16): Likewise.
39090 (vbicq_s32): Likewise.
39091 (vbicq_s64): Likewise.
39092 (vbicq_u8): Likewise.
39093 (vbicq_u16): Likewise.
39094 (vbicq_u32): Likewise.
39095 (vbicq_u64): Likewise.
39096 (vorn_s8): Likewise.
39097 (vorn_s16): Likewise.
39098 (vorn_s32): Likewise.
39099 (vorn_u8): Likewise.
39100 (vorn_u16): Likewise.
39101 (vorn_u32): Likewise.
39102 (vorn_s64): Likewise.
39103 (vorn_u64): Likewise.
39104 (vornq_s8): Likewise.
39105 (vornq_s16): Likewise.
39106 (vornq_s32): Likewise.
39107 (vornq_s64): Likewise.
39108 (vornq_u8): Likewise.
39109 (vornq_u16): Likewise.
39110 (vornq_u32): Likewise.
39111 (vornq_u64): Likewise.
39113 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39115 * wide-int.cc (UTItype): Define.
39116 (UDWtype): Define for appropriate W_TYPE_SIZE.
39118 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
39120 PR tree-optimization/59100
39121 * tree-ssa-phiopt.c: Include tree-inline.h.
39122 (neutral_element_p, absorbing_element_p): New functions.
39123 (value_replacement): Handle conditional binary operations with a
39124 neutral or absorbing element.
39126 2014-05-08 Richard Biener <rguenther@suse.de>
39128 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
39129 folding the expression.
39130 (valueize_expr): Remove.
39131 (visit_reference_op_load): Do not valueize the result of
39133 (simplify_binary_expression): Likewise.
39134 (simplify_unary_expression): Likewise.
39136 2014-05-08 Richard Biener <rguenther@suse.de>
39138 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
39139 looking at TYPE_ARG_TYPES.
39141 2014-05-08 Richard Biener <rguenther@suse.de>
39143 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
39144 pointer propagation special-case.
39146 2014-05-08 Bin Cheng <bin.cheng@arm.com>
39148 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
39149 core part of address expressions.
39151 2014-05-08 Alan Modra <amodra@gmail.com>
39154 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
39155 loads and stores when -mno-strict-align at any alignment.
39156 (expand_block_clear): Similarly. Also correct calculation of
39159 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
39161 PR middle-end/39246
39162 * tree-complex.c (expand_complex_move): Keep line info when expanding
39164 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
39165 of complex expression. Use new argument to display correct location
39166 for values coming from phi statement.
39167 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
39168 (warn_uninitialized_phi): Pass location of phi argument to
39170 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
39171 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
39173 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
39175 * config/rs6000/predicates.md (indexed_address_mem): New.
39176 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
39177 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
39178 fpstore_ux, fpstore_u.
39179 (sign_extend, indexed, update): New.
39180 (cell_micro): Adjust.
39181 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
39182 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
39183 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
39184 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
39185 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
39186 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
39187 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
39188 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
39189 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
39190 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
39191 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
39192 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
39193 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
39194 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
39195 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
39197 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
39198 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
39199 *vsx_extract_<mode>_store): Adjust.
39200 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
39201 is_cracked_insn, insn_must_be_first_in_group,
39202 insn_must_be_last_in_group): Adjust.
39204 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
39206 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
39207 ppc440-fpstore): Adjust.
39208 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
39209 ppc476-fpstore): Adjust.
39210 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
39211 ppc601-fpstore): Adjust.
39212 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
39214 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
39216 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
39217 ppc7450-fpstore): Adjust.
39218 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
39219 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
39220 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
39222 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
39223 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
39224 cell-fpstore, cell-fpstore-update): Adjust.
39225 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
39226 ppce300c3_store, ppce300c3_fpstore): Adjust.
39227 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
39228 e500mc_fpstore): Adjust.
39229 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
39230 e500mc64_store, e500mc64_fpstore): Adjust.
39231 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
39232 e5500_fpstore): Adjust.
39233 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
39234 e6500_fpstore): Adjust.
39235 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
39237 * config/rs6000/power4.md (power4-load, power4-load-ext,
39238 power4-load-ext-update, power4-load-ext-update-indexed,
39239 power4-load-update-indexed, power4-load-update, power4-fpload,
39240 power4-fpload-update, power4-store, power4-store-update,
39241 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
39243 * config/rs6000/power5.md (power5-load, power5-load-ext,
39244 power5-load-ext-update, power5-load-ext-update-indexed,
39245 power5-load-update-indexed, power5-load-update, power5-fpload,
39246 power5-fpload-update, power5-store, power5-store-update,
39247 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
39249 * config/rs6000/power6.md (power6-load, power6-load-ext,
39250 power6-load-update, power6-load-update-indexed,
39251 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
39252 power6-fpload-update, power6-store, power6-store-update,
39253 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
39255 * config/rs6000/power7.md (power7-load, power7-load-ext,
39256 power7-load-update, power7-load-update-indexed,
39257 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
39258 power7-fpload-update, power7-store, power7-store-update,
39259 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
39261 * config/rs6000/power8.md (power8-load, power8-load-update,
39262 power8-load-ext, power8-load-ext-update, power8-fpload,
39263 power8-fpload-update, power8-store, power8-store-update-indexed,
39264 power8-fpstore, power8-fpstore-update): Adjust.
39265 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
39267 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
39268 titan_lsu_store, titan_lsu_fpstore): Adjust.
39269 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
39271 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
39274 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
39275 unrolled byte insns. Emit address increments after move insns.
39277 2014-05-07 David Malcolm <dmalcolm@redhat.com>
39279 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
39280 const_gimple, rather than a gimple.
39281 (gimple_call_builtin_p): Likewise, for the three variants.
39283 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
39284 (gimple_call_builtin_p): Likewise, for the three variants.
39286 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
39288 PR tree-optimization/61095
39289 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
39291 2014-05-07 Richard Biener <rguenther@suse.de>
39293 PR tree-optimization/61034
39294 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
39295 (maybe_skip_until): Use translate to take into account
39296 lattices when trying to do disambiguations.
39297 (get_continuation_for_phi_1): Likewise.
39298 (get_continuation_for_phi): Adjust for added translate arguments.
39299 (walk_non_aliased_vuses): Likewise.
39300 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39301 (walk_non_aliased_vuses): Likewise.
39302 (call_may_clobber_ref_p_1): Declare.
39303 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39304 calls. Stop early if we are only supposed to disambiguate.
39305 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39307 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39309 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39310 Emit an error when the function has arguments.
39312 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39314 * cfgloop.h (unswitch_loops): Remove.
39315 * doc/passes.texi: Remove references to loop-unswitch.c
39316 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39318 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39320 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39321 check for loads group of length 3.
39322 (vect_permute_load_chain): New permutations for loads group of
39324 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39325 of vec_perm_shuffle for the new permutations.
39327 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39329 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39330 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39331 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39332 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39333 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39334 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39335 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39336 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39338 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39340 * loop-unswitch.c: Delete.
39342 2014-05-07 Richard Biener <rguenther@suse.de>
39344 * config.gcc: Always set need_64bit_hwint to yes.
39346 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39348 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39349 of using optimize_size.
39351 2014-05-06 Mike Stump <mikestump@comcast.net>
39353 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39355 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39357 * config/i386/sse.md (*mov<mode>_internal)
39358 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39359 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39360 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39361 (*<code><mode>3, *andnot<mode>3<mask_name>)
39362 (<mask_codefor><code><mode>3<mask_name>): Only consider
39363 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39365 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39368 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39370 * lra-constraints.c (valid_address_p): Move earlier in file.
39371 Add a constraint argument to the address_info version.
39372 (satisfies_memory_constraint_p): New function.
39373 (satisfies_address_constraint_p): Likewise.
39374 (process_alt_operands, curr_insn_transform): Use them.
39375 (process_address): Pass the constraint to valid_address_p when
39376 checking address operands.
39378 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39380 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39381 to their respective blocks. Fix inadvertent use of "node".
39383 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39385 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39387 (init_emit_once): ...here.
39388 * rtl.h (init_derived_machine_modes): Declare.
39389 * toplev.c (do_compile): Call it even if no_backend.
39391 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39392 Mike Stump <mikestump@comcast.net>
39393 Richard Sandiford <rdsandiford@googlemail.com>
39394 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39396 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39397 (rtx_equal_for_memref_p): Update comment.
39398 (adjust_offset_for_component_ref): Use wide-int interfaces.
39399 * builtins.c (get_object_alignment_2): Likewise.
39400 (c_readstr): Likewise.
39401 (target_char_cast): Add comment.
39402 (determine_block_size): Use wide-int interfaces.
39403 (expand_builtin_signbit): Likewise.
39404 (fold_builtin_int_roundingfn): Likewise.
39405 (fold_builtin_bitop): Likewise.
39406 (fold_builtin_bswap): Likewise.
39407 (fold_builtin_logarithm): Use signop.
39408 (fold_builtin_pow): Likewise.
39409 (fold_builtin_memory_op): Use wide-int interfaces.
39410 (fold_builtin_object_size): Likewise.
39411 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39412 nb_iterations_estimate.
39413 (record_niter_bound): Use wide-int interfaces.
39414 (get_estimated_loop_iterations_int): Likewise.
39415 (get_estimated_loop_iterations): Likewise.
39416 (get_max_loop_iterations): Likewise.
39417 * cfgloop.h: Include wide-int.h.
39418 (struct nb_iter_bound): Change bound to widest_int.
39419 (struct loop): Change nb_iterations_upper_bound and
39420 nb_iterations_estimate to widest_int.
39421 (record_niter_bound): Switch to use widest_int.
39422 (get_estimated_loop_iterations): Likewise.
39423 (get_max_loop_iterations): Likewise.
39424 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39425 update for wide-int.
39426 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39427 * combine.c (try_combine): Likewise.
39428 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39429 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39431 (aarch64_float_const_representable_p): Likewise.
39432 * config/arc/arc.c: Include wide-int.h.
39433 (arc_can_use_doloop_p): Use wide-int interfaces.
39434 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39435 (vfp3_const_double_index): Likewise.
39436 * config/avr/avr.c (avr_out_round): Likewise.
39437 (avr_fold_builtin): Likewise.
39438 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39439 (bfin_can_use_doloop_p): Likewise.
39440 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39441 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39442 * config/i386/i386.c: Include wide-int.h.
39443 (ix86_data_alignment): Use wide-int interfaces.
39444 (ix86_local_alignment): Likewise.
39445 (ix86_emit_swsqrtsf): Update real_from_integer.
39446 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39447 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39448 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39449 (zero_constant): Likewise.
39450 (input_operand): Likewise.
39451 (splat_input_operand): Likewise.
39452 (non_logical_cint_operand): Change const_double to const_wide_int.
39453 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39454 (easy_altivec_constant): Remove comment.
39455 (paired_expand_vector_init): Use CONSTANT_P.
39456 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39457 (rs6000_emit_move): Update checks.
39458 (rs6000_aggregate_candidate): Use wide-int interfaces.
39459 (rs6000_expand_ternop_builtin): Likewise.
39460 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39461 (rs6000_assemble_integer): Likewise.
39462 (rs6000_hash_constant): Likewise.
39463 (output_toc): Likewise.
39464 (rs6000_rtx_costs): Likewise.
39465 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39466 * config/rs6000/rs6000-c.c: Include wide-int.h.
39467 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39468 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39469 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39470 Handle CONST_WIDE_INT.
39471 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39472 Use tree_fits_uhwi_p.
39473 * config/sparc/sparc.c: Include wide-int.h.
39474 (sparc_fold_builtin): Use wide-int interfaces.
39475 * config/vax/vax.c: Include wide-int.h.
39476 (vax_float_literal): Use real_from_integer.
39477 * coretypes.h (struct hwivec_def): New.
39479 (const_hwivec): New.
39480 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39481 (equiv_constant): Handle CONST_WIDE_INT.
39482 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39483 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39484 * dbxout.c (stabstr_U): Use wide-int interfaces.
39485 (dbxout_type): Update to use cst_fits_shwi_p.
39486 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39487 (TARGET_SUPPORTS_WIDE_INT): Add default.
39488 * dfp.c: Include wide-int.h.
39489 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39490 decimal_real_to_integer.
39491 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39492 decimal_real_to_integer.
39493 * doc/generic.texi (Constant expressions): Update for wide_int.
39494 * doc/rtl.texi (const_double): Likewise.
39495 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39496 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39497 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39498 (REAL_VALUE_FROM_INT): Remove.
39499 (TARGET_SUPPORTS_WIDE_INT): New.
39500 * doc/tm.texi: Regenerate.
39501 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39502 * double-int.h: Include wide-int.h.
39503 (struct wi::int_traits): New.
39504 * dwarf2out.c (get_full_len): New.
39505 (dw_val_equal_p): Add case dw_val_class_wide_int.
39506 (size_of_loc_descr): Likewise.
39507 (output_loc_operands): Likewise.
39508 (insert_double): Remove.
39509 (insert_wide_int): New.
39510 (add_AT_wide): New.
39511 (print_die): Add case dw_val_class_wide_int.
39512 (attr_checksum): Likewise.
39513 (attr_checksum_ordered): Likewise.
39514 (same_dw_val_p): Likewise.
39515 (size_of_die): Likewise.
39516 (value_format): Likewise.
39517 (output_die): Likewise.
39518 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39520 (clz_loc_descriptor): Use wide-int interfaces.
39521 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39522 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39523 (round_up_to_align): Use wide-int interfaces.
39524 (field_byte_offset): Likewise.
39525 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39526 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39527 CONST_DOUBLE handling. Use wide-int interfaces.
39528 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39529 (gen_enumeration_type_die): Use add_AT_wide.
39530 (hash_loc_operands): Add case dw_val_class_wide_int.
39531 (compare_loc_operands): Likewise.
39532 * dwarf2out.h: Include wide-int.h.
39533 (wide_int_ptr): New.
39534 (enum dw_val_class): Add dw_val_class_wide_int.
39535 (struct dw_val_struct): Add val_wide.
39536 * emit-rtl.c (const_wide_int_htab): New.
39537 (const_wide_int_htab_hash): New.
39538 (const_wide_int_htab_eq): New.
39539 (lookup_const_wide_int): New.
39540 (const_double_htab_hash): Use wide-int interfaces.
39541 (const_double_htab_eq): Likewise.
39542 (rtx_to_double_int): Conditionally compile for wide-int.
39543 (immed_double_int_const): Rename to immed_wide_int_const and
39544 update for wide-int.
39545 (immed_double_const): Conditionally compile for wide-int.
39546 (init_emit_once): Use wide-int interfaces.
39547 * explow.c (plus_constant): Likewise.
39548 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39549 (lshift_value): Use wide-int interfaces.
39550 (expand_mult): Likewise.
39551 (choose_multiplier): Likewise.
39552 (expand_smod_pow2): Likewise.
39553 (make_tree): Likewise.
39554 * expr.c (convert_modes): Consolidate handling of constants.
39555 Use wide-int interfaces.
39556 (emit_group_load_1): Add note.
39557 (store_expr): Update comment.
39558 (get_inner_reference): Use wide-int interfaces.
39559 (expand_constructor): Update comment.
39560 (expand_expr_real_2): Use wide-int interfaces.
39561 (expand_expr_real_1): Likewise.
39562 (reduce_to_bit_field_precision): Likewise.
39563 (const_vector_from_tree): Likewise.
39564 * final.c: Include wide-int-print.h.
39565 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39566 * fixed-value.c: Include wide-int.h.
39567 (fixed_from_string): Use wide-int interfaces.
39568 (fixed_to_decimal): Likewise.
39569 (fixed_convert_from_real): Likewise.
39570 (real_convert_from_fixed): Likewise.
39571 * fold-const.h (mem_ref_offset): Return an offset_int.
39572 (div_if_zero_remainder): Remove code parameter.
39573 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39574 Use wide-int interfaces.
39575 (may_negate_without_overflow_p): Use wide-int interfaces.
39576 (negate_expr_p): Likewise.
39577 (fold_negate_expr): Likewise.
39578 (int_const_binop_1): Likewise.
39579 (const_binop): Likewise.
39580 (fold_convert_const_int_from_int): Likewise.
39581 (fold_convert_const_int_from_real): Likewise.
39582 (fold_convert_const_int_from_fixed): Likewise.
39583 (fold_convert_const_fixed_from_int): Likewise.
39584 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39585 (sign_bit_p): Use wide-int interfaces.
39586 (make_range_step): Likewise.
39587 (build_range_check): Likewise. Pass an integer of the correct type
39588 instead of using integer_one_node.
39589 (range_predecessor): Pass an integer of the correct type instead
39590 of using integer_one_node.
39591 (range_successor): Likewise.
39592 (merge_ranges): Likewise.
39593 (unextend): Use wide-int interfaces.
39594 (extract_muldiv_1): Likewise.
39595 (fold_div_compare): Likewise.
39596 (fold_single_bit_test): Likewise.
39597 (fold_sign_changed_comparison): Likewise.
39598 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39599 (fold_plusminus_mult_expr): Use wide-int interfaces.
39600 (native_encode_int): Likewise.
39601 (native_interpret_int): Likewise.
39602 (fold_unary_loc): Likewise.
39603 (pointer_may_wrap_p): Likewise.
39604 (size_low_cst): Likewise.
39605 (mask_with_tz): Likewise.
39606 (fold_binary_loc): Likewise.
39607 (fold_ternary_loc): Likewise.
39608 (multiple_of_p): Likewise.
39609 (tree_call_nonnegative_warnv_p): Update calls to
39610 tree_int_cst_min_precision and real_from_integer.
39611 (fold_negate_const): Use wide-int interfaces.
39612 (fold_abs_const): Likewise.
39613 (fold_relational_const): Use tree_int_cst_lt.
39614 (round_up_loc): Use wide-int interfaces.
39615 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39616 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39617 * gengtype.c: Remove include of double-int.h.
39618 (do_typedef): Use wide-int interfaces.
39619 (open_base_files): Add wide-int.h.
39620 (main): Add offset_int and widest_int typedefs.
39621 * gengtype-lex.l: Handle "^".
39622 (CXX_KEYWORD): Add "static".
39623 * gengtype-parse.c (require3): New.
39624 (require_template_declaration): Handle constant template arguments
39625 and nested templates.
39626 * gengtype-state.c: Don't include "double-int.h".
39627 * genpreds.c (write_one_predicate_function): Update comment.
39628 (write_tm_constrs_h): Add check for hval and lval use in
39630 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39631 (add_to_sequence): Likewise.
39632 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39633 and const_double_operand.
39634 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39636 * gimple-fold.c (get_base_constructor): Likewise.
39637 (fold_array_ctor_reference): Likewise.
39638 (fold_nonarray_ctor_reference): Likewise.
39639 (fold_const_aggregate_ref_1): Likewise.
39640 (gimple_val_nonnegative_real_p): Likewise.
39641 (gimple_fold_indirect_ref): Likewise.
39642 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39643 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39644 (struct slsr_cand_d): Change index to be widest_int.
39645 (struct incr_info_d): Change incr to be widest_int.
39646 (alloc_cand_and_find_basis): Use wide-int interfaces.
39647 (slsr_process_phi): Likewise.
39648 (backtrace_base_for_ref): Likewise. Return a widest_int.
39649 (restructure_reference): Take a widest_int instead of a double_int.
39650 (slsr_process_ref): Use wide-int interfaces.
39651 (create_mul_ssa_cand): Likewise.
39652 (create_mul_imm_cand): Likewise.
39653 (create_add_ssa_cand): Likewise.
39654 (create_add_imm_cand): Take a widest_int instead of a double_int.
39655 (slsr_process_add): Use wide-int interfaces.
39656 (slsr_process_cast): Likewise.
39657 (slsr_process_copy): Likewise.
39658 (dump_candidate): Likewise.
39659 (dump_incr_vec): Likewise.
39660 (replace_ref): Likewise.
39661 (cand_increment): Likewise. Return a widest_int.
39662 (cand_abs_increment): Likewise.
39663 (replace_mult_candidate): Take a widest_int instead of a double_int.
39664 (replace_unconditional_candidate): Use wide-int interfaces.
39665 (incr_vec_index): Take a widest_int instead of a double_int.
39666 (create_add_on_incoming_edge): Likewise.
39667 (create_phi_basis): Use wide-int interfaces.
39668 (replace_conditional_candidate): Likewise.
39669 (record_increment): Take a widest_int instead of a double_int.
39670 (record_phi_increments): Use wide-int interfaces.
39671 (phi_incr_cost): Take a widest_int instead of a double_int.
39672 (lowest_cost_path): Likewise.
39673 (total_savings): Likewise.
39674 (analyze_increments): Use wide-int interfaces.
39675 (ncd_with_phi): Take a widest_int instead of a double_int.
39676 (ncd_of_cand_and_phis): Likewise.
39677 (nearest_common_dominator_for_cands): Likewise.
39678 (insert_initializers): Use wide-int interfaces.
39679 (all_phi_incrs_profitable): Likewise.
39680 (replace_one_candidate): Likewise.
39681 (replace_profitable_candidates): Likewise.
39682 * godump.c: Include wide-int-print.h.
39683 (go_output_typedef): Use wide-int interfaces.
39684 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39685 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39686 (build_loop_iteration_domains): Likewise.
39687 * hooks.h: Include wide-int.h rather than double-int.h.
39688 (hook_bool_dint_dint_uint_bool_true): Delete.
39689 (hook_bool_wint_wint_uint_bool_true): Declare.
39690 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39691 (hook_bool_wint_wint_uint_bool_true): New.
39692 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39694 (ubsan_expand_si_overflow_mul_check): Likewise.
39695 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39696 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39697 (get_ancestor_addr_info): Likewise.
39698 (ipa_modify_call_arguments): Likewise.
39699 * loop-doloop.c (doloop_modify): Likewise.
39700 (doloop_optimize): Likewise.
39701 * loop-iv.c (iv_number_of_iterations): Likewise.
39702 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39703 (unroll_loop_constant_iterations): Likewise.
39704 (decide_unroll_runtime_iterations): Likewise.
39705 (unroll_loop_runtime_iterations): Likewise.
39706 (decide_peel_simple): Likewise.
39707 (decide_unroll_stupid): Likewise.
39708 * lto-streamer-in.c (streamer_read_wi): Add.
39709 (input_cfg): Use wide-int interfaces.
39710 (lto_input_tree_1): Likewise.
39711 * lto-streamer-out.c (streamer_write_wi): Add.
39712 (hash_tree): Use wide-int interfaces.
39713 (output_cfg): Likewise.
39714 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39715 (GTFILES): Add wide-int.h and signop.h.
39716 (TAGS): Look for .cc files too.
39717 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39718 * optabs.c (expand_subword_shift): Likewise.
39719 (expand_doubleword_shift): Likewise.
39720 (expand_absneg_bit): Likewise.
39721 (expand_copysign_absneg): Likewise.
39722 (expand_copysign_bit): Likewise.
39723 * postreload.c (reload_cse_simplify_set): Likewise.
39724 * predict.c (predict_iv_comparison): Likewise.
39725 * pretty-print.h: Include wide-int-print.h.
39727 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39728 * print-tree.c: Include wide-int-print.h.
39729 (print_node_brief): Use wide-int interfaces.
39730 (print_node): Likewise.
39731 * read-rtl.c (validate_const_wide_int): New.
39732 (read_rtx_code): Add CONST_WIDE_INT case.
39733 * real.c: Include wide-int.h.
39734 (real_to_integer2): Delete.
39735 (real_to_integer): New function, returning a wide_int.
39736 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39737 (ten_to_ptwo): Update call to real_from_integer.
39738 (real_digit): Likewise.
39739 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39740 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39741 (REAL_VALUE_TO_INT): Delete.
39742 (real_to_integer): Declare a wide-int form.
39743 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39744 * recog.c (const_int_operand): Improve comment.
39745 (const_scalar_int_operand): New.
39746 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39747 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39748 (split_double): Likewise.
39749 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39750 (rtx_size): Likewise.
39751 (rtx_alloc_stat_v): New.
39752 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39753 (cwi_output_hex): New.
39754 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39755 (cwi_check_failed_bounds): New.
39756 * rtl.def (CONST_WIDE_INT): New.
39757 * rtl.h: Include <utility> and wide-int.h.
39758 (struct hwivec_def): New.
39759 (CWI_GET_NUM_ELEM): New.
39760 (CWI_PUT_NUM_ELEM): New.
39761 (struct rtx_def): Add num_elem and hwiv.
39762 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39763 (CASE_CONST_UNIQUE): Likewise.
39764 (CASE_CONST_ANY): Likewise.
39765 (CONST_SCALAR_INT_P): Likewise.
39766 (CONST_WIDE_INT_P): New.
39768 (HWIVEC_CHECK): New.
39769 (cwi_check_failed_bounds): New.
39771 (HWIVEC_CHECK): New.
39772 (CONST_WIDE_INT_VEC) New.
39773 (CONST_WIDE_INT_NUNITS) New.
39774 (CONST_WIDE_INT_ELT) New.
39775 (rtx_mode_t): New type.
39776 (wi::int_traits <rtx_mode_t>): New.
39778 (wi::min_value): New.
39779 (wi::max_value): New.
39781 (const_wide_int_alloc): New.
39782 (immed_wide_int_const): New.
39783 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39784 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39785 * signop.h: New file.
39786 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39787 (simplify_const_unary_operation): Use wide-int interfaces.
39788 (simplify_binary_operation_1): Likewise.
39789 (simplify_const_binary_operation): Likewise.
39790 (simplify_const_relational_operation): Likewise.
39791 (simplify_immed_subreg): Likewise.
39792 * stmt.c (expand_case): Likewise.
39793 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39794 signop rather than a bool.
39795 * stor-layout.c (layout_type): Use wide-int interfaces.
39796 (initialize_sizetypes): Update calls to
39797 set_min_and_max_values_for_integral_type.
39798 (set_min_and_max_values_for_integral_type): Take a signop rather
39799 than a bool. Use wide-int interfaces.
39800 (fixup_signed_type): Update accordingly. Remove
39801 HOST_BITS_PER_DOUBLE_INT limit.
39802 (fixup_unsigned_type): Likewise.
39803 * system.h (STATIC_CONSTANT_P): New.
39804 (STATIC_ASSERT): New.
39805 * target.def (can_use_doloop_p): Take widest_ints rather than
39807 * target.h: Include wide-int.h rather than double-int.h.
39808 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39810 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39811 rather than INT_CST_LT_UNSIGNED.
39812 (can_use_doloop_if_innermost): Take widest_ints rather than
39814 * tree-affine.c: Include wide-int-print.h.
39815 (double_int_ext_for_comb): Delete.
39816 (wide_int_ext_for_comb): New.
39817 (aff_combination_zero): Use wide-int interfaces.
39818 (aff_combination_const): Take a widest_int instead of a double_int.
39819 (aff_combination_elt): Use wide-int interfaces.
39820 (aff_combination_scale): Take a widest_int instead of a double_int.
39821 (aff_combination_add_elt): Likewise.
39822 (aff_combination_add_cst): Likewise.
39823 (aff_combination_add): Use wide-int interfaces.
39824 (aff_combination_convert): Likewise.
39825 (tree_to_aff_combination): Likewise.
39826 (add_elt_to_tree): Take a widest_int instead of a double_int.
39827 (aff_combination_to_tree): Use wide-int interfaces.
39828 (aff_combination_remove_elt): Likewise.
39829 (aff_combination_add_product): Take a widest_int instead of
39831 (aff_combination_mult): Use wide-int interfaces.
39832 (aff_combination_expand): Likewise.
39833 (double_int_constant_multiple_p): Delete.
39834 (wide_int_constant_multiple_p): New.
39835 (aff_combination_constant_multiple_p): Take a widest_int pointer
39836 instead of a double_int pointer.
39837 (print_aff): Use wide-int interfaces.
39838 (get_inner_reference_aff): Take a widest_int pointer
39839 instead of a double_int pointer.
39840 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39841 * tree-affine.h: Include wide-int.h.
39842 (struct aff_comb_elt): Change type of coef to widest_int.
39843 (struct affine_tree_combination): Change type of offset to widest_int.
39844 (double_int_ext_for_comb): Delete.
39845 (wide_int_ext_for_comb): New.
39846 (aff_combination_const): Use widest_int instead of double_int.
39847 (aff_combination_scale): Likewise.
39848 (aff_combination_add_elt): Likewise.
39849 (aff_combination_constant_multiple_p): Likewise.
39850 (get_inner_reference_aff): Likewise.
39851 (aff_comb_cannot_overlap_p): Likewise.
39852 (aff_combination_zero_p): Use wide-int interfaces.
39853 * tree.c: Include tree.h.
39854 (init_ttree): Use make_int_cst.
39855 (tree_code_size): Removed code for INTEGER_CST case.
39856 (tree_size): Add INTEGER_CST case.
39857 (make_node_stat): Update comment.
39858 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39859 (build_int_cst_type): Use wide-int interfaces.
39860 (double_int_to_tree): Likewise.
39861 (double_int_fits_to_tree_p): Delete.
39862 (force_fit_type_double): Delete.
39863 (force_fit_type): New.
39864 (int_cst_hash_hash): Use wide-int interfaces.
39865 (int_cst_hash_eq): Likewise.
39866 (build_int_cst_wide): Delete.
39867 (wide_int_to_tree): New.
39868 (cache_integer_cst): Use wide-int interfaces.
39869 (build_low_bits_mask): Likewise.
39870 (cst_and_fits_in_hwi): Likewise.
39871 (real_value_from_int_cst): Likewise.
39872 (make_int_cst_stat): New.
39873 (integer_zerop): Use wide_int interfaces.
39874 (integer_onep): Likewise.
39875 (integer_all_onesp): Likewise.
39876 (integer_pow2p): Likewise.
39877 (integer_nonzerop): Likewise.
39878 (tree_log2): Likewise.
39879 (tree_floor_log2): Likewise.
39880 (tree_ctz): Likewise.
39881 (int_size_in_bytes): Likewise.
39882 (mem_ref_offset): Return an offset_int rather than a double_int.
39883 (build_type_attribute_qual_variant): Use wide_int interfaces.
39884 (type_hash_eq): Likewise
39885 (tree_int_cst_equal): Likewise.
39886 (tree_int_cst_lt): Delete.
39887 (tree_int_cst_compare): Likewise.
39888 (tree_fits_shwi_p): Use wide_int interfaces.
39889 (tree_fits_uhwi_p): Likewise.
39890 (tree_int_cst_sign_bit): Likewise.
39891 (tree_int_cst_sgn): Likewise.
39892 (tree_int_cst_min_precision): Take a signop rather than a bool.
39893 (simple_cst_equal): Use wide_int interfaces.
39894 (compare_tree_int): Likewise.
39895 (iterative_hash_expr): Likewise.
39896 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39898 (get_type_static_bounds): Use wide_int interfaces.
39899 (tree_int_cst_elt_check_failed): New.
39900 (build_common_tree_nodes): Reordered to set prec before filling in
39902 (int_cst_value): Check cst_and_fits_in_hwi.
39903 (widest_int_cst_value): Use wide_int interfaces.
39904 (upper_bound_in_type): Likewise.
39905 (lower_bound_in_type): Likewise.
39906 (num_ending_zeros): Likewise.
39907 (drop_tree_overflow): Likewise.
39908 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39909 (gen_conditions_for_pow_cst_base): Likewise.
39910 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39911 (group_case_labels_stmt): Use wide-int interfaces.
39912 (verify_gimple_assign_binary): Likewise.
39913 (print_loop): Likewise.
39914 * tree-chrec.c (tree_fold_binomial): Likewise.
39915 * tree-core.h (struct tree_base): Add int_length.
39916 (struct tree_int_cst): Change rep of value.
39917 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39918 (dr_may_alias_p): Likewise.
39919 (max_stmt_executions_tree): Likewise.
39920 * tree.def (INTEGER_CST): Update comment.
39921 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39922 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39923 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39924 (dequeue_and_dump): Use wide-int interfaces.
39925 * tree.h: Include wide-int.h.
39926 (NULL_TREE): Moved to earlier loc in file.
39927 (TREE_INT_CST_ELT_CHECK): New.
39928 (tree_int_cst_elt_check_failed): New.
39930 (TREE_INT_CST): Delete.
39931 (TREE_INT_CST_LOW): Use wide-int interfaces.
39932 (TREE_INT_CST_HIGH): Delete.
39933 (TREE_INT_CST_NUNITS): New.
39934 (TREE_INT_CST_EXT_NUNITS): Likewise.
39935 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39936 (TREE_INT_CST_ELT): Likewise.
39937 (INT_CST_LT): Delete.
39938 (tree_int_cst_elt_check): New (two forms).
39939 (type_code_size): Update comment.
39940 (make_int_cst_stat, make_int_cst): New.
39941 (tree_to_double_int): Delete.
39942 (double_int_fits_to_tree_p): Delete.
39943 (force_fit_type_double): Delete.
39944 (build_int_cstu): Replace with out-of-line function.
39945 (build_int_cst_wide): Delete.
39946 (tree_int_cst_lt): Define inline.
39947 (tree_int_cst_le): New.
39948 (tree_int_cst_compare): Define inline.
39949 (tree_int_cst_min_precision): Take a signop rather than a bool.
39950 (wi::int_traits <const_tree>): New.
39951 (wi::int_traits <tree>): New.
39952 (wi::extended_tree): New.
39953 (wi::int_traits <wi::extended_tree>): New.
39954 (wi::to_widest): New.
39955 (wi::to_offset): New.
39956 (wi::fits_to_tree_p): New.
39957 (wi::min_value): New.
39958 (wi::max_value): New.
39959 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39960 (copy_tree_body_r): Likewise.
39961 * tree-object-size.c (compute_object_offset): Likewise.
39962 (addr_object_size): Likewise.
39963 * tree-predcom.c: Include wide-int-print.h.
39964 (struct dref_d): Change type of offset to widest_int.
39965 (dump_dref): Call wide-int printer.
39966 (aff_combination_dr_offset): Use wide-int interfaces.
39967 (determine_offset): Take a widest_int pointer rather than a
39968 double_int pointer.
39969 (split_data_refs_to_components): Use wide-int interfaces.
39970 (suitable_component_p): Likewise.
39971 (order_drefs): Likewise.
39972 (add_ref_to_chain): Likewise.
39973 (valid_initializer_p): Likewise.
39974 (determine_roots_comp): Likewise.
39975 * tree-pretty-print.c: Include wide-int-print.h.
39976 (dump_generic_node): Use wide-int interfaces.
39977 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39978 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39979 (move_fixed_address_to_symbol): Likewise.
39980 (move_hint_to_base): Likewise.
39981 (move_pointer_to_base): Likewise.
39982 (move_variant_to_index): Likewise.
39983 (most_expensive_mult_to_index): Likewise.
39984 (addr_to_parts): Likewise.
39985 (copy_ref_info): Likewise.
39986 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39987 (indirect_refs_may_alias_p): Likewise.
39988 (stmt_kills_ref_p_1): Likewise.
39989 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39990 * tree-ssa-ccp.c: Update comment at top of file. Include
39992 (struct prop_value_d): Change type of mask to widest_int.
39993 (extend_mask): New function.
39994 (dump_lattice_value): Use wide-int interfaces.
39995 (get_default_value): Likewise.
39996 (set_constant_value): Likewise.
39997 (set_value_varying): Likewise.
39998 (valid_lattice_transition): Likewise.
39999 (set_lattice_value): Likewise.
40000 (value_to_double_int): Delete.
40001 (value_to_wide_int): New.
40002 (get_value_from_alignment): Use wide-int interfaces.
40003 (get_value_for_expr): Likewise.
40004 (do_dbg_cnt): Likewise.
40005 (ccp_finalize): Likewise.
40006 (ccp_lattice_meet): Likewise.
40007 (bit_value_unop_1): Use widest_ints rather than double_ints.
40008 (bit_value_binop_1): Likewise.
40009 (bit_value_unop): Use wide-int interfaces.
40010 (bit_value_binop): Likewise.
40011 (bit_value_assume_aligned): Likewise.
40012 (evaluate_stmt): Likewise.
40013 (ccp_fold_stmt): Likewise.
40014 (visit_cond_stmt): Likewise.
40015 (ccp_visit_stmt): Likewise.
40016 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
40017 (constant_pointer_difference): Likewise.
40018 (associate_pointerplus): Likewise.
40019 (combine_conversions): Likewise.
40020 * tree-ssa-loop.h: Include wide-int.h.
40021 (struct tree_niter_desc): Change type of max to widest_int.
40022 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
40023 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
40024 (remove_redundant_iv_tests): Likewise.
40025 (canonicalize_loop_induction_variables): Likewise.
40026 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
40027 (constant_multiple_of): Take a widest_int pointer instead of
40028 a double_int pointer.
40029 (get_computation_aff): Use wide-int interfaces.
40030 (ptr_difference_cost): Likewise.
40031 (difference_cost): Likewise.
40032 (get_loop_invariant_expr_id): Likewise.
40033 (get_computation_cost_at): Likewise.
40034 (iv_elimination_compare_lt): Likewise.
40035 (may_eliminate_iv): Likewise.
40036 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
40037 instead of double_int.
40038 (max_loop_iterations): Likewise.
40039 (max_stmt_executions): Likewise.
40040 (estimated_stmt_executions): Likewise.
40041 * tree-ssa-loop-niter.c: Include wide-int-print.h.
40042 (split_to_var_and_offset): Use wide-int interfaces.
40043 (determine_value_range): Likewise.
40044 (bound_difference_of_offsetted_base): Likewise.
40045 (bounds_add): Take a widest_int instead of a double_int.
40046 (number_of_iterations_ne_max): Use wide-int interfaces.
40047 (number_of_iterations_ne): Likewise.
40048 (number_of_iterations_lt_to_ne): Likewise.
40049 (assert_loop_rolls_lt): Likewise.
40050 (number_of_iterations_lt): Likewise.
40051 (number_of_iterations_le): Likewise.
40052 (number_of_iterations_cond): Likewise.
40053 (number_of_iterations_exit): Likewise.
40054 (finite_loop_p): Likewise.
40055 (derive_constant_upper_bound_assign): Likewise.
40056 (derive_constant_upper_bound): Return a widest_int.
40057 (derive_constant_upper_bound_ops): Likewise.
40058 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
40059 (record_estimate): Take a widest_int rather than a double_int.
40060 (record_nonwrapping_iv): Use wide-int interfaces.
40061 (double_int_cmp): Delete.
40062 (wide_int_cmp): New.
40063 (bound_index): Take a widest_int rather than a double_int.
40064 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
40065 (maybe_lower_iteration_bound): Likewise.
40066 (estimate_numbers_of_iterations_loop): Likewise.
40067 (estimated_loop_iterations): Take a widest_int pointer than than
40068 a double_int pointer.
40069 (estimated_loop_iterations_int): Use wide-int interfaces.
40070 (max_loop_iterations): Take a widest_int pointer than than
40071 a double_int pointer.
40072 (max_loop_iterations_int): Use wide-int interfaces.
40073 (max_stmt_executions): Take a widest_int pointer than than
40074 a double_int pointer.
40075 (estimated_stmt_executions): Likewise.
40076 (n_of_executions_at_most): Use wide-int interfaces.
40077 (scev_probably_wraps_p): Likewise.
40078 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
40079 to real_to_integer.
40080 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
40082 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
40083 double_ints. Adjust for trailing_wide_ints <3> representation.
40084 (set_nonzero_bits): Likewise.
40085 (get_range_info): Return wide_ints rather than double_ints.
40086 Adjust for trailing_wide_ints <3> representation.
40087 (get_nonzero_bits): Likewise.
40088 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
40090 * tree-ssanames.h (struct range_info_def): Replace min, max and
40091 nonzero_bits with a trailing_wide_ints <3>.
40092 (set_range_info): Use wide_int_refs rather than double_ints.
40093 (set_nonzero_bits): Likewise.
40094 (get_range_info): Return wide_ints rather than double_ints.
40095 (get_nonzero_bits): Likewise.
40096 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
40097 * tree-ssa-pre.c (phi_translate_1): Likewise.
40098 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
40099 (acceptable_pow_call): Likewise.
40100 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
40102 (vn_reference_fold_indirect): Likewise.
40103 (vn_reference_maybe_forwprop_address): Likewise.
40104 (valueize_refs_1): Likewise.
40105 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
40106 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
40107 tree_int_cst_lt and tree_int_cst_le.
40108 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
40110 (streamer_alloc_tree): Likewise.
40111 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
40112 (streamer_write_tree_header): Likewise.
40113 (streamer_write_integer_cst): Likewise.
40114 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
40115 (build_constructors): Likewise.
40116 (array_value_type): Likewise.
40117 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
40118 (vect_check_gather): Likewise.
40119 * tree-vect-generic.c (build_replicated_const): Likewise.
40120 (expand_vector_divmod): Likewise.
40121 * tree-vect-loop.c (vect_transform_loop): Likewise.
40122 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
40123 (vect_do_peeling_for_alignment): Likewise.
40124 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
40125 * tree-vrp.c: Include wide-int.h.
40126 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
40127 (extract_range_from_assert): Use wide-int interfaces.
40128 (vrp_int_const_binop): Likewise.
40129 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
40130 double_int pointers.
40131 (ranges_from_anti_range): Use wide-int interfaces.
40132 (quad_int_cmp): Delete.
40133 (quad_int_pair_sort): Likewise.
40134 (extract_range_from_binary_expr_1): Use wide-int interfaces.
40135 (extract_range_from_unary_expr_1): Likewise.
40136 (adjust_range_with_scev): Likewise.
40137 (masked_increment): Take and return wide_ints rather than double_ints.
40138 (register_edge_assert_for_2): Use wide-int interfaces.
40139 (check_array_ref): Likewise.
40140 (search_for_addr_array): Likewise.
40141 (maybe_set_nonzero_bits): Likewise.
40142 (union_ranges): Pass an integer of the correct type instead of
40143 using integer_one_node.
40144 (intersect_ranges): Likewise.
40145 (simplify_truth_ops_using_ranges): Likewise.
40146 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
40147 (range_fits_type_p): Likewise.
40148 (simplify_cond_using_ranges): Likewise. Take a signop rather than
40150 (simplify_conversion_using_ranges): Use wide-int interfaces.
40151 (simplify_float_conversion_using_ranges): Likewise.
40152 (vrp_finalize): Likewise.
40153 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
40154 (gimple_stringops_transform): Likewise.
40155 * varasm.c (decode_addr_const): Likewise.
40156 (const_hash_1): Likewise.
40157 (const_rtx_hash_1): Likewise
40158 (output_constant): Likewise.
40159 (array_size_for_constructor): Likewise.
40160 (output_constructor_regular_field): Likewise.
40161 (output_constructor_bitfield): Likewise.
40162 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
40163 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
40165 * gencheck.c: Define BITS_PER_UNIT.
40166 * wide-int.cc: New.
40168 * wide-int-print.cc: New.
40169 * wide-int-print.h: New.
40171 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40173 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
40175 2014-05-06 Richard Biener <rguenther@suse.de>
40177 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
40178 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
40179 (TODO_verify_all): Adjust.
40180 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
40181 TODO_verify_stmts and TODO_verify_rtl_sharing.
40182 * bb-reorder.c: Likewise.
40183 * cfgexpand.c: Likewise.
40184 * cprop.c: Likewise.
40186 * function.c: Likewise.
40187 * fwprop.c: Likewise.
40188 * gcse.c: Likewise.
40189 * gimple-ssa-isolate-paths.c: Likewise.
40190 * gimple-ssa-strength-reduction.c: Likewise.
40191 * ipa-split.c: Likewise.
40192 * loop-init.c: Likewise.
40193 * loop-unroll.c: Likewise.
40194 * lower-subreg.c: Likewise.
40195 * modulo-sched.c: Likewise.
40196 * postreload-gcse.c: Likewise.
40197 * predict.c: Likewise.
40198 * recog.c: Likewise.
40199 * sched-rgn.c: Likewise.
40200 * store-motion.c: Likewise.
40201 * tracer.c: Likewise.
40202 * trans-mem.c: Likewise.
40203 * tree-call-cdce.c: Likewise.
40204 * tree-cfg.c: Likewise.
40205 * tree-cfgcleanup.c: Likewise.
40206 * tree-complex.c: Likewise.
40207 * tree-eh.c: Likewise.
40208 * tree-emutls.c: Likewise.
40209 * tree-if-conv.c: Likewise.
40210 * tree-into-ssa.c: Likewise.
40211 * tree-loop-distribution.c: Likewise.
40212 * tree-object-size.c: Likewise.
40213 * tree-parloops.c: Likewise.
40214 * tree-pass.h: Likewise.
40215 * tree-sra.c: Likewise.
40216 * tree-ssa-ccp.c: Likewise.
40217 * tree-ssa-copy.c: Likewise.
40218 * tree-ssa-copyrename.c: Likewise.
40219 * tree-ssa-dce.c: Likewise.
40220 * tree-ssa-dom.c: Likewise.
40221 * tree-ssa-dse.c: Likewise.
40222 * tree-ssa-forwprop.c: Likewise.
40223 * tree-ssa-ifcombine.c: Likewise.
40224 * tree-ssa-loop-ch.c: Likewise.
40225 * tree-ssa-loop-ivcanon.c: Likewise.
40226 * tree-ssa-loop.c: Likewise.
40227 * tree-ssa-math-opts.c: Likewise.
40228 * tree-ssa-phiopt.c: Likewise.
40229 * tree-ssa-phiprop.c: Likewise.
40230 * tree-ssa-pre.c: Likewise.
40231 * tree-ssa-reassoc.c: Likewise.
40232 * tree-ssa-sink.c: Likewise.
40233 * tree-ssa-strlen.c: Likewise.
40234 * tree-ssa-tail-merge.c: Likewise.
40235 * tree-ssa-uncprop.c: Likewise.
40236 * tree-switch-conversion.c: Likewise.
40237 * tree-tailcall.c: Likewise.
40238 * tree-vect-generic.c: Likewise.
40239 * tree-vectorizer.c: Likewise.
40240 * tree-vrp.c: Likewise.
40241 * tsan.c: Likewise.
40242 * var-tracking.c: Likewise.
40243 * bt-load.c: Likewise.
40244 * cfgcleanup.c: Likewise.
40245 * combine-stack-adj.c: Likewise.
40246 * combine.c: Likewise.
40247 * compare-elim.c: Likewise.
40248 * config/epiphany/resolve-sw-modes.c: Likewise.
40249 * config/i386/i386.c: Likewise.
40250 * config/mips/mips.c: Likewise.
40251 * config/s390/s390.c: Likewise.
40252 * config/sh/sh_treg_combine.cc: Likewise.
40253 * config/sparc/sparc.c: Likewise.
40256 * final.c: Likewise.
40257 * ifcvt.c: Likewise.
40258 * mode-switching.c: Likewise.
40259 * passes.c: Likewise.
40260 * postreload.c: Likewise.
40262 * reg-stack.c: Likewise.
40263 * regcprop.c: Likewise.
40264 * regrename.c: Likewise.
40267 2014-05-06 Richard Biener <rguenther@suse.de>
40269 PR middle-end/61070
40270 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
40271 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
40273 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
40276 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
40278 2014-05-05 Radovan Obradovic <robradovic@mips.com>
40279 Tom de Vries <tom@codesourcery.com>
40281 * target.def (call_fusage_contains_non_callee_clobbers): New
40283 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
40285 (@node Miscellaneous Register Hooks): New node.
40286 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
40287 * doc/tm.texi: Regenerate.
40289 2014-05-05 Marek Polacek <polacek@redhat.com>
40292 * opts.c (common_handle_option): Call error_at instead of warning_at.
40294 2014-05-05 Richard Biener <rguenther@suse.de>
40296 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
40297 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
40298 under the TODO_verify_il umbrella.
40300 2014-05-05 Richard Biener <rguenther@suse.de>
40302 * passes.c (execute_function_todo): Move TODO_verify_flow under
40303 the TODO_verify_ul umbrella.
40305 2014-05-05 Richard Biener <rguenther@suse.de>
40307 PR middle-end/61010
40308 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40309 X & CST away from a CST that is the mask of a mode.
40311 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40313 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40314 int argument to enum machine_mode.
40315 (picochip_class_max_nregs): Ditto.
40316 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40317 (picochip_class_max_nregs): Ditto.
40319 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40321 * target.def: Add new target hook.
40322 * doc/tm.texi: Regenerate.
40323 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40324 * targhooks.c (default_keep_leaf_when_profiled): New function.
40326 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40327 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40329 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40331 PR tree-optimization/60363
40332 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40333 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40334 (update_destination_phis): New parameter.
40335 (create_edge_and_update_destination_phis): Ditto.
40336 (ssa_fix_duplicate_block_edges): Pass new arguments.
40337 (thread_single_edge): Ditto.
40339 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40341 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40342 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40343 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40344 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40345 Use RS6000_BTM_HARD_FLOAT.
40346 (BU_MISC_2): Likewise.
40347 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40348 RS6000_BTM_HARD_FLOAT.
40349 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40350 is explicitly used.
40351 (rs6000_invalid_builtin): Add hard floating builtin support.
40352 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40353 hard float builtins.
40354 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40356 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40358 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40359 Add missing function* argument.
40361 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40363 * lra-constraints.c (valid_address_p): Move earlier in file.
40364 Add a constraint argument to the address_info version.
40365 (satisfies_memory_constraint_p): New function.
40366 (satisfies_address_constraint_p): Likewise.
40367 (process_alt_operands, curr_insn_transform): Use them.
40368 (process_address): Pass the constraint to valid_address_p when
40369 checking address operands.
40371 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40373 * config/mips/mips.c (mips_isa_rev): New variable.
40374 (mips_set_architecture): Set it.
40375 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40377 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40378 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40379 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40380 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40381 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40382 conditions in terms of mips_isa_rev.
40383 (mips_isa_rev): Declare.
40385 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40387 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40388 (prob_unlikely, prob_likely): Make variables const.
40390 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40392 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40394 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40396 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40398 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40400 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40401 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40402 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40404 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40405 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40407 Replace usage of ROUND_REG with sh_round_reg.
40408 Use CEIL instead of ROUND_ADVANCE.
40410 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40413 * config/sh/sh.c: Include stdlib headers before everything else.
40415 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40417 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40418 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40419 (gimplify_adjust_omp_clauses): Simd region is never
40420 directly nested in combined parallel. Instead, for linear
40421 with copyin/copyout, if in combined for simd loop, make decl
40422 firstprivate/lastprivate on OMP_FOR.
40423 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40424 expand_omp_for_static_chunk): When setting endvar, also set
40425 fd->loop.v to the same value.
40427 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40429 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40431 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40433 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40436 2014-05-02 Marek Polacek <polacek@redhat.com>
40438 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40440 2014-05-02 Kito Cheng <kito@0xlab.org>
40442 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40443 to a C expression marco.
40444 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40445 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40446 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40447 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40448 HONOR_REG_ALLOC_ORDER.
40449 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40451 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40453 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40455 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40457 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40459 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40461 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40462 (convert_scalar_cond_reduction): Likewise.
40463 (predicate_scalar_phi): Add recognition and transformation
40464 of simple conditioanl reduction to be vectorizable.
40466 2014-05-01 Marek Polacek <polacek@redhat.com>
40469 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40471 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40473 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40474 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40475 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40476 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40477 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40478 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40479 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40480 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40482 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40484 * config/arc/arc.opt (mlra): Move comment above option name
40485 to avoid mis-parsing as language options.
40487 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40489 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40490 * config/sol2.h: ... here.
40491 * config/sol2-10.h: Remove.
40493 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40494 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40495 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40496 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40497 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40498 * config/sol2.h: ... here.
40499 (SECTION_NAME_FORMAT): Don't redefine.
40500 (STARTFILE_ARCH32_SPEC): Rename to ...
40501 (STARTFILE_ARCH_SPEC): ... this.
40502 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40503 * config/sparc/sol2.h: ... here.
40504 (SECTION_NAME_FORMAT): Don't undef.
40505 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40506 (SUBTARGET_EXTRA_SPECS): Remove.
40507 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40509 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40510 (MD_STARTFILE_PREFIX): Remove.
40511 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40512 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40513 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40514 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40515 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40516 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40517 * config/i386/sol2.h: ... here.
40518 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40519 * config/i386/sol2-bi.h: Remove.
40520 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40521 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40523 * config/i386/t-sol2-64: Rename to ...
40524 * config/i386/t-sol2: ... this.
40525 * config/sparc/t-sol2-64: Rename to ...
40526 * config/sparc/t-sol2: ... this.
40528 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40529 sol2_tm_file_head, sol2_tm_file_tail.
40530 Include ${cpu_type}/sol2.h before sol2.h.
40532 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40533 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40534 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40535 Reflect i386/t-sol2-64 renaming.
40536 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40537 Reflect sparc/t-sol2-64 renaming.
40539 2014-04-30 Richard Biener <rguenther@suse.de>
40541 * passes.c (execute_function_todo): Move TODO_verify_stmts
40542 and TODO_verify_ssa under the TODO_verify_il umbrella.
40543 * tree-ssa.h (verify_ssa): Adjust prototype.
40544 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40545 we should verify SSA operands.
40546 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40547 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40548 whether we should verify whether not throwing stmts have EH info.
40549 * graphite-scop-detection.c (create_sese_edges): Adjust.
40550 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40551 * tree-eh.c (lower_try_finally_switch): Do not add the
40552 default case label twice.
40554 2014-04-30 Marek Polacek <polacek@redhat.com>
40556 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40557 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40558 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40559 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40561 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40563 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40564 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40565 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40566 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40567 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40568 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40569 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40570 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40572 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40574 * tree-cfg.c (dump_function_to_file): Dump the return type of
40575 functions, in a line to itself before the function body, mimicking
40576 the layout of a C function.
40578 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40580 PR tree-optimization/60971
40581 * tree-tailcall.c (process_assignment): Reject conversions which
40584 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40586 * calls.c (initialize_argument_information): Always treat
40587 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40588 (expand_call): Likewise.
40589 (emit_library_call_calue_1): Likewise.
40590 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40591 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40594 2014-04-29 Nick Clifton <nickc@redhat.com>
40596 * config/msp430/msp430.md (umulsidi): Fix typo.
40597 (mulhisi3): Enable even inside interrupt handlers.
40598 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40599 bigger return address pushed in large mode.
40601 2014-04-29 Nick Clifton <nickc@redhat.com>
40603 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40604 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40606 * config/m32r/m32r.c (init_reg_tables): Likewise.
40607 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40608 enum to hold the modes.
40610 2014-04-29 Richard Biener <rguenther@suse.de>
40612 * dominance.c (free_dominance_info): Add overload with
40613 function parameter.
40614 (dom_info_state): Likewise.
40615 (dom_info_available_p): Likewise.
40616 * basic-block.h (free_dominance_info, dom_info_state,
40617 dom_info_available_p): Declare overloads.
40618 * passes.c (execute_function_todo): Verify that verifiers
40619 don't change dominator info state. Drop dominator info
40620 for IPA pass invocations.
40621 * cgraph.c (release_function_body): Restore asserts that
40622 dominator information is released.
40624 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40626 * doc/invoke.texi: Fix typo.
40627 * tree-vrp.c: Fix typos.
40628 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40630 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40632 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40634 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40636 * config/aarch64/aarch64-builtins.c
40637 (aarch64_types_storestruct_lane_qualifiers): New.
40638 (TYPES_STORESTRUCT_LANE): Likewise.
40639 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40640 (st3_lane): Likewise.
40641 (st4_lane): Likewise.
40642 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40643 (vec_store_lanesci_lane<mode>): Likewise.
40644 (vec_store_lanesxi_lane<mode>): Likewise.
40645 (aarch64_st2_lane<VQ:mode>): Likewise.
40646 (aarch64_st3_lane<VQ:mode>): Likewise.
40647 (aarch64_st4_lane<VQ:mode>): Likewise.
40648 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40649 * config/aarch64/arm_neon.h
40650 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40651 use new macro arguments.
40652 (__ST3_LANE_FUNC): Likewise.
40653 (__ST4_LANE_FUNC): Likewise.
40654 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40655 (V_THREE_ELEM): Likewise.
40656 (V_FOUR_ELEM): Likewise.
40658 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40660 * doc/gimple.texi: Replace the description of the now-defunct
40661 union gimple_statement_d with a diagram showing the
40662 gimple_statement_base class hierarchy and its relationships to
40663 the GSS_ and GIMPLE_ enums.
40665 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40667 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40668 * config/aarch64/aarch64.c
40669 (aarch64_cannot_change_mode_class): Weaken conditions.
40670 (aarch64_modes_tieable_p): New.
40671 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40673 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40675 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40676 (loadsync_<mode>): Change mode.
40677 (load_quadpti, store_quadpti): New.
40678 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40679 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40681 2014-04-28 Martin Jambor <mjambor@suse.cz>
40683 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40684 same alias type as the original statement.
40685 (subreplacement_assignment_data): New type.
40686 (handle_unscalarized_data_in_subtree): New type of parameter,
40687 generate new memory accesses with same alias type as the original
40689 (load_assign_lhs_subreplacements): Likewise.
40690 (sra_modify_constructor_assign): Generate new memory accesses with
40691 same alias type as the original statement.
40693 2014-04-28 Richard Biener <rguenther@suse.de>
40695 * tree-pass.h (TODO_verify_il): Define.
40696 (TODO_verify_all): Complete properly.
40697 * passes.c (execute_function_todo): Move existing loop-closed
40698 SSA verification under TODO_verify_il.
40699 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40700 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40701 Fix tree sharing issue.
40703 2014-04-28 Richard Biener <rguenther@suse.de>
40705 PR middle-end/60092
40706 * builtins.def (DEF_C11_BUILTIN): Add.
40707 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40708 * coretypes.h (enum function_class): Add function_c11_misc.
40709 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40710 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40711 (call_may_clobber_ref_p_1): Likewise.
40712 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40713 (mark_all_reaching_defs_necessary_1): Likewise.
40714 (propagate_necessity): Likewise.
40715 (eliminate_unnecessary_stmts): Likewise.
40716 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40718 2014-04-28 Richard Biener <rguenther@suse.de>
40720 * tree-vrp.c (vrp_var_may_overflow): Remove.
40721 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40722 with overflow immediately bump to one before that value and
40723 let iteration figure out overflow status.
40725 2014-04-28 Richard Biener <rguenther@suse.de>
40727 * configure.ac: Do valgrind header checks unconditionally.
40728 Add --enable-valgrind-annotations.
40729 * system.h: Guard valgrind header inclusion with
40730 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40731 * alloc-pool.c (pool_alloc, pool_free): Use
40732 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40733 to guard possibly dead code.
40734 * config.in: Regenerated.
40735 * configure: Likewise.
40737 2014-04-28 Jeff Law <law@redhat.com>
40739 PR tree-optimization/60902
40740 * tree-ssa-threadedge.c
40741 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40742 over real defs when invalidating outputs from statements that do not
40743 produce useful outputs for threading.
40745 2014-04-28 Richard Biener <rguenther@suse.de>
40747 PR tree-optimization/60979
40748 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40749 SCOPs that end in a block with a successor with abnormal
40752 2014-04-28 Richard Biener <rguenther@suse.de>
40754 * tree-pass.h (execute_pass_list): Adjust prototype.
40755 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40756 (do_per_function): Change callback signature, push all actual
40757 work to the callbals.
40758 (do_per_function_toporder): Likewise.
40759 (execute_function_dump): Adjust.
40760 (execute_function_todo): Likewise.
40761 (clear_last_verified): Likewise.
40762 (verify_curr_properties): Likewise.
40763 (update_properties_after_pass): Likewise.
40764 (execute_pass_list_1): Split out from ...
40765 (execute_pass_list): ... here. Adjust.
40766 (execute_ipa_pass_list): Likewise.
40767 * cgraphunit.c (cgraph_add_new_function): Adjust.
40768 (analyze_function): Likewise.
40769 (expand_function): Likewise.
40770 * cgraph.c (release_function_body): Free dominance info
40771 here instead of asserting it was magically freed elsewhere.
40773 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40775 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40776 * configure: Regenerate.
40777 * config/sparc/sparc.opt (muser-mode): New option.
40778 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40780 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40781 * doc/invoke.texi (SPARC options): Document -muser-mode.
40783 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40785 * cselib.c (find_slot_memmode): Delete.
40786 (cselib_hasher): Change compare_type to a struct.
40787 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40789 (preserve_constants_and_equivs): Adjust for new compare_type.
40790 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40791 (wrap_constant): Delete.
40792 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40794 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40796 * doc/install.texi (Building with profile feedback): Remove
40799 2014-04-26 Tom de Vries <tom@codesourcery.com>
40801 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40804 2014-04-25 Cary Coutant <ccoutant@google.com>
40807 * dwarf2out.c (should_move_die_to_comdat): A type definition
40808 can contain a subprogram definition, but don't move it to a
40810 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40811 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40813 (clone_tree_hash): Rename to...
40814 (clone_tree_partial): ...this; change callers. Copy
40815 DW_TAG_subprogram DIEs as declarations.
40816 (copy_decls_walk): Don't copy children of a declaration into a
40819 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40822 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40825 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40827 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40828 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40830 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40833 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40835 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40837 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40839 PR tree-optimization/60930
40840 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40841 creating a multiply candidate by folding two constant
40842 multiplicands when the result overflows.
40844 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40846 PR tree-optimization/60960
40847 * tree-vect-generic.c (expand_vector_operation): Only call
40848 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40850 2014-04-25 Tom de Vries <tom@codesourcery.com>
40852 * expr.c (clobber_reg_mode): New function.
40853 * expr.h (clobber_reg): New function.
40855 2014-04-25 Tom de Vries <tom@codesourcery.com>
40857 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40860 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40861 Tom de Vries <tom@codesourcery.com>
40863 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40865 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40866 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40867 new argument to find_all_hard_reg_sets call.
40869 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40871 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40872 Use HOST_WIDE_INT_C for mask literal.
40873 (aarch_rev16_shleft_mask_imm_p): Likewise.
40875 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40878 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40880 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40882 PR preprocessor/56540
40883 * config/i386/i386-c.c (ix86_target_macros): Define
40884 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40886 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40888 * configure.ac (tga_func): Remove.
40889 (LIB_TLS_SPEC): Remove.
40890 * configure: Regenerate.
40891 * config.in: Regenerate.
40892 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40894 2014-04-25 Richard Biener <rguenther@suse.de>
40897 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40898 call stmt use/clobber sets during stmt walk instead of
40899 walking the possibly incomplete set of caller edges.
40901 2014-04-25 Richard Biener <rguenther@suse.de>
40904 * passes.c (apply_ipa_transforms): Inline into only caller ...
40905 (execute_one_pass): ... here. Properly bring in function
40906 bodies for nodes we want to apply IPA transforms to.
40908 2014-04-24 Cong Hou <congh@google.com>
40910 PR tree-optimization/60896
40911 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40912 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40913 (vect_mark_pattern_stmts): Set the def type of all statements in
40914 PATTERN_DEF_SEQ as vect_internal_def.
40916 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40918 * doc/extend.texi (PowerPC Built-in Functions): Document new
40919 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40920 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40922 * config/rs6000/predicates.md (const_0_to_3_operand): New
40923 predicate to match 0..3 integer constants.
40925 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40926 to support adding miscellaneous builtin functions.
40927 (BU_DFP_MISC_2): Likewise.
40928 (BU_P7_MISC_1): Likewise.
40929 (BU_P7_MISC_2): Likewise.
40930 (BU_P8V_MISC_3): Likewise.
40931 (BU_MISC_1): Likewise.
40932 (BU_MISC_2): Likewise.
40933 (DIVWE): Add extended divide builtin functions.
40934 (DIVWEO): Likewise.
40935 (DIVWEU): Likewise.
40936 (DIVWEUO): Likewise.
40938 (DIVDEO): Likewise.
40939 (DIVDEU): Likewise.
40940 (DIVDEUO): Likewise.
40941 (DXEX): Add decimal floating-point builtin functions.
40943 (DDEDPD): Likewise.
40944 (DDEDPDQ): Likewise.
40945 (DENBCD): Likewise.
40946 (DENBCDQ): Likewise.
40950 (DSCLIQ): Likewise.
40952 (DSCRIQ): Likewise.
40953 (CDTBCD): Add new BCD builtin functions.
40954 (CBCDTD): Likewise.
40955 (ADDG6S): Likewise.
40956 (BCDADD): Likewise.
40957 (BCDADD_LT): Likewise.
40958 (BCDADD_EQ): Likewise.
40959 (BCDADD_GT): Likewise.
40960 (BCDADD_OV): Likewise.
40961 (BCDSUB): Likewise.
40962 (BCDSUB_LT): Likewise.
40963 (BCDSUB_EQ): Likewise.
40964 (BCDSUB_GT): Likewise.
40965 (BCDSUB_OV): Likewise.
40966 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40967 (UNPACK_TD): Likewise.
40968 (PACK_TF): Likewise.
40969 (UNPACK_TF): Likewise.
40970 (UNPACK_TF_0): Likewise.
40971 (UNPACK_TF_1): Likewise.
40972 (PACK_V1TI): Likewise.
40973 (UNPACK_V1TI): Likewise.
40975 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40976 support for decimal floating point builtin functions.
40977 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40978 functions that take constant arguments.
40979 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40980 (rs6000_init_builtins): Setup long double, _Decimal64, and
40981 _Decimal128 types for new builtin functions.
40982 (builtin_function_type): Set the unsigned flags appropriately for
40983 the new builtin functions.
40984 (rs6000_opt_masks): Add support for decimal floating point builtin
40987 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40988 floating point builtin functions.
40989 (RS6000_BTM_COMMON): Likewise.
40990 (RS6000_BTI_long_double): Likewise.
40991 (RS6000_BTI_dfloat64): Likewise.
40992 (RS6000_BTI_dfloat128): Likewise.
40993 (long_double_type_internal_node): Likewise.
40994 (dfloat64_type_internal_node): Likewise.
40995 (dfloat128_type_internal_node): Likewise.
40997 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40998 2.07 bcd arithmetic instructions.
40999 (UNSPEC_BCDSUB): Likewise.
41000 (UNSPEC_BCD_OVERFLOW): Likewise.
41001 (UNSPEC_BCD_ADD_SUB): Likewise.
41002 (bcd_add_sub): Likewise.
41003 (BCD_TEST): Likewise.
41004 (bcd<bcd_add_sub>): Likewise.
41005 (bcd<bcd_add_sub>_test): Likewise.
41006 (bcd<bcd_add_sub>_test2): Likewise.
41007 (bcd<bcd_add_sub>_<code>): Likewise.
41008 (peephole2 for combined bcd ops): Likewise.
41010 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
41011 decimal floating point builtin functions.
41012 (UNSPEC_DENBCD): Likewise.
41013 (UNSPEC_DXEX): Likewise.
41014 (UNSPEC_DIEX): Likewise.
41015 (UNSPEC_DSCLI): Likewise.
41016 (UNSPEC_DSCRI): Likewise.
41017 (D64_D128): Likewise.
41018 (dfp_suffix): Likewise.
41019 (dfp_ddedpd_<mode>): Likewise.
41020 (dfp_denbcd_<mode>): Likewise.
41021 (dfp_dxex_<mode>): Likewise.
41022 (dfp_diex_<mode>): Likewise.
41023 (dfp_dscli_<mode>): Likewise.
41024 (dfp_dscri_<mode>): Likewise.
41026 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
41028 (UNSPEC_CDTBCD): Likewise.
41029 (UNSPEC_CBCDTD): Likewise.
41030 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
41031 (UNSPEC_DIVEO): Likewise.
41032 (UNSPEC_DIVEU): Likewise.
41033 (UNSPEC_DIVEUO): Likewise.
41034 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
41035 pack/unpack 128-bit types.
41036 (UNSPEC_PACK_128BIT): Likewise.
41037 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
41038 (udiv<mode>3): Use idiv_ldiv mode attribute.
41039 (div<mode>3): Likewise.
41040 (addg6s): Add new BCD builtin functions.
41041 (cdtbcd): Likewise.
41042 (cbcdtd): Likewise.
41043 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
41044 (div_extend): Likewise.
41045 (div<div_extend>_<mode>"): Likewise.
41046 (FP128_64): Add support for new builtin functions to pack/unpack
41048 (unpack<mode>): Likewise.
41049 (unpacktf_0): Likewise.
41050 (unpacktf_1): Likewise.
41051 (unpack<mode>_dm): Likewise.
41052 (unpack<mode>_nodm): Likewise.
41053 (pack<mode>): Likewise.
41054 (unpackv1ti): Likewise.
41055 (packv1ti): Likewise.
41057 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
41059 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
41062 2014-04-24 Jakub Jelinek <jakub@redhat.com>
41064 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
41065 * gimplify.c (omp_is_private): Change last argument's type to int.
41066 Only diagnose lastprivate if the simd argument is 1, only diagnose
41067 linear if the simd argument is 2.
41068 (gimplify_omp_for): Adjust omp_is_private callers. When adding
41069 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
41070 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
41071 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
41072 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
41073 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
41074 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
41075 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
41076 * tree-nested.c (convert_nonlocal_omp_clauses,
41077 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
41079 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
41082 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
41085 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
41087 * flag-types.h (enum ivar_visibility): Add.
41089 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
41091 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
41092 function * argument.
41094 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
41096 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
41098 2014-04-24 Radovan Obradovic <robradovic@mips.com>
41099 Tom de Vries <tom@codesourcery.com>
41101 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
41102 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
41104 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
41105 * emit-rtl.c (try_split): Same.
41107 2014-04-24 Radovan Obradovic <robradovic@mips.com>
41108 Tom de Vries <tom@codesourcery.com>
41110 * common.opt (fuse-caller-save): New option.
41112 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
41114 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
41115 elements for big-endian.
41117 2014-04-24 Richard Biener <rguenther@suse.de>
41119 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
41120 during TER and instead use the sepops interface for expanding
41121 non-GIMPLE_SINGLE_RHS.
41123 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41125 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
41126 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
41128 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41130 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
41131 assembler 64-bit option.
41132 * configure: Regenerate.
41134 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41136 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
41137 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
41138 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
41139 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
41140 (TARGET_CRYPTO): Take TARGET_SIMD into account.
41142 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41144 * config/aarch64/aarch64-builtins.c
41145 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
41146 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
41147 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
41148 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
41150 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
41151 (Vrevsuff): New mode attribute.
41153 2014-04-24 Terry Guo <terry.guo@arm.com>
41155 * config/arm/arm.h (machine_function): Define variable
41156 after_arm_reorg here.
41157 * config/arm/arm.c (after_arm_reorg): Remove the definition.
41158 (arm_split_constant): Update the way to access variable
41160 (arm_reorg): Ditto.
41161 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
41163 2014-04-23 Tom de Vries <tom@codesourcery.com>
41165 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
41167 2014-04-23 David Malcolm <dmalcolm@redhat.com>
41169 * is-a.h: Update comments to reflect the following changes to the
41170 "pointerness" of the API, making the template parameter match the
41171 return type, allowing use of is-a.h with typedefs of pointers.
41172 (is_a_helper::cast): Return a T rather then a pointer to a T, so
41173 that the return type matches the parameter to the is_a_helper.
41175 (dyn_cast): Likewise.
41177 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
41178 pointer from the is-a.h API.
41180 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
41181 (is_a_helper <cgraph_node *>::test): ...this, matching change to
41183 (is_a_helper <varpool_node>::test): Likewise, convert to...
41184 (is_a_helper <varpool_node *>::test): ...this.
41186 (varpool_first_variable): Update for removal of implicit pointer
41187 from the is-a.h API.
41188 (varpool_next_variable): Likewise.
41189 (varpool_first_static_initializer): Likewise.
41190 (varpool_next_static_initializer): Likewise.
41191 (varpool_first_defined_variable): Likewise.
41192 (varpool_next_defined_variable): Likewise.
41193 (cgraph_first_defined_function): Likewise.
41194 (cgraph_next_defined_function): Likewise.
41195 (cgraph_first_function): Likewise.
41196 (cgraph_next_function): Likewise.
41197 (cgraph_first_function_with_gimple_body): Likewise.
41198 (cgraph_next_function_with_gimple_body): Likewise.
41199 (cgraph_alias_target): Likewise.
41200 (varpool_alias_target): Likewise.
41201 (cgraph_function_or_thunk_node): Likewise.
41202 (varpool_variable_node): Likewise.
41203 (symtab_real_symbol_p): Likewise.
41204 * cgraphunit.c (referred_to_p): Likewise.
41205 (analyze_functions): Likewise.
41206 (handle_alias_pairs): Likewise.
41207 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
41208 * gimple-ssa.h (gimple_vuse_op): Likewise.
41209 (gimple_vdef_op): Likewise.
41210 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
41211 * gimple.c (gimple_build_asm_1): Likewise.
41212 (gimple_build_try): Likewise.
41213 (gimple_build_resx): Likewise.
41214 (gimple_build_eh_dispatch): Likewise.
41215 (gimple_build_omp_for): Likewise.
41216 (gimple_omp_for_set_clauses): Likewise.
41218 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
41219 (is_a_helper <gimple_statement_asm *>::test): ...this.
41220 (is_a_helper <gimple_statement_bind>::test): Convert to...
41221 (is_a_helper <gimple_statement_bind *>::test): ...this.
41222 (is_a_helper <gimple_statement_call>::test): Convert to...
41223 (is_a_helper <gimple_statement_call *>::test): ...this.
41224 (is_a_helper <gimple_statement_catch>::test): Convert to...
41225 (is_a_helper <gimple_statement_catch *>::test): ...this.
41226 (is_a_helper <gimple_statement_resx>::test): Convert to...
41227 (is_a_helper <gimple_statement_resx *>::test): ...this.
41228 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
41229 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
41230 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
41231 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
41232 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
41233 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
41234 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
41235 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
41236 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
41237 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
41238 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
41239 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
41240 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
41241 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
41242 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
41243 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
41244 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
41245 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
41246 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
41247 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
41248 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
41249 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
41250 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
41251 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
41252 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
41253 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
41254 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
41255 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
41256 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
41257 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
41258 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
41259 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
41260 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
41261 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
41262 (is_a_helper <gimple_statement_phi>::test): Convert to...
41263 (is_a_helper <gimple_statement_phi *>::test): ...this.
41264 (is_a_helper <gimple_statement_transaction>::test): Convert to...
41265 (is_a_helper <gimple_statement_transaction *>::test): ...this.
41266 (is_a_helper <gimple_statement_try>::test): Convert to...
41267 (is_a_helper <gimple_statement_try *>::test): ...this.
41268 (is_a_helper <gimple_statement_wce>::test): Convert to...
41269 (is_a_helper <gimple_statement_wce *>::test): ...this.
41270 (is_a_helper <const gimple_statement_asm>::test): Convert to...
41271 (is_a_helper <const gimple_statement_asm *>::test): ...this.
41272 (is_a_helper <const gimple_statement_bind>::test): Convert to...
41273 (is_a_helper <const gimple_statement_bind *>::test): ...this.
41274 (is_a_helper <const gimple_statement_call>::test): Convert to...
41275 (is_a_helper <const gimple_statement_call *>::test): ...this.
41276 (is_a_helper <const gimple_statement_catch>::test): Convert to...
41277 (is_a_helper <const gimple_statement_catch *>::test): ...this.
41278 (is_a_helper <const gimple_statement_resx>::test): Convert to...
41279 (is_a_helper <const gimple_statement_resx *>::test): ...this.
41280 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
41281 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
41282 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
41283 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
41284 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
41286 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
41288 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
41290 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
41292 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
41293 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
41294 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
41296 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
41297 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
41299 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
41300 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41301 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41302 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41303 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41304 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41306 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41307 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41308 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41309 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41311 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41312 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41313 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41314 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41315 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41316 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41317 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41318 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41319 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41320 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41321 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41322 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41323 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41324 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41325 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41326 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41328 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41330 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41331 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41333 (gimple_use_ops): Update for removal of implicit pointer from the
41335 (gimple_set_use_ops): Likewise.
41336 (gimple_vuse): Likewise.
41337 (gimple_vdef): Likewise.
41338 (gimple_vuse_ptr): Likewise.
41339 (gimple_vdef_ptr): Likewise.
41340 (gimple_set_vuse): Likewise.
41341 (gimple_set_vdef): Likewise.
41342 (gimple_omp_return_set_lhs): Likewise.
41343 (gimple_omp_return_lhs): Likewise.
41344 (gimple_omp_return_lhs_ptr): Likewise.
41345 (gimple_call_fntype): Likewise.
41346 (gimple_call_set_fntype): Likewise.
41347 (gimple_call_set_internal_fn): Likewise.
41348 (gimple_call_use_set): Likewise.
41349 (gimple_call_clobber_set): Likewise.
41350 (gimple_bind_vars): Likewise.
41351 (gimple_bind_set_vars): Likewise.
41352 (gimple_bind_body_ptr): Likewise.
41353 (gimple_bind_set_body): Likewise.
41354 (gimple_bind_add_stmt): Likewise.
41355 (gimple_bind_block): Likewise.
41356 (gimple_bind_set_block): Likewise.
41357 (gimple_asm_ninputs): Likewise.
41358 (gimple_asm_noutputs): Likewise.
41359 (gimple_asm_nclobbers): Likewise.
41360 (gimple_asm_nlabels): Likewise.
41361 (gimple_asm_input_op): Likewise.
41362 (gimple_asm_input_op_ptr): Likewise.
41363 (gimple_asm_output_op): Likewise.
41364 (gimple_asm_output_op_ptr): Likewise.
41365 (gimple_asm_set_output_op): Likewise.
41366 (gimple_asm_clobber_op): Likewise.
41367 (gimple_asm_set_clobber_op): Likewise.
41368 (gimple_asm_label_op): Likewise.
41369 (gimple_asm_set_label_op): Likewise.
41370 (gimple_asm_string): Likewise.
41371 (gimple_catch_types): Likewise.
41372 (gimple_catch_types_ptr): Likewise.
41373 (gimple_catch_handler_ptr): Likewise.
41374 (gimple_catch_set_types): Likewise.
41375 (gimple_catch_set_handler): Likewise.
41376 (gimple_eh_filter_types): Likewise.
41377 (gimple_eh_filter_types_ptr): Likewise.
41378 (gimple_eh_filter_failure_ptr): Likewise.
41379 (gimple_eh_filter_set_types): Likewise.
41380 (gimple_eh_filter_set_failure): Likewise.
41381 (gimple_eh_must_not_throw_fndecl): Likewise.
41382 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41383 (gimple_eh_else_n_body_ptr): Likewise.
41384 (gimple_eh_else_e_body_ptr): Likewise.
41385 (gimple_eh_else_set_n_body): Likewise.
41386 (gimple_eh_else_set_e_body): Likewise.
41387 (gimple_try_eval_ptr): Likewise.
41388 (gimple_try_cleanup_ptr): Likewise.
41389 (gimple_try_set_eval): Likewise.
41390 (gimple_try_set_cleanup): Likewise.
41391 (gimple_wce_cleanup_ptr): Likewise.
41392 (gimple_wce_set_cleanup): Likewise.
41393 (gimple_phi_capacity): Likewise.
41394 (gimple_phi_num_args): Likewise.
41395 (gimple_phi_result): Likewise.
41396 (gimple_phi_result_ptr): Likewise.
41397 (gimple_phi_set_result): Likewise.
41398 (gimple_phi_arg): Likewise.
41399 (gimple_phi_set_arg): Likewise.
41400 (gimple_resx_region): Likewise.
41401 (gimple_resx_set_region): Likewise.
41402 (gimple_eh_dispatch_region): Likewise.
41403 (gimple_eh_dispatch_set_region): Likewise.
41404 (gimple_omp_critical_name): Likewise.
41405 (gimple_omp_critical_name_ptr): Likewise.
41406 (gimple_omp_critical_set_name): Likewise.
41407 (gimple_omp_for_clauses): Likewise.
41408 (gimple_omp_for_clauses_ptr): Likewise.
41409 (gimple_omp_for_set_clauses): Likewise.
41410 (gimple_omp_for_collapse): Likewise.
41411 (gimple_omp_for_index): Likewise.
41412 (gimple_omp_for_index_ptr): Likewise.
41413 (gimple_omp_for_set_index): Likewise.
41414 (gimple_omp_for_initial): Likewise.
41415 (gimple_omp_for_initial_ptr): Likewise.
41416 (gimple_omp_for_set_initial): Likewise.
41417 (gimple_omp_for_final): Likewise.
41418 (gimple_omp_for_final_ptr): Likewise.
41419 (gimple_omp_for_set_final): Likewise.
41420 (gimple_omp_for_incr): Likewise.
41421 (gimple_omp_for_incr_ptr): Likewise.
41422 (gimple_omp_for_set_incr): Likewise.
41423 (gimple_omp_for_pre_body_ptr): Likewise.
41424 (gimple_omp_for_set_pre_body): Likewise.
41425 (gimple_omp_parallel_clauses): Likewise.
41426 (gimple_omp_parallel_clauses_ptr): Likewise.
41427 (gimple_omp_parallel_set_clauses): Likewise.
41428 (gimple_omp_parallel_child_fn): Likewise.
41429 (gimple_omp_parallel_child_fn_ptr): Likewise.
41430 (gimple_omp_parallel_set_child_fn): Likewise.
41431 (gimple_omp_parallel_data_arg): Likewise.
41432 (gimple_omp_parallel_data_arg_ptr): Likewise.
41433 (gimple_omp_parallel_set_data_arg): Likewise.
41434 (gimple_omp_task_clauses): Likewise.
41435 (gimple_omp_task_clauses_ptr): Likewise.
41436 (gimple_omp_task_set_clauses): Likewise.
41437 (gimple_omp_task_child_fn): Likewise.
41438 (gimple_omp_task_child_fn_ptr): Likewise.
41439 (gimple_omp_task_set_child_fn): Likewise.
41440 (gimple_omp_task_data_arg): Likewise.
41441 (gimple_omp_task_data_arg_ptr): Likewise.
41442 (gimple_omp_task_set_data_arg): Likewise.
41443 (gimple_omp_taskreg_clauses): Likewise.
41444 (gimple_omp_taskreg_clauses_ptr): Likewise.
41445 (gimple_omp_taskreg_set_clauses): Likewise.
41446 (gimple_omp_taskreg_child_fn): Likewise.
41447 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41448 (gimple_omp_taskreg_set_child_fn): Likewise.
41449 (gimple_omp_taskreg_data_arg): Likewise.
41450 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41451 (gimple_omp_taskreg_set_data_arg): Likewise.
41452 (gimple_omp_task_copy_fn): Likewise.
41453 (gimple_omp_task_copy_fn_ptr): Likewise.
41454 (gimple_omp_task_set_copy_fn): Likewise.
41455 (gimple_omp_task_arg_size): Likewise.
41456 (gimple_omp_task_arg_size_ptr): Likewise.
41457 (gimple_omp_task_set_arg_size): Likewise.
41458 (gimple_omp_task_arg_align): Likewise.
41459 (gimple_omp_task_arg_align_ptr): Likewise.
41460 (gimple_omp_task_set_arg_align): Likewise.
41461 (gimple_omp_single_clauses): Likewise.
41462 (gimple_omp_single_clauses_ptr): Likewise.
41463 (gimple_omp_single_set_clauses): Likewise.
41464 (gimple_omp_target_clauses): Likewise.
41465 (gimple_omp_target_clauses_ptr): Likewise.
41466 (gimple_omp_target_set_clauses): Likewise.
41467 (gimple_omp_target_child_fn): Likewise.
41468 (gimple_omp_target_child_fn_ptr): Likewise.
41469 (gimple_omp_target_set_child_fn): Likewise.
41470 (gimple_omp_target_data_arg): Likewise.
41471 (gimple_omp_target_data_arg_ptr): Likewise.
41472 (gimple_omp_target_set_data_arg): Likewise.
41473 (gimple_omp_teams_clauses): Likewise.
41474 (gimple_omp_teams_clauses_ptr): Likewise.
41475 (gimple_omp_teams_set_clauses): Likewise.
41476 (gimple_omp_sections_clauses): Likewise.
41477 (gimple_omp_sections_clauses_ptr): Likewise.
41478 (gimple_omp_sections_set_clauses): Likewise.
41479 (gimple_omp_sections_control): Likewise.
41480 (gimple_omp_sections_control_ptr): Likewise.
41481 (gimple_omp_sections_set_control): Likewise.
41482 (gimple_omp_for_set_cond): Likewise.
41483 (gimple_omp_for_cond): Likewise.
41484 (gimple_omp_atomic_store_set_val): Likewise.
41485 (gimple_omp_atomic_store_val): Likewise.
41486 (gimple_omp_atomic_store_val_ptr): Likewise.
41487 (gimple_omp_atomic_load_set_lhs): Likewise.
41488 (gimple_omp_atomic_load_lhs): Likewise.
41489 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41490 (gimple_omp_atomic_load_set_rhs): Likewise.
41491 (gimple_omp_atomic_load_rhs): Likewise.
41492 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41493 (gimple_omp_continue_control_def): Likewise.
41494 (gimple_omp_continue_control_def_ptr): Likewise.
41495 (gimple_omp_continue_set_control_def): Likewise.
41496 (gimple_omp_continue_control_use): Likewise.
41497 (gimple_omp_continue_control_use_ptr): Likewise.
41498 (gimple_omp_continue_set_control_use): Likewise.
41499 (gimple_transaction_body_ptr): Likewise.
41500 (gimple_transaction_label): Likewise.
41501 (gimple_transaction_label_ptr): Likewise.
41502 (gimple_transaction_set_body): Likewise.
41503 (gimple_transaction_set_label): Likewise.
41505 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41506 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41507 * ipa-ref.c (ipa_record_reference): Likewise.
41508 * ipa-reference.c (analyze_function): Likewise.
41509 (ipa_reference_write_optimization_summary): Likewise.
41510 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41511 (address_taken_from_non_vtable_p): Likewise.
41512 (comdat_can_be_unshared_p_1): Likewise.
41513 * lto-cgraph.c (lto_output_ref): Likewise.
41514 (add_references): Likewise.
41515 (compute_ltrans_boundary): Likewise.
41516 (output_symtab): Likewise.
41517 (input_ref): Likewise.
41518 (input_cgraph_1): Likewise.
41519 (output_cgraph_opt_summary): Likewise.
41520 * lto-streamer-out.c (lto_output): Likewise.
41521 (output_symbol_p): Likewise.
41522 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41523 (lsei_start_function_in_partition): Likewise.
41524 (lsei_next_variable_in_partition): Likewise.
41525 (lsei_start_variable_in_partition): Likewise.
41526 * symtab.c (insert_to_assembler_name_hash): Likewise.
41527 (unlink_from_assembler_name_hash): Likewise.
41528 (symtab_unregister_node): Likewise.
41529 (symtab_remove_node): Likewise.
41530 (dump_symtab_node): Likewise.
41531 (verify_symtab_base): Likewise.
41532 (verify_symtab_node): Likewise.
41533 (symtab_make_decl_local): Likewise.
41534 (symtab_alias_ultimate_target): Likewise.
41535 (symtab_resolve_alias): Likewise.
41536 (symtab_get_symbol_partitioning_class): Likewise.
41537 * tree-phinodes.c (allocate_phi_node): Likewise.
41538 (reserve_phi_args_for_new_edge): Likewise.
41539 (remove_phi_args): Likewise.
41540 * varpool.c (varpool_node_for_asm): Likewise.
41541 (varpool_remove_unreferenced_decls): Likewise.
41543 2014-04-23 Jeff Law <law@redhat.com>
41545 PR tree-optimization/60902
41546 * tree-ssa-threadedge.c
41547 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41548 invalidate outputs from statements that do not produce useful
41549 outputs for threading.
41551 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41553 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41554 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41555 machine descriptions for Stack Smashing Protector.
41557 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41559 * aarch64.md (<optab>_rol<mode>3): New pattern.
41560 (<optab>_rolsi3_uxtw): Likewise.
41561 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41563 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41565 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41566 (arm_cortex_a12_tune): Likewise.
41568 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41570 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41572 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41574 * config/arm/arm.md (arm_rev16si2): New pattern.
41575 (arm_rev16si2_alt): Likewise.
41576 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41578 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41580 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41581 (rev16<mode>2_alt): Likewise.
41582 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41583 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41584 (aarch_rev16_shleft_mask_imm_p): Likewise.
41585 (aarch_rev16_p_1): Likewise.
41586 (aarch_rev16_p): Likewise.
41587 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41588 (aarch_rev16_shright_mask_imm_p): Likewise.
41589 (aarch_rev16_shleft_mask_imm_p): Likewise.
41591 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41593 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41594 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41596 (cortex_a53_extra_costs): Likewise.
41597 (cortex_a57_extra_costs): Likewise.
41598 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41599 (cortexa7_extra_costs): Likewise.
41600 (cortexa8_extra_costs): Likewise.
41601 (cortexa12_extra_costs): Likewise.
41602 (cortexa15_extra_costs): Likewise.
41603 (v7m_extra_costs): Likewise.
41604 (arm_new_rtx_costs): Handle BSWAP.
41606 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41608 * config/arm/arm.c (cortexa8_extra_costs): New table.
41609 (arm_cortex_a8_tune): New tuning struct.
41610 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41612 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41614 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41616 2014-04-23 Richard Biener <rguenther@suse.de>
41618 * Makefile.in (OBJS): Remove loop-unswitch.o.
41619 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41620 * passes.def (pass_rtl_unswitch): Likewise.
41621 * loop-init.c (gate_rtl_unswitch): Likewise.
41622 (rtl_unswitch): Likewise.
41623 (pass_data_rtl_unswitch): Likewise.
41624 (pass_rtl_unswitch): Likewise.
41625 (make_pass_rtl_unswitch): Likewise.
41626 * rtl.h (reversed_condition): Likewise.
41627 (compare_and_jump_seq): Likewise.
41628 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41630 * loop-unroll.c (compare_and_jump_seq): Likewise.
41632 2014-04-23 Richard Biener <rguenther@suse.de>
41634 PR tree-optimization/60903
41635 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41636 commented code block.
41637 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41638 loop flags to newly created BBs and edges.
41640 2014-04-23 Nick Clifton <nickc@redhat.com>
41642 * config/msp430/msp430.c (msp430_handle_option): Move function
41644 (msp430_option_override): Simplify mcu and mcpu option handling.
41645 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41646 support for -mhwmult command line option.
41647 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41648 -mhwmult command line option.
41649 (msp430_hwmult_enabled): Delete.
41650 (msp43o_output_labelref): Add support for -mhwmult command line option.
41651 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41652 (umulsidi3): Likewise.
41653 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41654 (mcpu, mlarge, msmall): Likewise.
41655 (mhwmult): New option.
41656 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41658 (msp430_is_f5_mcu): Remove prototype.
41659 (msp430_use_f5_series_hwmult): Add prototype.
41660 * config/msp430/msp430-opts.h: New file.
41661 * common/config/msp430: New directory.
41662 * common/config/msp430/msp430-common.c: New file.
41663 * config.gcc (msp430): Remove target_has_targetm_common.
41664 * doc/invoke.texi: Document -mhwmult command line option.
41666 2014-04-23 Nick Clifton <nickc@redhat.com>
41668 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41669 default-manifest.o if it can be found in the search path.
41670 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41672 2014-04-23 Terry Guo <terry.guo@arm.com>
41674 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41676 2014-04-23 Richard Biener <rguenther@suse.de>
41678 PR middle-end/60895
41679 * tree-inline.c (declare_return_variable): Use mark_addressable.
41681 2014-04-23 Richard Biener <rguenther@suse.de>
41683 PR middle-end/60891
41684 * loop-init.c (loop_optimizer_init): Make sure to apply
41685 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41687 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41690 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41692 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41693 if flag_sanitize_undefined_trap_on_error.
41694 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41695 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41696 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41697 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41698 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41699 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41700 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41701 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41702 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41703 * ubsan.c (ubsan_instrument_unreachable): Return
41704 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41705 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41706 if flag_sanitize_undefined_trap_on_error and
41707 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41708 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41709 instrument_bool_enum_load): Emit __builtin_trap () if
41710 flag_sanitize_undefined_trap_on_error and
41711 __builtin_handle_*_abort () if !flag_sanitize_recover.
41712 * doc/invoke.texi (-fsanitize-recover,
41713 -fsanitize-undefined-trap-on-error): Document.
41715 2014-04-22 Christian Bruel <christian.bruel@st.com>
41717 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41718 Force immediates to SImode.
41720 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41722 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41723 (lroundsfsi2): New.
41724 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41725 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41726 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41727 (nios2_fpu_insn): Add entry for round.
41728 (N2FPU_NO_ERRNO_P): Define.
41729 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41731 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41733 2014-04-22 Richard Henderson <rth@redhat.com>
41735 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41736 (add<GPI>3_compare0): Remove leading * from name.
41737 (add<GPI>3_carryin): Likewise.
41738 (sub<GPI>3_compare0): Likewise.
41739 (sub<GPI>3_carryin): Likewise.
41740 (<su_optab>mulditi3): New expander.
41741 (multi3): New expander.
41742 (madd<GPI>): Remove leading * from name.
41744 2014-04-22 Martin Jambor <mjambor@suse.cz>
41746 * cgraphclones.c (cgraph_function_versioning): Copy
41747 ipa_transforms_to_apply instead of asserting it is empty.
41749 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41752 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41753 on count_exp to get mode.
41755 2014-04-22 Andrew Pinski <apinski@cavium.com>
41757 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41758 Handle TLS for ILP32.
41759 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41760 (tlsie_small_<mode>): this and handle PTR.
41761 (tlsie_small_sidi): New pattern.
41762 (tlsle_small): Change to an expand to handle ILP32.
41763 (tlsle_small_<mode>): New pattern.
41764 (tlsdesc_small): Rename to ...
41765 (tlsdesc_small_<mode>): this and handle PTR.
41767 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41769 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41771 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41773 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41774 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41775 (aarch64_types_signed_poly_qualifiers): Likewise.
41776 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41777 (aarch64_types_poly_signed_qualifiers): Likewise.
41778 (TYPES_REINTERP_SS): Type macro added.
41779 (TYPES_REINTERP_SU): Likewise.
41780 (TYPES_REINTERP_SP): Likewise.
41781 (TYPES_REINTERP_US): Likewise.
41782 (TYPES_REINTERP_PS): Likewise.
41783 (aarch64_fold_builtin): New expression folding added.
41784 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41785 Declarations removed.
41786 (REINTERP_SS): Declarations added.
41787 (REINTERP_US): Likewise.
41788 (REINTERP_PS): Likewise.
41789 (REINTERP_SU): Likewise.
41790 (REINTERP_SP): Likewise.
41791 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41792 (vreinterpretq_p8_f64): Likewise.
41793 (vreinterpret_p16_f64): Likewise.
41794 (vreinterpretq_p16_f64): Likewise.
41795 (vreinterpret_f32_f64): Likewise.
41796 (vreinterpretq_f32_f64): Likewise.
41797 (vreinterpret_f64_f32): Likewise.
41798 (vreinterpret_f64_p8): Likewise.
41799 (vreinterpret_f64_p16): Likewise.
41800 (vreinterpret_f64_s8): Likewise.
41801 (vreinterpret_f64_s16): Likewise.
41802 (vreinterpret_f64_s32): Likewise.
41803 (vreinterpret_f64_s64): Likewise.
41804 (vreinterpret_f64_u8): Likewise.
41805 (vreinterpret_f64_u16): Likewise.
41806 (vreinterpret_f64_u32): Likewise.
41807 (vreinterpret_f64_u64): Likewise.
41808 (vreinterpretq_f64_f32): Likewise.
41809 (vreinterpretq_f64_p8): Likewise.
41810 (vreinterpretq_f64_p16): Likewise.
41811 (vreinterpretq_f64_s8): Likewise.
41812 (vreinterpretq_f64_s16): Likewise.
41813 (vreinterpretq_f64_s32): Likewise.
41814 (vreinterpretq_f64_s64): Likewise.
41815 (vreinterpretq_f64_u8): Likewise.
41816 (vreinterpretq_f64_u16): Likewise.
41817 (vreinterpretq_f64_u32): Likewise.
41818 (vreinterpretq_f64_u64): Likewise.
41819 (vreinterpret_s64_f64): Likewise.
41820 (vreinterpretq_s64_f64): Likewise.
41821 (vreinterpret_u64_f64): Likewise.
41822 (vreinterpretq_u64_f64): Likewise.
41823 (vreinterpret_s8_f64): Likewise.
41824 (vreinterpretq_s8_f64): Likewise.
41825 (vreinterpret_s16_f64): Likewise.
41826 (vreinterpretq_s16_f64): Likewise.
41827 (vreinterpret_s32_f64): Likewise.
41828 (vreinterpretq_s32_f64): Likewise.
41829 (vreinterpret_u8_f64): Likewise.
41830 (vreinterpretq_u8_f64): Likewise.
41831 (vreinterpret_u16_f64): Likewise.
41832 (vreinterpretq_u16_f64): Likewise.
41833 (vreinterpret_u32_f64): Likewise.
41834 (vreinterpretq_u32_f64): Likewise.
41836 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41838 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41839 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41840 (vreinterpret_p8_s8): Likewise.
41841 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41842 (vreinterpret_p8_s16): Likewise.
41843 (vreinterpret_p8_s32): Likewise.
41844 (vreinterpret_p8_s64): Likewise.
41845 (vreinterpret_p8_f32): Likewise.
41846 (vreinterpret_p8_u8): Likewise.
41847 (vreinterpret_p8_u16): Likewise.
41848 (vreinterpret_p8_u32): Likewise.
41849 (vreinterpret_p8_u64): Likewise.
41850 (vreinterpret_p8_p16): Likewise.
41851 (vreinterpretq_p8_s8): Likewise.
41852 (vreinterpretq_p8_s16): Likewise.
41853 (vreinterpretq_p8_s32): Likewise.
41854 (vreinterpretq_p8_s64): Likewise.
41855 (vreinterpretq_p8_f32): Likewise.
41856 (vreinterpretq_p8_u8): Likewise.
41857 (vreinterpretq_p8_u16): Likewise.
41858 (vreinterpretq_p8_u32): Likewise.
41859 (vreinterpretq_p8_u64): Likewise.
41860 (vreinterpretq_p8_p16): Likewise.
41861 (vreinterpret_p16_s8): Likewise.
41862 (vreinterpret_p16_s16): Likewise.
41863 (vreinterpret_p16_s32): Likewise.
41864 (vreinterpret_p16_s64): Likewise.
41865 (vreinterpret_p16_f32): Likewise.
41866 (vreinterpret_p16_u8): Likewise.
41867 (vreinterpret_p16_u16): Likewise.
41868 (vreinterpret_p16_u32): Likewise.
41869 (vreinterpret_p16_u64): Likewise.
41870 (vreinterpret_p16_p8): Likewise.
41871 (vreinterpretq_p16_s8): Likewise.
41872 (vreinterpretq_p16_s16): Likewise.
41873 (vreinterpretq_p16_s32): Likewise.
41874 (vreinterpretq_p16_s64): Likewise.
41875 (vreinterpretq_p16_f32): Likewise.
41876 (vreinterpretq_p16_u8): Likewise.
41877 (vreinterpretq_p16_u16): Likewise.
41878 (vreinterpretq_p16_u32): Likewise.
41879 (vreinterpretq_p16_u64): Likewise.
41880 (vreinterpretq_p16_p8): Likewise.
41881 (vreinterpret_f32_s8): Likewise.
41882 (vreinterpret_f32_s16): Likewise.
41883 (vreinterpret_f32_s32): Likewise.
41884 (vreinterpret_f32_s64): Likewise.
41885 (vreinterpret_f32_u8): Likewise.
41886 (vreinterpret_f32_u16): Likewise.
41887 (vreinterpret_f32_u32): Likewise.
41888 (vreinterpret_f32_u64): Likewise.
41889 (vreinterpret_f32_p8): Likewise.
41890 (vreinterpret_f32_p16): Likewise.
41891 (vreinterpretq_f32_s8): Likewise.
41892 (vreinterpretq_f32_s16): Likewise.
41893 (vreinterpretq_f32_s32): Likewise.
41894 (vreinterpretq_f32_s64): Likewise.
41895 (vreinterpretq_f32_u8): Likewise.
41896 (vreinterpretq_f32_u16): Likewise.
41897 (vreinterpretq_f32_u32): Likewise.
41898 (vreinterpretq_f32_u64): Likewise.
41899 (vreinterpretq_f32_p8): Likewise.
41900 (vreinterpretq_f32_p16): Likewise.
41901 (vreinterpret_s64_s8): Likewise.
41902 (vreinterpret_s64_s16): Likewise.
41903 (vreinterpret_s64_s32): Likewise.
41904 (vreinterpret_s64_f32): Likewise.
41905 (vreinterpret_s64_u8): Likewise.
41906 (vreinterpret_s64_u16): Likewise.
41907 (vreinterpret_s64_u32): Likewise.
41908 (vreinterpret_s64_u64): Likewise.
41909 (vreinterpret_s64_p8): Likewise.
41910 (vreinterpret_s64_p16): Likewise.
41911 (vreinterpretq_s64_s8): Likewise.
41912 (vreinterpretq_s64_s16): Likewise.
41913 (vreinterpretq_s64_s32): Likewise.
41914 (vreinterpretq_s64_f32): Likewise.
41915 (vreinterpretq_s64_u8): Likewise.
41916 (vreinterpretq_s64_u16): Likewise.
41917 (vreinterpretq_s64_u32): Likewise.
41918 (vreinterpretq_s64_u64): Likewise.
41919 (vreinterpretq_s64_p8): Likewise.
41920 (vreinterpretq_s64_p16): Likewise.
41921 (vreinterpret_u64_s8): Likewise.
41922 (vreinterpret_u64_s16): Likewise.
41923 (vreinterpret_u64_s32): Likewise.
41924 (vreinterpret_u64_s64): Likewise.
41925 (vreinterpret_u64_f32): Likewise.
41926 (vreinterpret_u64_u8): Likewise.
41927 (vreinterpret_u64_u16): Likewise.
41928 (vreinterpret_u64_u32): Likewise.
41929 (vreinterpret_u64_p8): Likewise.
41930 (vreinterpret_u64_p16): Likewise.
41931 (vreinterpretq_u64_s8): Likewise.
41932 (vreinterpretq_u64_s16): Likewise.
41933 (vreinterpretq_u64_s32): Likewise.
41934 (vreinterpretq_u64_s64): Likewise.
41935 (vreinterpretq_u64_f32): Likewise.
41936 (vreinterpretq_u64_u8): Likewise.
41937 (vreinterpretq_u64_u16): Likewise.
41938 (vreinterpretq_u64_u32): Likewise.
41939 (vreinterpretq_u64_p8): Likewise.
41940 (vreinterpretq_u64_p16): Likewise.
41941 (vreinterpret_s8_s16): Likewise.
41942 (vreinterpret_s8_s32): Likewise.
41943 (vreinterpret_s8_s64): Likewise.
41944 (vreinterpret_s8_f32): Likewise.
41945 (vreinterpret_s8_u8): Likewise.
41946 (vreinterpret_s8_u16): Likewise.
41947 (vreinterpret_s8_u32): Likewise.
41948 (vreinterpret_s8_u64): Likewise.
41949 (vreinterpret_s8_p8): Likewise.
41950 (vreinterpret_s8_p16): Likewise.
41951 (vreinterpretq_s8_s16): Likewise.
41952 (vreinterpretq_s8_s32): Likewise.
41953 (vreinterpretq_s8_s64): Likewise.
41954 (vreinterpretq_s8_f32): Likewise.
41955 (vreinterpretq_s8_u8): Likewise.
41956 (vreinterpretq_s8_u16): Likewise.
41957 (vreinterpretq_s8_u32): Likewise.
41958 (vreinterpretq_s8_u64): Likewise.
41959 (vreinterpretq_s8_p8): Likewise.
41960 (vreinterpretq_s8_p16): Likewise.
41961 (vreinterpret_s16_s8): Likewise.
41962 (vreinterpret_s16_s32): Likewise.
41963 (vreinterpret_s16_s64): Likewise.
41964 (vreinterpret_s16_f32): Likewise.
41965 (vreinterpret_s16_u8): Likewise.
41966 (vreinterpret_s16_u16): Likewise.
41967 (vreinterpret_s16_u32): Likewise.
41968 (vreinterpret_s16_u64): Likewise.
41969 (vreinterpret_s16_p8): Likewise.
41970 (vreinterpret_s16_p16): Likewise.
41971 (vreinterpretq_s16_s8): Likewise.
41972 (vreinterpretq_s16_s32): Likewise.
41973 (vreinterpretq_s16_s64): Likewise.
41974 (vreinterpretq_s16_f32): Likewise.
41975 (vreinterpretq_s16_u8): Likewise.
41976 (vreinterpretq_s16_u16): Likewise.
41977 (vreinterpretq_s16_u32): Likewise.
41978 (vreinterpretq_s16_u64): Likewise.
41979 (vreinterpretq_s16_p8): Likewise.
41980 (vreinterpretq_s16_p16): Likewise.
41981 (vreinterpret_s32_s8): Likewise.
41982 (vreinterpret_s32_s16): Likewise.
41983 (vreinterpret_s32_s64): Likewise.
41984 (vreinterpret_s32_f32): Likewise.
41985 (vreinterpret_s32_u8): Likewise.
41986 (vreinterpret_s32_u16): Likewise.
41987 (vreinterpret_s32_u32): Likewise.
41988 (vreinterpret_s32_u64): Likewise.
41989 (vreinterpret_s32_p8): Likewise.
41990 (vreinterpret_s32_p16): Likewise.
41991 (vreinterpretq_s32_s8): Likewise.
41992 (vreinterpretq_s32_s16): Likewise.
41993 (vreinterpretq_s32_s64): Likewise.
41994 (vreinterpretq_s32_f32): Likewise.
41995 (vreinterpretq_s32_u8): Likewise.
41996 (vreinterpretq_s32_u16): Likewise.
41997 (vreinterpretq_s32_u32): Likewise.
41998 (vreinterpretq_s32_u64): Likewise.
41999 (vreinterpretq_s32_p8): Likewise.
42000 (vreinterpretq_s32_p16): Likewise.
42001 (vreinterpret_u8_s8): Likewise.
42002 (vreinterpret_u8_s16): Likewise.
42003 (vreinterpret_u8_s32): Likewise.
42004 (vreinterpret_u8_s64): Likewise.
42005 (vreinterpret_u8_f32): Likewise.
42006 (vreinterpret_u8_u16): Likewise.
42007 (vreinterpret_u8_u32): Likewise.
42008 (vreinterpret_u8_u64): Likewise.
42009 (vreinterpret_u8_p8): Likewise.
42010 (vreinterpret_u8_p16): Likewise.
42011 (vreinterpretq_u8_s8): Likewise.
42012 (vreinterpretq_u8_s16): Likewise.
42013 (vreinterpretq_u8_s32): Likewise.
42014 (vreinterpretq_u8_s64): Likewise.
42015 (vreinterpretq_u8_f32): Likewise.
42016 (vreinterpretq_u8_u16): Likewise.
42017 (vreinterpretq_u8_u32): Likewise.
42018 (vreinterpretq_u8_u64): Likewise.
42019 (vreinterpretq_u8_p8): Likewise.
42020 (vreinterpretq_u8_p16): Likewise.
42021 (vreinterpret_u16_s8): Likewise.
42022 (vreinterpret_u16_s16): Likewise.
42023 (vreinterpret_u16_s32): Likewise.
42024 (vreinterpret_u16_s64): Likewise.
42025 (vreinterpret_u16_f32): Likewise.
42026 (vreinterpret_u16_u8): Likewise.
42027 (vreinterpret_u16_u32): Likewise.
42028 (vreinterpret_u16_u64): Likewise.
42029 (vreinterpret_u16_p8): Likewise.
42030 (vreinterpret_u16_p16): Likewise.
42031 (vreinterpretq_u16_s8): Likewise.
42032 (vreinterpretq_u16_s16): Likewise.
42033 (vreinterpretq_u16_s32): Likewise.
42034 (vreinterpretq_u16_s64): Likewise.
42035 (vreinterpretq_u16_f32): Likewise.
42036 (vreinterpretq_u16_u8): Likewise.
42037 (vreinterpretq_u16_u32): Likewise.
42038 (vreinterpretq_u16_u64): Likewise.
42039 (vreinterpretq_u16_p8): Likewise.
42040 (vreinterpretq_u16_p16): Likewise.
42041 (vreinterpret_u32_s8): Likewise.
42042 (vreinterpret_u32_s16): Likewise.
42043 (vreinterpret_u32_s32): Likewise.
42044 (vreinterpret_u32_s64): Likewise.
42045 (vreinterpret_u32_f32): Likewise.
42046 (vreinterpret_u32_u8): Likewise.
42047 (vreinterpret_u32_u16): Likewise.
42048 (vreinterpret_u32_u64): Likewise.
42049 (vreinterpret_u32_p8): Likewise.
42050 (vreinterpret_u32_p16): Likewise.
42051 (vreinterpretq_u32_s8): Likewise.
42052 (vreinterpretq_u32_s16): Likewise.
42053 (vreinterpretq_u32_s32): Likewise.
42054 (vreinterpretq_u32_s64): Likewise.
42055 (vreinterpretq_u32_f32): Likewise.
42056 (vreinterpretq_u32_u8): Likewise.
42057 (vreinterpretq_u32_u16): Likewise.
42058 (vreinterpretq_u32_u64): Likewise.
42059 (vreinterpretq_u32_p8): Likewise.
42060 (vreinterpretq_u32_p16): Likewise.
42062 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
42064 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
42066 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
42068 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
42069 (vqnegd_s64): Likewise.
42070 (vqabs_s64): Likewise.
42071 (vqabsd_s64): Likewise.
42073 2014-04-22 Richard Henderson <rth@redhat.com>
42075 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
42076 computation to the top of the loop.
42078 2014-04-22 Renlin <renlin.li@arm.com>
42079 Jiong Wang <jiong.wang@arm.com>
42081 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
42082 * config/aarch64/aarch64.c (aarch64_layout_frame)
42083 (aarch64_initial_elimination_offset): Likewise.
42085 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
42087 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
42090 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
42092 * machmode.h (bitwise_mode_for_mode): Declare.
42093 * stor-layout.h (bitwise_type_for_mode): Likewise.
42094 * stor-layout.c (bitwise_mode_for_mode): New function.
42095 (bitwise_type_for_mode): Likewise.
42096 * builtins.c (fold_builtin_memory_op): Use it instead of
42097 int_mode_for_mode and build_nonstandard_integer_type.
42099 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42101 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
42102 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
42103 (*-*-solaris2*): Simplify.
42104 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
42105 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
42106 *-*-solaris2.9* handling.
42108 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
42110 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
42111 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
42112 handling, simplify.
42113 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
42114 * configure: Regenerate.
42116 * config/i386/sol2-9.h: Remove.
42118 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
42119 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
42120 Remove Solaris 9 references.
42122 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
42124 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
42125 (floatuns<GPI:mode><GPF:mode>2): Remove.
42126 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
42127 and floatuns conversions.
42128 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
42129 and floatuns conversions.
42130 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
42131 (w1,w2): New mode attributes for inequal width conversions.
42133 2014-04-22 Renlin Li <Renlin.Li@arm.com>
42135 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
42136 the output asm format.
42138 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
42140 * config/aarch64/aarch64-simd.md
42141 (aarch64_cm<optab>di): Always split.
42142 (*aarch64_cm<optab>di): New.
42143 (aarch64_cmtstdi): Always split.
42144 (*aarch64_cmtstdi): New.
42146 2014-04-22 Jakub Jelinek <jakub@redhat.com>
42148 PR tree-optimization/60823
42149 * omp-low.c (ipa_simd_modify_function_body): Go through
42150 all SSA_NAMEs and for those refering to vector arguments
42151 which are going to be replaced adjust SSA_NAME_VAR and,
42152 if it is a default definition, change it into a non-default
42153 definition assigned at the beginning of function from new_decl.
42154 (ipa_simd_modify_stmt_ops): Rewritten.
42155 * tree-dfa.c (set_ssa_default_def): When removing default def,
42156 check for NULL loc instead of NULL *loc.
42158 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42160 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
42161 restrictions on core registers for DImode values in Thumb2.
42163 2014-04-22 Ian Bolton <ian.bolton@arm.com>
42165 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
42166 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
42168 2014-04-22 Ian Bolton <ian.bolton@arm.com>
42170 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
42171 (*iordi_notzesidi_di): Likewise.
42172 (*iordi_notsesidi_di): Likewise.
42174 2014-04-22 Ian Bolton <ian.bolton@arm.com>
42176 * config/arm/arm-protos.h (tune_params): New struct members.
42177 * config/arm/arm.c: Initialise tune_params per processor.
42178 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
42179 for speed, based on new tune_params.
42181 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
42183 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
42184 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
42185 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
42186 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
42187 * config/aarch64/arm_neon.h (vrnd_f64): Added.
42188 (vrnda_f64): Likewise.
42189 (vrndi_f64): Likewise.
42190 (vrndm_f64): Likewise.
42191 (vrndn_f64): Likewise.
42192 (vrndp_f64): Likewise.
42193 (vrndx_f64): Likewise.
42195 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
42197 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
42198 GET_MODE_SIZE argument is enum machine_mode.
42200 2014-04-22 Jakub Jelinek <jakub@redhat.com>
42203 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
42204 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
42206 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
42208 PR middle-end/60281
42209 * asan.c (asan_emit_stack_protection): Force the base to align to
42210 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
42211 appropriate bits if STRICT_ALIGNMENT.
42212 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
42214 (expand_used_vars): Leave a space in the stack frame for alignment
42215 if STRICT_ALIGNMENT.
42217 2014-04-21 David Malcolm <dmalcolm@redhat.com>
42219 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
42221 (gimple_store_p): Likewise.
42222 (gimple_assign_load_p): Likewise.
42223 (gimple_assign_cast_p): Likewise.
42224 (gimple_clobber_p): Likewise.
42226 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
42227 rather than a gimple.
42228 (gimple_assign_cast_p): Likewise.
42230 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
42233 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
42234 If mode is DDmode and TARGET_E500_DOUBLE allow move.
42236 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
42237 more debug information for E500 if -mdebug=reg.
42239 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
42242 * config/i386/i386.c (ix86_expand_builtin)
42243 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
42244 register for target RTX.
42245 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
42247 2014-04-18 Cong Hou <congh@google.com>
42249 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
42250 the widen-mult pattern by handling two operands with different sizes,
42251 and operands whose size is smaller than half of the result type.
42253 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42255 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
42256 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
42257 (do_estimate_edge_time): Compute it.
42258 * ipa-inline.c (want_inline_small_function_p): Bypass
42259 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
42261 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42263 * ipa-inline.c (spec_rem): New static variable.
42264 (dump_overall_stats): New function.
42265 (dump_inline_stats): New function.
42267 2014-04-18 Richard Henderson <rth@redhat.com>
42269 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
42270 to GET_MODE_SIZE, not a reg_class_t.
42272 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42274 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
42275 (vsx_xxmrglw_<mode>): Likewise.
42277 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
42280 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
42281 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
42282 (rs6000_init_hard_regno_mode_ok): Likewise.
42284 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
42286 * ipa-inline.c (inline_small_functions): Account only non-cold
42288 * doc/invoke.texi (inline-unit-growth): Update documentation.
42290 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
42292 * config/rs6000/rs6000.md (addti3, subti3): New.
42294 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
42297 * config/i386/i386.c (ix86_expand_clear): Remove outdated
42298 comment. Check optimize_insn_for_size_p instead of
42299 optimize_insn_for_speed_p.
42301 2014-04-17 Martin Jambor <mjambor@suse.cz>
42303 * gimple-iterator.c (gsi_start_edge): New function.
42304 * gimple-iterator.h (gsi_start_edge): Declare.
42305 * tree-sra.c (single_non_eh_succ): New function.
42306 (disqualify_ops_if_throwing_stmt): Renamed to
42307 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42308 having one non-EH successor BB.
42309 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42310 generate loads into replacements.
42311 (sra_modify_assign): Likewise and and also use the simple path for
42313 (sra_modify_function_body): Commit statements on edges.
42315 2014-04-17 Richard Biener <rguenther@suse.de>
42317 PR middle-end/60849
42318 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42319 comparison results and add clarifying comment.
42321 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42323 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42324 (blank_mode): Initialize it.
42325 (emit_mode_size_inline, emit_mode_nunits_inline,
42326 emit_mode_inner_inline): New functions.
42327 (emit_insn_modes_h): Call them and surround their output with
42328 #if GCC_VERSION >= 4001 ... #endif.
42329 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42330 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42331 mode_* arrays if the argument is __builtin_constant_p.
42332 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42333 is enum machine_mode.
42335 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42337 * passes.c (opt_pass::execute): Adjust.
42338 (pass_manager::execute_pass_mode_switching): Likewise.
42339 (early_local_passes::execute): Likewise.
42340 (execute_one_pass): Pass cfun to the pass's execute method.
42341 * tree-pass.h (opt_pass::execute): Add function * argument.
42342 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42343 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42344 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42345 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42346 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42347 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42348 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42349 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42350 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42351 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42352 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42353 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42354 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42355 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42356 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42357 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42358 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42359 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42360 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42361 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42362 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42363 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42364 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42365 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42366 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42367 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42368 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42369 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42370 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42373 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42375 * passes.c (opt_pass::gate): Take function * argument.
42376 (gate_all_early_local_passes): Merge into
42377 (early_local_passes::gate): this.
42378 (gate_all_early_optimizations): Merge into
42379 (all_early_optimizations::gate): this.
42380 (gate_all_optimizations): Mege into
42381 (all_optimizations::gate): this.
42382 (gate_all_optimizations_g): Merge into
42383 (all_optimizations_g::gate): this.
42384 (gate_rest_of_compilation): Mege into
42385 (rest_of_compilation::gate): this.
42386 (gate_postreload): Merge into
42387 (postreload::gate): this.
42388 (dump_one_pass): Pass cfun to the pass's gate method.
42389 (execute_ipa_summary_passes): Likewise.
42390 (execute_one_pass): Likewise.
42391 (ipa_write_summaries_2): Likewise.
42392 (ipa_write_optimization_summaries_1): Likewise.
42393 (ipa_read_summaries_1): Likewise.
42394 (ipa_read_optimization_summaries_1): Likewise.
42395 (execute_ipa_stmt_fixups): Likewise.
42396 * tree-pass.h (opt_pass::gate): Add function * argument.
42397 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42398 combine-stack-adj.c, combine.c, compare-elim.c,
42399 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42400 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42401 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42402 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42403 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42404 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42405 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42406 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42407 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42408 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42409 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42410 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42411 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42412 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42413 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42414 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42415 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42416 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42417 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42418 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42419 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42420 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42421 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42422 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42423 var-tracking.c, vtable-verify.c, web.c: Adjust.
42425 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42427 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42428 * configure: Regenerate.
42430 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42432 * passes.c (dump_one_pass): don't check pass->has_gate.
42433 (execute_ipa_summary_passes): Likewise.
42434 (execute_one_pass): Likewise.
42435 (ipa_write_summaries_2): Likewise.
42436 (ipa_write_optimization_summaries_1): Likewise.
42437 (ipa_read_optimization_summaries_1): Likewise.
42438 (execute_ipa_stmt_fixups): Likewise.
42439 * tree-pass.h (pass_data::has_gate): Remove.
42440 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42441 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42442 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42443 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42444 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42445 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42446 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42447 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42448 gimple-low.c, gimple-ssa-isolate-paths.c,
42449 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42450 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42451 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42452 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42453 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42454 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42455 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42456 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42457 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42458 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42459 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42460 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42461 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42462 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42463 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42464 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42465 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42466 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42467 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42468 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42469 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42470 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42473 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42475 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42477 * passes.c (pass_manager::register_dump_files_1): Merge into
42478 (pass_manager::register_dump_files): this, and remove its handling of
42479 properties since the pass always has the properties anyway.
42480 (pass_manager::pass_manager): Adjust.
42482 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42484 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42485 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42486 dealing with properties.
42487 (pass_manager::register_dump_files): Adjust.
42489 2014-03-20 Mark Wielaard <mjw@redhat.com>
42491 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42492 then represent the bound as normal constant value.
42494 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42497 Forward port from 4.8 branch
42498 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42500 * config/i386/bmiintrin.h (_blsi_u32): New.
42501 (_blsi_u64): Ditto.
42502 (_blsr_u32): Ditto.
42503 (_blsr_u64): Ditto.
42504 (_blsmsk_u32): Ditto.
42505 (_blsmsk_u64): Ditto.
42506 (_tzcnt_u32): Ditto.
42507 (_tzcnt_u64): Ditto.
42509 2014-04-17 Kito Cheng <kito@0xlab.org>
42511 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42513 2014-04-17 Richard Biener <rguenther@suse.de>
42515 PR middle-end/60849
42516 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42517 boolean results for comparisons.
42519 2014-04-17 Richard Biener <rguenther@suse.de>
42521 PR tree-optimization/60836
42522 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42523 initial PHI args to be gimple values.
42525 2014-04-17 Richard Biener <rguenther@suse.de>
42527 PR tree-optimization/60841
42528 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42529 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42530 of stmts to SLP build.
42531 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42532 (vect_analyze_slp): Likewise.
42533 (vect_analyze_slp_instance): Likewise.
42534 (vect_build_slp_tree): Limit overall SLP tree growth.
42535 * tree-vectorizer.h (vect_analyze_data_refs,
42536 vect_analyze_slp): Adjust prototypes.
42538 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42540 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42543 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42545 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42546 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42547 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42548 for TARGET_SLOW_PSHUFB
42550 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42552 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42553 * config/i386/i386.c (intel_cost): Ditto.
42555 2014-04-17 Joey Ye <joey.ye@arm.com>
42557 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42559 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42561 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42562 with -fuse-profile.
42564 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42566 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42567 (type_all_derivations_known_p): New predicate.
42568 (type_all_ctors_visible_p): New predicate.
42569 (type_possibly_instantiated_p): New predicate.
42570 (get_odr_type): Compute all_derivations_known.
42571 (dump_odr_type): Dump the flag.
42572 (maybe_record_type): Cleanup.
42573 (record_target_from_binfo): Add bases_to_consider array;
42574 record bases for types w/o instances and skip CXX destructor.
42575 (possible_polymorphic_call_targets_1): Add bases_to_consider
42576 and consider_construction parameters; check if type may have instance.
42577 (get_polymorphic_call_info): Set maybe_in_construction to true
42578 when we know nothing.
42579 (record_targets_from_bases): Skip CXX destructors; they are
42580 never called for types in construction.
42581 (possible_polymorphic_call_targets): Do not record target when
42582 type may not have instance.
42584 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42587 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42588 external aliases alive, too.
42590 2014-04-16 Andrew Pinski <apinski@cavium.com>
42592 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42595 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42597 * final.c (compute_alignments): Do not apply loop alignment to a block
42598 falling through to the exit.
42600 2014-04-16 Catherine Moore <clm@codesourcery.com>
42602 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42603 Adjust constraints for microMIPS store patterns.
42605 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42607 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42609 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42611 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42612 (append_use): Run at -O0.
42613 (append_vdef): Likewise.
42614 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42615 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42617 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42619 PR tree-optimization/60844
42620 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42621 (propagate_op_to_single_use, remove_visited_stmt_chain,
42622 linearize_expr, repropagate_negates, reassociate_bb): Use it
42623 instead of gsi_remove.
42625 2014-04-16 Martin Jambor <mjambor@suse.cz>
42627 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42628 ipa_transforms_to_apply.
42629 (cgraph_function_versioning): Assert that old_node has empty
42630 ipa_transforms_to_apply.
42631 * trans-mem.c (ipa_tm_create_version): Likewise.
42632 * tree-inline.c (tree_function_versioning): Do not duplicate
42633 ipa_transforms_to_apply.
42635 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42638 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42640 Pass necessary as flags on 64-bit Solaris/x86.
42641 Use lowercase relocs for x86_64-*-*.
42642 * configure: Regenerate.
42644 2014-04-15 Jan Hubicka <jh@suse.cz>
42646 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42647 (maybe_record_node, likely_target_p): Use it.
42649 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42652 Revert following patch
42654 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42657 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42658 software floating point or no floating point registers, do not
42659 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42660 in GPRs that occurs after we tested for GPRs that would never be
42663 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42664 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42665 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42666 specifically allow DDmode, since that does not use the SPE SIMD
42669 2014-03-21 Mark Wielaard <mjw@redhat.com>
42671 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42672 as unsigned or int depending on type and value used.
42674 2014-04-15 Richard Biener <rguenther@suse.de>
42676 PR rtl-optimization/56965
42677 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42678 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42680 * alias.c (true_dependence_1): Do not call
42681 nonoverlapping_component_refs_p.
42682 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42683 nonoverlapping_component_refs_p.
42684 (indirect_refs_may_alias_p): Likewise.
42686 2014-04-15 Teresa Johnson <tejohnson@google.com>
42688 * cfg.c (dump_bb_info): Fix flags check.
42689 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42691 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42693 PR rtl-optimization/60663
42694 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42697 2014-04-15 Richard Biener <rguenther@suse.de>
42699 * lto-streamer.h (LTO_major_version): Bump to 4.
42701 2014-04-15 Richard Biener <rguenther@suse.de>
42703 * common.opt (lto_partition_model): New enum.
42704 (flto-partition=): Merge separate options with a single with argument,
42705 add -flto-partition=one support.
42706 * flag-types.h (enum lto_partition_model): Declare.
42707 * opts.c (finish_options): Remove duplicate -flto-partition=
42709 * lto-wrapper.c (run_gcc): Adjust.
42711 2014-04-15 Richard Biener <rguenther@suse.de>
42713 * alias.c (ncr_compar): New function.
42714 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42716 2014-04-15 Richard Biener <rguenther@suse.de>
42718 * alias.c (record_component_aliases): Do not walk BINFOs.
42720 2014-04-15 Richard Biener <rguenther@suse.de>
42722 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42723 Add struct function argument and adjust.
42724 (find_func_aliases_for_call): Likewise.
42725 (find_func_aliases): Likewise.
42726 (find_func_clobbers): Likewise.
42727 (intra_create_variable_infos): Likewise.
42728 (compute_points_to_sets): Likewise.
42729 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42731 2014-04-15 Richard Biener <rguenther@suse.de>
42733 * tree.c (iterative_hash_expr): Use enum tree_code_class
42734 to store TREE_CODE_CLASS.
42735 (tree_block): Likewise.
42736 (tree_set_block): Likewise.
42737 * tree.h (fold_build_pointer_plus_loc): Use
42738 convert_to_ptrofftype_loc.
42740 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42743 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42746 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42748 * cfgloop.h (struct loop): Move force_vectorize down.
42749 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42750 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42751 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42752 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42753 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42754 * tree-core.h (enum annot_expr_kind): Add new kind values.
42755 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42756 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42758 * tree.def (ANNOTATE_EXPR): Tweak comment.
42760 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42762 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42765 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42767 * tree.h (TYPE_IDENTIFIER): Declare.
42768 * tree.c (subrange_type_for_debug_p): Use it.
42769 * godump.c (go_format_type): Likewise.
42770 * dwarf2out.c (is_cxx_auto, modified_type_die,
42771 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42772 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42774 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42777 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42779 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42781 * config/i386/i386.c (examine_argument): Return bool. Return true if
42782 parameter should be passed in memory.
42783 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42784 (construct_container): Update calls to examine_argument.
42785 (function_arg_advance_64): Ditto.
42786 (return_in_memory_32): Merge with ix86_return_in_memory.
42787 (return_in_memory_64): Ditto.
42788 (return_in_memory_ms_64): Ditto.
42790 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42792 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42793 * coverage.c (coverage_compute_profile_id): Handle externally visible
42796 2014-04-14 Martin Jambor <mjambor@suse.cz>
42798 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42799 DECL_DISREGARD_INLINE_LIMITS functions.
42801 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42804 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42806 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42809 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42810 optimize_insn_for_speed_p instead of
42811 optimize_function_for_speed_p.
42813 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42815 * doc/invoke.texi (free): Document AArch64.
42817 2014-04-14 Richard Biener <rguenther@suse.de>
42819 PR tree-optimization/60042
42820 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42821 (insert_into_preds_of_block): Do not prevent PHI insertion
42822 for REFERENCE exprs here ...
42823 (eliminate_dom_walker::before_dom_children): ... but prevent
42824 their use here under similar conditions when applied to the
42825 IL after PRE optimizations.
42827 2014-04-14 Richard Biener <rguenther@suse.de>
42829 * passes.def: Move early points-to after early SRA.
42831 2014-04-14 Richard Biener <rguenther@suse.de>
42833 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42834 check for which sign-changes we allow when forwarding
42835 a converted value into a switch.
42837 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42839 * stor-layout.c (place_field): Finalize non-constant offset for the
42842 2014-04-14 Richard Biener <rguenther@suse.de>
42844 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42846 (expand_switch_using_bit_tests_p): Likewise.
42847 (process_switch): Compute and pass on speed_p based on the
42849 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42850 optimize_bb_for_speed_p.
42852 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42854 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42855 * function.h (struct function): Rename has_force_vect_loops into
42856 has_force_vectorize_loops.
42857 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42858 (input_struct_function_base): Likewise.
42859 * lto-streamer-out.c (output_cfg): Likewise.
42860 (output_struct_function_base): Likewise.
42861 * omp-low.c (expand_omp_simd): Likewise.
42862 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42863 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42864 (version_loop_for_if_conversion): Likewise.
42865 (tree_if_conversion): Likewise.
42866 (main_tree_if_conversion): Likewise.
42867 (gate_tree_if_conversion): Likewise.
42868 * tree-inline.c (copy_loops): Likewise.
42869 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42870 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42871 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42872 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42873 * tree-vectorizer.c (vectorize_loops): Likewise.
42874 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42876 2014-04-14 Richard Biener <rguenther@suse.de>
42879 * lto-streamer-out.c (wrap_refs): New function.
42880 (lto_output): Wrap symbol references in global initializes in
42881 type-preserving MEM_REFs.
42883 2014-04-14 Christian Bruel <christian.bruel@st.com>
42885 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42887 2014-04-14 Christian Bruel <christian.bruel@st.com>
42889 * config/sh/sh.md (setmemqi): New expand pattern.
42890 * config/sh/sh.h (CLEAR_RATIO): Define.
42891 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42892 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42894 2014-04-14 Richard Biener <rguenther@suse.de>
42896 PR middle-end/55022
42897 * fold-const.c (negate_expr_p): Don't negate directional rounding
42899 (fold_negate_expr): Likewise.
42901 2014-04-14 Richard Biener <rguenther@suse.de>
42903 PR tree-optimization/59817
42904 PR tree-optimization/60453
42905 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42906 recursion to catch all CHRECs in the scalar evolution and restrict
42907 the predicate for the remains appropriately.
42909 2014-04-12 Catherine Moore <clm@codesourcery.com>
42911 * config/mips/constraints.md: Add new register constraint "kb".
42912 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42913 (*movhi_internal): Likewise.
42914 (*movqi_internal): Likewise.
42915 * config/mips/mips.h (M16_STORE_REGS): New register class.
42916 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42917 (REG_CLASS_CONTENTS): Likewise.
42918 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42920 2014-04-11 Tobias Burnus <burnus@net-b.de>
42923 * doc/invoke.texi (-Wformat-signedness): Document it.
42924 (Wformat=2): Mention that this enables -Wformat-signedness.
42926 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42928 * common/config/epiphany/epiphany-common.c
42929 (epiphany_option_optimization_table): Enable section anchors by
42930 default at -O1 or higher.
42931 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42932 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42933 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42934 carries no extra cost.
42935 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42936 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42937 * config/epiphany/predicates.md (memclob_operand): New predicate.
42938 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42939 Use memclob_operand predicate and X constraint for operand 3.
42941 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42943 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42944 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42947 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42949 PR rtl-optimization/60651
42950 * mode-switching.c (optimize_mode_switching): Make sure to emit
42951 sets of a lower numbered entity before sets of a higher numbered
42952 entity to a mode of the same or lower priority.
42953 When creating a seginfo for a basic block that starts with a code
42954 label, move the insertion point past the code label.
42955 (new_seginfo): Document and enforce requirement that
42956 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42957 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42958 * doc/tm.texi: Regenerate.
42960 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42963 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42965 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42967 * BASE-VER: Set to 4.10.0.
42969 2014-04-11 Tobias Burnus <burnus@net-b.de>
42972 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42973 * doc/gcc.texi (Service): Update description in the @menu
42974 * doc/invoke.texi (Option Summary): Remove misplaced and
42977 2014-04-11 Steve Ellcey <sellcey@mips.com>
42978 Jakub Jelinek <jakub@redhat.com>
42980 PR middle-end/60556
42981 * expr.c (convert_move): Use emit_store_flag_force instead of
42982 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42985 2014-04-11 Richard Biener <rguenther@suse.de>
42987 PR middle-end/60797
42988 * varasm.c (assemble_alias): Avoid endless error reporting
42989 recursion by setting TREE_ASM_WRITTEN.
42991 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42993 * config/s390/s390.md: Add a splitter for NOT rtx.
42995 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42997 PR rtl-optimization/60663
42998 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
43000 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
43001 Jakub Jelinek <jakub@redhat.com>
43004 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
43005 flag from decl_node to node.
43007 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43010 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
43011 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
43012 ameliorating the cases where it can be.
43014 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
43017 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
43019 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
43020 (loadsync_<mode>): Change mode.
43021 (load_quadpti, store_quadpti): New.
43022 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
43023 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
43024 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
43026 2014-04-09 Cong Hou <congh@google.com>
43029 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
43032 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43034 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
43035 instead of vnor to exploit possible fusion opportunity in the
43037 (altivec_expand_vec_perm_const_le): Likewise.
43039 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
43041 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
43042 (loadsync_<mode>): Change mode.
43043 (load_quadpti, store_quadpti): New.
43044 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
43045 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
43047 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
43050 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
43051 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
43052 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
43054 2014-04-08 Richard Biener <rguenther@suse.de>
43056 PR middle-end/60706
43057 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
43058 a 64bit widest int print double-int similar to on HWI64 hosts.
43060 2014-04-08 Richard Biener <rguenther@suse.de>
43062 PR tree-optimization/60785
43063 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
43064 default defs properly.
43066 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
43068 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
43069 (Weffc++): Likewise.
43071 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
43073 * ipa-devirt.c (maybe_record_node): When node is not recorded,
43074 set completep to false rather than true.
43076 2014-04-07 Douglas B Rupp <rupp@adacore.com>
43079 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
43080 ARM_TARGET2_DWARF_FORMAT.
43082 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
43085 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
43086 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
43089 2014-04-07 Richard Biener <rguenther@suse.de>
43091 PR tree-optimization/60766
43092 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
43093 (may_eliminate_iv): Convert cand_value_at result to desired type.
43095 2014-04-07 Jason Merrill <jason@redhat.com>
43098 * common.opt (-fno-gnu-unique): Add.
43099 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
43101 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43103 * haifa-sched.c: Fix outdated function reference and minor
43104 grammar errors in introductory comment.
43106 2014-04-07 Richard Biener <rguenther@suse.de>
43108 PR middle-end/60750
43109 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
43110 for noreturn calls.
43111 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
43113 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
43116 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
43117 size accounting for thunks.
43118 (pa_asm_output_mi_thunk): Use final_start_function() and
43119 final_end_function() to output function start and end directives.
43121 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
43123 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
43124 device specific ISA/ feature information. Remove short_sp and
43125 errata_skip ds. Add avr_device_specific_features enum to have device
43127 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
43128 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
43129 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
43130 updated device specific info.
43131 * config/avr/avr-mcus.def: Merge device specific details to
43132 dev_attribute field.
43133 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
43135 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
43136 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
43137 assembler if RMW isa supported by current device.
43138 * config/avr/genmultilib.awk: Update as device info structure changed.
43139 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
43141 2014-04-04 Cong Hou <congh@google.com>
43143 PR tree-optimization/60656
43144 * tree-vect-stmts.c (supportable_widening_operation):
43145 Fix a bug that elements in a vector with vect_used_by_reduction
43146 property are incorrectly reordered when the operation on it is not
43147 consistant with the one in reduction operation.
43149 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
43151 PR rtl-optimization/60155
43152 * gcse.c (record_set_data): New function.
43153 (single_set_gcse): New function.
43154 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
43155 (hoist_code): Likewise.
43156 (get_pressure_class_and_nregs): Likewise.
43158 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
43160 * explow.c (probe_stack_range): Emit a final optimization blockage.
43162 2014-04-04 Anthony Green <green@moxielogic.com>
43164 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
43167 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
43170 * lto-cgraph.c (input_overwrite_node): Check that partitioning
43171 flags are set only during streaming.
43172 * ipa.c (process_references, walk_polymorphic_call_targets,
43173 symtab_remove_unreachable_nodes): Drop bodies of always inline
43174 after early inlining.
43175 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
43177 2014-04-04 Jakub Jelinek <jakub@redhat.com>
43178 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43181 * dwarf2out.c (const_ok_for_output_1): Reject expressions
43184 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43187 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
43189 (cortex_a53_fdivd): Likewise.
43191 2014-04-04 Martin Jambor <mjambor@suse.cz>
43194 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
43195 Adjust all callers.
43196 * cgraph.c (clone_of_p): Also return true if thunks match.
43197 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
43198 cgraph_function_or_thunk_node and an obsolete comment.
43199 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
43201 (build_function_decl_skip_args): Likewise.
43202 (set_new_clone_decl_and_node_flags): New function.
43203 (duplicate_thunk_for_node): Likewise.
43204 (redirect_edge_duplicating_thunks): Likewise.
43205 (cgraph_clone_node): New parameter args_to_skip, pass it to
43206 redirect_edge_duplicating_thunks which is called instead of
43207 cgraph_redirect_edge_callee.
43208 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
43209 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
43211 2014-04-04 Jeff Law <law@redhat.com>
43214 * config/arm/predicates.md (const_int_I_operand): New predicate.
43215 (const_int_M_operand): Similarly.
43216 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
43218 (insv_t2, extv_reg, extzv_t2): Likewise.
43219 (load_multiple_with_writeback): Similarly for const_int_I_operand.
43220 (pop_multiple_with_writeback_and_return): Likewise.
43221 (vfp_pop_multiple_with_writeback): Likewise
43223 2014-04-04 Richard Biener <rguenther@suse.de>
43226 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
43227 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
43229 * gimplify.h (gimple_add_tmp_var_fn): Declare.
43230 * gimplify.c (gimple_add_tmp_var_fn): New function.
43231 * gimple-expr.h (create_tmp_reg_fn): Declare.
43232 * gimple-expr.c (create_tmp_reg_fn): New function.
43233 * gimple-low.c (record_vars_into): Don't change cfun.
43234 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
43235 code generation without cfun.
43237 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
43240 * Makefile.in (install-driver): Fix shell scripting.
43242 2014-04-03 Cong Hou <congh@google.com>
43244 PR tree-optimization/60505
43245 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
43246 threshold of number of iterations below which no vectorization
43248 * tree-vect-loop.c (new_loop_vec_info):
43249 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
43250 * tree-vect-loop.c (vect_analyze_loop_operations):
43251 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
43252 * tree-vect-loop.c (vect_transform_loop):
43253 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
43254 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
43255 of iterations of the loop and see if we should build the epilogue.
43257 2014-04-03 Richard Biener <rguenther@suse.de>
43259 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
43260 (streamer_tree_cache_create): Adjust.
43261 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
43262 to allow optional nodes array.
43263 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
43264 (streamer_tree_cache_append): Likewise.
43265 (streamer_tree_cache_create): Create nodes array optionally
43266 as specified by parameter.
43267 * lto-streamer-out.c (create_output_block): Avoid maintaining
43268 the node array in the writer cache.
43269 (DFS_write_tree): Remove assertion.
43270 (produce_asm_for_decls): Free the out decl state hash table early.
43271 * lto-streamer-in.c (lto_data_in_create): Adjust for
43272 streamer_tree_cache_create prototype change.
43274 2014-04-03 Richard Biener <rguenther@suse.de>
43276 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
43277 set TREE_CHAIN to NULL_TREE.
43279 2014-04-03 Richard Biener <rguenther@suse.de>
43281 PR tree-optimization/60740
43282 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
43283 over all GIMPLE_COND operands.
43285 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
43287 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
43288 (Weffc++): Remove Scott's numbering, merge lists and reference
43291 2014-04-03 Nick Clifton <nickc@redhat.com>
43293 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
43296 2014-04-03 Martin Jambor <mjambor@suse.cz>
43298 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
43299 mention gcc_unreachable before failing.
43300 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43303 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43306 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43307 inconsistent code and instead mark the context inconsistent.
43308 (possible_polymorphic_call_targets): For inconsistent contexts
43309 return empty complete list.
43311 2014-04-02 Anthony Green <green@moxielogic.com>
43313 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43314 (extendqisi2, extendhisi2): Define.
43315 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43316 (WCHAR_TYPE): Change to unsigned int.
43318 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43320 PR tree-optimization/60733
43321 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43322 insertion point for PHI candidates to be the end of the feeding
43323 block for the PHI argument.
43325 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43327 PR rtl-optimization/60650
43328 * lra-constraints.c (process_alt_operands): Decrease reject for
43329 earlyclobber matching.
43331 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43333 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43335 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43337 * config/spu/spu.c (pad_bb): Do not crash when the last
43338 insn is CODE_FOR_blockage.
43340 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43342 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43343 lies outside the target mode.
43345 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43348 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43349 software floating point or no floating point registers, do not
43350 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43351 in GPRs that occurs after we tested for GPRs that would never be
43354 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43355 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43356 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43357 specifically allow DDmode, since that does not use the SPE SIMD
43360 2014-04-02 Richard Biener <rguenther@suse.de>
43362 PR middle-end/60729
43363 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43364 MODE_INTs. Properly use negv_optab.
43365 (expand_abs): Likewise.
43367 2014-04-02 Richard Biener <rguenther@suse.de>
43370 * Makefile.in (install-driver): Guard extra installs with special
43373 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43375 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43376 Document vec_vgbbd.
43378 2014-04-01 Richard Henderson <rth@redhat.com>
43381 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43382 alternative enabled before register allocation.
43384 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43386 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43387 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43389 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43390 (nios2_got_address): Update nios2_large_got_address call site.
43391 (nios2_delegitimize_address): New function.
43392 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43393 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43394 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43396 2014-04-01 Martin Husemann <martin@duskware.de>
43398 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43401 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43403 PR rtl-optimization/60604
43404 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43405 check from register_operand.
43406 (register_operand): Redefine in terms of general_operand.
43407 (nonmemory_operand): Use register_operand for the non-constant cases.
43409 2014-04-01 Richard Biener <rguenther@suse.de>
43411 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43413 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43415 * doc/invoke.texi (mapp-regs): Clarify.
43417 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43419 * config/i386/avx512fintrin.h (__v32hi): Define type.
43420 (__v64qi): Likewise.
43421 (_mm512_set1_epi8): Define.
43422 (_mm512_set1_epi16): Define.
43423 (_mm512_set4_epi32): Define.
43424 (_mm512_set4_epi64): Define.
43425 (_mm512_set4_pd): Define.
43426 (_mm512_set4_ps): Define.
43427 (_mm512_setr4_epi64): Define.
43428 (_mm512_setr4_epi32): Define.
43429 (_mm512_setr4_pd): Define.
43430 (_mm512_setr4_ps): Define.
43431 (_mm512_setzero_epi32): Define.
43433 2014-03-31 Martin Jambor <mjambor@suse.cz>
43435 PR middle-end/60647
43436 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43437 callsite_arguments_match_p. Updated all callers. Also check types of
43438 corresponding formal parameters and actual arguments.
43439 (not_all_callers_have_enough_arguments_p) Renamed to
43440 some_callers_have_mismatched_arguments_p.
43442 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43444 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43446 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43449 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43452 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43454 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43455 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43457 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43458 Use FMAMODE_NOVF512 mode iterator.
43459 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43460 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43461 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43462 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43464 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43465 Use VF_128_256 mode iterator.
43466 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43469 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43471 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43472 static chain if needed.
43474 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43477 * lra-constraints.c (index_part_to_reg): New.
43478 (process_address): Use it.
43480 2014-03-27 Jeff Law <law@redhat.com>
43481 Jakub Jelinek <jakub@redhat.com>
43484 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43485 gen_rtx_{PLUS,MULT} to build up the address expression.
43487 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43488 creating non-canonical RTL.
43490 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43493 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43494 functions; reorganize to make cheap checks first.
43495 (inline_small_functions): Do not estimate growth when dumping;
43497 * ipa-inline.h (inline_summary): Add min_size.
43498 (growth_likely_positive): New function.
43499 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43500 (set_cond_stmt_execution_predicate): Cleanup.
43501 (estimate_edge_size_and_time): Compute min_size.
43502 (estimate_calls_size_and_time): Likewise.
43503 (estimate_node_size_and_time): Likewise.
43504 (inline_update_overall_summary): Update min_size.
43505 (do_estimate_edge_time): Likewise.
43506 (do_estimate_edge_size): Update.
43507 (do_estimate_edge_hints): Update.
43508 (growth_likely_positive): New function.
43510 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43513 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43514 also if addr has VOIDmode.
43516 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43518 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43519 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43521 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43522 instructions as well as AdvancedSIMD loads.
43524 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43526 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43527 Use crypto_aese type.
43528 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43529 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43530 crypto_aese, crypto_aesmc. Move to types.md.
43531 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43533 * config/arm/iterators.md (crypto_type): Likewise.
43535 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43537 * cgraph.c: Include expr.h and tree-dfa.h.
43538 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43541 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43544 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43545 regs from checking multi-reg pseudos.
43547 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43549 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43551 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43553 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43554 if it would clobber the stack pointer, even temporarily.
43556 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43558 * mode-switching.c: Make small adjustments to the top comment.
43560 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43562 * config/rs6000/constraints.md (wD constraint): New constraint to
43563 match the constant integer to get the top DImode/DFmode out of a
43564 vector in a VSX register.
43566 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43567 match the constant integer to get the top DImode/DFmode out of a
43568 vector in a VSX register.
43570 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43573 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43576 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43577 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43579 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43580 Optimize vec_extract of 64-bit values, where the value being
43581 extracted is in the top word, where we can use scalar
43582 instructions. Add direct move and store support. Combine the big
43583 endian/little endian vector select load support into a single insn.
43584 (vsx_extract_<mode>_internal1): Likewise.
43585 (vsx_extract_<mode>_internal2): Likewise.
43586 (vsx_extract_<mode>_load): Likewise.
43587 (vsx_extract_<mode>_store): Likewise.
43588 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43589 combined into vsx_extract_<mode>_load.
43590 (vsx_extract_<mode>_one_le): Likewise.
43592 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43593 define the top 64-bit vector element.
43595 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43598 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43599 Document vec_vbpermq builtin.
43602 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43603 enable use of xxsldwi and xxpermdi builtin functions.
43604 (vec_xxpermdi): Likewise.
43606 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43607 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43609 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43611 PR rtl-optimization/60650
43612 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43614 (find_spills_for): New.
43615 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43616 Spill all pseudos on the second iteration.
43618 2014-03-27 Marek Polacek <polacek@redhat.com>
43621 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43624 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43626 * config/s390/s390.c (s390_can_use_return_insn): Check for
43627 call-saved FPRs on 31 bit.
43629 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43631 PR middle-end/60682
43632 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43633 if they need regimplification, just drop them instead of
43634 calling gimple_regimplify_operands on them.
43636 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43639 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43640 (aarch64_frame_pointer_required): Adjust logic.
43641 (aarch64_can_eliminate): Adjust logic.
43642 (aarch64_override_options_after_change): Adjust logic.
43644 2014-03-27 Dehao Chen <dehao@google.com>
43646 * ipa-inline.c (early_inliner): Update node's inline info.
43648 2014-03-26 Dehao Chen <dehao@google.com>
43650 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43651 compiler inserted conditional jumps for NAN float check.
43653 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43655 * ubsan.h (ubsan_create_data): Change second argument's type
43656 to const location_t *.
43657 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43659 (ubsan_create_data): Change second argument to const location_t *PLOC.
43660 Create Loc field whenever PLOC is non-NULL.
43661 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43662 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43666 * real.c (real_to_integer2): Change type of low to UHWI.
43668 2014-03-26 Tobias Burnus <burnus@net-b.de>
43670 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43671 (CILK_SELF_SPECS): New define.
43672 (driver_self_specs): Use it.
43674 2014-03-26 Richard Biener <rguenther@suse.de>
43676 * tree-pretty-print.c (percent_K_format): Implement special
43677 case for LTO and its stripped down BLOCK tree.
43679 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43682 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43684 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43685 one range is range_int_cst_p, but not both, at least optimize
43686 addition/subtraction of 0 and multiplication by 0 or 1.
43687 * gimple-fold.c (gimple_fold_call): Fold
43688 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43689 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43690 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43692 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43694 PR rtl-optimization/60452
43695 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43696 <case REG>: Return 1 for invalid offsets from the frame pointer.
43698 2014-03-26 Marek Polacek <polacek@redhat.com>
43701 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43704 2014-03-26 Marek Polacek <polacek@redhat.com>
43707 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43710 2014-03-26 Marek Polacek <polacek@redhat.com>
43713 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43714 multiplication in unsigned type.
43716 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43718 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43720 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43722 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43724 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43727 * cif-code.def (UNREACHABLE) New code.
43728 * ipa-inline.c (inline_small_functions): Skip edges to
43729 __builtlin_unreachable.
43730 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43731 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43732 predicate to __bulitin_unreachable.
43733 (set_cond_stmt_execution_predicate): Fix issue when
43734 invert_tree_comparison returns ERROR_MARK.
43735 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43736 propagate to inline clones.
43737 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43739 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43740 * cgraphclones.c (cgraph_clone_node): If call destination is already
43741 ureachable, do not redirect it back.
43742 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43745 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43747 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43748 Do not modify inline clones.
43750 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43752 * config/i386/i386.md (general_sext_operand): New mode attr.
43753 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43754 don't generate (sign_extend (const_int)).
43755 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43756 operands[2]. Use We constraint instead of <i> and
43757 <general_sext_operand> predicate instead of <general_operand>.
43758 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43759 * config/i386/constraints.md (We): New constraint.
43760 * config/i386/predicates.md (x86_64_sext_operand,
43761 sext_operand): New predicates.
43763 2014-03-25 Martin Jambor <mjambor@suse.cz>
43766 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43767 inconsistent devirtualizations to __builtin_unreachable.
43769 2014-03-25 Marek Polacek <polacek@redhat.com>
43772 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43774 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43776 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43777 order of elements for big-endian.
43779 2014-03-25 Richard Biener <rguenther@suse.de>
43781 PR middle-end/60635
43782 * gimplify-me.c (gimple_regimplify_operands): Update the
43785 2014-03-25 Martin Jambor <mjambor@suse.cz>
43788 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43789 (lto_output_varpool_node): Likewise.
43790 (input_overwrite_node): Likewise.
43791 (input_varpool_node): Likewise.
43793 2014-03-25 Richard Biener <rguenther@suse.de>
43795 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43796 (run_gcc): Likewise.
43798 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43800 * combine.c (simplify_compare_const): Add MODE argument.
43801 Handle mode_width 0 as very large mode_width.
43802 (try_combine, simplify_comparison): Adjust callers.
43804 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43805 type to avoid signed integer overflow.
43806 * explow.c (plus_constant): Likewise.
43808 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43810 * doc/generic.texi: Correct typos.
43812 2014-03-24 Tobias Burnus <burnus@net-b.de>
43814 * doc/invoke.texi (-flto): Expand section about
43815 using static libraries with LTO.
43817 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43819 PR rtl-optimization/60501
43820 * optabs.def (addptr3_optab): New optab.
43821 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43822 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43823 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43825 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43827 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43829 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43831 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43834 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43835 (_mm256_undefined_ps): Define.
43836 (_mm256_undefined_pd): Define.
43837 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43838 (_mm_undefined_pd): Define.
43839 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43840 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43841 (_mm512_undefined_ps): Define.
43842 (_mm512_undefined_pd): Define.
43843 Use _mm*_undefined_*.
43844 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43846 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43848 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43849 (lshr_simd): DI mode added.
43850 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43851 (aarch64_ushr_simddi): Likewise.
43852 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43853 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43854 (vshrd_n_u64): Likewise.
43856 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43858 * Makefile.in (s-macro_list): Depend on cc1.
43860 2014-03-23 Teresa Johnson <tejohnson@google.com>
43862 * ipa-utils.c (ipa_print_order): Use specified dump file.
43864 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43866 PR rtl-optimization/60601
43867 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43869 * gcc.c (eval_spec_function): Initialize save_growing_value.
43871 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43874 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43875 code == MINUS_EXPR, never swap op0 with op1.
43877 * toplev.c (init_local_tick): Avoid signed integer multiplication
43879 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43880 shift by first operand's bitsize.
43882 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43885 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43886 redefine to 1 or 0.
43887 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43888 TARGET_ISA_64BIT_P(x).
43890 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43892 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43893 pattern for vector nor instead of subtract from splat(-1).
43894 (altivec_expand_vec_perm_const_le): Likewise.
43896 2014-03-21 Richard Henderson <rth@twiddle.net>
43899 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43900 related insns after epilogue_completed.
43902 2014-03-21 Martin Jambor <mjambor@suse.cz>
43905 * cgraph.h (symtab_node): New flag body_removed.
43906 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43907 when removing bodies.
43908 * symtab.c (dump_symtab_base): Dump body_removed flag.
43909 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43910 had their bodies removed.
43912 2014-03-21 Martin Jambor <mjambor@suse.cz>
43915 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43918 2014-03-21 Richard Biener <rguenther@suse.de>
43920 PR tree-optimization/60577
43921 * tree-core.h (struct tree_base): Document nothrow_flag use
43922 in DECL_NONALIASED.
43923 * tree.h (DECL_NONALIASED): New.
43924 (may_be_aliased): Adjust.
43925 * coverage.c (build_var): Set DECL_NONALIASED.
43927 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43929 * expr.c (expand_expr_real_1): Remove outdated comment.
43931 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43933 PR middle-end/60597
43934 * ira.c (adjust_cleared_regs): Call copy_rtx on
43935 *reg_equiv[REGNO (loc)].src_p before passing it to
43936 simplify_replace_fn_rtx.
43939 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43940 into CONST, put pic register as first operand of PLUS. Use
43941 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43943 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43945 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43947 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43949 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43950 around for store forwarding issue in the FPU on the UT699.
43951 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43952 loads and operations if -mfix-ut699 is specified.
43953 (divtf3_hq): Tweak attribute.
43954 (sqrttf2_hq): Likewise.
43956 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43958 * calls.c (store_one_arg): Remove incorrect const qualification on the
43959 type of the temporary.
43960 * cfgexpand.c (expand_return): Likewise.
43961 * expr.c (expand_constructor): Likewise.
43962 (expand_expr_real_1): Likewise.
43964 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43966 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43969 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43972 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43974 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43976 * config/arm/aarch-common-protos.h
43977 (alu_cost_table): Fix spelling of "extend".
43978 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43980 2014-03-19 Richard Biener <rguenther@suse.de>
43982 PR middle-end/60553
43983 * tree-core.h (tree_type_common): Re-order pointer members
43984 to reduce recursion depth during GC walks.
43986 2014-03-19 Marek Polacek <polacek@redhat.com>
43989 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43990 before accessing it.
43992 2014-03-19 Richard Biener <rguenther@suse.de>
43995 * lto-streamer-in.c (input_function): In WPA stage do not drop
43998 2014-03-19 Jakub Jelinek <jakub@redhat.com>
44000 PR tree-optimization/60559
44001 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
44002 with build_zero_cst assignment.
44004 2014-03-18 Kai Tietz <ktietz@redhat.com>
44006 PR rtl-optimization/56356
44007 * sdbout.c (sdbout_parms): Verify that parms'
44008 incoming argument is valid.
44009 (sdbout_reg_parms): Likewise.
44011 2014-03-18 Richard Henderson <rth@redhat.com>
44014 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
44015 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
44016 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
44018 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
44020 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
44021 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
44022 Italicize plugin event names in description. Explain that
44023 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
44024 Remind that no GCC functions should be called after PLUGIN_FINISH.
44025 Explain what pragmas with expansion are.
44027 2014-03-18 Martin Liska <mliska@suse.cz>
44029 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
44030 gimple call statement is update.
44031 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
44032 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
44034 2014-03-18 Jakub Jelinek <jakub@redhat.com>
44037 * ubsan.c (ubsan_instrument_unreachable): Call
44038 initialize_sanitizer_builtins.
44039 (ubsan_pass): Likewise.
44042 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
44043 varpool_finalize_decl instead of rest_of_decl_compilation.
44045 2014-03-18 Richard Biener <rguenther@suse.de>
44047 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
44048 by using bitmap_and_compl instead of bitmap_and_compl_into.
44049 (df_rd_transfer_function): Likewise.
44051 2014-03-18 Richard Biener <rguenther@suse.de>
44053 * doc/lto.texi (fresolution): Fix typo.
44055 2014-03-18 Richard Biener <rguenther@suse.de>
44057 * doc/invoke.texi (flto): Update for changes in 4.9.
44059 2014-03-18 Richard Biener <rguenther@suse.de>
44061 * doc/loop.texi: Remove section on the removed lambda framework.
44062 Update loop docs with recent changes in preserving loop structure.
44064 2014-03-18 Richard Biener <rguenther@suse.de>
44066 * doc/lto.texi (-fresolution): Document.
44068 2014-03-18 Richard Biener <rguenther@suse.de>
44070 * doc/contrib.texi: Adjust my name.
44072 2014-03-18 Jakub Jelinek <jakub@redhat.com>
44075 * internal-fn.c: Include diagnostic-core.h.
44076 (expand_BUILTIN_EXPECT): New function.
44077 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
44078 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
44079 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
44080 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
44081 IFN_BUILTIN_EXPECT.
44082 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
44083 Revert 3 argument __builtin_expect code.
44084 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
44085 * gimple-fold.c (gimple_fold_call): Likewise.
44086 * tree.h (fold_builtin_expect): New prototype.
44087 * builtins.c (build_builtin_expect_predicate): Add predictor
44088 argument, if non-NULL, create 3 argument __builtin_expect.
44089 (fold_builtin_expect): No longer static. Add ARG2 argument,
44090 pass it through to build_builtin_expect_predicate.
44091 (fold_builtin_2): Adjust caller.
44092 (fold_builtin_3): Handle BUILT_IN_EXPECT.
44093 * internal-fn.def (BUILTIN_EXPECT): New.
44095 2014-03-18 Tobias Burnus <burnus@net-b.de>
44098 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
44099 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
44100 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
44102 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
44105 * predict.c (combine_predictions_for_bb): Fix up formatting.
44106 (expr_expected_value_1, expr_expected_value): Add predictor argument,
44107 fill what it points to if non-NULL.
44108 (tree_predict_by_opcode): Adjust caller, use the predictor.
44109 * predict.def (PRED_COMPARE_AND_SWAP): Add.
44111 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
44113 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
44114 proper constant for the store mode.
44116 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
44118 * symtab.c (change_decl_assembler_name): Fix transparent alias
44119 chain construction.
44121 2014-03-16 Renlin Li <Renlin.Li@arm.com>
44123 * config/aarch64/aarch64.c: Correct the comments about the
44124 aarch64 stack layout.
44126 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
44128 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
44129 check for GF_OMP_FOR_KIND_FOR.
44131 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
44133 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
44134 ymm and zmm register names.
44136 2014-03-17 Jakub Jelinek <jakub@redhat.com>
44139 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
44140 note creation for the 2010-08-31 changes.
44142 2014-03-17 Marek Polacek <polacek@redhat.com>
44144 PR middle-end/60534
44145 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
44146 as -fno-tree-loop-vectorize.
44147 (expand_omp_simd): Likewise.
44149 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
44151 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
44152 (eligible_for_call_delay): New prototype.
44153 * config/sparc/sparc.c (tls_call_delay): Rename into...
44154 (eligible_for_call_delay): ...this. Return false if the instruction
44155 cannot be put in the delay slot of a branch.
44156 (eligible_for_restore_insn): Simplify.
44157 (eligible_for_return_delay): Return false if the instruction cannot be
44158 put in the delay slot of a branch and simplify.
44159 (eligible_for_sibcall_delay): Return false if the instruction cannot be
44160 put in the delay slot of a branch.
44161 * config/sparc/sparc.md (fix_ut699): New attribute.
44162 (tls_call_delay): Delete.
44163 (in_call_delay): Reimplement.
44164 (eligible_for_sibcall_delay): Rename into...
44165 (in_sibcall_delay): ...this.
44166 (eligible_for_return_delay): Rename into...
44167 (in_return_delay): ...this.
44168 (in_branch_delay): Reimplement.
44169 (in_uncond_branch_delay): Delete.
44170 (in_annul_branch_delay): Delete.
44172 2014-03-14 Richard Henderson <rth@redhat.com>
44175 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
44176 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
44177 (*floathi<X87MODEF>2_i387_with_temp): Remove.
44178 (floathi splitters): Remove.
44179 (float<SWI48x>xf2): New pattern.
44180 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
44181 code that tried to handle DImode for 32-bit, but which was excluded
44182 by the pattern's condition. Drop allocation of stack temporary.
44183 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
44184 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
44185 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
44186 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
44187 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
44188 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
44189 (*float<SWI48><MODEF>2_sse_interunit): Remove.
44190 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
44191 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
44192 (*float<SWI48x><X87MODEF>2_i387): Remove.
44193 (all float _with_temp splitters): Remove.
44194 (*float<SWI48x><MODEF>2_i387): New pattern.
44195 (*float<SWI48><MODEF>2_sse): New pattern.
44196 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
44197 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
44199 2014-03-14 Jakub Jelinek <jakub@redhat.com>
44200 Marek Polacek <polacek@redhat.com>
44202 PR middle-end/60484
44203 * common.opt (dump_base_name_prefixed): New Variable.
44204 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
44205 if x_dump_base_name_prefixed is already set, set it at the end.
44207 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
44209 PR rtl-optimization/60508
44210 * lra-constraints.c (get_reload_reg): Add new parameter
44212 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
44213 Pass the new parameter values.
44215 2014-03-14 Richard Biener <rguenther@suse.de>
44217 * common.opt: Revert unintented changes from r205065.
44218 * opts.c: Likewise.
44220 2014-03-14 Richard Biener <rguenther@suse.de>
44222 PR middle-end/60518
44223 * cfghooks.c (split_block): Properly adjust all loops the
44224 block was a latch of.
44226 2014-03-14 Martin Jambor <mjambor@suse.cz>
44229 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
44232 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
44235 * config/avr/avr.c (avr_set_current_function): Pass function name
44236 through default_strip_name_encoding before sanity checking instead
44237 of skipping the first char of the assembler name.
44239 2014-03-13 Richard Henderson <rth@redhat.com>
44242 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
44243 (ix86_force_to_memory, ix86_free_from_memory): Remove.
44244 * config/i386/i386-protos.h: Likewise.
44245 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
44246 in the expander instead of a splitter.
44247 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
44248 any possibility of requiring a memory.
44249 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
44250 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
44251 (fp branch splitters): Update for ix86_split_fp_branch.
44252 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
44253 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
44254 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
44255 (*fop_<MODEF>_2_i387): Remove f/r alternative.
44256 (*fop_<MODEF>_3_i387): Likewise.
44257 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
44258 (splitters for the fop_* register patterns): Remove.
44259 (fscalexf4_i387): Rename from *fscalexf4_i387.
44260 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
44262 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44264 PR tree-optimization/59779
44265 * tree-dfa.c (get_ref_base_and_extent): Use double_int
44266 type for bitsize and maxsize instead of HOST_WIDE_INT.
44268 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
44270 PR rtl-optimization/57320
44271 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
44272 the CFG after thread_prologue_and_epilogue_insns.
44274 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
44276 PR rtl-optimization/57189
44277 * lra-constraints.c (process_alt_operands): Disfavor spilling
44280 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
44282 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
44284 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44286 PR tree-optimization/59025
44287 PR middle-end/60418
44288 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
44289 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
44291 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
44294 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
44295 calls of avr_out_plus_1.
44297 2014-03-13 Bin Cheng <bin.cheng@arm.com>
44299 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
44300 BB's single pred and update the father loop's latch info later.
44302 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44304 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44308 (VEC_base): Likewise.
44309 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44310 registers, we need to swap double words in little endian mode.
44312 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44313 to be a container mode for 128-bit integer operations added in ISA
44314 2.07. Unlike TImode and PTImode, the preferred register set is
44315 the Altivec/VMX registers for the 128-bit operations.
44317 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44319 (rs6000_split_128bit_ok_p): Likewise.
44321 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44322 macros for creating ISA 2.07 normal and overloaded builtin
44323 functions with 3 arguments.
44324 (BU_P8V_OVERLOAD_3): Likewise.
44325 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44326 for use as overloaded functions.
44327 (VPERM_1TI_UNS): Likewise.
44328 (VSEL_1TI): Likewise.
44329 (VSEL_1TI_UNS): Likewise.
44330 (ST_INTERNAL_1ti): Likewise.
44331 (LD_INTERNAL_1ti): Likewise.
44332 (XXSEL_1TI): Likewise.
44333 (XXSEL_1TI_UNS): Likewise.
44334 (VPERM_1TI): Likewise.
44335 (VPERM_1TI_UNS): Likewise.
44336 (XXPERMDI_1TI): Likewise.
44337 (SET_1TI): Likewise.
44338 (LXVD2X_V1TI): Likewise.
44339 (STXVD2X_V1TI): Likewise.
44340 (VEC_INIT_V1TI): Likewise.
44341 (VEC_SET_V1TI): Likewise.
44342 (VEC_EXT_V1TI): Likewise.
44343 (EQV_V1TI): Likewise.
44344 (NAND_V1TI): Likewise.
44345 (ORC_V1TI): Likewise.
44346 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44347 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44348 overloaded builtin.
44349 (VADDUQM): Likewise.
44350 (VSUBCUQ): Likewise.
44351 (VADDEUQM): Likewise.
44352 (VADDECUQ): Likewise.
44353 (VSUBEUQM): Likewise.
44354 (VSUBECUQ): Likewise.
44356 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44357 __int128_t and __uint128_t types.
44358 (__uint128_type): Likewise.
44359 (altivec_categorize_keyword): Add support for vector __int128_t,
44360 vector __uint128_t, vector __int128, and vector unsigned __int128
44361 as a container type for TImode operations that need to be done in
44362 VSX/Altivec registers.
44363 (rs6000_macro_to_expand): Likewise.
44364 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44365 to support 128-bit integer instructions vaddcuq, vadduqm,
44366 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44367 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44369 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44370 for V1TImode, and set up preferences to use VSX/Altivec registers.
44371 Setup VSX reload handlers.
44372 (rs6000_debug_reg_global): Likewise.
44373 (rs6000_init_hard_regno_mode_ok): Likewise.
44374 (rs6000_preferred_simd_mode): Likewise.
44375 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44376 (easy_altivec_constant): Likewise.
44377 (output_vec_const_move): Likewise.
44378 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44380 (rs6000_expand_vector_extract): Likewise.
44381 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44383 (rs6000_const_vec): Add support for V1TImode.
44384 (rs6000_emit_le_vsx_load): Swap double words when loading or
44385 storing TImode/V1TImode.
44386 (rs6000_emit_le_vsx_store): Likewise.
44387 (rs6000_emit_le_vsx_move): Likewise.
44388 (rs6000_emit_move): Add support for V1TImode.
44389 (altivec_expand_ld_builtin): Likewise.
44390 (altivec_expand_st_builtin): Likewise.
44391 (altivec_expand_vec_init_builtin): Likewise.
44392 (altivec_expand_builtin): Likewise.
44393 (rs6000_init_builtins): Add support for V1TImode type. Add
44394 support for ISA 2.07 128-bit integer builtins. Define type names
44395 for the VSX/Altivec vector types.
44396 (altivec_init_builtins): Add support for overloaded vector
44397 functions with V1TImode type.
44398 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44399 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44401 (rs6000_split_128bit_ok_p): Likewise.
44402 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44403 __int128_t and vector __uint128_t.
44405 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44406 and mode attributes.
44408 (VSX_M2): Likewise.
44413 (VS_scalar): Likewise.
44414 (VS_double): Likewise.
44415 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44417 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44418 we support the ISA 2.07 128-bit integer arithmetic instructions.
44419 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44420 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44421 and TImode types for use with the builtin functions.
44422 (V1TI_type_node): Likewise.
44423 (unsigned_V1TI_type_node): Likewise.
44424 (intTI_type_internal_node): Likewise.
44425 (uintTI_type_internal_node): Likewise.
44427 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44428 128-bit builtin functions.
44429 (UNSPEC_VADDEUQM): Likewise.
44430 (UNSPEC_VADDECUQ): Likewise.
44431 (UNSPEC_VSUBCUQ): Likewise.
44432 (UNSPEC_VSUBEUQM): Likewise.
44433 (UNSPEC_VSUBECUQ): Likewise.
44434 (VM): Add V1TImode to vector mode iterators.
44436 (VI_unit): Likewise.
44437 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44438 (altivec_vaddcuq): Likewise.
44439 (altivec_vsubuqm): Likewise.
44440 (altivec_vsubcuq): Likewise.
44441 (altivec_vaddeuqm): Likewise.
44442 (altivec_vaddecuq): Likewise.
44443 (altivec_vsubeuqm): Likewise.
44444 (altivec_vsubecuq): Likewise.
44446 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44448 (BOOL_128): Likewise.
44449 (BOOL_REGS_OUTPUT): Likewise.
44450 (BOOL_REGS_OP1): Likewise.
44451 (BOOL_REGS_OP2): Likewise.
44452 (BOOL_REGS_UNARY): Likewise.
44453 (BOOL_REGS_AND_CR0): Likewise.
44455 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44456 128-bit integer builtin support.
44457 (vec_vadduqm): Likewise.
44458 (vec_vaddecuq): Likewise.
44459 (vec_vaddeuqm): Likewise.
44460 (vec_vsubecuq): Likewise.
44461 (vec_vsubeuqm): Likewise.
44462 (vec_vsubcuq): Likewise.
44463 (vec_vsubuqm): Likewise.
44465 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44466 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44467 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44468 128-bit integer add/subtract to ISA 2.07.
44470 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44472 * config/arc/arc.c (arc_predicate_delay_insns):
44473 Fix third argument passed to conditionalize_nonjump.
44475 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44477 * config/aarch64/aarch64-builtins.c
44478 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44479 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44480 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44481 instead of __builtin_lfloor.
44482 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44484 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44486 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44487 (tree_ssa_ifcombine_bb_1): New function.
44488 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44489 is an empty forwarder block to then_bb or vice versa and then_bb
44490 and else_bb are effectively swapped.
44492 2014-03-12 Christian Bruel <christian.bruel@st.com>
44495 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44496 REG_CFA_DEF_CFA note.
44497 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44498 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44500 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44502 PR tree-optimization/60454
44503 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44505 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44507 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44508 Do not define target_cpu_default2 to generic.
44509 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44510 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44511 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44513 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44514 Marc Glisse <marc.glisse@inria.fr>
44516 PR tree-optimization/60502
44517 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44518 instead of build_low_bits_mask.
44520 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44522 PR middle-end/60482
44523 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44524 if there are multiple uses, but op doesn't live on E edge.
44525 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44526 clobber stmts before __builtin_unreachable.
44528 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44530 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44531 hard_frame_pointer_rtx.
44532 * cse.c (cse_insn): Remove volatile check.
44533 * cselib.c (cselib_process_insn): Likewise.
44534 * dse.c (scan_insn): Likewise.
44536 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44538 * config/arc/arc.c (conditionalize_nonjump): New function,
44540 (arc_ifcvt): ... this.
44541 (arc_predicate_delay_insns): Use it.
44543 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44545 * config/arc/predicates.md (extend_operand): During/after reload,
44546 allow const_int_operand.
44547 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44548 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44549 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44551 (umulsi3_highpart_i): Likewise.
44553 2014-03-11 Richard Biener <rguenther@suse.de>
44555 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44556 Add asserts to guard possible wrong-code bugs.
44558 2014-03-11 Richard Biener <rguenther@suse.de>
44560 PR tree-optimization/60429
44561 PR tree-optimization/60485
44562 * tree-ssa-structalias.c (set_union_with_increment): Properly
44563 take into account all fields that overlap the shifted vars.
44564 (do_sd_constraint): Likewise.
44565 (do_ds_constraint): Likewise.
44566 (get_constraint_for_ptr_offset): Likewise.
44568 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44570 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44571 (nios2_compute_frame_layout):
44572 Add calculation of cfun->machine->fp_save_offset.
44573 (nios2_expand_prologue): Correct setting of frame pointer register
44575 (nios2_expand_epilogue): Update recovery of stack pointer from
44576 frame pointer accordingly.
44577 (nios2_initial_elimination_offset): Update calculation of offset
44578 for eliminating to HARD_FRAME_POINTER_REGNUM.
44580 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44583 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44584 cgraph_get_create_node on VAR_DECLs.
44586 2014-03-10 Richard Biener <rguenther@suse.de>
44588 PR middle-end/60474
44589 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44591 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44593 * config/vms/vms.opt (vms_float_format): New variable.
44595 2014-03-08 Tobias Burnus <burnus@net-b.de>
44597 * doc/invoke.texi (-fcilkplus): Update implementation status.
44599 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44600 Richard Biener <rguenther@suse.de>
44602 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44603 consistently accross all TUs.
44604 (run_gcc): Enable -fshort-double automatically at link at link-time
44605 and disallow override.
44607 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44610 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44611 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44612 if they can't be used.
44614 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44616 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44617 for Solaris 11/x86 ld.
44618 * configure: Regenerate.
44620 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44622 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44623 (LIB_TLS_SPEC): Save as ld_tls_libs.
44624 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44625 (HAVE_AS_IX86_TLSLDM): New test.
44626 * configure, config.in: Regenerate.
44627 * config/i386/i386.c (legitimize_tls_address): Fall back to
44628 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44629 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44630 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44631 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44633 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44635 * common.opt (fira-loop-pressure): Mark as optimization.
44637 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44639 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44640 an OpenMP mappable type.
44642 2014-03-06 Matthias Klose <doko@ubuntu.com>
44644 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44645 MULTILIB_OSDIRNAMES is not defined.
44647 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44648 Meador Inge <meadori@codesourcery.com>
44651 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44652 (arm_legitimize_address): Call legitimize_tls_address for any
44653 arm_tls_referenced_p expression, handle constant addend. Call it
44654 before testing for !TARGET_ARM.
44655 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44657 2014-03-06 Richard Biener <rguenther@suse.de>
44659 PR middle-end/60445
44663 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44665 * tree-streamer.c (record_common_node): Assert we don't record
44666 nodes with type double.
44667 (preload_common_node): Skip type double, complex double and double
44668 pointer since it is now frontend dependent due to fshort-double option.
44670 2014-03-06 Richard Biener <rguenther@suse.de>
44672 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44673 or -fno-lto is specified and the linker has full plugin support.
44674 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44675 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44676 * lto-wrapper.c (merge_and_complain): Merge compile-time
44677 optimization levels.
44678 (run_gcc): And pass it through to the link options.
44680 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44684 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44686 * cselib.c (remove_useless_values): Skip to avoid quadratic
44687 behavior if the condition moved from...
44688 (cselib_process_insn): ... here holds.
44690 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44693 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44694 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44697 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44698 (TM_H): Add x86-tune.def.
44700 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44702 * config/aarch64/aarch64.c (generic_tunings):
44703 Use cortexa57_extra_costs.
44705 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44708 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44709 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44710 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44713 2014-03-04 Heiher <r@hev.cc>
44715 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44716 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44718 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44720 * config/i386/predicates.md (const2356_operand): Change to ...
44721 (const2367_operand): ... this.
44722 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44724 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44725 (*avx512pf_scatterpf<mode>sf): Ditto.
44726 (avx512pf_scatterpf<mode>df): Ditto.
44727 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44728 (*avx512pf_scatterpf<mode>df): Ditto.
44729 * config/i386/i386.c (ix86_expand_builtin): Update
44730 incorrect hint operand error message.
44732 2014-03-04 Richard Biener <rguenther@suse.de>
44734 * lto-section-in.c (lto_get_section_data): Fix const cast.
44736 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44738 * tree-streamer.c (record_common_node): Assert we don't record
44739 nodes with type double.
44740 (preload_common_node): Skip type double, complex double and double
44741 pointer since it is now frontend dependent due to fshort-double option.
44743 2014-03-04 Richard Biener <rguenther@suse.de>
44746 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44747 (lto_input_toplevel_asms): Likewise.
44748 * lto-section-in.c (lto_get_section_data): Instead do it here
44751 2014-03-04 Richard Biener <rguenther@suse.de>
44753 PR tree-optimization/60382
44754 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44755 dead PHIs a reduction.
44757 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44759 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44761 (_mm_prefetch): Move out of GCC target("sse") pragma.
44762 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44763 GCC target("prfchw") pragma.
44764 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44766 * config/i386/i386.c (ix86_option_override_internal): Enable
44767 -mprfchw with -mprefetchwt1.
44769 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44771 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44774 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44776 * opts.h (CL_PCH_IGNORE): Define.
44777 * targhooks.c (option_affects_pch_p):
44778 Return false for options that have CL_PCH_IGNORE set.
44779 * opt-functions.awk: Process PchIgnore.
44780 * doc/options.texi: Document PchIgnore.
44782 * config/arc/arc.opt (misize): Add PchIgnore property.
44784 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44786 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44787 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44788 constraint on constants to permit them being loaded into
44789 GENERAL_REGS or BASE_REGS.
44791 2014-03-03 Nick Clifton <nickc@redhat.com>
44793 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44794 anti-cacnonical alternatives.
44795 (negandhi3_real): New pattern.
44796 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44798 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44800 * config/avr/avr-mcus.def: Remove atxmega16x1.
44801 * config/avr/avr-tables.opt: Regenerate.
44802 * config/avr/t-multilib: Regenerate.
44803 * doc/avr-mmcu.texi: Regenerate.
44805 2014-03-03 Tobias Grosser <tobias@grosser.es>
44806 Mircea Namolaru <mircea.namolaru@inria.fr>
44808 PR tree-optimization/58028
44809 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44812 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44814 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44815 not handled by recognizers.
44817 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44819 PR middle-end/60175
44820 * function.c (expand_function_end): Don't emit
44821 clobber_return_register sequence if clobber_after is a BARRIER.
44822 * cfgexpand.c (construct_exit_block): Append instructions before
44823 return_label to prev_bb.
44825 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44827 * config/rs6000/constraints.md: Document reserved use of "wc".
44829 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44832 * ipa.c (function_and_variable_visibility): When dissolving comdat
44833 group, also set all symbols to local.
44835 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44840 2013-12-14 Jan Hubicka <jh@suse.cz>
44841 PR middle-end/58477
44842 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44844 2014-03-02 Jon Beniston <jon@beniston.com>
44850 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44851 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44852 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44853 (simple_return, *simple_return): New patterns
44854 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44855 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44857 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44859 * dwarf2out.c (gen_subprogram_die): Tidy.
44861 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44864 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44865 (*mov_t_msb_neg_negc): ... this new insn.
44867 2014-02-28 Jason Merrill <jason@redhat.com>
44870 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44873 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44876 * dwarf2out.c (decltype_auto_die): New static.
44877 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44878 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44879 (is_cxx_auto): Likewise.
44881 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44883 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44884 we are not using general regs only.
44886 2014-02-28 Richard Biener <rguenther@suse.de>
44889 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44890 previous fix and only allow to remove trivial pre-headers
44891 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44892 (remove_forwarder_block): Properly update the latch of a loop.
44894 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44897 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44898 (cselib_preserved_hash_table): New.
44899 (preserve_constants_and_equivs): Move preserved vals to it.
44900 (cselib_find_slot): Look it up first.
44901 (cselib_init): Initialize it.
44902 (cselib_finish): Release it.
44903 (dump_cselib_table): Dump it.
44905 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44908 * cselib.c (remove_useless_values): Skip to avoid quadratic
44909 behavior if the condition moved from...
44910 (cselib_process_insn): ... here holds.
44912 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44915 * var-tracking.c (vt_initialize): Apply the same condition to
44916 preserve the CFA base value.
44918 2014-02-28 Joey Ye <joey.ye@arm.com>
44921 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44922 if reload in progress or completed.
44924 2014-02-28 Tobias Burnus <burnus@net-b.de>
44926 PR middle-end/60147
44927 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44930 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44932 * doc/tm.texi.in (Condition Code Status): Update documention for
44933 relative locations of cc0-setter and cc0-user.
44935 2014-02-27 Jeff Law <law@redhat.com>
44937 PR rtl-optimization/52714
44938 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44939 into two independent simple sets, if I3 is a jump, ensure the
44940 pattern we place into I3 is a (set (pc) ...).
44942 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44943 Jeff Law <law@redhat.com>
44945 PR rtl-optimization/49847
44946 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44947 are in different blocks.
44948 * doc/tm.texi (Condition Code Status): Update documention for
44949 relative locations of cc0-setter and cc0-user.
44951 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44954 * lra.c (lra_emit_add): Check SUBREG too.
44956 2014-02-27 Andreas Schwab <schwab@suse.de>
44958 * config/m68k/m68k.c (m68k_option_override): Disable
44959 -flive-range-shrinkage for classic m68k.
44960 (m68k_override_options_after_change): Likewise.
44962 2014-02-27 Marek Polacek <polacek@redhat.com>
44964 PR middle-end/59223
44965 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44966 -Wmaybe-uninitialized.
44968 2014-02-27 Alan Modra <amodra@gmail.com>
44971 * reload1.c (emit_input_reload_insns): When reload_override_in,
44972 set old to rl->in_reg when rl->in_reg is a subreg.
44974 2014-02-26 Richard Biener <rguenther@suse.de>
44977 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44979 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44981 * common/config/i386/predicates.md (const1256_operand): Remove.
44982 (const2356_operand): New.
44983 (const_1_to_2_operand): Remove.
44984 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44985 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44986 (*avx512pf_gatherpf<mode>sf): Ditto.
44987 (avx512pf_gatherpf<mode>df): Ditto.
44988 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44989 (*avx512pf_gatherpf<mode>df): Ditto.
44990 (avx512pf_scatterpf<mode>sf): Ditto.
44991 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44992 (*avx512pf_scatterpf<mode>sf): Ditto.
44993 (avx512pf_scatterpf<mode>df): Ditto.
44994 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44995 (*avx512pf_scatterpf<mode>df): Ditto.
44996 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44998 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
45000 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
45001 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
45002 (_mm512_mask_testn_epi64_mask): Move to ...
45003 * config/i386/avx512cdintrin.h: Here.
45004 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
45005 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
45006 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
45007 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
45008 TARGET_AVX512F from TARGET_AVX512CD.
45010 2014-02-26 Richard Biener <rguenther@suse.de>
45013 * ipa.c (walk_polymorphic_call_targets): Properly guard
45014 call to inline_update_overall_summary.
45016 2014-02-26 Bin Cheng <bin.cheng@arm.com>
45019 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
45020 and latches only if requested. Fix latch if it is removed.
45021 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
45022 LOOPS_HAVE_PREHEADERS.
45024 2014-02-25 Andrew Pinski <apinski@cavium.com>
45026 * builtins.c (expand_builtin_thread_pointer): Create a new target
45027 when the target is NULL.
45029 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
45031 PR rtl-optimization/60317
45032 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
45033 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
45034 * lra-assigns.c: Include params.h.
45035 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
45036 other reload pseudos considerations.
45038 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45040 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
45041 to use canonical form for nor<mode>3.
45043 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45046 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
45049 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
45051 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
45052 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
45053 (ix86_handle_option): Handle OPT_mprefetchwt1.
45054 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
45055 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
45057 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
45058 OPTION_MASK_ISA_PREFETCHWT1.
45059 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
45060 (PTA_PREFETCHWT1): New.
45061 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
45062 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
45063 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
45064 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
45065 (*prefetch_avx512pf_<mode>_: Change into ...
45066 (*prefetch_prefetchwt1_<mode>: This.
45067 * config/i386/i386.opt (mprefetchwt1): New.
45068 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
45069 (_mm_prefetch): Handle intent to write.
45070 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
45072 2014-02-25 Richard Biener <rguenther@suse.de>
45074 PR middle-end/60291
45075 * emit-rtl.c (mem_attrs_htab): Remove.
45076 (mem_attrs_htab_hash): Likewise.
45077 (mem_attrs_htab_eq): Likewise.
45078 (set_mem_attrs): Always allocate new mem-attrs when something changed.
45079 (init_emit_once): Do not allocate mem_attrs_htab.
45081 2014-02-25 Richard Biener <rguenther@suse.de>
45084 * lto-opts.c (lto_write_options): Output non-explicit conservative
45085 -fwrapv, -fno-trapv and -fno-strict-overflow.
45086 * lto-wrapper.c (merge_and_complain): Handle merging those options.
45087 (run_gcc): And pass them through.
45089 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
45091 * sel-sched.c (calculate_new_fences): New parameter ptime.
45092 Calculate it as a maximum over all fence cycles.
45093 (sel_sched_region_2): Adjust the call to calculate_new_fences.
45094 Print the final schedule timing when sched_verbose.
45096 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
45098 PR rtl-optimization/60292
45099 * sel-sched.c (fill_vec_av_set): Do not reset target availability
45100 bit fot the fence instruction.
45102 2014-02-24 Alangi Derick <alangiderick@gmail.com>
45104 * calls.h: Fix typo in comment.
45106 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
45108 * config/pa/pa.c (pa_output_move_double): Don't valididate when
45109 adjusting offsetable addresses.
45111 2014-02-24 Guozhi Wei <carrot@google.com>
45113 * sparseset.h (sparseset_pop): Fix the wrong index.
45115 2014-02-24 Walter Lee <walt@tilera.com>
45117 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
45118 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
45120 * common/config/tilegx/tilegx-common.c
45121 (TARGET_DEFAULT_TARGET_FLAGS): Define.
45122 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
45123 (LINK_SPEC): Ditto.
45124 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
45125 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
45126 (tilegx_gimplify_va_arg_expr): Handle big endian.
45127 (tilegx_expand_unaligned_load): Ditto.
45128 (tilegx_expand_unaligned_store): Ditto.
45129 (TARGET_RETURN_IN_MSB): New.
45130 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
45131 (TARGET_ENDIAN_DEFAULT): New.
45132 (TARGET_BIG_ENDIAN): Handle big endian.
45133 (BYTES_BIG_ENDIAN): Ditto.
45134 (WORDS_BIG_ENDIAN): Ditto.
45135 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
45136 (ENDIAN_SPEC): New.
45137 (EXTRA_SPECS): New.
45138 * config/tilegx/tilegx.md (extv): Handle big endian.
45140 (insn_st<n>): Ditto.
45141 (insn_st<n>_add<bitsuffix>): Ditto.
45142 (insn_stnt<n>): Ditto.
45143 (insn_stnt<n>_add<bitsuffix>):Ditto.
45144 (vec_interleave_highv8qi): Handle big endian.
45145 (vec_interleave_highv8qi_be): New.
45146 (vec_interleave_highv8qi_le): New.
45147 (insn_v1int_h): Handle big endian.
45148 (vec_interleave_lowv8qi): Handle big endian.
45149 (vec_interleave_lowv8qi_be): New.
45150 (vec_interleave_lowv8qi_le): New.
45151 (insn_v1int_l): Handle big endian.
45152 (vec_interleave_highv4hi): Handle big endian.
45153 (vec_interleave_highv4hi_be): New.
45154 (vec_interleave_highv4hi_le): New.
45155 (insn_v2int_h): Handle big endian.
45156 (vec_interleave_lowv4hi): Handle big endian.
45157 (vec_interleave_lowv4hi_be): New.
45158 (vec_interleave_lowv4hi_le): New.
45159 (insn_v2int_l): Handle big endian.
45160 (vec_interleave_highv2si): Handle big endian.
45161 (vec_interleave_highv2si_be): New.
45162 (vec_interleave_highv2si_le): New.
45163 (insn_v4int_h): Handle big endian.
45164 (vec_interleave_lowv2si): Handle big endian.
45165 (vec_interleave_lowv2si_be): New.
45166 (vec_interleave_lowv2si_le): New.
45167 (insn_v4int_l): Handle big endian.
45168 * config/tilegx/tilegx.opt (mbig-endian): New option.
45169 (mlittle-endian): New option.
45170 * doc/install.texi: Document tilegxbe-linux.
45171 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
45173 2014-02-24 Martin Jambor <mjambor@suse.cz>
45176 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
45177 there are no parameter descriptors.
45179 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
45181 PR rtl-optimization/60268
45182 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
45183 initialization to ...
45184 (sched_rgn_init): ... here.
45185 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
45187 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45189 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
45192 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
45194 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
45197 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45199 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
45200 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
45202 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45204 * config/microblaze/predicates.md: Add cmp_op predicate.
45205 * config/microblaze/microblaze.md: Add branch_compare instruction
45206 which uses cmp_op predicate and emits cmp insn before branch.
45207 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
45208 to microblaze_expand_conditional_branch and consolidate logic.
45209 (microblaze_expand_conditional_branch): emit branch_compare
45210 insn instead of handling cmp op separate from branch insn.
45212 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45214 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
45217 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45219 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
45220 define_insn with define_expand and new define_insn
45221 *altivec_lve<VI_char>x_internal.
45222 (altivec_stve<VI_char>x): Replace define_insn with define_expand
45223 and new define_insn *altivec_stve<VI_char>x_internal.
45224 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
45226 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
45228 (altivec_expand_stvex_be): New function.
45230 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
45232 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
45233 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
45234 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
45235 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
45237 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
45240 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
45241 instead of emit_move_insn.
45243 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45245 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
45246 vspltw with vsldoi.
45247 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
45248 gen_altivec_vsumsws.
45250 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45252 * config/rs6000/altivec.md (altivec_lvxl): Rename as
45253 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
45254 (altivec_lvxl_<mode>): New define_expand incorporating
45255 -maltivec=be semantics where needed.
45256 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
45257 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
45258 semantics where needed.
45259 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
45260 (altivec_stvx_<mode>): New define_expand incorporating
45261 -maltivec=be semantics where needed.
45262 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
45263 VM2 iterator instead of V4SI.
45264 (altivec_stvxl_<mode>): New define_expand incorporating
45265 -maltivec=be semantics where needed.
45266 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
45267 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
45268 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
45269 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
45270 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
45271 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
45272 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
45273 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
45274 ALTIVEC_BUILTIN_STVXL.
45275 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
45276 (altivec_expand_stvx_be): Likewise.
45277 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
45278 (altivec_expand_lvx_be): Likewise.
45279 (altivec_expand_stvx_be): Likewise.
45280 (altivec_expand_builtin): Add cases for
45281 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
45282 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
45283 (altivec_init_builtins): Add definitions for
45284 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
45285 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
45287 2014-02-21 Catherine Moore <clm@codesourcery.com>
45289 * doc/invoke.texi (mvirt, mno-virt): Document.
45290 * config/mips/mips.opt (mvirt): New option.
45291 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
45293 2014-02-21 Richard Biener <rguenther@suse.de>
45295 PR tree-optimization/60276
45296 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
45297 (STMT_VINFO_MIN_NEG_DIST): New macro.
45298 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
45299 STMT_VINFO_MIN_NEG_DIST.
45300 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45301 made for negative dependence distances still hold.
45303 2014-02-21 Richard Biener <rguenther@suse.de>
45305 PR middle-end/60291
45306 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45307 DECL_INITIAL for globals not in the current function context.
45309 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45311 PR tree-optimization/56490
45312 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45313 * tree-ssa-uninit.c: Include params.h.
45314 (compute_control_dep_chain): Add num_calls argument, return false
45315 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45316 num_calls to recursive call.
45317 (find_predicates): Change dep_chain into normal array,
45318 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45319 variable and adjust compute_control_dep_chain caller.
45320 (find_def_preds): Likewise.
45322 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45324 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45325 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45327 2014-02-21 Nick Clifton <nickc@redhat.com>
45329 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45330 (pushhi1): Likewise.
45331 (popqi1): Add mode to pre_dec.
45332 (pophi1): Likewise.
45334 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45336 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45337 mode for mask of V8SFmode permutation.
45339 2014-02-20 Richard Henderson <rth@redhat.com>
45342 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45343 a new pseudo for OLDVAL.
45345 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45348 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45349 gen_reg_rtx if d->testing_p.
45350 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45351 if d->testing_p and we will certainly return true.
45352 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45355 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45357 * emit-rtl.c (gen_reg_rtx): Assert that
45358 crtl->emit.regno_pointer_align_length is non-zero.
45360 2014-02-20 Richard Henderson <rth@redhat.com>
45363 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45364 on failure the store back into EXPECT.
45366 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45367 Sandra Loosemore <sandra@codesourcery.com>
45369 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45370 * config/nios2/nios2.c (nios2_function_profiler): Add
45371 -fPIC (flag_pic == 2) support.
45372 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45373 (nios2_large_offset_p): New function.
45374 (nios2_unspec_reloc_p): Move up position, update to use
45375 nios2_large_offset_p.
45376 (nios2_unspec_address): Remove function.
45377 (nios2_unspec_offset): New function.
45378 (nios2_large_got_address): New function.
45379 (nios2_got_address): Add large offset support.
45380 (nios2_legitimize_tls_address): Update usage of removed and new
45382 (nios2_symbol_binds_local_p): New function.
45383 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45384 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45385 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45386 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45387 processing for (const (unspec ...)).
45388 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45390 2014-02-20 Richard Biener <rguenther@suse.de>
45392 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45393 doing the substitution.
45394 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45396 2014-02-20 Martin Jambor <mjambor@suse.cz>
45399 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45400 info when checking whether lattices are bottom.
45402 2014-02-20 Richard Biener <rguenther@suse.de>
45404 PR middle-end/60221
45405 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45408 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45411 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45412 parameter specifying the scaling.
45413 (inline_call): Update.
45414 (want_inline_recursively): Guard division by zero.
45415 (recursive_inlining): Update.
45416 * ipa-inline.h (clone_inlined_nodes): Update.
45418 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45421 * config/i386/i386.c (classify_argument): Pass structures of size
45422 64 bytes or less in register.
45424 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45425 Kirill Yukhin <kirill.yukhin@intel.com>
45427 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45428 (_mm_rcp28_round_ss): Ditto.
45429 (_mm_rsqrt28_round_sd): Ditto.
45430 (_mm_rsqrt28_round_ss): Ditto.
45431 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45432 (_mm_rcp14_round_ss): Ditto.
45433 (_mm_rsqrt14_round_sd): Ditto.
45434 (_mm_rsqrt14_round_ss): Ditto.
45435 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45436 the first input operand, get rid of match_dup.
45437 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45439 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45441 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45442 operand as the first input operand, set type attribute.
45443 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45444 Set type attribute.
45445 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45446 operand as the first input operand, set type attribute.
45448 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45450 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45453 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45456 * config/i386/i386.c (construct_container): Remove TFmode check
45457 for X86_64_INTEGER_CLASS.
45459 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45462 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45463 only when -Wpsabi is enabled.
45465 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45468 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45469 passing arrays in registers are the same as for structs, so remove the
45470 special case for them.
45472 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45474 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45475 destination type, extract only the valid bits if the source type is not
45476 integral and has a different mode.
45478 2014-02-19 Richard Biener <rguenther@suse.de>
45481 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45484 2014-02-19 Richard Biener <rguenther@suse.de>
45487 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45488 (ipa_modify_call_arguments): Emit an argument load explicitely and
45489 preserve virtual SSA form there and for the replacement call.
45490 Do not update SSA form nor free dominance info.
45492 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45494 * ipa.c (function_and_variable_visibility): Also clear WEAK
45495 flag when disolving COMDAT_GROUP.
45497 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45499 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45500 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45501 not devirtualizing.
45502 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45503 do more sanity checks.
45504 (detect_type_change): Return true when giving up early.
45505 (compute_complex_assign_jump_func): Fix type parameter of
45506 ipa_set_ancestor_jf.
45507 (compute_complex_ancestor_jump_func): Likewise.
45508 (update_jump_functions_after_inlining): Fix updating of
45510 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45512 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45514 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45515 inline clones when edge disappears.
45517 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45520 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45521 Split 64-bit moves into 2 patterns. Do not allow the use of
45522 direct move for TDmode in little endian, since the decimal value
45523 has little endian bytes within a word, but the 64-bit pieces are
45524 ordered in a big endian fashion, and normal subreg's of TDmode are
45526 (mov<mode>_64bit_dm): Likewise.
45527 (movtd_64bit_nodm): Likewise.
45529 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45531 PR tree-optimization/60174
45532 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45533 statement of an SSA_NAME that occurs in an abnormal PHI node.
45535 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45538 * final.c (SEEN_BB): Remove.
45539 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45540 (final_scan_insn): Don't force_source_line on second
45541 NOTE_INSN_BASIC_BLOCK.
45543 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45546 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45547 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45548 (type_natural_mode): Warn ABI change when %zmm register is not
45549 available for AVX512F vector value passing.
45551 2014-02-18 Kai Tietz <ktietz@redhat.com>
45554 * config/i386/i386.c (ix86_expand_prologue): Use value in
45555 rax register as displacement when restoring %r10 or %rax.
45556 Fix wrong offset when restoring both registers.
45558 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45560 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45561 assertion with conditional return.
45563 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45564 Uros Bizjak <ubizjak@gmail.com>
45567 * config/i386/driver-i386.c (host_detect_local_cpu): If
45568 YMM state is not saved by the OS, also clear has_f16c. Move
45569 CPUID 0x80000001 handling before YMM state saving checking.
45571 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45573 PR rtl-optimization/58960
45574 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45575 factored out from ...
45576 (sched_init): ... here.
45577 (free_global_sched_pressure_data): New, factored out from ...
45578 (sched_finish): ... here.
45579 * sched-int.h (free_global_sched_pressure_data): Declare.
45580 * sched-rgn.c (nr_regions_initial): New static global.
45581 (haifa_find_rgns): Initialize it.
45582 (schedule_region): Disable sched-pressure for the newly
45585 2014-02-17 Richard Biener <rguenther@suse.de>
45587 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45588 release SSA defs of pattern stmts.
45590 2014-02-17 Richard Biener <rguenther@suse.de>
45592 * tree-inline.c (expand_call_inline): Release the virtual
45593 operand defined by the call we are about to inline.
45595 2014-02-17 Richard Biener <rguenther@suse.de>
45597 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45599 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45600 Ilya Tocar <ilya.tocar@intel.com>
45602 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45603 arguments order in builtin.
45604 (_mm512_permutexvar_epi64): Ditto.
45605 (_mm512_mask_permutexvar_epi64): Ditto
45606 (_mm512_maskz_permutexvar_epi32): Ditto
45607 (_mm512_permutexvar_epi32): Ditto
45608 (_mm512_mask_permutexvar_epi32): Ditto
45610 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45612 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45613 (p8_vmrgow): Likewise.
45615 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45617 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45620 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45623 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45624 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45625 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45626 using direct move instructions on ISA 2.07. Also adjust
45627 instruction length for 64-bit.
45628 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45629 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45631 2014-02-15 Alan Modra <amodra@gmail.com>
45635 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45636 find_replacement on parts of insn rtl that might be reloaded.
45638 2014-02-15 Richard Biener <rguenther@suse.de>
45640 PR tree-optimization/60183
45641 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45642 (tree_ssa_phiprop): Calculate and free post-dominators.
45644 2014-02-14 Jeff Law <law@redhat.com>
45646 PR rtl-optimization/60131
45647 * ree.c (get_extended_src_reg): New function.
45648 (combine_reaching_defs): Use it rather than assuming location of REG.
45649 (find_and_remove_re): Verify first operand of extension is
45650 a REG before adding the insns to the copy list.
45652 2014-02-14 Roland McGrath <mcgrathr@google.com>
45654 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45655 * configure: Regenerated.
45656 * config.in: Regenerated.
45657 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45658 instead of ASM_SHORT.
45660 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45661 Richard Earnshaw <rearnsha@arm.com>
45663 PR rtl-optimization/59535
45664 * lra-constraints.c (process_alt_operands): Encourage alternative
45665 when unassigned pseudo class is superset of the alternative class.
45666 (inherit_reload_reg): Don't inherit when optimizing for code size.
45667 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45668 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45669 modes not less than 4 for Thumb1.
45671 2014-02-14 Kyle McMartin <kyle@redhat.com>
45674 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45676 2014-02-14 Richard Biener <rguenther@suse.de>
45678 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45679 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45680 Do not strip INDIRECT_REFs.
45682 2014-02-14 Richard Biener <rguenther@suse.de>
45685 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45686 DECL_FUNCTION_SPECIFIC_TARGET.
45687 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45688 * tree-streamer-out.c (pack_ts_target_option): Remove.
45689 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45690 (write_ts_function_decl_tree_pointers): Do not stream
45691 DECL_FUNCTION_SPECIFIC_TARGET.
45692 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45693 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45694 (lto_input_ts_function_decl_tree_pointers): Do not stream
45695 DECL_FUNCTION_SPECIFIC_TARGET.
45697 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45699 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45700 (get_initial_def_for_induction, vectorizable_induction): Ignore
45701 debug stmts when looking for exit_phi.
45702 (vectorizable_live_operation): Fix up condition.
45704 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45706 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45707 nreverse() because it changes the content of original tree list.
45709 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45711 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45712 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45714 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45716 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45717 GNU coding standards.
45719 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45722 * dwarf2out.c (gen_subprogram_die): Don't call
45723 add_calling_convention_attribute if subr_die is old_die.
45725 2014-02-13 Sharad Singhai <singhai@google.com>
45727 * doc/optinfo.texi: Fix order of nodes.
45729 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45731 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45732 operands[2], not operands[3].
45734 2014-02-13 Richard Biener <rguenther@suse.de>
45737 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45738 mention the possibility of an in-tree build.
45739 (CLooG): Update recommended version to 0.18.1, mention the
45740 possibility of an in-tree build and clarify that the ISL
45741 bundled with CLooG does not work.
45743 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45746 * expr.c (compress_float_constant): If x is a hard register,
45747 extend into a pseudo and then move to x.
45749 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45751 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45752 caused by bad second argument to warning_at() with -mhotpatch and
45753 nested functions (e.g. with gfortran).
45755 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45757 * opts.c (option_name): Remove "enabled by default" rider.
45759 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45761 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45763 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45764 Uros Bizjak <ubizjak@gmail.com>
45767 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45768 * configure: Regenerated.
45770 2014-02-12 Richard Biener <rguenther@suse.de>
45772 * vec.c (vec_prefix::calculate_allocation): Move as
45773 inline variant to vec.h.
45774 (vec_prefix::calculate_allocation_1): New out-of-line version.
45775 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45776 (vec_prefix::m_has_auto_buf): Rename to ...
45777 (vec_prefix::m_using_auto_storage): ... this.
45778 (vec_prefix::calculate_allocation): Inline the easy cases
45779 and dispatch to calculate_allocation_1 which doesn't need the
45781 (va_heap::reserve): Use gcc_checking_assert.
45782 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45783 m_using_auto_storage.
45784 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45786 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45787 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45788 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45790 2014-02-12 Richard Biener <rguenther@suse.de>
45792 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45793 when we found a dependence.
45795 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45797 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45799 (maybe_fold_stmt): ... into this new function.
45800 * omp-low.c (lower_omp): Update comment.
45802 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45805 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45808 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45810 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45811 identifiers in comments.
45812 (cortexa53_extra_costs): Likewise.
45813 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45814 (cortexa7_extra_costs): Likewise.
45815 (cortexa12_extra_costs): Likewise.
45816 (cortexa15_extra_costs): Likewise.
45817 (v7m_extra_costs): Likewise.
45819 2014-02-12 Richard Biener <rguenther@suse.de>
45821 PR middle-end/60092
45822 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45823 of posix_memalign being successful.
45824 (lower_stmt): Restrict lowering of posix_memalign to when
45825 -ftree-bit-ccp is enabled.
45827 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45829 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45831 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45833 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45835 PR rtl-optimization/60116
45836 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45837 other_insn once the combination has been validated.
45839 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45842 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45844 * ipa-devirt.c: Include demangle.h
45845 (odr_violation_reported): New static variable.
45846 (add_type_duplicate): Update odr_violations.
45847 (maybe_record_node): Add completep parameter; update it.
45848 (record_target_from_binfo): Add COMPLETEP parameter;
45849 update it as needed.
45850 (possible_polymorphic_call_targets_1): Likewise.
45851 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45852 rename FINAL to COMPLETE.
45853 (record_targets_from_bases): Sanity check we found the binfo;
45854 fix COMPLETEP updating.
45855 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45856 parameter, fix computing of COMPLETEP.
45857 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45858 at LTO time do demangling.
45859 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45860 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45862 (gimple_get_virt_method_for_binfo): Likewise.
45863 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45864 gimple_get_virt_method_for_vtable): Update prototypes.
45866 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45869 * genautomata.c (add_presence_absence): Fix typo with
45870 {final_}presence_list.
45872 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45875 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45876 for VSX/Altivec vectors that land in GPR registers.
45878 2014-02-11 Richard Henderson <rth@redhat.com>
45879 Jakub Jelinek <jakub@redhat.com>
45882 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45883 around drhs if type conversion to lacc->type is not useless.
45885 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45887 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45889 (cortex-a57.cortex-a53): Likewise.
45890 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45892 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45894 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45897 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45899 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45900 add_options_for_arm_vfp3.
45902 2014-02-11 Jeff Law <law@redhat.com>
45904 PR middle-end/54041
45905 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45906 object with an undesirable mode.
45908 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45911 * config/i386/sol2-9.h: New file.
45912 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45913 *-*-solaris2.9*): Use it.
45915 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45917 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45918 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45920 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45922 * config/microblaze/microblaze.c: Extend mcpu version format
45924 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45926 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45928 2014-02-10 Richard Henderson <rth@redhat.com>
45931 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45932 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45933 ms-abi vs -mno-accumulate-outgoing-args.
45934 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45935 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45938 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45940 PR middle-end/60080
45941 * cfgexpand.c (expand_asm_operands): Attach source location to
45942 ASM_INPUT rtx objects.
45943 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45945 2014-02-10 Nick Clifton <nickc@redhat.com>
45947 * config/mn10300/mn10300.c (popcount): New function.
45948 (mn10300_expand_prologue): Include saved registers in stack usage
45951 2014-02-10 Jeff Law <law@redhat.com>
45953 PR middle-end/52306
45954 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45955 when changing the SET_DEST of a prior insn to avoid an input reload.
45957 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45959 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45960 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45961 -mcall-openbsd, or -mcall-linux.
45962 (CC1_ENDIAN_BIG_SPEC): Remove.
45963 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45964 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45965 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45966 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45967 and %cc1_endian_default.
45968 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45970 2014-02-10 Richard Biener <rguenther@suse.de>
45972 PR tree-optimization/60115
45973 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45974 MEM_REF handling. Properly verify that the accesses are not
45975 out of the objects bound.
45977 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45979 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45982 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45984 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45985 proper constants and fix formatting.
45986 (possible_polymorphic_call_targets): Fix formatting.
45988 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45989 Ilya Tocar <ilya.tocar@intel.com>
45991 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45992 (_mm512_loadu_epi32): Renamed into...
45993 (_mm512_loadu_si512): This.
45994 (_mm512_storeu_epi32): Renamed into...
45995 (_mm512_storeu_si512): This.
45996 (_mm512_maskz_ceil_ps): Removed.
45997 (_mm512_maskz_ceil_pd): Ditto.
45998 (_mm512_maskz_floor_ps): Ditto.
45999 (_mm512_maskz_floor_pd): Ditto.
46000 (_mm512_floor_round_ps): Ditto.
46001 (_mm512_floor_round_pd): Ditto.
46002 (_mm512_ceil_round_ps): Ditto.
46003 (_mm512_ceil_round_pd): Ditto.
46004 (_mm512_mask_floor_round_ps): Ditto.
46005 (_mm512_mask_floor_round_pd): Ditto.
46006 (_mm512_mask_ceil_round_ps): Ditto.
46007 (_mm512_mask_ceil_round_pd): Ditto.
46008 (_mm512_maskz_floor_round_ps): Ditto.
46009 (_mm512_maskz_floor_round_pd): Ditto.
46010 (_mm512_maskz_ceil_round_ps): Ditto.
46011 (_mm512_maskz_ceil_round_pd): Ditto.
46012 (_mm512_expand_pd): Ditto.
46013 (_mm512_expand_ps): Ditto.
46014 * config/i386/i386.c (ix86_builtins): Remove
46015 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
46016 (bdesc_args): Ditto.
46017 * config/i386/predicates.md (const1256_operand): New.
46018 (const_1_to_2_operand): Ditto.
46019 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
46020 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46021 (*avx512pf_gatherpf<mode>sf): Ditto.
46022 (avx512pf_gatherpf<mode>df): Ditto.
46023 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46024 (*avx512pf_gatherpf<mode>df): Ditto.
46025 (avx512pf_scatterpf<mode>sf): Ditto.
46026 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46027 (*avx512pf_scatterpf<mode>sf): Ditto.
46028 (avx512pf_scatterpf<mode>df): Ditto.
46029 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46030 (*avx512pf_scatterpf<mode>df): Ditto.
46031 (avx512f_expand<mode>): Removed.
46032 (<shift_insn><mode>3<mask_name>): Change predicate type.
46034 2014-02-08 Jakub Jelinek <jakub@redhat.com>
46036 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
46037 not at the end of datarefs vector use ordered_remove to avoid
46038 reordering datarefs vector.
46041 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
46042 mark local addressable non-static vars as GOVD_PRIVATE
46043 instead of GOVD_LOCAL.
46044 * omp-low.c (lower_omp_for): Move gimple_bind_vars
46045 and BLOCK_VARS of gimple_bind_block to new_stmt rather
46048 PR middle-end/60092
46049 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
46050 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
46051 assume_aligned or alloc_align attributes.
46052 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
46053 arguments. Handle also assume_aligned and alloc_align attributes.
46054 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
46055 calls to functions with assume_aligned or alloc_align attributes.
46056 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
46058 2014-02-08 Terry Guo <terry.guo@arm.com>
46060 * doc/invoke.texi: Document ARM -march=armv7e-m.
46062 2014-02-08 Jakub Jelinek <jakub@redhat.com>
46064 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
46065 flag on __cilkrts_rethrow builtin.
46068 * ipa-cp.c (determine_versionability): Fail at -O0
46069 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
46070 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
46073 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46076 * tree-inline.c (copy_forbidden): Fail for
46077 __attribute__((optimize (0))) functions.
46079 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
46081 * varpool.c: Include pointer-set.h.
46082 (varpool_remove_unreferenced_decls): Variables in other partitions
46083 will not be output; be however careful to not lose information
46084 about partitioning.
46086 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
46088 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
46089 lookup in the vtable constructor.
46091 2014-02-07 Jeff Law <law@redhat.com>
46094 * config/m68k/m68k.md (ashldi_extsi): Turn into a
46095 define_insn_and_split.
46097 * ipa-inline.c (inline_small_functions): Fix typos.
46099 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
46101 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
46102 (s390_can_use_return_insn): Declare.
46103 * config/s390/s390.h (EPILOGUE_USES): Define.
46104 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
46106 (s390_chunkify_start): Handle return JUMP_LABELs.
46107 (s390_early_mach): Emit a main_pool instruction on the entry edge.
46108 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
46109 (s390_can_use_return_insn): New functions.
46110 (s390_fix_long_loop_prediction): Handle conditional returns.
46111 (TARGET_SET_UP_BY_PROLOGUE): Define.
46112 * config/s390/s390.md (ANY_RETURN): New code iterator.
46113 (*creturn, *csimple_return, return, simple_return): New patterns.
46115 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
46117 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
46118 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
46119 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
46120 REG_CFA_RESTORE list when deciding not to restore a register.
46122 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
46124 * config/s390/s390.c: Include tree-pass.h and context.h.
46125 (s390_early_mach): New function, split out from...
46126 (s390_emit_prologue): ...here.
46127 (pass_data_s390_early_mach): New pass structure.
46128 (pass_s390_early_mach): New class.
46129 (s390_option_override): Create and register early_mach pass.
46130 Move to end of file.
46132 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
46134 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
46135 to match for the exit block.
46137 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
46139 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
46140 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
46141 Reject misaligned operands.
46143 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
46145 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
46147 2014-02-07 Richard Biener <rguenther@suse.de>
46149 PR middle-end/60092
46150 * gimple-low.c (lower_builtin_posix_memalign): New function.
46151 (lower_stmt): Call it to lower posix_memalign in a way
46152 to make alignment info accessible.
46154 2014-02-07 Jakub Jelinek <jakub@redhat.com>
46157 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
46158 __builtin_setjmp_receiver.
46160 2014-02-07 Richard Biener <rguenther@suse.de>
46162 PR middle-end/60092
46163 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
46164 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
46165 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
46166 Handle BUILT_IN_POSIX_MEMALIGN.
46167 (find_func_clobbers): Likewise.
46168 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
46169 (call_may_clobber_ref_p_1): Likewise.
46171 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46174 * ipa-devirt.c (record_target_from_binfo): Remove overactive
46177 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46180 * lto-cgraph.c (lto_output_node): Use
46181 symtab_get_symbol_partitioning_class.
46182 (lto_output_varpool_node): likewise.
46183 (symtab_get_symbol_partitioning_class): Move here from
46184 lto/lto-partition.c
46185 * cgraph.h (symbol_partitioning_class): Likewise.
46186 (symtab_get_symbol_partitioning_class): Declare.
46188 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46190 * ggc.h (ggc_internal_cleared_alloc): New macro.
46191 * vec.h (vec_safe_copy): Handle memory stats.
46192 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
46193 * target-globals.c (save_target_globals): Likewise.
46195 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46198 * expr.c (emit_move_resolve_push): Export; be bit more selective
46199 on when to clear alias set.
46200 * expr.h (emit_move_resolve_push): Declare.
46201 * function.h (struct function): Add tail_call_marked.
46202 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
46203 * config/i386/i386-protos.h (ix86_expand_push): Remove.
46204 * config/i386/i386.md (TImode move expander): De not call
46206 (FP push expanders): Preserve memory attributes.
46207 * config/i386/sse.md (push<mode>1): Remove.
46208 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
46209 (ix86_expand_push): Remove.
46210 * config/i386/mmx.md (push<mode>1): Remove.
46212 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46214 PR rtl-optimization/60030
46215 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
46216 lopart with paradoxical subreg before shifting it up by hprec.
46218 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46220 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
46221 Remove extra newline at end of file.
46222 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
46223 (arm_issue_rate): Handle cortexa57.
46224 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
46225 (cortex-a57.cortex-a53): Likewise.
46227 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46230 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
46231 don't record in REG_FRAME_RELATED_EXPR registers not set in that
46233 (arm_expand_prologue): Adjust all callers.
46234 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
46235 info, registers also at the lowest numbered registers side. Use
46236 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
46240 * var-tracking.c (adjust_mems): Before adding a SET to
46241 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
46243 2014-02-06 Alan Modra <amodra@gmail.com>
46246 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
46247 change SDmode to DDmode when lra_in_progress.
46249 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46251 PR middle-end/59150
46252 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
46253 free_data_ref on the dr first, and before goto again also set dr
46254 to the next dr. For simd_lane_access, free old datarefs[i] before
46255 overwriting it. For get_vectype_for_scalar_type failure, don't
46256 free_data_ref if simd_lane_access.
46258 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
46261 * tree.h (opts_for_fn): New inline function.
46262 (opt_for_fn): Define.
46263 * config/i386/i386.c (ix86_function_regparm): Use
46264 opt_for_fn (decl, optimize) instead of optimize.
46266 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
46268 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
46269 for SYMBOL_REF in large memory model.
46271 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46273 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
46274 and crypto support.
46275 (cortex-a57): Likewise.
46276 (cortex-a57.cortex-a53): Likewise.
46278 2014-02-06 Yury Gribov <y.gribov@samsung.com>
46279 Kugan Vivekanandarajah <kuganv@linaro.org>
46281 * config/arm/arm.c (arm_vector_alignment_reachable): Check
46283 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
46285 2014-02-06 Richard Biener <rguenther@suse.de>
46287 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
46288 set_loop_copy and initialize_original_copy_tables.
46290 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
46292 * config/aarch64/aarch64-simd.md
46293 (aarch64_ashr_simddi): Change QI to SI.
46295 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46296 Jakub Jelinek <jakub@redhat.com>
46298 PR middle-end/60013
46299 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46302 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46304 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46305 CODE_FOR_altivec_vpku[hw]um to
46306 CODE_FOR_altivec_vpku[hw]um_direct.
46307 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46308 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46309 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46310 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46312 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46314 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46315 generation for -maltivec=be.
46316 (altivec_vsumsws): Simplify redundant test.
46318 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46320 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46321 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46322 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46323 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46324 gen_altivec_vpkuwum.
46325 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46327 (altivec_vpks<VI_char>ss): Likewise.
46328 (altivec_vpks<VI_char>us): Likewise.
46329 (altivec_vpku<VI_char>us): Likewise.
46330 (altivec_vpku<VI_char>um): Likewise.
46331 (altivec_vpku<VI_char>um_direct): New (copy of
46332 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46334 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46335 target is little endian and -maltivec=be is not specified.
46336 (*altivec_vupkhs<VU_char>_direct): New (copy of
46337 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46338 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46339 target is little endian and -maltivec=be is not specified.
46340 (*altivec_vupkls<VU_char>_direct): New (copy of
46341 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46342 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46343 little endian and -maltivec=be is not specified.
46344 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46345 little endian and -maltivec=be is not specified.
46347 2014-02-05 Richard Henderson <rth@redhat.com>
46350 * combine-stack-adj.c: Revert r206943.
46351 * sched-int.h (struct deps_desc): Add last_args_size.
46352 * sched-deps.c (init_deps): Initialize it.
46353 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46354 contain REG_ARGS_SIZE notes.
46356 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46358 * lto-cgraph.c (asm_nodes_output): Make global.
46359 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46360 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46361 (driver_handle_option): Handle OPT_fwpa.
46363 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46366 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46367 a comment typo and formatting issue. If odr_hash hasn't been
46368 created, return vNULL and set *completep to false.
46370 PR middle-end/57499
46371 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46372 bb with no successors.
46374 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46377 * doc/invoke.texi (-march): Clarify documentation for ARM.
46378 (-mtune): Likewise.
46381 2014-02-05 Richard Biener <rguenther@suse.de>
46383 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46384 when not vectorizing because of too many alias checks.
46385 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46386 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46388 2014-02-05 Nick Clifton <nickc@redhat.com>
46390 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46391 accept extended registers in any mode when compiling for the MN10300.
46393 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46395 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46396 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46397 sanitization attributes.
46398 (can_inline_edge_p): Likewise.
46399 (sanitize_attrs_match_for_inline_p): New function.
46401 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46403 * ipa-prop.c (detect_type_change): Shor circuit testing of
46404 type changes on THIS pointer.
46406 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46409 * config/pa/pa.c (legitimize_tls_address): Return original address
46410 if not passed a SYMBOL_REF rtx.
46411 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46413 (pa_emit_move_sequence): Simplify TLS source operands.
46414 (pa_legitimate_constant_p): Reject all TLS constants.
46415 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46416 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46418 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46420 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46421 groups when we know they are controlled by LTO.
46422 * varasm.c (default_binds_local_p_1): If object is in other partition,
46423 it will be resolved locally.
46425 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46427 * config/host-linux.c (linux_gt_pch_use_address): Don't
46428 use SSIZE_MAX because it is not always defined.
46430 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46433 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46434 threshold for pseudo splitting.
46435 (update_ebb_live_info): Process call argument hard registers and
46436 hard registers from insn definition too.
46437 (max_small_class_regs_num): New constant.
46438 (inherit_in_ebb): Update live hard regs through EBBs. Update
46439 reloads_num only for small register classes. Don't split for
46442 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46445 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46448 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46450 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46451 visibility is safe.
46453 2014-02-04 Marek Polacek <polacek@redhat.com>
46455 * gdbinit.in (pel): Define.
46457 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46459 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46462 2014-02-04 Richard Biener <rguenther@suse.de>
46465 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46466 in function context local.
46467 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46468 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46469 similar to LTO_imported_decl_ref.
46471 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46473 PR tree-optimization/60002
46474 * cgraphclones.c (build_function_decl_skip_args): Clear
46475 DECL_LANG_SPECIFIC.
46477 PR tree-optimization/60023
46478 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46479 false to gsi_replace.
46480 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46481 has been in some EH region and vec_stmt could throw, add
46482 vec_stmt into the same EH region.
46483 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46484 has no lhs, ignore it.
46485 * internal-fn.c (expand_MASK_LOAD): Likewise.
46488 * tree-inline.c (copy_forbidden): Fail for
46489 __attribute__((optimize (0))) functions.
46492 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46493 is set, copy one less argument.
46494 (expand_simd_clones): Don't subtract clone_info->inbranch
46495 from simd_clone_struct_alloc argument.
46497 PR rtl-optimization/57915
46498 * recog.c (simplify_while_replacing): If all unary/binary/relational
46499 operation arguments are constant, attempt to simplify those.
46501 PR middle-end/59261
46502 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46503 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46505 2014-02-04 Richard Biener <rguenther@suse.de>
46507 PR tree-optimization/60012
46508 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46509 TBAA disambiguation to all DDRs.
46511 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46514 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46515 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46517 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46520 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46522 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46524 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46525 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46527 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46530 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46531 to figure out targets of polymorphic calls with known decl.
46532 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46533 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46534 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46535 (get_polymorphic_call_info): ... here.
46536 (get_polymorphic_call_info_from_invariant): New function.
46538 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46540 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46541 lookup via vtable pointer; check for type consistency
46542 and turn inconsitent facts into UNREACHABLE.
46543 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46544 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46545 type inconsistent querries; return UNREACHABLE instead.
46547 2014-02-03 Richard Henderson <rth@twiddle.net>
46550 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46551 already processed this node.
46552 (normalize_one_pred_1): Pass along mark_set.
46553 (normalize_one_pred): Create and destroy a pointer_set_t.
46554 (normalize_one_pred_chain): Likewise.
46556 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46558 PR gcov-profile/58602
46559 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46561 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46564 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46565 -fno-devirtualize; try to devirtualize by the knowledge of
46566 virtual table pointer given by aggregate propagation.
46567 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46568 (ipa_print_node_jump_functions): Dump also offset that
46569 is relevant for polymorphic calls.
46570 (determine_known_aggregate_parts): Add arg_type parameter; use it
46571 instead of determining the type from pointer type.
46572 (ipa_compute_jump_functions_for_edge): Update call of
46573 determine_known_aggregate_parts.
46574 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46575 (gimple_get_virt_method_for_binfo): ... here; simplify using
46576 vtable_pointer_value_to_vtable.
46577 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46578 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46579 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46580 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46582 (vtable_pointer_value_to_binfo): ... here.
46583 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46585 2014-02-03 Teresa Johnson <tejohnson@google.com>
46587 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46588 redef of outer loop index variable.
46590 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46594 * doc/extend.texi (Function Attributes): Typo.
46596 2014-02-03 Cong Hou <congh@google.com>
46598 PR tree-optimization/60000
46599 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46600 if the vectorized statement is a store. A store statement can only
46601 appear at the end of pattern statements.
46603 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46605 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46606 (ix86_option_override_internal): Default long double to 64-bit for
46607 32-bit Bionic and to 128-bit for 64-bit Bionic.
46609 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46610 TARGET_LONG_DOUBLE_128 is true.
46611 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46613 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46614 (mlong-double-64): Negate -mlong-double-128.
46615 (mlong-double-128): New option.
46617 * config/i386/i386-c.c (ix86_target_macros): Define
46618 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46620 * doc/invoke.texi: Document -mlong-double-128.
46622 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46624 PR rtl-optimization/60024
46625 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46627 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46629 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46631 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46633 PR rtl-optimization/57662
46634 * sel-sched.c (code_motion_path_driver): Do not mark already not
46635 existing blocks in the visiting bitmap.
46637 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46639 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46640 on the insn being emitted.
46642 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46643 Will Deacon <will.deacon@arm.com>
46645 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46647 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46649 * config/arm/arm-tables.opt: Regenerate.
46651 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46653 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46654 for vector types other than V16QImode.
46655 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46656 define_expand, and call altivec_expand_vec_perm_le when producing
46657 code with little endian element order.
46658 (*altivec_vperm_<mode>_internal): New insn having previous
46659 behavior of altivec_vperm_<mode>.
46660 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46661 altivec_expand_vec_perm_le when producing code with little endian
46663 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46664 behavior of altivec_vperm_<mode>_uns.
46666 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46668 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46669 (altivec_vsumsws): Add handling for -maltivec=be with a little
46671 (altivec_vsumsws_direct): New.
46672 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46673 gen_altivec_vsumsws.
46675 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46677 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46678 vtable_pointer_value_to_binfo): New functions.
46679 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46680 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46682 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46684 * config/nios2/nios2.md (load_got_register): Initialize GOT
46685 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46686 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46688 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46690 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46691 preserverd by passthrough, do not propagate the type.
46693 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46695 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46696 (mips_atomic_assign_expand_fenv): New function.
46697 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46699 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46701 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46702 (__builtin_mips_set_fcsr): Likewise.
46703 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46704 MIPS_USI_FTYPE_VOID.
46705 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46706 (mips16_expand_set_fcsr): Likewise.
46707 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46708 (mips16_set_fcsr_stub): Likewise.
46709 (mips16_get_fcsr_one_only_stub): New class.
46710 (mips16_set_fcsr_one_only_stub): Likewise.
46711 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46712 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46713 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46714 (hard_float): New availability predicate.
46715 (mips_builtins): Add get_fcsr and set_fcsr.
46716 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46717 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46718 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46719 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46720 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46723 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46725 * config/mips/mips.c (mips_one_only_stub): New class.
46726 (mips_need_mips16_rdhwr_p): Replace with...
46727 (mips16_rdhwr_stub): ...this new variable.
46728 (mips16_stub_call_address): New function.
46729 (mips16_rdhwr_one_only_stub): New class.
46730 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46731 (mips_output_mips16_rdhwr): Delete.
46732 (mips_finish_stub): New function.
46733 (mips_code_end): Use it to handle rdhwr stubs.
46735 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46738 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46739 when calculating size of integer atomic types.
46741 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46743 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46745 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46747 PR tree-optimization/60003
46748 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46749 * profile.c (branch_prob): Use gimple_call_builtin_p
46750 to check for BUILT_IN_SETJMP_RECEIVER.
46751 * tree-inline.c (copy_bb): Call notice_special_calls.
46753 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46756 * lra-constraints.c (process_alt_operands): Update reload_sum only
46759 2014-01-31 Richard Henderson <rth@redhat.com>
46761 PR middle-end/60004
46762 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46763 until after else_eh is processed.
46765 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46767 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46768 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46769 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46770 in smmintrin.h, remove them.
46771 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46772 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46773 * config/i386/i386.md (ROUND_SAE): Fix value.
46774 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46775 (const48_operand): New.
46776 * config/i386/subst.md (round), (round_expand): Use
46777 const_4_or_8_to_11_operand.
46778 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46780 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46782 * config/i386/constraints.md (Yk): Swap meaning with k.
46783 * config/i386/i386.md (movhi_internal): Change Yk to k.
46784 (movqi_internal): Ditto.
46785 (*k<logic><mode>): Ditto.
46788 (kandn<mode>): Ditto.
46789 (*<code>hi_1): Ditto.
46790 (*<code>qi_1): Ditto.
46791 (kxnor<mode>): Ditto.
46792 (kortestzhi): Ditto.
46793 (kortestchi): Ditto.
46795 (*one_cmplhi2_1): Ditto.
46796 (*one_cmplqi2_1): Ditto.
46797 * config/i386/sse.md (): Change k to Yk.
46798 (avx512f_load<mode>_mask): Ditto.
46799 (avx512f_blendm<mode>): Ditto.
46800 (avx512f_store<mode>_mask): Ditto.
46801 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46802 (avx512f_storedqu<mode>_mask): Ditto.
46803 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46805 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46806 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46807 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46808 (avx512f_maskcmp<mode>3): Ditto.
46809 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46810 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46811 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46812 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46813 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46814 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46815 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46816 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46817 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46818 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46819 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46820 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46821 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46822 (vec_extract_lo_<mode>_maskm): Ditto.
46823 (vec_extract_hi_<mode>_maskm): Ditto.
46824 (avx512f_vternlog<mode>_mask): Ditto.
46825 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46826 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46827 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46828 (avx512f_<code>v8div16qi2_mask): Ditto.
46829 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46830 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46831 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46832 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46833 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46834 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46835 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46836 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46837 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46838 (avx512cd_maskb_vec_dupv8di): Ditto.
46839 (avx512cd_maskw_vec_dupv16si): Ditto.
46840 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46841 (avx512f_vpermi2var<mode>3_mask): Ditto.
46842 (avx512f_vpermi2var<mode>3_mask): Ditto.
46843 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46844 (*avx512f_gathersi<mode>): Ditto.
46845 (*avx512f_gathersi<mode>_2): Ditto.
46846 (*avx512f_gatherdi<mode>): Ditto.
46847 (*avx512f_gatherdi<mode>_2): Ditto.
46848 (*avx512f_scattersi<mode>): Ditto.
46849 (*avx512f_scatterdi<mode>): Ditto.
46850 (avx512f_compress<mode>_mask): Ditto.
46851 (avx512f_compressstore<mode>_mask): Ditto.
46852 (avx512f_expand<mode>_mask): Ditto.
46853 * config/i386/subst.md (mask): Change k to Yk.
46854 (mask_scalar_merge): Ditto.
46857 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46859 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46861 2014-01-31 Richard Biener <rguenther@suse.de>
46863 PR middle-end/59990
46864 * builtins.c (fold_builtin_memory_op): Make sure to not
46865 use a floating-point mode or a boolean or enumeral type for
46866 the copy operation.
46868 2014-01-30 DJ Delorie <dj@redhat.com>
46870 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46871 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46872 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46873 whenever main() has an epilogue.
46875 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46877 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46878 unused variable "field".
46879 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46880 (vsx_mergeh_<mode>): Likewise.
46881 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46882 (altivec_vmrghh): Likewise.
46883 (altivec_vmrghw): Likewise.
46884 (altivec_vmrglb): Likewise.
46885 (altivec_vmrglh): Likewise.
46886 (altivec_vmrglw): Likewise.
46887 (altivec_vspltb): Add missing uses.
46888 (altivec_vsplth): Likewise.
46889 (altivec_vspltw): Likewise.
46890 (altivec_vspltsf): Likewise.
46892 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46895 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46896 frame related instructions.
46898 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46900 PR rtl-optimization/59959
46901 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46902 any reload of register whose subreg is invalid.
46904 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46906 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46907 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46908 Add missing return type - void.
46910 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46912 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46913 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46914 remove element index adjustment for endian (now handled in vsx.md
46916 (altivec_expand_vec_perm_const): Use
46917 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46918 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46919 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46920 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46921 define_expand and a new define_insn *altivec_vspltb_internal;
46922 adjust for -maltivec=be on a little endian target.
46923 (altivec_vspltb_direct): New.
46924 (altivec_vsplth): Divide into a define_expand and a new
46925 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46926 little endian target.
46927 (altivec_vsplth_direct): New.
46928 (altivec_vspltw): Divide into a define_expand and a new
46929 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46930 little endian target.
46931 (altivec_vspltw_direct): New.
46932 (altivec_vspltsf): Divide into a define_expand and a new
46933 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46934 a little endian target.
46936 2014-01-30 Richard Biener <rguenther@suse.de>
46938 PR tree-optimization/59993
46939 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46940 can propagate form the earlier stmt and avoid the transform
46941 when the intermediate result is needed.
46943 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46945 * README.Portability: Fix typo.
46947 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46949 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46950 comparison_operator with ordered_comparison_operator.
46952 2014-01-30 Nick Clifton <nickc@redhat.com>
46954 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46955 Rename to mn10300_store_multiple_regs.
46956 * config/mn10300/mn10300.c: Likewise.
46957 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46958 store_multiple_regs.
46959 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46960 Call mn10300_store_multiple_regs.
46962 2014-01-30 Nick Clifton <nickc@redhat.com>
46963 DJ Delorie <dj@redhat.com>
46965 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46966 %fp 2 to keep registers after it properly word-aligned.
46967 (rl78_alloc_physical_registers_umul): Handle the case where both
46968 input operands are the same.
46970 2014-01-30 Richard Biener <rguenther@suse.de>
46972 PR tree-optimization/59903
46973 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46976 2014-01-30 Jason Merrill <jason@redhat.com>
46979 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46982 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46984 2014-01-30 Richard Biener <rguenther@suse.de>
46986 PR tree-optimization/59951
46987 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46989 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46992 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46993 SFmode to DFmode case.
46995 2014-01-29 DJ Delorie <dj@redhat.com>
46997 * config/msp430/msp430.opt (-minrt): New.
46998 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
47000 (ENDFILE_SPEC): Likewise.
47002 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
47004 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
47005 (estimate_function_body_sizes): Use it.
47007 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
47010 * dwarf2out.c (is_cxx_auto): New.
47011 (is_base_type): Use it.
47012 (gen_type_die_with_usage): Likewise.
47014 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47016 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
47017 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
47018 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
47019 -maltivec=be with LE targets.
47020 (vsx_mergeh_<mode>): Likewise.
47021 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
47022 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
47023 (altivec_vmrghb): Replace with define_expand and new
47024 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
47025 (altivec_vmrghb_direct): New define_insn.
47026 (altivec_vmrghh): Replace with define_expand and new
47027 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
47028 (altivec_vmrghh_direct): New define_insn.
47029 (altivec_vmrghw): Replace with define_expand and new
47030 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
47031 (altivec_vmrghw_direct): New define_insn.
47032 (*altivec_vmrghsf): Adjust for endianness.
47033 (altivec_vmrglb): Replace with define_expand and new
47034 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
47035 (altivec_vmrglb_direct): New define_insn.
47036 (altivec_vmrglh): Replace with define_expand and new
47037 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
47038 (altivec_vmrglh_direct): New define_insn.
47039 (altivec_vmrglw): Replace with define_expand and new
47040 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
47041 (altivec_vmrglw_direct): New define_insn.
47042 (*altivec_vmrglsf): Adjust for endianness.
47043 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
47044 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
47045 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
47046 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
47047 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
47048 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
47049 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
47050 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
47052 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
47054 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
47055 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
47058 2014-01-29 Richard Biener <rguenther@suse.de>
47060 PR tree-optimization/58742
47061 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
47062 associate_pointerplus_align.
47063 (associate_pointerplus_diff): New function.
47064 (associate_pointerplus): Likewise. Call associate_pointerplus_align
47065 and associate_pointerplus_diff.
47067 2014-01-29 Richard Biener <rguenther@suse.de>
47069 * lto-streamer.h (LTO_major_version): Bump to 3.
47070 (LTO_minor_version): Reset to 0.
47072 2014-01-29 Renlin Li <Renlin.Li@arm.com>
47074 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
47075 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
47076 (arm_file_start): Generate correct asm header for armv7ve.
47077 * config/arm/bpabi.h: Add multilib support for armv7ve.
47078 * config/arm/driver-arm.c: Change the architectures of cortex-a7
47079 and cortex-a15 to armv7ve.
47080 * config/arm/t-aprofile: Add multilib support for armv7ve.
47081 * doc/invoke.texi: Document -march=armv7ve.
47083 2014-01-29 Richard Biener <rguenther@suse.de>
47085 PR tree-optimization/58742
47086 * tree-ssa-forwprop.c (associate_plusminus): Return true
47087 if we changed sth, defer EH cleanup to ...
47088 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
47089 (simplify_mult): New function.
47091 2014-01-29 Jakub Jelinek <jakub@redhat.com>
47093 PR middle-end/59917
47094 PR tree-optimization/59920
47095 * tree.c (build_common_builtin_nodes): Remove
47096 __builtin_setjmp_dispatcher initialization.
47097 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
47098 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
47099 instead of gsi_after_labels + manually skipping debug stmts.
47100 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
47101 ignore bbs with IFN_ABNORMAL_DISPATCHER.
47102 * tree-inline.c (copy_edges_for_bb): Remove
47103 can_make_abnormal_goto argument, instead add abnormal_goto_dest
47104 argument. Ignore computed_goto_p stmts. Don't call
47105 make_abnormal_goto_edges. If a call might need abnormal edges
47106 for non-local gotos, see if it already has an edge to
47107 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
47108 with true argument, don't do anything then, otherwise add
47109 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
47110 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
47112 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
47113 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
47114 (lower_stmt): Don't set data->calls_builtin_setjmp.
47115 (lower_builtin_setjmp): Adjust comment.
47116 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
47117 * tree-cfg.c (found_computed_goto): Remove.
47118 (factor_computed_gotos): Remove.
47119 (make_goto_expr_edges): Return bool, true for computed gotos.
47120 Don't call make_abnormal_goto_edges.
47121 (build_gimple_cfg): Don't set found_computed_goto, don't call
47122 factor_computed_gotos.
47123 (computed_goto_p): No longer static.
47124 (make_blocks): Don't set found_computed_goto.
47125 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
47126 (make_edges): If make_goto_expr_edges returns true, push bb
47127 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
47128 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
47129 vector. Record mapping between bbs and OpenMP regions if there
47130 are any, adjust make_gimple_omp_edges caller. Call
47131 handle_abnormal_edges.
47132 (make_abnormal_goto_edges): Remove.
47133 * tree-cfg.h (make_abnormal_goto_edges): Remove.
47134 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
47135 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
47136 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
47137 * internal-fn.def (ABNORMAL_DISPATCHER): New.
47138 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
47139 filling *region also set *region_idx to (*region)->entry->index.
47142 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
47143 For REGs set ORIGINAL_REGNO.
47145 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
47147 * doc/md.texi: Mention that a target shouldn't implement
47148 vec_widen_(s|u)mul_even/odd pair if it is less efficient
47151 2014-01-29 Jakub Jelinek <jakub@redhat.com>
47153 PR tree-optimization/59594
47154 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
47155 a copy of the datarefs vector rather than the vector itself.
47157 2014-01-28 Jason Merrill <jason@redhat.com>
47160 * dwarf2out.c (auto_die): New static.
47161 (gen_type_die_with_usage): Handle C++1y 'auto'.
47162 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
47165 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
47168 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
47169 (SPEC_X32): Likewise.
47170 (SPEC_64): Likewise.
47171 * config/i386/i386.c (ix86_option_override_internal): Turn off
47172 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
47174 (x86_file_start): Output .code16gcc for TARGET_16BIT.
47175 * config/i386/i386.h (TARGET_16BIT): New macro.
47176 (TARGET_16BIT_P): Likewise.
47177 * config/i386/i386.opt: Add m16.
47178 * doc/invoke.texi: Document -m16.
47180 2014-01-28 Jakub Jelinek <jakub@redhat.com>
47182 PR preprocessor/59935
47183 * input.c (location_get_source_line): Bail out on when line number
47184 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
47186 2014-01-28 Richard Biener <rguenther@suse.de>
47188 PR tree-optimization/58742
47189 * tree-ssa-forwprop.c (associate_plusminus): Handle
47190 pointer subtraction of the form (T)(P + A) - (T)P.
47192 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47194 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
47197 2014-01-28 Richard Biener <rguenther@suse.de>
47200 2014-01-28 Richard Biener <rguenther@suse.de>
47202 PR rtl-optimization/45364
47203 PR rtl-optimization/59890
47204 * var-tracking.c (local_get_addr_clear_given_value): Handle
47205 already cleared slot.
47206 (val_reset): Handle not allocated local_get_addr_cache.
47207 (vt_find_locations): Use post-order on the inverted CFG.
47209 2014-01-28 Richard Biener <rguenther@suse.de>
47211 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
47213 2014-01-28 Richard Biener <rguenther@suse.de>
47215 PR rtl-optimization/45364
47216 PR rtl-optimization/59890
47217 * var-tracking.c (local_get_addr_clear_given_value): Handle
47218 already cleared slot.
47219 (val_reset): Handle not allocated local_get_addr_cache.
47220 (vt_find_locations): Use post-order on the inverted CFG.
47222 2014-01-28 Alan Modra <amodra@gmail.com>
47224 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
47225 * configure.ac <recursive call for build != host>: Define
47226 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
47227 and LD_FOR_BUILD too.
47228 * configure: Regenerate.
47230 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
47232 * config/i386/i386.c (get_builtin_code_for_version): Separate
47233 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
47234 Broadwell from Haswell.
47236 2014-01-27 Steve Ellcey <sellcey@mips.com>
47238 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
47239 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
47240 * config/mips/mips.c (mips_option_override): Change setting
47242 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
47243 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
47244 Change from Mask to Var.
47246 2014-01-27 Jeff Law <law@redhat.com>
47248 * ipa-inline.c (inline_small_functions): Fix typo.
47250 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
47252 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
47253 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
47254 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
47255 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
47256 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
47257 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
47258 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
47259 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
47260 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
47261 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
47262 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
47263 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
47264 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
47265 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
47266 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
47267 (_mm512_storeu_epi64): Ditto.
47268 (_mm512_cmpge_epi32_mask): Ditto.
47269 (_mm512_cmpge_epu32_mask): Ditto.
47270 (_mm512_cmpge_epi64_mask): Ditto.
47271 (_mm512_cmpge_epu64_mask): Ditto.
47272 (_mm512_cmple_epi32_mask): Ditto.
47273 (_mm512_cmple_epu32_mask): Ditto.
47274 (_mm512_cmple_epi64_mask): Ditto.
47275 (_mm512_cmple_epu64_mask): Ditto.
47276 (_mm512_cmplt_epi32_mask): Ditto.
47277 (_mm512_cmplt_epu32_mask): Ditto.
47278 (_mm512_cmplt_epi64_mask): Ditto.
47279 (_mm512_cmplt_epu64_mask): Ditto.
47280 (_mm512_cmpneq_epi32_mask): Ditto.
47281 (_mm512_cmpneq_epu32_mask): Ditto.
47282 (_mm512_cmpneq_epi64_mask): Ditto.
47283 (_mm512_cmpneq_epu64_mask): Ditto.
47284 (_mm512_expand_pd): Ditto.
47285 (_mm512_expand_ps): Ditto.
47286 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
47287 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
47288 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
47289 * config/i386/i386.c (ix86_builtins): Add
47290 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
47291 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
47292 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
47293 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
47294 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
47295 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
47296 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
47297 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
47298 IX86_BUILTIN_PMOVUSQW512_MEM.
47299 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
47300 __builtin_ia32_pmovsqd512mem_mask,
47301 __builtin_ia32_pmovqd512mem_mask,
47302 __builtin_ia32_pmovusqw512mem_mask,
47303 __builtin_ia32_pmovsqw512mem_mask,
47304 __builtin_ia32_pmovqw512mem_mask,
47305 __builtin_ia32_pmovusdw512mem_mask,
47306 __builtin_ia32_pmovsdw512mem_mask,
47307 __builtin_ia32_pmovdw512mem_mask,
47308 __builtin_ia32_pmovqb512mem_mask,
47309 __builtin_ia32_pmovusqb512mem_mask,
47310 __builtin_ia32_pmovsqb512mem_mask,
47311 __builtin_ia32_pmovusdb512mem_mask,
47312 __builtin_ia32_pmovsdb512mem_mask,
47313 __builtin_ia32_pmovdb512mem_mask.
47314 (bdesc_args): Add __builtin_ia32_expanddf512,
47315 __builtin_ia32_expandsf512.
47316 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47317 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47318 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47319 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47320 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47321 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47322 (avx512f_<code>v8div16qi2_mask_store): This.
47323 (avx512f_expand<mode>): New.
47325 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47327 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47329 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47330 (_mm512_prefetch_i32scatter_pd): Ditto.
47331 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47332 (_mm512_prefetch_i64scatter_pd): Ditto.
47333 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47334 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47335 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47336 (_mm512_prefetch_i32scatter_ps): Ditto.
47337 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47338 (_mm512_prefetch_i64scatter_ps): Ditto.
47339 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47340 * config/i386/i386-builtin-types.def: Define
47341 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47342 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47343 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47344 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47345 IX86_BUILTIN_SCATTERPFQPD.
47346 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47347 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47348 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47349 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47350 __builtin_ia32_scatterpfqps.
47351 (ix86_expand_builtin): Expand new built-ins.
47352 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47353 fix memory access data type.
47354 (*avx512pf_gatherpf<mode>_mask): Ditto.
47355 (*avx512pf_gatherpf<mode>): Ditto.
47356 (avx512pf_scatterpf<mode>): Ditto.
47357 (*avx512pf_scatterpf<mode>_mask): Ditto.
47358 (*avx512pf_scatterpf<mode>): Ditto.
47359 (GATHER_SCATTER_SF_MEM_MODE): New.
47360 (avx512pf_gatherpf<mode>df): Ditto.
47361 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47362 (*avx512pf_scatterpf<mode>df): Ditto.
47364 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47367 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47368 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47371 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47373 * common/config/arm/arm-common.c
47374 (arm_rewrite_mcpu): Handle multiple names.
47376 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47378 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47380 * gimple-builder.h (create_gimple_tmp): Delete.
47382 2014-01-27 Christian Bruel <christian.bruel@st.com>
47384 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47387 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47389 * config/pa/pa.md (call): Generate indirect long calls to non-local
47390 functions when outputing 32-bit code.
47391 (call_value): Likewise except for special call to buggy powf function.
47393 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47394 portable runtime and PIC indirect calls.
47395 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47396 and PIC call sequences. Use ldo instead of blr to set return register
47397 in PIC call sequence.
47399 2014-01-25 Walter Lee <walt@tilera.com>
47401 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47402 avoid clobbering a live register.
47404 2014-01-25 Walter Lee <walt@tilera.com>
47406 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47407 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47408 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47409 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47411 2014-01-25 Walter Lee <walt@tilera.com>
47413 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47414 arguments on even registers.
47415 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47417 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47418 (BIGGEST_ALIGNMENT): Ditto.
47419 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47421 2014-01-25 Walter Lee <walt@tilera.com>
47423 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47424 insns before bundling.
47425 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47427 2014-01-25 Walter Lee <walt@tilera.com>
47429 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47430 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47431 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47433 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47435 * config/mips/constraints.md (kl): Delete.
47436 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47437 define expands, using...
47438 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47439 instructions for MIPS16.
47440 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47441 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47443 2014-01-25 Walter Lee <walt@tilera.com>
47445 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47449 2014-01-25 Walter Lee <walt@tilera.com>
47451 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47452 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47454 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47456 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47459 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47461 * print-rtl.c (in_call_function_usage): New var.
47462 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47463 EXPR_LIST mode as mode and not as reg note name.
47465 PR middle-end/59561
47466 * cfgloopmanip.c (copy_loop_info): If
47467 loop->warned_aggressive_loop_optimizations, make sure
47468 the flag is set in target loop too.
47470 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47472 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47474 * builtins.def: Likewise.
47475 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47476 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47477 * ira.c (ira_setup_eliminable_regset): Likewise.
47478 * omp-low.c (gate_expand_omp): Likewise.
47479 (execute_lower_omp): Likewise.
47480 (diagnose_sb_0): Likewise.
47481 (gate_diagnose_omp_blocks): Likewise.
47482 (simd_clone_clauses_extract): Likewise.
47485 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47487 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47488 correction for little endian...
47489 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47492 2014-01-24 Jeff Law <law@redhat.com>
47494 PR tree-optimization/59919
47495 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47496 for non-returning calls.
47498 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47500 * common/config/aarch64/aarch64-common.c
47501 (aarch64_rewrite_mcpu): Handle multiple names.
47502 * config/aarch64/aarch64.h
47503 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47505 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47507 * input.c (add_file_to_cache_tab): Handle the case where fopen
47510 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47513 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47514 from push operand if code of push isn't PRE_DEC.
47516 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47519 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47520 -mquad-memory-atomic. Update -mquad-memory documentation to say
47521 it is only used for non-atomic loads/stores.
47523 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47524 -mquad-memory or -mquad-memory-atomic switches.
47526 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47527 -mquad-memory-atomic to ISA 2.07 support.
47529 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47530 to separate support of normal quad word memory operations (ldq, stq)
47531 from the atomic quad word memory operations.
47533 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47534 support to separate non-atomic quad word operations from atomic
47535 quad word operations. Disable non-atomic quad word operations in
47536 little endian mode so that we don't have to swap words after the
47537 load and before the store.
47538 (quad_load_store_p): Add comment about atomic quad word support.
47539 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47540 options printed with -mdebug=reg.
47542 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47543 -mquad-memory-atomic as the test for whether we have quad word
47544 atomic instructions.
47545 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47546 or -mp8-vector are used, allow byte/half-word atomic operations.
47548 * config/rs6000/sync.md (load_lockedti): Insure that the address
47549 is a proper indexed or indirect address for the lqarx instruction.
47550 On little endian systems, swap the hi/lo registers after the lqarx
47552 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47553 insure the address is valid for the lqarx instruction.
47554 (store_conditionalti): Insure that the address is a proper indexed
47555 or indirect address for the stqcrx. instruction. On little endian
47556 systems, swap the hi/lo registers before doing the stqcrx.
47558 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47559 insure the address is valid for the stqcrx. instruction.
47561 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47562 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47563 type of quad memory support is available.
47565 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47567 PR regression/59915
47568 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47569 there is a danger of looping.
47571 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47573 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47574 force flag_ira_loop_pressure if set via command line.
47576 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47578 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47579 (ashr_simd): New builtin handling DI mode.
47580 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47581 (aarch64_sshr_simddi): New match pattern.
47582 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47583 (vshrd_n_s64): Likewise.
47584 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47586 2014-01-23 Nick Clifton <nickc@redhat.com>
47588 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47589 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47590 favour of mcu specific scripts.
47591 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47594 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47595 Alex Velenko <Alex.Velenko@arm.com>
47597 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47598 (vaddv_s16): Likewise.
47599 (vaddv_s32): Likewise.
47600 (vaddv_u8): Likewise.
47601 (vaddv_u16): Likewise.
47602 (vaddv_u32): Likewise.
47603 (vaddvq_s8): Likewise.
47604 (vaddvq_s16): Likewise.
47605 (vaddvq_s32): Likewise.
47606 (vaddvq_s64): Likewise.
47607 (vaddvq_u8): Likewise.
47608 (vaddvq_u16): Likewise.
47609 (vaddvq_u32): Likewise.
47610 (vaddvq_u64): Likewise.
47611 (vaddv_f32): Likewise.
47612 (vaddvq_f32): Likewise.
47613 (vaddvq_f64): Likewise.
47614 (vmaxv_f32): Likewise.
47615 (vmaxv_s8): Likewise.
47616 (vmaxv_s16): Likewise.
47617 (vmaxv_s32): Likewise.
47618 (vmaxv_u8): Likewise.
47619 (vmaxv_u16): Likewise.
47620 (vmaxv_u32): Likewise.
47621 (vmaxvq_f32): Likewise.
47622 (vmaxvq_f64): Likewise.
47623 (vmaxvq_s8): Likewise.
47624 (vmaxvq_s16): Likewise.
47625 (vmaxvq_s32): Likewise.
47626 (vmaxvq_u8): Likewise.
47627 (vmaxvq_u16): Likewise.
47628 (vmaxvq_u32): Likewise.
47629 (vmaxnmv_f32): Likewise.
47630 (vmaxnmvq_f32): Likewise.
47631 (vmaxnmvq_f64): Likewise.
47632 (vminv_f32): Likewise.
47633 (vminv_s8): Likewise.
47634 (vminv_s16): Likewise.
47635 (vminv_s32): Likewise.
47636 (vminv_u8): Likewise.
47637 (vminv_u16): Likewise.
47638 (vminv_u32): Likewise.
47639 (vminvq_f32): Likewise.
47640 (vminvq_f64): Likewise.
47641 (vminvq_s8): Likewise.
47642 (vminvq_s16): Likewise.
47643 (vminvq_s32): Likewise.
47644 (vminvq_u8): Likewise.
47645 (vminvq_u16): Likewise.
47646 (vminvq_u32): Likewise.
47647 (vminnmv_f32): Likewise.
47648 (vminnmvq_f32): Likewise.
47649 (vminnmvq_f64): Likewise.
47651 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47653 * config/aarch64/aarch64-simd.md
47654 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47655 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47656 (*aarch64_mul3_elt<mode>): Likewise.
47657 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47658 (*aarch64_mul3_elt_to_64v2df): Likewise.
47659 (*aarch64_mla_elt<mode>): Likewise.
47660 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47661 (*aarch64_mls_elt<mode>): Likewise.
47662 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47663 (*aarch64_fma4_elt<mode>): Likewise.
47664 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47665 (*aarch64_fma4_elt_to_64v2df): Likewise.
47666 (*aarch64_fnma4_elt<mode>): Likewise.
47667 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47668 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47669 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47670 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47671 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47672 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47673 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47674 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47675 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47677 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47679 * config/aarch64/aarch64-simd.md
47680 (aarch64_be_checked_get_lane<mode>): New define_expand.
47681 * config/aarch64/aarch64-simd-builtins.def
47682 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47683 New builtin definition.
47684 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47685 Use new safe be builtin.
47687 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47689 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47691 (aarch64_be_st1<mode>): Likewise.
47692 (aarch_ld1<VALL:mode>): Define_expand modified.
47693 (aarch_st1<VALL:mode>): Likewise.
47694 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47695 (UNSPEC_ST1): Likewise.
47697 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47699 * config/microblaze/microblaze.md: Add trap insn and attribute
47701 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47703 PR preprocessor/58580
47704 * input.h (location_get_source_line): Take an additional line_size
47706 (void diagnostics_file_cache_fini): Declare new function.
47707 * input.c (struct fcache): New type.
47708 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47709 New static constants.
47710 (diagnostic_file_cache_init, total_lines_num)
47711 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47712 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47713 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47714 (get_next_line, read_next_line, goto_next_line, read_line_num):
47715 New static function definitions.
47716 (diagnostic_file_cache_fini): New function.
47717 (location_get_source_line): Take an additional output line_len
47718 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47720 * diagnostic.c (diagnostic_finish): Call
47721 diagnostic_file_cache_fini.
47722 (adjust_line): Take an additional input parameter for the length
47723 of the line, rather than calculating it with strlen.
47724 (diagnostic_show_locus): Adjust the use of
47725 location_get_source_line and adjust_line with respect to their new
47726 signature. While displaying a line now, do not stop at the first
47727 null byte. Rather, display the zero byte as a space and keep
47728 going until we reach the size of the line.
47729 * Makefile.in: Add vec.o to OBJS-libcommon
47731 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47732 Ilya Tocar <ilya.tocar@intel.com>
47734 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47735 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47736 (__builtin_ia32_kmov16): Ditto.
47737 * config/i386/i386.md (UNSPEC_KMOV): New.
47740 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47742 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47743 (_mm512_storeu_si512): Ditto.
47745 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47748 * rtl.h (get_referenced_operands): Declare.
47749 * recog.c (get_referenced_operands): New function.
47750 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47751 operands have been referenced when recording LO_SUM references.
47753 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47755 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47757 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47759 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47760 Enable for generic and recent AMD targets.
47762 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47764 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47765 ARG_SIZE note when adjustment was eliminated.
47767 2014-01-22 Jeff Law <law@redhat.com>
47769 PR tree-optimization/59597
47770 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47771 in file. Accept new argument REGISTERING and use it to modify
47772 dump output appropriately.
47773 (register_jump_thread): Corresponding changes.
47774 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47775 thread paths involving joiner blocks. Add code to dump cancelled
47776 jump threading paths.
47778 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47780 PR rtl-optimization/59477
47781 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47782 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47784 2014-01-22 Tom Tromey <tromey@redhat.com>
47786 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47788 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47790 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47792 PR rtl-optimization/59896
47793 * lra-constraints.c (process_alt_operands): Check unused note for
47794 matched operands of insn with no output reloads.
47796 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47798 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47799 (mips_move_from_gpr_cost): Likewise.
47801 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47803 PR rtl-optimization/59858
47804 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47805 ira_class_hard_regs_num.
47806 (process_alt_operands): Increase reject for dying matched operand.
47808 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47811 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47812 smaller than size, perform several stores or loads and stores
47813 at dst + count - size to store or copy all of size bytes, rather
47814 than just last modesize bytes.
47816 2014-01-20 DJ Delorie <dj@redhat.com>
47818 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47819 that CLOBBERs are REGs before propogating their values.
47821 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47823 PR middle-end/59789
47824 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47825 (cgraph_inline_failed_type): New function.
47826 * cgraph.h (DEFCIFCODE): Add type.
47827 (cgraph_inline_failed_type_t): New enum.
47828 (cgraph_inline_failed_type): New prototype.
47829 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47830 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47831 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47832 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47833 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47834 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47835 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47836 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47837 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47838 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47839 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47840 OPTIMIZATION_MISMATCH.
47841 * tree-inline.c (expand_call_inline): Emit errors during
47842 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47844 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47847 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47848 mode attribute in insn output.
47850 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47852 * output.h (output_constant): Delete.
47853 * varasm.c (output_constant): Make private.
47855 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47857 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47859 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47861 PR middle-end/59860
47862 * tree.h (fold_builtin_strcat): New prototype.
47863 * builtins.c (fold_builtin_strcat): No longer static. Add len
47864 argument, if non-NULL, don't call c_strlen. Optimize
47865 directly into __builtin_memcpy instead of __builtin_strcpy.
47866 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47867 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47869 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47871 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47872 for SImode_address_operand operands, having only a REG argument.
47874 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47876 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47877 loader name using mbig-endian.
47878 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47880 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47882 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47883 (-mtune): Likewise.
47886 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47888 * config/aarch64/aarch64-protos.h
47889 (aarch64_cannot_change_mode_class_ptr): Declare.
47890 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47891 aarch64_cannot_change_mode_class_ptr): New.
47892 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47893 backend hook aarch64_cannot_change_mode_class.
47895 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47897 * common/config/aarch64/aarch64-common.c
47898 (aarch64_handle_option): Don't handle any option order logic here.
47899 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47900 selected_cpu, warn on architecture version mismatch.
47901 (aarch64_override_options): Fix parsing order for option strings.
47903 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47904 Iain Sandoe <iain@codesourcery.com>
47907 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47908 warning. Amend comment to reflect current functionality.
47910 2014-01-20 Richard Biener <rguenther@suse.de>
47912 PR middle-end/59860
47913 * builtins.c (fold_builtin_strcat): Remove case better handled
47914 by tree-ssa-strlen.c.
47916 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47918 * config/aarch64/aarch64.opt
47919 (mcpu, march, mtune): Make case-insensitive.
47921 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47924 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47925 if operands[1] is a REG or ZERO_EXTEND of a REG.
47927 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47929 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47931 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47933 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47934 long non-pic millicode calls.
47936 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47938 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47940 2014-01-19 Kito Cheng <kito@0xlab.org>
47942 * builtins.c (expand_movstr): Check movstr expand done or fail.
47944 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47945 H.J. Lu <hongjiu.lu@intel.com>
47948 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47949 to DImode for zero-extended addresses.
47951 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47953 PR rtl-optimization/57763
47954 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47955 on the new indirect jump_insn and increment LABEL_NUSES (label).
47957 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47961 * config.gcc (x86_archs): New variable.
47962 (x86_64_archs): Likewise.
47963 (x86_cpus): Likewise.
47964 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47965 --with-arch/--with-cpu= options.
47966 Support --with-arch=/--with-cpu={nehalem,westmere,
47967 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47969 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47971 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47972 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47974 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47976 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47978 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47981 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47982 clear cpp_get_options (parse_in)->warn_unused_macros for
47983 ix86_target_macros_internal with cpp_define.
47985 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47987 * jump.c (delete_related_insns): Keep (use (insn))s.
47988 * reorg.c (redundant_insn): Check for barriers too.
47990 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47992 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47994 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47996 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47997 call to $$dyncall when TARGET_LONG_CALLS is true.
47999 2014-01-17 Jeff Law <law@redhat.com>
48001 * ree.c (combine_set_extension): Temporarily disable test for
48002 changing number of hard registers.
48004 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
48006 PR middle-end/58125
48007 * ipa-inline-analysis.c (inline_free_summary):
48008 Do not free summary of aliases.
48010 2014-01-17 Jakub Jelinek <jakub@redhat.com>
48012 PR middle-end/59706
48013 * gimplify.c (gimplify_expr): Use create_tmp_var
48014 instead of create_tmp_var_raw. If cond doesn't have
48015 integral type, don't add the IFN_ANNOTATE builtin at all.
48017 2014-01-17 Martin Jambor <mjambor@suse.cz>
48020 * ipa-cp.c (prev_edge_clone): New variable.
48021 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
48022 Also resize prev_edge_clone vector.
48023 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
48024 (ipcp_edge_removal_hook): New function.
48025 (ipcp_driver): Register ipcp_edge_removal_hook.
48027 2014-01-17 Andrew Pinski <apinski@cavium.com>
48028 Steve Ellcey <sellcey@mips.com>
48031 * config/mips/mips.c (mips_print_operand): Check operand mode instead
48034 2014-01-17 Jeff Law <law@redhat.com>
48036 PR middle-end/57904
48037 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
48038 so that pass_ccp runs first.
48040 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
48042 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
48043 (ix86_adjust_cost): Use !TARGET_XXX.
48044 (do_reorder_for_imul): Likewise.
48045 (swap_top_of_ready_list): Likewise.
48046 (ix86_sched_reorder): Likewise.
48048 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
48050 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
48051 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
48052 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
48053 (intel_memset): New. Duplicate slm_memset.
48054 (intel_cost): New. Duplicate slm_cost.
48055 (m_INTEL): New macro.
48056 (processor_target_table): Add "intel".
48057 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
48058 with PROCESSOR_INTEL for "intel".
48059 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
48060 PROCESSOR_SILVERMONT.
48061 (ix86_issue_rate): Likewise.
48062 (ix86_adjust_cost): Likewise.
48063 (ia32_multipass_dfa_lookahead): Likewise.
48064 (swap_top_of_ready_list): Likewise.
48065 (ix86_sched_reorder): Likewise.
48066 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
48067 instead of TARGET_OPT_AGU.
48068 * config/i386/i386.h (TARGET_INTEL): New.
48069 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
48070 (processor_type): Add PROCESSOR_INTEL.
48071 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
48072 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
48074 2014-01-17 Marek Polacek <polacek@redhat.com>
48077 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
48080 2014-01-17 Richard Biener <rguenther@suse.de>
48082 PR tree-optimization/46590
48083 * opts.c (default_options_table): Add entries for
48084 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
48085 all enabled at -O1 but not for -Og.
48086 * common.opt (fbranch-count-reg): Remove Init(1).
48087 (fmove-loop-invariants): Likewise.
48088 (ftree-pta): Likewise.
48090 2014-01-17 Jakub Jelinek <jakub@redhat.com>
48092 * config/i386/i386.c (ix86_data_alignment): For compatibility with
48093 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
48094 decls to at least the GCC 4.8 used alignments.
48097 * tree-nested.c (convert_nonlocal_reference_stmt,
48098 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
48099 of GIMPLE_BIND stmts, adjust associated decls.
48101 2014-01-17 Richard Biener <rguenther@suse.de>
48103 PR tree-optimization/46590
48104 * vec.h (vec<>::bseach): New member function implementing
48105 binary search according to C89 bsearch.
48106 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
48107 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
48108 bitmap pointer again. Make accesses_in_loop a flat array.
48109 (mem_ref_obstack): New global.
48110 (outermost_indep_loop): Adjust for mem_ref->stored changes.
48111 (mark_ref_stored): Likewise.
48112 (ref_indep_loop_p_2): Likewise.
48113 (set_ref_stored_in_loop): New helper function.
48114 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
48115 (memref_free): Adjust.
48116 (record_mem_ref_loc): Simplify.
48117 (gather_mem_refs_stmt): Adjust.
48118 (sort_locs_in_loop_postorder_cmp): New function.
48119 (analyze_memory_references): Sort accesses_in_loop after
48120 loop postorder number.
48121 (find_ref_loc_in_loop_cmp): New function.
48122 (for_all_locs_in_loop): Find relevant cluster of locs in
48123 accesses_in_loop and iterate without recursion.
48124 (execute_sm): Avoid uninit warning.
48125 (struct ref_always_accessed): Simplify.
48126 (ref_always_accessed::operator ()): Likewise.
48127 (ref_always_accessed_p): Likewise.
48128 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
48129 loop postorder numbers here.
48130 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
48133 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
48136 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
48137 on decls for which assemble_alias has been called.
48139 2014-01-17 Nick Clifton <nickc@redhat.com>
48141 * config/msp430/msp430.opt: (mcpu): New option.
48142 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
48143 (msp430_option_override): Parse target_cpu. If the MCU name
48144 matches a generic string, clear target_mcu.
48145 (msp430_attr): Allow numeric interrupt values up to 63.
48146 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
48147 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
48149 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
48151 * config/msp430/msp430.md (popm): Use %J rather than %I.
48152 (addsi3): Use msp430_nonimmediate_operand for operand 2.
48153 (addhi_cy_i): Use immediate_operand for operand 2.
48154 * doc/invoke.texi: Document -mcpu option.
48156 2014-01-17 Richard Biener <rguenther@suse.de>
48158 PR rtl-optimization/38518
48159 * df.h (df_analyze_loop): Declare.
48160 * df-core.c: Include cfgloop.h.
48161 (df_analyze_1): Split out main part of df_analyze.
48162 (df_analyze): Adjust.
48163 (loop_inverted_post_order_compute): New function.
48164 (loop_post_order_compute): Likewise.
48165 (df_analyze_loop): New function avoiding whole-function
48166 postorder computes.
48167 * loop-invariant.c (find_defs): Use df_analyze_loop.
48168 (find_invariants): Adjust.
48169 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
48171 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
48173 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
48174 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
48176 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
48178 * ipa-ref.c (ipa_remove_stmt_references): Fix references
48179 traversal when removing references.
48181 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
48184 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
48186 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
48188 PR middle-end/56791
48189 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
48190 pushing a reload for an autoinc when we had previously reloaded an
48191 inner part of the address.
48193 2014-01-16 Jakub Jelinek <jakub@redhat.com>
48195 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
48197 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
48198 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
48199 when not giving up or versioning for alias only because of
48201 (vect_analyze_data_ref_dependences): Set to true.
48202 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
48204 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
48205 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
48208 PR middle-end/58344
48209 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
48212 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
48213 operand 0 predicate for gathers, use a new pseudo as subtarget.
48215 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48217 PR middle-end/59609
48218 * lra-constraints.c (process_alt_operands): Add printing debug info.
48219 Check absence of input/output reloads for matched operands too.
48221 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48223 PR rtl-optimization/59835
48224 * ira.c (ira_init_register_move_cost): Increase cost for
48227 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
48229 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
48231 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
48234 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
48235 non-register objects. Use gen_(high/low)part more consistently.
48238 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
48241 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
48242 endian support, remove tests for WORDS_BIG_ENDIAN.
48243 (p8_mfvsrd_3_<mode>): Likewise.
48244 (reload_gpr_from_vsx<mode>): Likewise.
48245 (reload_gpr_from_vsxsf): Likewise.
48246 (p8_mfvsrd_4_disf): Likewise.
48248 2014-01-16 Richard Biener <rguenther@suse.de>
48250 PR rtl-optimization/46590
48251 * lcm.c (compute_antinout_edge): Use postorder iteration.
48252 (compute_laterin): Use inverted postorder iteration.
48254 2014-01-16 Nick Clifton <nickc@redhat.com>
48256 PR middle-end/28865
48257 * varasm.c (output_constant): Return the number of bytes actually
48259 (output_constructor_array_range): Update the field size with the
48260 number of bytes emitted by output_constant.
48261 (output_constructor_regular_field): Likewise. Also do not
48262 complain if the total number of bytes emitted is now greater
48263 than the expected fieldpos.
48264 * output.h (output_constant): Update prototype and descriptive comment.
48266 2014-01-16 Marek Polacek <polacek@redhat.com>
48268 PR middle-end/59827
48269 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
48270 it is error_mark_node.
48272 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
48274 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
48275 VALID_AVX256_REG_OR_OI_MODE.
48277 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
48279 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
48280 current procedure should be profiled.
48282 2014-01-15 Andrew Pinski <apinski@cavium.com>
48284 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
48285 of moving from/to the STACK_REG register class.
48287 2014-01-15 Richard Henderson <rth@redhat.com>
48290 * reginfo.c (global_regs_decl): Globalize.
48291 * rtl.h (global_regs_decl): Declare.
48292 * ira.c (do_reload): Diagnose frame_pointer_needed and it
48293 reserved via global_regs.
48295 2014-01-15 Teresa Johnson <tejohnson@google.com>
48297 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
48299 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48301 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48302 and vmulosh rather than call gen_vec_widen_smult_*.
48303 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48304 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48305 (vec_widen_smult_even_v16qi): Likewise.
48306 (vec_widen_umult_even_v8hi): Likewise.
48307 (vec_widen_smult_even_v8hi): Likewise.
48308 (vec_widen_umult_odd_v16qi): Likewise.
48309 (vec_widen_smult_odd_v16qi): Likewise.
48310 (vec_widen_umult_odd_v8hi): Likewise.
48311 (vec_widen_smult_odd_v8hi): Likewise.
48312 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48313 vmuloub rather than call gen_vec_widen_umult_*.
48314 (vec_widen_umult_lo_v16qi): Likewise.
48315 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48316 vmulosb rather than call gen_vec_widen_smult_*.
48317 (vec_widen_smult_lo_v16qi): Likewise.
48318 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48319 rather than call gen_vec_widen_umult_*.
48320 (vec_widen_umult_lo_v8hi): Likewise.
48321 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48322 rather than call gen_vec_widen_smult_*.
48323 (vec_widen_smult_lo_v8hi): Likewise.
48325 2014-01-15 Jeff Law <law@redhat.com>
48327 PR tree-optimization/59747
48328 * ree.c (find_and_remove_re): Properly handle case where a second
48329 eliminated extension requires widening a copy created for elimination
48330 of a prior extension.
48331 (combine_set_extension): Ensure that the number of hard regs needed
48332 for a destination register does not change when we widen it.
48334 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48336 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48337 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48338 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48339 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48340 (avr-*-rtems*): Likewise.
48341 (bfin*-rtems*): Likewise.
48342 (moxie-*-rtems*): Likewise.
48343 (h8300-*-rtems*): Likewise.
48344 (i[34567]86-*-rtems*): Likewise.
48345 (lm32-*-rtems*): Likewise.
48346 (m32r-*-rtems*): Likewise.
48347 (m68k-*-rtems*): Likewise.
48348 (microblaze*-*-rtems*): Likewise.
48349 (mips*-*-rtems*): Likewise.
48350 (powerpc-*-rtems*): Likewise.
48351 (sh-*-rtems*): Likewise.
48352 (sparc-*-rtems*): Likewise.
48353 (sparc64-*-rtems*): Likewise.
48354 (v850-*-rtems*): Likewise.
48355 (m32c-*-rtems*): Likewise.
48357 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48359 PR rtl-optimization/59511
48360 * ira.c (ira_init_register_move_cost): Use memory costs for some
48361 cases of register move cost calculations.
48362 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48363 instead of BB frequency.
48364 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48365 * lra-assigns.c (find_hard_regno_for): Ditto.
48367 2014-01-15 Richard Biener <rguenther@suse.de>
48369 PR tree-optimization/59822
48370 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48371 (vectorizable_load): Use it to hoist defs of uses of invariant
48372 loads out of the loop.
48374 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48375 Kugan Vivekanandarajah <kuganv@linaro.org>
48378 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48381 2014-01-15 Richard Biener <rguenther@suse.de>
48383 PR rtl-optimization/59802
48384 * lcm.c (compute_available): Use inverted postorder to seed
48385 the initial worklist.
48387 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48390 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48391 ADDR_REGS for invalid symrefs in non-PIC code.
48393 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48396 * builtins.c (determine_block_size): Initialize *probable_max_size
48397 even if len_rtx is CONST_INT.
48399 2014-01-14 Andrew Pinski <apinski@cavium.com>
48401 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48402 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48403 (cortexa53_tunings): Likewise.
48404 (aarch64_sched_issue_rate): New function.
48405 (TARGET_SCHED_ISSUE_RATE): Define.
48407 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48409 * ira-costs.c (find_costs_and_classes): Add missed
48410 ira_init_register_move_cost_if_necessary.
48412 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48415 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48417 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48420 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48421 to indicate if type is used for function return value. Warn ABI
48422 change if the vector mode isn't available for function return value.
48423 (ix86_function_arg_advance): Pass false to type_natural_mode.
48424 (ix86_function_arg): Likewise.
48425 (ix86_gimplify_va_arg): Likewise.
48426 (function_arg_32): Don't warn ABI change.
48427 (ix86_function_value): Pass true to type_natural_mode.
48428 (ix86_return_in_memory): Likewise.
48429 (ix86_struct_value_rtx): Removed.
48430 (TARGET_STRUCT_VALUE_RTX): Likewise.
48432 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48434 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48435 converting a conditional jump into a conditional return.
48437 2014-01-14 Richard Biener <rguenther@suse.de>
48439 PR tree-optimization/58921
48440 PR tree-optimization/59006
48441 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48442 hoisting invariant stmts.
48443 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48444 invariant loads on the preheader edge if possible.
48446 2014-01-14 Joey Ye <joey.ye@arm.com>
48448 * doc/plugin.texi (Building GCC plugins): Update to C++.
48450 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48452 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48453 (_mm_rcp28_round_ss): Ditto.
48454 (_mm_rsqrt28_round_sd): Ditto.
48455 (_mm_rsqrt28_round_ss): Ditto.
48456 (_mm_rcp28_sd): Ditto.
48457 (_mm_rcp28_ss): Ditto.
48458 (_mm_rsqrt28_sd): Ditto.
48459 (_mm_rsqrt28_ss): Ditto.
48460 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48461 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48462 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48463 (IX86_BUILTIN_RCP28SD): Ditto.
48464 (IX86_BUILTIN_RCP28SS): Ditto.
48465 (IX86_BUILTIN_RSQRT28SD): Ditto.
48466 (IX86_BUILTIN_RSQRT28SS): Ditto.
48467 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48468 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48469 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48470 (ix86_expand_special_args_builtin): Expand new FTYPE.
48471 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48472 (srcp14<mode>): Make insn unary.
48473 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48474 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48475 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48476 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48477 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48478 Fix rounding: make it SAE only.
48479 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48481 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48483 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48484 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48485 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48486 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48487 (round_saeonly_mask_scalar_operand4): Ditto.
48488 (round_saeonly_mask_scalar_op3): Ditto.
48489 (round_saeonly_mask_scalar_op4): Ditto.
48491 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48493 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48494 Implement -maltivec=be for vec_insert and vec_extract.
48496 2014-01-10 DJ Delorie <dj@redhat.com>
48498 * config/msp430/msp430.md (call_internal): Don't allow memory
48499 references with SP as the base register.
48500 (call_value_internal): Likewise.
48501 * config/msp430/constraints.md (Yc): New. For memory references
48502 that don't use SP as a base register.
48504 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48505 "an integer without a # prefix"
48506 * config/msp430/msp430.md (epilogue_helper): Use it.
48508 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48511 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48512 AVX512F gather builtins.
48513 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48514 on gather decls with INTEGER_TYPE masktype.
48515 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48516 directly into the builtin rather than hoisting it before loop.
48518 PR tree-optimization/59387
48519 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48520 (scev_const_prop): If folded_casts and type has undefined overflow,
48521 use force_gimple_operand instead of force_gimple_operand_gsi and
48522 for each added stmt if it is assign with
48523 arith_code_with_undefined_signed_overflow, call
48524 rewrite_to_defined_overflow.
48525 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48526 gimple-fold.h instead.
48527 (arith_code_with_undefined_signed_overflow,
48528 rewrite_to_defined_overflow): Moved to ...
48529 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48530 rewrite_to_defined_overflow): ... here. No longer static.
48531 Include gimplify-me.h.
48532 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48533 rewrite_to_defined_overflow): New prototypes.
48535 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48537 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48539 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48541 * builtins.c (get_object_alignment_2): Minor tweak.
48542 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48544 2014-01-13 Christian Bruel <christian.bruel@st.com>
48546 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48547 optimized non constant lengths.
48549 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48552 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48553 load as __atomic_load_N if possible.
48555 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48557 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48559 (rs6000_expand_builtin): Adjust call.
48561 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48564 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48565 * config/rs6000/rs6000.c: Include target-globals.h.
48566 (rs6000_set_current_function): Instead of doing target_reinit
48567 unconditionally, use save_target_globals_default_opts and
48568 restore_target_globals.
48570 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48572 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48573 (rs6000_expand_builtin): Handle mffs and mtfsf.
48574 (rs6000_init_builtins): Define mffs and mtfsf.
48575 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48576 (rs6000_mffs): New pattern.
48577 (rs6000_mtfsf): New pattern.
48579 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48581 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48582 Start narrowing with START. Apply candidate-use pair
48583 and check overall cost in narrowing.
48584 (iv_ca_prune): Pass new argument.
48586 2014-01-10 Jeff Law <law@redhat.com>
48588 PR middle-end/59743
48589 * ree.c (combine_reaching_defs): Ensure the defining statement
48590 occurs before the extension when optimizing extensions with
48591 different source and destination hard registers.
48593 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48596 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48597 vtables into the type inheritance graph.
48599 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48601 PR rtl-optimization/59754
48602 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48603 modes in the REGNO != REGNO case.
48605 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48607 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48609 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48611 PR tree-optimization/59745
48612 * tree-predcom.c (tree_predictive_commoning_loop): Call
48613 free_affine_expand_cache if giving up because components is NULL.
48615 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48616 GC in payload of target_globals struct instead of allocating them on
48617 the heap and the larger structs separately using GC.
48618 * target-globals.h (struct target_globals): Make regs, hard_regs,
48619 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48620 of GTY((skip)) and change type to void *.
48621 (reset_target_globals): Cast loads from those fields to corresponding
48624 2014-01-10 Steve Ellcey <sellcey@mips.com>
48627 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48628 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48629 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48631 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48634 * aarch64-modes.def (CC_Zmode): New flags mode.
48635 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48636 represents an equality.
48637 (aarch64_get_condition_code): Handle CC_Zmode.
48638 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48640 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48642 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48643 extraction in good case.
48645 2014-01-10 Richard Biener <rguenther@suse.de>
48647 PR tree-optimization/59374
48648 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48649 checking after SLP discovery. Mark stmts not participating
48650 in any SLP instance properly.
48652 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48654 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48655 when handling a SET rtx.
48657 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48659 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48660 (cortex-a57): Likewise.
48661 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48663 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48665 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48666 non-iwmmxt builtins.
48668 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48672 * ipa-devirt.c record_target_from_binfo): Take as argument
48673 stack of binfos and lookup matching one for virtual inheritance.
48674 (possible_polymorphic_call_targets_1): Update.
48676 2014-01-10 Huacai Chen <chenhc@lemote.com>
48678 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48679 kernel strings for Loongson-2E/2F/3A.
48681 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48683 PR middle-end/59670
48684 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48685 is_gimple_call before calling gimple_call_internal_p.
48687 2014-01-09 Steve Ellcey <sellcey@mips.com>
48689 * Makefile.in (TREE_FLOW_H): Remove.
48690 (TREE_SSA_H): Add file names from tree-flow.h.
48691 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48692 * tree.h: Remove tree-flow.h reference.
48693 * hash-table.h: Remove tree-flow.h reference.
48694 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48695 reference with tree-ssa-loop.h.
48697 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48699 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48700 default element-order behavior for -maltivec.
48701 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48702 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48703 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48704 when targeting big endian, at least for now.
48705 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48707 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48709 PR middle-end/47735
48710 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48711 var satisfies use_register_for_decl, just take into account type
48712 alignment, rather than decl alignment.
48714 PR tree-optimization/59622
48715 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48716 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48717 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48718 Don't devirtualize for inplace at all. For targets.length () == 1,
48719 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48721 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48723 * config/i386/i386.md (cpu): Remove the unused btver1.
48725 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48727 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48729 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48732 * tree-core.h (struct target_globals): New forward declaration.
48733 (struct tree_target_option): Add globals field.
48734 * tree.h (TREE_TARGET_GLOBALS): Define.
48735 (prepare_target_option_nodes_for_pch): New prototype.
48736 * target-globals.h (struct target_globals): Define even if
48737 !SWITCHABLE_TARGET.
48738 * tree.c (prepare_target_option_node_for_pch,
48739 prepare_target_option_nodes_for_pch): New functions.
48740 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48741 * config/i386/i386.c: Include target-globals.h.
48742 (ix86_set_current_function): Instead of doing target_reinit
48743 unconditionally, use save_target_globals_default_opts and
48744 restore_target_globals.
48746 2014-01-09 Richard Biener <rguenther@suse.de>
48748 PR tree-optimization/59715
48749 * tree-cfg.h (split_critical_edges): Declare.
48750 * tree-cfg.c (split_critical_edges): Export.
48751 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48753 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48755 * cfgexpand.c (expand_stack_vars): Optionally disable
48756 asan stack protection.
48757 (expand_used_vars): Likewise.
48758 (partition_stack_vars): Likewise.
48759 * asan.c (asan_emit_stack_protection): Optionally disable
48760 after return stack usage.
48761 (instrument_derefs): Optionally disable memory access instrumentation.
48762 (instrument_builtin_call): Likewise.
48763 (instrument_strlen_call): Likewise.
48764 (asan_protect_global): Optionally disable global variables protection.
48765 * doc/invoke.texi: Added doc for new options.
48766 * params.def: Added new options.
48767 * params.h: Likewise.
48769 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48771 PR rtl-optimization/59724
48772 * ifcvt.c (cond_exec_process_if_block): Don't call
48773 flow_find_head_matching_sequence with 0 longest_match.
48774 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48775 non-active insns if !stop_after.
48776 (try_head_merge_bb): Revert 2014-01-07 changes.
48778 2014-01-08 Jeff Law <law@redhat.com>
48780 * ree.c (get_sub_rtx): New function, extracted from...
48781 (merge_def_and_ext): Here.
48782 (combine_reaching_defs): Use get_sub_rtx.
48784 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48786 * cgraph.h (varpool_variable_node): Do not choke on null node.
48788 2014-01-08 Catherine Moore <clm@codesourcery.com>
48790 * config/mips/mips.md (simple_return): Attempt to use JRC
48792 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48794 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48796 PR rtl-optimization/59137
48797 * reorg.c (steal_delay_list_from_target): Call update_block for
48799 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48801 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48803 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48804 two duplicate entries.
48806 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48809 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48811 * config/mips/mips.c (mips_truncated_op_cost): New function.
48812 (mips_rtx_costs): Adjust test for BADDU.
48813 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48815 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48817 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48818 (*baddu_si): ...this new pattern.
48820 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48823 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48825 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48827 PR middle-end/57748
48828 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48830 (expand_expr, expand_normal): Adjust.
48831 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48832 inner_reference_p. Use inner_reference_p to expand inner references.
48833 (store_expr): Adjust.
48834 * cfgexpand.c (expand_call_stmt): Adjust.
48836 2014-01-08 Rong Xu <xur@google.com>
48838 * gcov-io.c (gcov_var): Move from gcov-io.h.
48839 (gcov_position): Ditto.
48840 (gcov_is_error): Ditto.
48841 (gcov_rewrite): Ditto.
48842 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48843 only part to libgcc/libgcov.h.
48845 2014-01-08 Marek Polacek <polacek@redhat.com>
48847 PR middle-end/59669
48848 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48850 2014-01-08 Marek Polacek <polacek@redhat.com>
48853 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48855 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48857 PR rtl-optimization/59649
48858 * stor-layout.c (get_mode_bounds): For BImode return
48859 0 and STORE_FLAG_VALUE.
48861 2014-01-08 Richard Biener <rguenther@suse.de>
48863 PR middle-end/59630
48864 * gimple.h (is_gimple_builtin_call): Remove.
48865 (gimple_builtin_call_types_compatible_p): New.
48866 (gimple_call_builtin_p): New overload.
48867 * gimple.c (is_gimple_builtin_call): Remove.
48868 (validate_call): Rename to ...
48869 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48870 check return types.
48871 (validate_type): New static function.
48872 (gimple_call_builtin_p): New overload and adjust.
48873 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48874 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48875 (gimple_fold_stmt_to_constant_1): Likewise.
48876 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48878 2014-01-08 Richard Biener <rguenther@suse.de>
48880 PR middle-end/59471
48881 * gimplify.c (gimplify_expr): Gimplify register-register type
48882 VIEW_CONVERT_EXPRs to separate stmts.
48884 2014-01-07 Jeff Law <law@redhat.com>
48886 PR middle-end/53623
48887 * ree.c (combine_set_extension): Handle case where source
48888 and destination registers in an extension insn are different.
48889 (combine_reaching_defs): Allow source and destination registers
48890 in extension to be different under limited circumstances.
48891 (add_removable_extension): Remove restriction that the
48892 source and destination registers in the extension are the same.
48893 (find_and_remove_re): Emit a copy from the extension's
48894 destination to its source after the defining insn if
48895 the source and destination registers are different.
48897 PR middle-end/59285
48898 * ifcvt.c (merge_if_block): If we are merging a block with more than
48899 one successor with a block with no successors, remove any BARRIER
48900 after the second block.
48902 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48904 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48906 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48909 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48910 for 14-bit register offsets when INT14_OK_STRICT is false.
48912 2014-01-07 Roland Stigge <stigge@antcom.de>
48913 Michael Meissner <meissner@linux.vnet.ibm.com>
48916 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48917 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48919 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48921 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48924 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48926 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48927 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48928 rtx is const0_rtx or not.
48930 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48933 * target-globals.c (save_target_globals): Remove this_fn_optab
48935 * toplev.c: Include optabs.h.
48936 (target_reinit): Temporarily restore the global options if another
48937 set of options are in force.
48939 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48941 PR rtl-optimization/58668
48942 * cfgcleanup.c (flow_find_cross_jump): Don't count
48943 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48944 to determine what is counted.
48945 (flow_find_head_matching_sequence): Use active_insn_p to determine
48947 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48949 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48950 determine what is counted.
48952 PR tree-optimization/59643
48953 * tree-predcom.c (split_data_refs_to_components): If one dr is
48954 read and one write, determine_offset fails and the write isn't
48955 in the bad component, just put the read into the bad component.
48957 2014-01-07 Mike Stump <mikestump@comcast.net>
48958 Jakub Jelinek <jakub@redhat.com>
48961 * tree-core.h (struct tree_optimization_option): Change optabs
48962 type from unsigned char * to void *.
48963 * optabs.c (init_tree_optimization_optabs): Adjust
48964 TREE_OPTIMIZATION_OPTABS initialization.
48966 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48969 * config/i386/i386.h (struct machine_function): Add
48970 no_drap_save_restore field.
48971 * config/i386/i386.c (ix86_save_reg): Use
48972 !cfun->machine->no_drap_save_restore instead of
48973 crtl->stack_realign_needed.
48974 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48975 this function clears frame_pointer_needed. Set
48976 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48977 and DRAP reg is needed.
48979 2014-01-06 Marek Polacek <polacek@redhat.com>
48982 * doc/implement-c.texi: Mention that other integer types are
48983 permitted as bit-field types in strictly conforming mode.
48985 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48987 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48988 is newly allocated.
48990 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48992 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48994 2014-01-06 Martin Jambor <mjambor@suse.cz>
48997 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48999 * ipa-prop.c (ipa_print_node_params): Fix indentation.
49001 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
49005 * var-tracking.c (add_stores): Preserve the value of the source even if
49006 we don't record the store.
49008 2014-01-06 Terry Guo <terry.guo@arm.com>
49010 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
49012 2014-01-05 Iain Sandoe <iain@codesourcery.com>
49015 * config/darwin.c (darwin_function_section): Adjust return values to
49016 correspond to optimisation changes made in r206070.
49018 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
49020 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
49021 from prefetch_block tune setting.
49022 (nocona_cost): Correct size of prefetch block to 64.
49024 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
49026 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
49027 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
49028 used to save the static chain register in the computation of the offset
49029 from which the FP registers need to be restored.
49031 2014-01-04 Jakub Jelinek <jakub@redhat.com>
49033 PR tree-optimization/59519
49034 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
49035 ICE if get_current_def (current_new_name) is already non-NULL, as long
49036 as it is a phi result of some other phi in *new_exit_bb that has
49039 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
49040 or vmovdqu* for misaligned_operand.
49041 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
49042 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
49043 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
49044 aligned_mem for AVX512F masked aligned load and store builtins and for
49045 non-temporal moves.
49047 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
49049 PR tree-optimization/59651
49050 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
49051 Address range for negative step should be added by TYPE_SIZE_UNIT.
49053 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
49055 * config/m68k/m68k.c (handle_move_double): Handle pushes with
49056 overlapping registers also for registers other than the stack pointer.
49058 2014-01-03 Marek Polacek <polacek@redhat.com>
49061 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
49064 2014-01-03 Jakub Jelinek <jakub@redhat.com>
49067 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
49070 * config/i386/i386.md (MODE_SIZE): New mode attribute.
49071 (push splitter): Use <P:MODE_SIZE> instead of
49072 GET_MODE_SIZE (<P:MODE>mode).
49073 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
49074 (mov -1, reg peephole2): Likewise.
49075 * config/i386/sse.md (*mov<mode>_internal,
49076 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
49077 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
49078 *<code><mode>3, *andnot<mode>3<mask_name>,
49079 <mask_codefor><code><mode>3<mask_name>): Likewise.
49080 * config/i386/subst.md (mask_mode512bit_condition,
49081 sd_mask_mode512bit_condition): Likewise.
49083 2014-01-02 Xinliang David Li <davidxl@google.com>
49085 PR tree-optimization/59303
49086 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
49087 (dump_predicates): Better output format.
49088 (pred_equal_p): New function.
49089 (is_neq_relop_p): Ditto.
49090 (is_neq_zero_form_p): Ditto.
49091 (pred_expr_equal_p): Ditto.
49092 (pred_neg_p): Ditto.
49093 (simplify_pred): Ditto.
49094 (simplify_preds_2): Ditto.
49095 (simplify_preds_3): Ditto.
49096 (simplify_preds_4): Ditto.
49097 (simplify_preds): Ditto.
49098 (push_pred): Ditto.
49099 (push_to_worklist): Ditto.
49100 (get_pred_info_from_cmp): Ditto.
49101 (is_degenerated_phi): Ditto.
49102 (normalize_one_pred_1): Ditto.
49103 (normalize_one_pred): Ditto.
49104 (normalize_one_pred_chain): Ditto.
49105 (normalize_preds): Ditto.
49106 (normalize_cond_1): Remove function.
49107 (normalize_cond): Ditto.
49108 (is_gcond_subset_of): Ditto.
49109 (is_subset_of_any): Ditto.
49110 (is_or_set_subset_of): Ditto.
49111 (is_and_set_subset_of): Ditto.
49112 (is_norm_cond_subset_of): Ditto.
49113 (pred_chain_length_cmp): Ditto.
49114 (convert_control_dep_chain_into_preds): Type change.
49115 (find_predicates): Ditto.
49116 (find_def_preds): Ditto.
49117 (destroy_predicates_vecs): Ditto.
49118 (find_matching_predicates_in_rest_chains): Ditto.
49119 (use_pred_not_overlap_with_undef_path_pred): Ditto.
49120 (is_pred_expr_subset): Ditto.
49121 (is_pred_chain_subset_of): Ditto.
49122 (is_included_in): Ditto.
49123 (is_superset_of): Ditto.
49125 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
49127 Update copyright years.
49129 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
49131 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
49132 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
49133 config/arc/arc.md, config/arc/arc.opt,
49134 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
49135 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
49136 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
49137 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
49138 config/linux-protos.h, config/linux.c, config/winnt-c.c,
49139 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
49140 vtable-verify.c, vtable-verify.h: Use the standard form for the
49143 2014-01-02 Tobias Burnus <burnus@net-b.de>
49145 * gcc.c (process_command): Update copyright notice dates.
49146 * gcov-dump.c: Ditto.
49148 * doc/cpp.texi: Bump @copying's copyright year.
49149 * doc/cppinternals.texi: Ditto.
49150 * doc/gcc.texi: Ditto.
49151 * doc/gccint.texi: Ditto.
49152 * doc/gcov.texi: Ditto.
49153 * doc/install.texi: Ditto.
49154 * doc/invoke.texi: Ditto.
49156 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
49158 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
49160 2014-01-01 Jakub Jelinek <jakub@redhat.com>
49162 * config/i386/sse.md (*mov<mode>_internal): Guard
49163 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
49165 PR rtl-optimization/59647
49166 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
49167 new_rtx into UNSIGNED_FLOAT rtxes.
49169 Copyright (C) 2014 Free Software Foundation, Inc.
49171 Copying and distribution of this file, with or without modification,
49172 are permitted in any medium without royalty provided the copyright
49173 notice and this notice are preserved.